Balloonable¶
文档版本:1.21.50.25
allows the entity to have a balloon attached and defines the conditions and events for the entity when is ballooned.
架构¶
balloonable:
{
number "soft_distance" : opt
number "max_distance" : opt
string "on_balloon" : opt
string "on_unballoon" : opt
number "mass" : opt
}
soft_distance
:number- Distance in blocks where the 'spring' effect lifts the entity.
max_distance
:number- Distance in blocks where the balloon breaks.
on_balloon
:string- Event to call when the entity is ballooned.
on_unballoon
:string- Event to call when the entity is unballooned.
mass
:number- Mass that the entity has when computing balloon pull forces.