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",
|
2022-04-20 15:54:51 +02:00
|
|
|
"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": {
|
2022-04-20 15:54:51 +02:00
|
|
|
"priority": { "$ref": "types/priority.json" },
|
2021-10-11 18:13:12 +02:00
|
|
|
"celebration_sound": {
|
2022-04-20 15:54:51 +02:00
|
|
|
"description": "The sound event to trigger during the celebration.",
|
2022-10-02 21:51:03 +02:00
|
|
|
"title": "Celebration Sound",
|
|
|
|
|
"$ref": "../../../../general/sound_event.json"
|
2021-10-11 18:13:12 +02:00
|
|
|
},
|
|
|
|
|
"duration": {
|
|
|
|
|
"type": "number",
|
2022-04-20 15:54:51 +02:00
|
|
|
"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": {
|
2022-04-20 15:54:51 +02:00
|
|
|
"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": {
|
2022-10-01 23:06:21 +02:00
|
|
|
"default": [2, 7],
|
2022-04-20 15:54:51 +02:00
|
|
|
"description": "Minimum and maximum time between sound events (positive, in seconds).",
|
2021-10-08 12:59:03 +02:00
|
|
|
"title": "Sound Interval",
|
2022-04-20 15:54:51 +02:00
|
|
|
"$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
|
|
|
|
|
}
|
|
|
|
|
]
|
2022-04-20 15:54:51 +02:00
|
|
|
}
|