From 52dc67dd1df49a6ceaa7f8c29dfc16d0b0603412 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 7 Jun 2022 20:04:29 +0200 Subject: [PATCH] Updated behavior.sleep to newest doc --- .../entities/format/behaviors/sleep.json | 43 +++++++++---------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/source/behavior/entities/format/behaviors/sleep.json b/source/behavior/entities/format/behaviors/sleep.json index dd3bab9a..30bcf753 100644 --- a/source/behavior/entities/format/behaviors/sleep.json +++ b/source/behavior/entities/format/behaviors/sleep.json @@ -8,42 +8,41 @@ "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" + "can_sleep_while_riding": { + "title": "Can Sleep While Riding", + "type": "boolean", + "default": false, + "description": "If true, the mob will be able to use the sleep goal if riding something" }, - "goal_radius": { + "cooldown_time": { + "title": "Cooldown Time", "type": "number", - "default": 0, - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "title": "Goal Radius" + "default": 0.0, + "description": "Time in seconds the mob has to wait before using the goal again" }, "sleep_collider_height": { + "title": "Sleep Collider Height", "type": "number", - "default": 1, - "description": "The height of the mob's collider while sleeping", - "title": "Sleep Collider Height" + "default": 1.0, + "description": "The height of the mob's collider while sleeping" }, "sleep_collider_width": { + "title": "Sleep Collider Width", "type": "number", - "default": 1, - "description": "The width of the mob's collider while sleeping", - "title": "Sleep Collider Width" + "default": 1.0, + "description": "The width of the mob's collider while sleeping" }, "sleep_y_offset": { + "title": "Sleep Y Offset", "type": "number", - "default": 1, - "description": "The y offset of the mob's collider while sleeping", - "title": "Sleep Y Offset" + "default": 1.0, + "description": "The y offset of the mob's collider while sleeping" }, "timeout_cooldown": { + "title": "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" + "default": 8.0, + "description": "The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition" } }, "examples": [