Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/celebrate_hunt.json
Piotr Brzozowski c60e5c0d39 Add sound event schema and use where appropriate (#120)
* Fix typo in module name

* Add sound_event schema and add it where appropriate
2022-10-02 21:51:03 +02:00

86 lines
2.3 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.celebrate_hunt",
"type": "object",
"title": "Celebrate Hunt",
"description": "Specifies hunt celebration behavior.",
"additionalProperties": false,
"properties": {
"broadcast": {
"type": "boolean",
"default": true,
"description": "If true, celebration will be broadcasted to other entities in the radius.",
"title": "Broadcast"
},
"celebration_targets": {
"$ref": "../../filters/filters.json",
"description": "The list of conditions that target of hunt must satisfy to initiate celebration.",
"title": "Celeberation Targets"
},
"celebrate_sound": {
"$ref": "../../../../general/sound_event.json",
"default": "",
"description": "The sound event to play when the mob is celebrating.",
"title": "Celebrate Sound"
},
"duration": {
"type": "integer",
"default": 4,
"description": "Duration, in seconds, of celebration.",
"title": "Duration"
},
"radius": {
"type": "number",
"default": 16,
"description": "If broadcast is enabled, specifies the radius in which it will notify other entities for celebration.",
"title": "Radius"
},
"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",
"title": "Minimum",
"description": "Minimum."
},
"range_max": {
"type": "number",
"title": "Maximum",
"description": "Maximum."
}
}
}
]
}
},
"examples": [
{
"broadcast": true,
"celebrate_sound": "",
"duration": 4,
"radius": 16
}
]
}