Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/behaviors/panic.json
2021-10-08 13:17:37 +02:00

60 lines
2.1 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.panic",
"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",
"title": "Panic",
"additionalProperties": false,
"required": [],
"properties": {
"priority": { "$ref": "./types/priority.json" },
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
"damage_sources": {
"type": "array",
"items": { "$ref": "../../../../general/entity_damage.json" },
"default": [["all"]],
"description": "The list of Entity Damage Sources that will cause this mob to panic",
"title": "Damage Sources"
},
"force": {
"type": "boolean",
"default": false,
"description": "If true, this mob will not stop panicking until it can't move anymore or the goal is removed from it",
"title": "Force"
},
"ignore_mob_damage": {
"type": "boolean",
"default": false,
"description": "If true, the mob will not panic in response to damage from other mobs. This overrides the damage types in `damage_sources`",
"title": "Ignore Mob Damage"
},
"prefer_water": { "type": "boolean", "default": false, "description": "If true, the mob will prefer water over land", "title": "Prefer Water" },
"panic_sound": {
"type": "string",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Panic Sound"
},
"sound_interval": {
"type": "object",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Sound Interval",
"properties": {
"range_min": {
"type": "number",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Range Minimum"
},
"range_max": {
"type": "number",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Range Maximum"
}
},
"additionalProperties": false
}
}
}