Item Documentation - minecraft:wearable
minecraft:wearable
sets the wearable item component.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
protection | 0 | Integer | How much protection the wearable has. |
slot | not set | Enumerator | Determines where the item can be worn. If any non-hand slot is chosen, the max stack size is set to 1. |
See Custom Item Use Priority for more information on use behavior.
slot
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
Example
"minecraft:wearable":{
"dispensable" : true,
"slot": "slot.chest"
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for