minecraft:wearable

Wearable items can be worn by a player in a specified slot.

Properties

PropertyTypeDefaultWhat it does
slot requiredTextslot.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.
protectionIntegermin 00How much protection the wearable item provides. Default is set to 0.
hides_player_locationBooleanfalseDetermines 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.

Open the maker

Related components