2020-11-01 17:22:42 +01:00
|
|
|
{
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
2021-04-04 13:52:35 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.behavior.celebrate",
|
2020-11-01 17:22:42 +01:00
|
|
|
"type": "object",
|
2021-01-27 01:06:07 +01:00
|
|
|
"title": "Celebrate 1.16.0",
|
2020-11-01 17:22:42 +01:00
|
|
|
"description": "This allows the mob celebrate by jumping up and playing a sound periodically.",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2021-03-21 15:18:38 +01:00
|
|
|
"priority": { "$ref": "types/base_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" },
|
2020-11-01 17:22:42 +01:00
|
|
|
"jump_interval": {
|
|
|
|
|
"default": 0,
|
|
|
|
|
"description": "The range of time in seconds to randomly wait before jumping again.",
|
2021-03-21 15:18:38 +01:00
|
|
|
"title": "Jump Interval",
|
2020-11-01 17:22:42 +01:00
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": [
|
2021-03-21 15:18:38 +01:00
|
|
|
{ "type": "number", "title": "Maximum" },
|
|
|
|
|
{ "type": "number", "title": "Maximum" }
|
2020-11-01 17:22:42 +01:00
|
|
|
]
|
|
|
|
|
},
|
2021-03-21 15:18:38 +01:00
|
|
|
{ "type": "number" },
|
|
|
|
|
{ "type": "object", "additionalProperties": false, "properties": { "range_min": { "type": "number" }, "range_max": { "type": "number" } } }
|
2020-11-01 17:22:42 +01:00
|
|
|
]
|
|
|
|
|
},
|
2021-05-18 23:32:44 +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"
|
|
|
|
|
},
|
2020-11-01 17:22:42 +01:00
|
|
|
"sound_interval": {
|
|
|
|
|
"default": 0,
|
|
|
|
|
"description": "The range of time in seconds to randomly wait before playing the sound again.",
|
2021-03-21 15:18:38 +01:00
|
|
|
"title": "Sound Interval",
|
2020-11-01 17:22:42 +01:00
|
|
|
"oneOf": [
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": [
|
2021-03-21 15:18:38 +01:00
|
|
|
{ "type": "number", "title": "Maximum" },
|
|
|
|
|
{ "type": "number", "title": "Maximum" }
|
2020-11-01 17:22:42 +01:00
|
|
|
]
|
|
|
|
|
},
|
2021-03-21 15:18:38 +01:00
|
|
|
{ "type": "number" },
|
|
|
|
|
{ "type": "object", "additionalProperties": false, "properties": { "range_min": { "type": "number" }, "range_max": { "type": "number" } } }
|
2020-11-01 17:22:42 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|