Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the wearable item component.
Note
Here are the following equipment slots that can be set for the value of slot: slot.weapon.mainhand, slot.weapon.offhand, slot.armor.head, slot.armor.chest, slot.armor.legs, slot.armor.feet, slot.hotbar, slot.inventory, slot.enderchest, slot.saddle, slot.armor, slot.chest, slot.equippable.
Wearable Properties
Name | Default Value | Type | Description | Example Values |
---|---|---|---|---|
protection | not set | Integer number | How much protection the wearable item provides. Default is set to 0. | |
slot | not set | String | Specifies where the item can be worn. If any non-hand slot is chosen, the max stack size is set to 1. | Chestplate: "slot.armor.chest" , Crown: "slot.armor.head" , My Boots: "slot.armor.feet" |
(deprecated) dispensable | not set | Boolean true/false | Chestplate: true |
Samples
Journal Pencil
"minecraft:wearable": {
"dispensable": true,
"slot": "slot.weapon.offhand"
}
Chestplate
"minecraft:wearable": {
"dispensable": true,
"slot": "slot.armor.chest"
}
Crown
"minecraft:wearable": {
"dispensable": true,
"slot": "slot.armor.head"
}
My Boots
"minecraft:wearable": {
"dispensable": true,
"slot": "slot.armor.feet"
}
My Leggings
"minecraft:wearable": {
"dispensable": true,
"slot": "slot.armor.legs"
}