mojira.dev
MCPE-237186

Custom wearable items with slot.armor.body slot can be equipped to the player by right-clicking

The bug

The wearable component enables an item to be equipped as armor, and signals any matching attachables to only render when the item is equipped in the specified slot. The item can be shift-clicked in the inventory to equip it, or used (right-click) in the world.

Non-player armor like wolf armor uses the slot.armor.body slot. Players don’t normally have this slot, so wolf armor can’t be equipped by players. However, custom armor using this slot erroneously can be equipped to an invisible, inaccessible slot by using the item.

How to reproduce

  1. Download and open the attached world

  2. Hold the custom item that looks like an apple

  3. Right-click

Expected behavior

Nothing should happen

Observed behavior

You equip the item into an invisible slot and it starts rendering on your body

Attachments

Comments 1

tryashtar

(Unassigned)

Unconfirmed

Windows

26.20.20 Preview, 26.3

Retrieved