Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/behaviors/celebrate.json
2021-10-08 13:17:37 +02:00

50 lines
1.9 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.celebrate",
"type": "object",
"title": "Celebrate",
"description": "This allows the mob celebrate by jumping up and playing a sound periodically.",
"additionalProperties": false,
"properties": {
"priority": { "$ref": "types/priority.json" },
"celebration_sound": { "type": "string", "default": "", "description": "The sound to occasionally play.", "title": "Celebration Sound" },
"duration": { "type": "number", "default": 1, "description": "The duration of the celebration (in seconds).", "title": "Duration" },
"jump_interval": {
"default": 0,
"description": "The range of time in seconds to randomly wait before jumping again.",
"title": "Jump Interval",
"oneOf": [
{
"type": "array",
"items": [
{ "type": "number", "title": "Maximum" },
{ "type": "number", "title": "Maximum" }
]
},
{ "type": "number" },
{ "type": "object", "additionalProperties": false, "properties": { "range_min": { "type": "number" }, "range_max": { "type": "number" } } }
]
},
"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": 0,
"description": "The range of time in seconds to randomly wait before playing the sound again.",
"title": "Sound Interval",
"oneOf": [
{
"type": "array",
"items": [
{ "type": "number", "title": "Maximum" },
{ "type": "number", "title": "Maximum" }
]
},
{ "type": "number" },
{ "type": "object", "additionalProperties": false, "properties": { "range_min": { "type": "number" }, "range_max": { "type": "number" } } }
]
}
}
}