Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/behaviors/panic.json

77 lines
2.6 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.behavior.panic",
2021-10-08 12:59:03 +02:00
"description": "Allows the mob to enter the panic state, which makes it run around and away from the damage source that made it enter this state.",
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Panic",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"required": [],
"properties": {
2021-10-11 18:13:12 +02:00
"priority": {
"$ref": "./types/priority.json"
},
"speed_multiplier": {
"$ref": "./types/speed_multiplier.json"
},
2021-10-08 12:59:03 +02:00
"damage_sources": {
2022-07-13 21:22:16 +01:00
"title": "Damage Sources",
2021-10-08 12:59:03 +02:00
"type": "array",
2021-10-11 18:13:12 +02:00
"items": {
"$ref": "../../../../general/entity/damage_source.json"
},
"default": ["campfire", "entity_attack", "entity_explosion", "fire", "fire_tick", "fireworks", "freezing", "lava", "lightning", "magic", "magma", "projectile", "ram_attack", "sonic_boom", "soul_campfire", "temperature", "wither"],
2022-07-22 19:41:04 +02:00
"description": "The list of Entity Damage Sources that will cause this mob to panic."
2021-10-08 12:59:03 +02:00
},
"force": {
2022-07-13 21:22:16 +01:00
"title": "Force",
2021-10-08 12:59:03 +02:00
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, this mob will not stop panicking until it can't move anymore or the goal is removed from it."
2021-10-08 12:59:03 +02:00
},
"ignore_mob_damage": {
2022-07-13 21:22:16 +01:00
"title": "Ignore Mob Damage",
2021-10-08 12:59:03 +02:00
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, the mob will not panic in response to damage from other mobs. This overrides the damage types in `damage_sources`"
2021-10-08 12:59:03 +02:00
},
2021-10-11 18:13:12 +02:00
"prefer_water": {
2022-07-13 21:22:16 +01:00
"title": "Prefer Water",
2021-10-11 18:13:12 +02:00
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, the mob will prefer water over land."
2021-10-11 18:13:12 +02:00
},
2021-10-08 12:59:03 +02:00
"panic_sound": {
2022-07-13 21:22:16 +01:00
"title": "Panic Sound",
"$ref": "../../../../general/sound_event.json",
2022-07-22 19:41:04 +02:00
"description": "The sound event to play when this mob is in panic."
2021-10-08 12:59:03 +02:00
},
"sound_interval": {
"title": "Sound Interval",
2022-07-13 21:22:16 +01:00
"type": "object",
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
"properties": {
"range_min": {
"type": "number",
2022-07-22 19:41:04 +02:00
"description": "The minimum time in seconds before the `panic_sound` plays.",
2021-10-08 12:59:03 +02:00
"title": "Range Minimum"
},
"range_max": {
"type": "number",
2022-07-22 19:41:04 +02:00
"description": "The maximum time in seconds before the `panic_sound` plays.",
2021-10-08 12:59:03 +02:00
"title": "Range Maximum"
}
},
"additionalProperties": false
}
2021-10-11 18:13:12 +02:00
},
"examples": [
{
"damage_sources": [],
"force": false,
"ignore_mob_damage": false,
"prefer_water": false,
"panic_sound": "example",
"sound_interval": {}
}
]
2022-07-22 19:41:04 +02:00
}