跳转至

Boostable

文档版本:1.21.0.24

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"
    }
  }
}
durationnumber
Time in seconds for the boost.
speed_multipliernumber
Factor by which the entity's normal speed increases. E.g. 2.0 means go twice as fast.
boost_itemsarray
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>
damageinteger
This is the damage that the item will take each time it is used.
itemdescriptor
Name of the item that can be used to boost.
identifier:
string
descriptor:
{
  identifier "item"
  object "item" : opt
  {
  }
  0 "tags"
  string "item_tag" : opt
}
itemidentifier
itemobject
An object that describes an item.
item
tags0
[UNDOCUMENTED] A Molang expression ran against item or block to match.
0:
string
item_tagstring
[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
  }
}
itemidentifier
itemobject
An object that describes an item.
item
replace_itemdescriptor
The item used to boost will become this item once it is used up.