Updated behavior.sleep to newest doc
This commit is contained in:
@@ -8,42 +8,41 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"priority": { "$ref": "types/priority.json" },
|
"priority": { "$ref": "types/priority.json" },
|
||||||
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
|
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
|
||||||
"cooldown_time": {
|
"can_sleep_while_riding": {
|
||||||
"type": "number",
|
"title": "Can Sleep While Riding",
|
||||||
"default": 0,
|
"type": "boolean",
|
||||||
"description": "Time in seconds the mob has to wait before using the goal again",
|
"default": false,
|
||||||
"title": "Cooldown Time"
|
"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",
|
"type": "number",
|
||||||
"default": 0,
|
"default": 0.0,
|
||||||
"description": "UNDOCUMENTED",
|
"description": "Time in seconds the mob has to wait before using the goal again"
|
||||||
"$comment": "UNDOCUMENTED",
|
|
||||||
"title": "Goal Radius"
|
|
||||||
},
|
},
|
||||||
"sleep_collider_height": {
|
"sleep_collider_height": {
|
||||||
|
"title": "Sleep Collider Height",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"default": 1,
|
"default": 1.0,
|
||||||
"description": "The height of the mob's collider while sleeping",
|
"description": "The height of the mob's collider while sleeping"
|
||||||
"title": "Sleep Collider Height"
|
|
||||||
},
|
},
|
||||||
"sleep_collider_width": {
|
"sleep_collider_width": {
|
||||||
|
"title": "Sleep Collider Width",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"default": 1,
|
"default": 1.0,
|
||||||
"description": "The width of the mob's collider while sleeping",
|
"description": "The width of the mob's collider while sleeping"
|
||||||
"title": "Sleep Collider Width"
|
|
||||||
},
|
},
|
||||||
"sleep_y_offset": {
|
"sleep_y_offset": {
|
||||||
|
"title": "Sleep Y Offset",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"default": 1,
|
"default": 1.0,
|
||||||
"description": "The y offset of the mob's collider while sleeping",
|
"description": "The y offset of the mob's collider while sleeping"
|
||||||
"title": "Sleep Y Offset"
|
|
||||||
},
|
},
|
||||||
"timeout_cooldown": {
|
"timeout_cooldown": {
|
||||||
|
"title": "Timeout Cooldown",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"default": 8,
|
"default": 8.0,
|
||||||
"description": "The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition",
|
"description": "The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition"
|
||||||
"title": "Timeout Cooldown"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"examples": [
|
"examples": [
|
||||||
|
|||||||
Reference in New Issue
Block a user