mojira.dev
MC-280344

Camera Overlay Effect Issue with Command-Equipped Items

Bug Report:

When using a command to give a player an item with the "equippable component," if the item is worn in the body slot, the camera_overlay effect does not work. However, if the player manually equips the item, the effect works as expected. Additionally, when using a command to remove the item, the camera_overlay effect persists and does not get removed, even though the item is no longer equipped.

Command Equips:

/item replace entity @s armor.body with minecraft:name_tag[minecraft:equippable={slot:"body",camera_overlay:"misc/powder_snow_outline"}]
/item replace entity @s armor.body with minecraft:air

Manually Equips:

/give @s minecraft:name_tag[minecraft:equippable={slot:"body",camera_overlay:"misc/powder_snow_outline"}]

Linked issues

Attachments

Comments 2

ok the problem will be fixt

Thank you for your report!
However, this issue is Invalid.

The correct slot to use is chest. body is for horse armor, wolf armor, etc. Humanoid mobs all use chest.

Using the command /item replace entity @s armor.chest with minecraft:name_tag[minecraft:equippable={slot:"chest",camera_overlay:"misc/powder_snow_outline"}] does show the overlay correctly, and /item replace entity @s armor.chest with air does remove it again.

Tested in 25w10a.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Plants_Stars

(Unassigned)

Unconfirmed

(Unassigned)

25w09a

Retrieved