跳转至

Equipment

文档版本:1.21.0.24

Sets the equipment table to use for the entity.

架构

equipment:
{
  array "slot_drop_chance" : opt
  {
    object "<any array element>" : opt
    {
      number "drop_chance" : opt
      string "slot" : opt
    }
  }
  identifier "table"
}
slot_drop_chancearray
A list of slots with the chance to drop an equipped item from that slot.
slot_drop_chance
<any array element>object
A slots with the chance to drop an equipped item from that slot.
<any array element>
drop_chancenumber
The chance that the item in this slot will drop.
slotstring
The slot in which the item will drop from.
tableidentifier
The file path to the equipment table, relative to the behavior pack's root.
identifier:
string