跳转至

Buoyant

文档版本:1.21.0.24

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_buoyancynumber
Base buoyancy used to calculate how much will a mob float.
apply_gravityboolean
Applies gravity each tick. Causes more of a wave simulation, but will cause more gravity to be applied outside liquids.
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>reference
identifier:
string
reference:
{
  identifier "name"
  object "states" : opt
  {
    ['boolean', 'integer', 'string'] "\w*:?\w+" : opt
  }
  0 "tags"
}
nameidentifier
statesobject
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.
tags0
A condition using Molang queries that results to true/false that can be used to query for blocks with certain tags.
0:
string
simulate_wavesboolean
Should the movement simulate waves going through.