跳转至

minecraft:buoyant

文档版本:1.21.0.24

Enables an entity to float on the specified liquid blocks.

架构

minecraft:buoyant:
{
  boolean "apply_gravity" : opt
  number "base_buoyancy" : opt
  number "big_wave_probability" : opt
  number "big_wave_speed" : opt
  number "drag_down_on_buoyancy_removed" : opt
  array "liquid_blocks" : opt
  {
    item_descriptor "<any array element>"
  }
  boolean "simulate_waves" : opt
}
apply_gravityboolean
Applies gravity each tick. Causes more of a wave simulation, but will cause more gravity to be applied outside liquids.
base_buoyancynumber
Base buoyancy used to calculate how much will a mob float.
big_wave_probabilitynumber
Probability for a big wave hitting the entity. Only used if simulate_waves is true.
big_wave_speednumber
Multiplier for the speed to make a big wave. Triggered depending on 'big_wave_probability'.
drag_down_on_buoyancy_removednumber
How much an actor will be dragged down when the Buoyancy Component is removed.
liquid_blocksarray
List of blocks this entity can float on. Must be a liquid block.
liquid_blocks
<any array element>item_descriptor
item_descriptor:
string
item_descriptor:
{
  string "<any object property>" : opt
}
<any object property>string
simulate_wavesboolean
Should the movement simulate waves going through.