跳转至

Balloonable

文档版本:1.21.0.24

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_distancenumber
Distance in blocks where the 'spring' effect lifts the entity.
max_distancenumber
Distance in blocks where the balloon breaks.
on_balloonstring
Event to call when the entity is ballooned.
on_unballoonstring
Event to call when the entity is unballooned.
massnumber
Mass that the entity has when computing balloon pull forces.