Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/buoyant.json
2021-10-11 18:10:42 +02:00

73 lines
2.2 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.buoyant",
"type": "object",
"title": "Buoyant",
"description": "Enables an entity to float on the specified liquid blocks.",
"additionalProperties": false,
"properties": {
"base_buoyancy": {
"type": "number",
"default": 0,
"description": "Base buoyancy used to calculate how much will a mob float.",
"title": "Base Buoyancy"
},
"apply_gravity": {
"type": "boolean",
"default": true,
"description": "Applies gravity each tick. Causes more of a wave simulation, but will cause more gravity to be applied outside liquids.",
"title": "Apply Gravity"
},
"buoyancy": {
"type": "number",
"default": 1,
"description": "Base buoyancy used to calculate how much will a mob float.",
"title": "Base Buoyancy"
},
"big_wave_probability": {
"type": "number",
"default": 0.03,
"description": "Probability for a big wave hitting the entity. Only used if `simulate_waves` is true.",
"title": "Big Wave Probability"
},
"big_wave_speed": {
"type": "number",
"default": 10,
"description": "Multiplier for the speed to make a big wave. Triggered depending on `big_wave_probability`.",
"title": "Big Wave Speed"
},
"drag_down_on_buoyancy_removed": {
"type": "number",
"default": 0,
"description": "How much an actor will be dragged down when the Buoyancy Component is removed.",
"title": "Drag Down On Buoyancy Removed"
},
"liquid_blocks": {
"type": "array",
"description": "List of blocks this entity can float on. Must be a liquid block.",
"title": "Liquid Blocks",
"items": {
"type": "string",
"title": "Block ID"
}
},
"simulate_waves": {
"type": "boolean",
"default": true,
"description": "Should the movement simulate waves going through.",
"title": "Simulate Waves"
}
},
"examples": [
{
"base_buoyancy": 0,
"apply_gravity": true,
"buoyancy": 1,
"big_wave_probability": 0.03,
"big_wave_speed": 10,
"drag_down_on_buoyancy_removed": 0,
"liquid_blocks": [],
"simulate_waves": true
}
]
}