minecraft:wearable
Wearable items can be worn by a player in a specified slot.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
slot required | Textslot.weapon.mainhand, slot.weapon.offhand, slot.armor.head, slot.armor.chest, slot.armor.legs, slot.armor.feet, slot.armor.body | — | Specifies where the item can be worn. If any non-hand slot is chosen, the max stack size is set to 1. |
protection | Integermin 0 | 0 | How much protection the wearable item provides. Default is set to 0. |
hides_player_location | Boolean | false | Determines whether the Player's location is hidden on Locator Maps and the Locator Bar when the wearable item is worn. Default is false. |
Used by
No vanilla item file in the official samples uses this component. It is still part of the schema, so add-ons can use it.
Set it without writing JSON
The item maker writes this component for you from a form and puts it in a ready-to-import .mcaddon.