跳转至

minecraft:boostable

文档版本:1.21.0.24

Defines the conditions and behavior of a rideable entity's boost.

架构

minecraft:boostable:
{
  array "boost_items" : opt
  {
    object "<any array element>" : opt
    {
      integer "damage" : opt
      string "item" : opt
      string "replace_item" : opt
    }
  }
  number "duration" : opt
  number "speed_multiplier" : opt
}
boost_itemsarray
boost_items
<any array element>object
<any array element>
damageinteger
This is the damage that the item will take each time it is used.
itemstring
Name of the item that can be used to boost.
replace_itemstring
The item used to boost will become this item once it is used up.
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. Requires "format_version" of 1.20 or more, otherwise the value 1.35 will be used.