Buoyant¶
文档版本:1.21.50.25
Enables an entity to float on the specified liquid blocks.
架构¶
buoyant:
{
number "base_buoyancy" : opt
boolean "apply_gravity" : opt
number "buoyancy" : opt
number "big_wave_probability" : opt
number "big_wave_speed" : opt
number "drag_down_on_buoyancy_removed" : opt
array "liquid_blocks" : opt
{
reference "<any array element>"
}
boolean "simulate_waves" : opt
}
base_buoyancy
:number- Base buoyancy used to calculate how much will a mob float.
apply_gravity
:boolean- Applies gravity each tick. Causes more of a wave simulation, but will cause more gravity to be applied outside liquids.
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_waves
is 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>
:reference
reference:
{
identifier "name"
object "states" : opt
{
['boolean', 'integer', 'string'] "\w*:?\w+" : opt
}
0 "tags"
}
name
:identifier
states
:object
states
\w*:?\w+
:['boolean', 'integer', 'string']- The key of property is the name of the block state/property, the value must be the same as the block properties accepted values.
tags
:0- A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
simulate_waves
:boolean- Should the movement simulate waves going through.