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

56 lines
1.7 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.nap",
"type": "object",
"title": "Nap",
"description": "Allows the mob to move back into lava when on land.",
"additionalProperties": false,
"properties": {
"priority": { "$ref": "types/priority.json" },
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
"cooldown_max": {
"type": "number",
"default": 0,
"description": "Maximum time in seconds the mob has to wait before using the goal again",
"title": "Cooldown Max"
},
"cooldown_min": {
"type": "number",
"default": 0,
"description": "Minimum time in seconds the mob has to wait before using the goal again",
"title": "Cooldown Min"
},
"mob_detect_dist": {
"type": "number",
"default": 6,
"description": "The block distance in x and z that will be checked for mobs that this mob detects",
"title": "Mob Detect Dist"
},
"mob_detect_height": {
"type": "number",
"default": 6,
"description": "The block distance in y that will be checked for mobs that this mob detects",
"title": "Mob Detect Height"
},
"can_nap_filters": {
"$ref": "../../filters/filters.json",
"description": "The filters that need to be met for the nap to take place",
"$comment": "UNDOCUMENTED",
"title": "Can Nap Filters"
},
"wake_mob_exceptions": {
"$ref": "../../filters/filters.json",
"description": "Filters that can trigger the entity to wake up from it nap",
"$comment": "UNDOCUMENTED",
"title": "Wake Mob Exceptions"
}
},
"examples": [
{
"cooldown_max": 0,
"cooldown_min": 0,
"mob_detect_dist": 6,
"mob_detect_height": 6
}
]
}