Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/behaviors/celebrate.json

74 lines
2.0 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.behavior.celebrate",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Celebrate",
"description": "Allows this entity to celebrate surviving a raid by making celebration sounds and jumping.",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"properties": {
"priority": { "$ref": "types/priority.json" },
2021-10-11 18:13:12 +02:00
"celebration_sound": {
"description": "The sound event to trigger during the celebration.",
"title": "Celebration Sound",
"$ref": "../../../../general/sound_event.json"
2021-10-11 18:13:12 +02:00
},
"duration": {
"type": "number",
"default": 30,
"description": "The duration in seconds that the celebration lasts for.",
2021-10-11 18:13:12 +02:00
"title": "Duration"
},
2021-10-08 12:59:03 +02:00
"jump_interval": {
"default": [1, 3.5],
"description": "Minimum and maximum time between jumping (positive, in seconds).",
2021-10-08 12:59:03 +02:00
"title": "Jump Interval",
"oneOf": [
{
"type": "array",
"items": [
2021-10-11 18:13:12 +02:00
{
"type": "number",
"title": "Maximum"
},
{
"type": "number",
"title": "Maximum"
}
2021-10-08 12:59:03 +02:00
]
},
2021-10-11 18:13:12 +02:00
{
"type": "number"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"range_min": {
"type": "number"
},
"range_max": {
"type": "number"
}
}
}
2021-10-08 12:59:03 +02:00
]
},
"on_celebration_end_event": {
"$ref": "../types/trigger.json",
"description": "The event to trigger when the goal's duration expires.",
"title": "On Celebration End Event"
},
"sound_interval": {
"default": [2, 7],
"description": "Minimum and maximum time between sound events (positive, in seconds).",
2021-10-08 12:59:03 +02:00
"title": "Sound Interval",
"$ref": "../types/range_number_type.json"
2021-10-08 12:59:03 +02:00
}
2021-10-11 18:13:12 +02:00
},
"examples": [
{
"celebration_sound": "",
"duration": 1
}
]
}