Boostable¶
文档版本:1.21.50.25
Defines the conditions and behavior of a rideable entity's boost.
架构¶
boostable:
{
number "duration" : opt
number "speed_multiplier" : opt
array "boost_items" : opt
{
object "<any array element>" : opt
{
integer "damage" : opt
descriptor "item"
descriptor "replace_item"
}
}
}
duration:number- Time in seconds for the boost.
speed_multiplier:number- Factor by which the entity's normal speed increases. E.g. 2.0 means go twice as fast.
boost_items:array- List of items that can be used to boost while riding this entity.
boost_items<any array element>:object- List of items that can be used to boost while riding this entity.
<any array element>damage:integer- This is the damage that the item will take each time it is used.
item:descriptor- Name of the item that can be used to boost.
item:identifier
item:object- An object that describes an item.
itemtags:0- [UNDOCUMENTED] A Molang expression ran against item or block to match.
item_tag:string- [UNDOCUMENTED] A tag to lookup item or block by.
descriptor:
{
identifier "item"
object "item" : opt
{
identifier "item"
object "item" : opt
{
}
0 "tags"
string "item_tag" : opt
}
}
replace_item:descriptor- The item used to boost will become this item once it is used up.