{ "$id": "blockception.minecraft.behavior.entities.minecraft.behavior.sleep", "additionalProperties": false, "description": "Allows mobs that own a bed to in a village to move to and sleep in it.", "type": "object", "title": "Sleep", "required": [], "properties": { "priority": { "$ref": "types/priority.json" }, "speed_multiplier": { "$ref": "types/speed_multiplier.json" }, "cooldown_time": { "type": "number", "default": 0, "description": "Time in seconds the mob has to wait before using the goal again", "title": "Cooldown Time" }, "goal_radius": { "type": "number", "default": 0, "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Goal Radius" }, "sleep_collider_height": { "type": "number", "default": 1, "description": "The height of the mob's collider while sleeping", "title": "Sleep Collider Height" }, "sleep_collider_width": { "type": "number", "default": 1, "description": "The width of the mob's collider while sleeping", "title": "Sleep Collider Width" }, "sleep_y_offset": { "type": "number", "default": 1, "description": "The y offset of the mob's collider while sleeping", "title": "Sleep Y Offset" }, "timeout_cooldown": { "type": "number", "default": 8, "description": "The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition", "title": "Timeout Cooldown" } }, "examples": [ { "cooldown_time": 0, "goal_radius": 0, "sleep_collider_height": 1, "sleep_collider_width": 1, "sleep_y_offset": 1, "timeout_cooldown": 8 } ] }