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",
|
2023-08-13 23:21:03 -07:00
|
|
|
"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": {
|
2023-08-13 23:21:03 -07:00
|
|
|
"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": {
|
2023-08-13 23:21:03 -07:00
|
|
|
"title": "Mass",
|
|
|
|
|
"description": "Mass that the entity has when computing balloon pull forces.",
|
2021-10-11 18:10:42 +02:00
|
|
|
"type": "number",
|
2023-08-13 23:21:03 -07:00
|
|
|
"default": 1.0
|
2021-10-11 18:10:42 +02:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
2023-08-13 23:21:03 -07:00
|
|
|
"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
|
|
|
}
|