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

59 lines
1.8 KiB
JSON
Raw Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.sleep",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"description": "Allows mobs that own a bed to in a village to move to and sleep in it.",
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Sleep",
2021-10-08 12:59:03 +02:00
"required": [],
"properties": {
"priority": { "$ref": "types/priority.json" },
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
2022-06-07 20:04:29 +02:00
"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"
2021-10-08 12:59:03 +02:00
},
2022-06-07 20:04:29 +02:00
"cooldown_time": {
"title": "Cooldown Time",
2021-10-11 18:13:12 +02:00
"type": "number",
2022-06-07 20:04:29 +02:00
"default": 0.0,
"description": "Time in seconds the mob has to wait before using the goal again"
2021-10-11 18:13:12 +02:00
},
2021-10-08 12:59:03 +02:00
"sleep_collider_height": {
2022-06-07 20:04:29 +02:00
"title": "Sleep Collider Height",
2021-10-08 12:59:03 +02:00
"type": "number",
2022-06-07 20:04:29 +02:00
"default": 1.0,
"description": "The height of the mob's collider while sleeping"
2021-10-08 12:59:03 +02:00
},
"sleep_collider_width": {
2022-06-07 20:04:29 +02:00
"title": "Sleep Collider Width",
2021-10-08 12:59:03 +02:00
"type": "number",
2022-06-07 20:04:29 +02:00
"default": 1.0,
"description": "The width of the mob's collider while sleeping"
2021-10-08 12:59:03 +02:00
},
"sleep_y_offset": {
2022-06-07 20:04:29 +02:00
"title": "Sleep Y Offset",
2021-10-08 12:59:03 +02:00
"type": "number",
2022-06-07 20:04:29 +02:00
"default": 1.0,
"description": "The y offset of the mob's collider while sleeping"
2021-10-08 12:59:03 +02:00
},
"timeout_cooldown": {
2022-06-07 20:04:29 +02:00
"title": "Timeout Cooldown",
2021-10-08 12:59:03 +02:00
"type": "number",
2022-06-07 20:04:29 +02:00
"default": 8.0,
"description": "The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition"
2021-10-08 12:59:03 +02:00
}
2021-10-11 18:13:12 +02:00
},
"examples": [
{
"cooldown_time": 0,
"goal_radius": 0,
"sleep_collider_height": 1,
"sleep_collider_width": 1,
"sleep_y_offset": 1,
"timeout_cooldown": 8
}
]
2021-10-08 12:59:03 +02:00
}