1. Wiki
  2. /Items
  3. /minecraft:wearable

minecraft:wearable

Don't want to write this by hand? GodCraft sets minecraft:wearable for you with a switch.Get GodCraft

Overview

minecraft:wearable is an item component: it goes in the components object of a custom item. Lets the item be worn in an equipment slot, such as a helmet or boots. Combine it with an attachable in the resource pack so it shows on the player.

Fields

FieldTypeDefaultDescription
slotEquipmentSlotnoneThe slot it goes in, for example "slot.armor.head". Any slot other than a hand sets the stack size to 1.
protectioninteger0Armor points the item gives while worn.Range: 0 to …
hides_player_locationbooleanfalseWhen true, wearing it hides the player from locator maps and the locator bar.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:wearable": {
    "slot": {},
    "protection": 0,
    "hides_player_location": false
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more