Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/buoyant.json
Piotr Brzozowski 4b7a779f2c Expand block reference schema (#121)
* Fix typo in module name
* Add sound_event schema and add it where appropriate
* Add more fields to block reference and fill some missing fields
* Use molang definition for tags
2022-10-06 13:03:40 +02:00

73 lines
2.3 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": {
"title": "Block",
"$ref": "../../../../general/block/reference.json"
}
},
"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
}
]
}