Entity Documentation - minecraft:buoyant
minecraft:buoyant
allows an entity to float on the specified liquid blocks.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
apply_gravity | true | Boolean | Applies gravity each tick. Causes more of a wave simulation, but will cause more gravity to be applied outside liquids. |
base_buoyancy | 1.0 | Decimal | Base buoyancy used to calculate how much the entity will float. |
big_wave_probability | 0.03 | Decimal | Probability of a big wave hitting the entity. Only used if simulate_waves is true. |
big_wave_speed | 10.0 | Decimal | Multiplier for the speed to make a big wave. Triggered depending on big_wave_probability . |
drag_down_on_buoyancy_removed | 0.0 | Decimal | How much an entity will be dragged down when the buoyancy component is removed. |
liquid_blocks | not set | List | List of blocks this entity can float on. Must be a liquid block. |
simulate_waves | true | Boolean | If true, the movement simulates waves going through. |
Example
"minecraft:buoyant":{
"apply_gravity": true,
"base_buoyancy": 1.0,
"simulate_waves": true,
"big_wave_probability": 0.03,
"big_wave_speed": 10.0,
"drag_down_on_buoyancy_removed": 0.0,
"liquid_blocks": [
"minecraft:water",
"minecraft:flowing_water"
]
}
Vanilla entities examples
boat
"minecraft:buoyant": {
"base_buoyancy": 1.0,
"apply_gravity": true,
"simulate_waves": true,
"big_wave_probability": 0.03,
"big_wave_speed": 10.0,
"liquid_blocks": [
"minecraft:water",
"minecraft:flowing_water"
]
}
Vanilla entities using minecraft:buoyant
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for