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" : {
2022-04-20 15:54:51 +02:00
"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 ,
2022-07-22 19:41:04 +02:00
"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 ,
2022-07-22 19:41:04 +02:00
"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 ,
2022-07-22 19:41:04 +02:00
"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 ,
2022-07-22 19:41:04 +02:00
"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 ,
2022-07-22 19:41:04 +02:00
"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 ,
2022-07-22 19:41:04 +02:00
"description" : "The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition."
2024-03-23 11:20:51 +05:00
} ,
"goal_radius" : {
"title" : "Goal Radius" ,
"description" : "Distance in blocks within the mob considers it has reached the goal. This is the \"wiggle room\" to stop the AI from bouncing back and forth trying to reach a specific spot" ,
"default" : 0.5 ,
"type" : "number"
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
}