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_gravity:boolean- Applies gravity each tick. Causes more of a wave simulation, but will cause more gravity to be applied outside liquids.
base_buoyancy:number- Base buoyancy used to calculate how much will a mob float.
big_wave_probability:number- Probability for a big wave hitting the entity. Only used if
simulate_wavesis true.
big_wave_speed:number- Multiplier for the speed to make a big wave. Triggered depending on 'big_wave_probability'.
drag_down_on_buoyancy_removed:number- How much an actor will be dragged down when the Buoyancy Component is removed.
liquid_blocks:array- List of blocks this entity can float on. Must be a liquid block.
liquid_blocks<any array element>:item_descriptor
<any object property>:string
simulate_waves:boolean- Should the movement simulate waves going through.