Equippable¶
文档版本:1.21.50.25
Defines an entity's behavior for having items equipped to it.
架构¶
equippable:
{
array "slots" : opt
{
object "<any array element>" : opt
{
integer "slot" : opt
array "accepted_items" : opt
{
descriptor "<any array element>"
}
descriptor "item"
string "interact_text" : opt
event_object "on_equip"
event_object "on_unequip"
}
}
}
slots
:array- List of slots and the item that can be equipped.
slots
<any array element>
:object- A slot and the item that can be equipped.
<any array element>
slot
:integer- The slot number of this slot.
accepted_items
:array- The list of items that can go in this slot.
accepted_items
<any array element>
:descriptor- A item name.
item
:identifier
item
:object- An object that describes an item.
item
tags
:0- [UNDOCUMENTED] A Molang expression ran against item or block to match.
item_tag
:string- [UNDOCUMENTED] A tag to lookup item or block by.
item
:descriptor- Identifier of the item that can be equipped for this slot.
interact_text
:string- Text to be displayed when the entity can be equipped with this item when playing with Touch-screen controls.
on_equip
:event_object- Event to trigger when this entity is equipped with this item.
on_unequip
:event_object- Event to trigger when this item is removed from this entity.