@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
150 lines • 4.69 kB
JSON
{
"fields": [
{
"id": "can_sleep_while_riding",
"title": "Can Sleep While Riding",
"description": "If true, the mob will be able to use the sleep goal if riding something",
"defaultValue": false,
"dataType": 1
},
{
"id": "cooldown_time",
"title": "Cooldown Time",
"description": "Time in seconds the mob has to wait before using the goal again",
"defaultValue": 0,
"dataType": 3
},
{
"id": "sleep_collider_height",
"title": "Sleep Collider Height",
"description": "The height of the mob's collider while sleeping",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/bed_schedule_villager/minecraft:behavior.sleep/",
"content": 0.3
}
]
}
},
{
"id": "sleep_collider_width",
"title": "Sleep Collider Width",
"description": "The width of the mob's collider while sleeping",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/bed_schedule_villager/minecraft:behavior.sleep/",
"content": 1
}
]
}
},
{
"id": "sleep_y_offset",
"title": "Sleep Y Offset",
"description": "The y offset of the mob's collider while sleeping",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/bed_schedule_villager/minecraft:behavior.sleep/",
"content": 0.6
}
]
}
},
{
"id": "speed_multiplier",
"title": "Speed Multiplier",
"description": "Movement speed multiplier of the mob when using this AI Goal",
"defaultValue": 1,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/bed_schedule_villager/minecraft:behavior.sleep/",
"content": 0.6
}
]
}
},
{
"id": "timeout_cooldown",
"title": "Timeout Cooldown",
"description": "The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition",
"defaultValue": 8,
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/bed_schedule_villager/minecraft:behavior.sleep/",
"content": 10
}
]
}
},
{
"id": "priority",
"title": "Priority",
"hideSamples": true,
"description": "As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.",
"dataType": 0,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/bed_schedule_villager/minecraft:behavior.sleep/",
"content": 3
}
]
}
},
{
"id": "goal_radius",
"title": "Goal Radius",
"dataType": 7,
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/bed_schedule_villager/minecraft:behavior.sleep/",
"content": 1.5
}
]
}
}
],
"restrictions": [
{
"id": "minecraft:villager",
"type": "entity_type"
}
],
"description": "Allows mobs that own a bed to in a village to move to and sleep in it.",
"title": "Sleep Behavior",
"samples": {
"/vanilla/behavior_pack/entities/villager_v2.json": [
{
"path": "/minecraft:entity/component_groups/job_specific_goals/minecraft:behavior.sleep/",
"content": {}
},
{
"path": "/minecraft:entity/component_groups/bed_schedule_villager/minecraft:behavior.sleep/",
"content": {
"priority": 3,
"goal_radius": 1.5,
"speed_multiplier": 0.6,
"sleep_collider_height": 0.3,
"sleep_collider_width": 1,
"sleep_y_offset": 0.6,
"timeout_cooldown": 10
}
}
]
},
"id": "minecraft:behavior.sleep"
}