Updated behavior.sleep to newest doc

This commit is contained in:
DaanV2
2022-06-07 20:04:29 +02:00
parent c58ff8b4c7
commit 52dc67dd1d

View File

@@ -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": [