mojira.dev
MC-296387

camera_overlay field behaves strangely when used for slots the player doesn't usually have access to

If an item with the equippable component that has a camera_overlay specified is equipped into either the saddle or body slot of a player manually using right click, the overlay will remain on the player's screen until the world is reloaded, even if the item is removed from the slot.

If the same item is instead placed into either slot using /item, the overlay does not show up, even after the world is reloaded.

Steps to reproduce:
Use /give @s dirt[equippable={slot:body,camera_overlay:'minecraft:block/dirt'}] to obtain an item with a camera overlay that can be placed into the player’s body slot
Equip the item by right-clicking with it in your hand
Use /item replace entity @s armor.body with air to remove the item from the player’s body slot

Expected Result:
The overlay will display a dirt block when equipped and will disappear if the item is removed from the slot

Observer Result:
The overlay displays a dirt block until the world is reloaded, even after it is removed from the slot

Notes
While this may seem unimportant since the body and saddle slots are not intended to be used by the player and their contents cannot be interacted with through a GUI, it would provide an oppertunity for Datapacks and Mapmaking to display a camera overlay for the player without needing to sacrifice an armor slot or use other, less reliable methods such as custom font displayed with the /title command.

Linked issues

Comments 1

Thank you for your report!
We're tracking this issue in MC-280136, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

KmiT

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5, 25w15a

Retrieved