Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/balloonable.json

46 lines
1.3 KiB
JSON
Raw Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.balloonable",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Balloonable",
"description": "allows the entity to have a balloon attached and defines the conditions and events for the entity when is ballooned.",
2021-10-08 12:59:03 +02:00
"required": [],
2021-10-11 18:10:42 +02:00
"properties": {
"soft_distance": {
"title": "Soft Distance",
"description": "Distance in blocks where the 'spring' effect lifts the entity.",
"type": "number",
"default": 2.0
},
"max_distance": {
"title": "Max Distance",
"description": "Distance in blocks where the balloon breaks.",
"type": "number",
"default": 10.0
},
"on_balloon": {
"title": "On Balloon",
"description": "Event to call when the entity is ballooned.",
"type": "string"
},
"on_unballoon": {
"title": "On Unballoon",
"description": "Event to call when the entity is unballooned.",
"type": "string"
},
2021-10-11 18:10:42 +02:00
"mass": {
"title": "Mass",
"description": "Mass that the entity has when computing balloon pull forces.",
2021-10-11 18:10:42 +02:00
"type": "number",
"default": 1.0
2021-10-11 18:10:42 +02:00
}
},
"examples": [
{
"max_distance": 10.0,
"soft_distance": 2.0,
"mass": 0.5
2021-10-11 18:10:42 +02:00
}
]
2021-10-08 12:59:03 +02:00
}