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_items
:array
boost_items
<any array element>
:object
<any array element>
damage
:integer- This is the damage that the item will take each time it is used.
item
:string- Name of the item that can be used to boost.
replace_item
:string- The item used to boost will become this item once it is used up.
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. Requires "format_version" of 1.20 or more, otherwise the value 1.35 will be used.