Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/celebrate_hunt.json

86 lines
2.2 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.celebrate_hunt",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Celebrate Hunt",
2021-10-08 12:59:03 +02:00
"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": {
"type": "string",
"default": "",
2022-07-22 19:41:04 +02:00
"description": "The sound event to play when the mob is celebrating.",
2021-10-08 12:59:03 +02:00
"title": "Celebrate Sound"
},
2021-10-11 18:10:42 +02:00
"duration": {
"type": "integer",
"default": 4,
2022-07-22 19:41:04 +02:00
"description": "Duration, in seconds, of celebration.",
2021-10-11 18:10:42 +02:00
"title": "Duration"
},
2021-10-08 12:59:03 +02:00
"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,
2022-07-22 19:41:04 +02:00
"description": "The range of time in seconds to randomly wait before playing the sound again.",
2021-10-08 12:59:03 +02:00
"title": "Sound Interval",
"oneOf": [
{
"type": "array",
"items": [
2021-10-11 18:10:42 +02:00
{
"type": "number",
"title": "Maximum"
},
{
"type": "number",
"title": "Maximum"
}
2021-10-08 12:59:03 +02:00
]
},
2021-10-11 18:10:42 +02:00
{
"type": "number"
},
2021-10-08 12:59:03 +02:00
{
"type": "object",
"additionalProperties": false,
"properties": {
"range_min": {
"type": "number",
"title": "Minimum",
2022-07-22 19:41:04 +02:00
"description": "Minimum."
2021-10-08 12:59:03 +02:00
},
"range_max": {
"type": "number",
"title": "Maximum",
2022-07-22 19:41:04 +02:00
"description": "Maximum."
2021-10-08 12:59:03 +02:00
}
}
}
]
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"broadcast": true,
"celebrate_sound": "",
"duration": 4,
"radius": 16
}
]
2021-10-08 12:59:03 +02:00
}