mojira.dev
MC-295716

Camera Overlay in equippable Component Fails to Apply When Using /item Command to Equip Body or Saddle Slot

When using the /item replace command to force-equip an item with an equippable component into a player's body or saddle slot, the camera_overlay field (defined in the component) does not activate as intended. The expected behavior is that the player's screen should display the specified overlay texture immediately after equipping the item. However, no overlay appears in practice.

Steps to Reproduce:

Create an item with the following equippable component (example for a body slot):

Use :

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

Or

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

Observe the player's screen.

Expected Result:
The texture defined in camera_overlay should overlay the player's screen.

Actual Result:
No overlay texture appears, even though the item is successfully equipped.

Additional Notes:

The issue does not occur when equipping the item manually (e.g., placing it in the body slot via inventory).

Overlay textures work correctly for other slots (e.g., head with pumpkin-like overlays).

Tested in Minecraft 1.20.5 and latest snapshots.

Technical Analysis:
The camera_overlay functionality likely depends on the game's event-triggered rendering logic when items are equipped through player interaction. Forcing equipment via /item replace might bypass the event that activates the overlay.

Suggested Fix:
Ensure the camera_overlay rendering system checks for equipped items in all relevant slots, regardless of how they were equipped (via commands or player actions).

Associated project:

MC-280344

MC-288573

Linked issues

Comments 2

If fixed, it can be very helpful for datapack developers.

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

Plants_Stars

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5 Release Candidate 1

Retrieved