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"
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈