UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

230 lines 7.64 kB
{ "fields": [ { "id": "active_time", "title": "Active Time", "description": "The amount of ticks the NPC will stay in their the work location", "defaultValue": 0, "dataType": 0, "samples": { "/vanilla/behavior_pack/entities/villager_v2.json": [ { "path": "/minecraft:entity/component_groups/work_schedule_villager/minecraft:behavior.work/", "content": 250 }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": 250 } ] } }, { "id": "can_work_in_rain", "title": "Can Work In Rain", "description": "If true, this entity can work when their jobsite POI is being rained on.", "defaultValue": false, "dataType": 1 }, { "id": "goal_cooldown", "title": "Goal Cooldown", "description": "The amount of ticks the goal will be on cooldown before it can be used again", "defaultValue": 0, "dataType": 0, "samples": { "/vanilla/behavior_pack/entities/villager_v2.json": [ { "path": "/minecraft:entity/component_groups/work_schedule_villager/minecraft:behavior.work/", "content": 200 }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": 200 } ] } }, { "id": "on_arrival", "title": "On Arrival", "description": "Event to run when the mob reaches their jobsite.", "dataType": 22, "samples": { "/vanilla/behavior_pack/entities/villager_v2.json": [ { "path": "/minecraft:entity/component_groups/work_schedule_villager/minecraft:behavior.work/", "content": { "event": "minecraft:resupply_trades", "target": "self" } }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": { "event": "minecraft:resupply_trades", "target": "self" } } ] } }, { "id": "sound_delay_max", "title": "Sound Delay Max", "description": "The max interval in which a sound will play.", "defaultValue": 0, "dataType": 0, "samples": { "/vanilla/behavior_pack/entities/villager_v2.json": [ { "path": "/minecraft:entity/component_groups/work_schedule_villager/minecraft:behavior.work/", "content": 200 }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": 200 } ] } }, { "id": "sound_delay_min", "title": "Sound Delay Min", "description": "The min interval in which a sound will play.", "defaultValue": 0, "dataType": 0, "samples": { "/vanilla/behavior_pack/entities/villager_v2.json": [ { "path": "/minecraft:entity/component_groups/work_schedule_villager/minecraft:behavior.work/", "content": 100 }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": 100 } ] } }, { "id": "speed_multiplier", "title": "Speed Multiplier", "description": "Movement speed multiplier of the mob when using this AI Goal", "defaultValue": 0.5, "dataType": 3, "samples": { "/vanilla/behavior_pack/entities/villager_v2.json": [ { "path": "/minecraft:entity/component_groups/work_schedule_villager/minecraft:behavior.work/", "content": 0.5 }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": 0.5 } ] } }, { "id": "work_in_rain_tolerance", "title": "Work In Rain Tolerance", "description": "If \"can_work_in_rain\" is false, this is the maximum number of ticks left in the goal where rain will not interrupt the goal", "defaultValue": -1, "dataType": 0, "samples": { "/vanilla/behavior_pack/entities/villager_v2.json": [ { "path": "/minecraft:entity/component_groups/work_schedule_villager/minecraft:behavior.work/", "content": 100 }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": 100 } ] } }, { "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/work_schedule_villager/minecraft:behavior.work/", "content": 7 }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": 7 } ] } } ], "description": "Allows the NPC to use the POI", "title": "Work Behavior", "samples": { "/vanilla/behavior_pack/entities/villager_v2.json": [ { "path": "/minecraft:entity/component_groups/job_specific_goals/minecraft:behavior.work/", "content": {} }, { "path": "/minecraft:entity/component_groups/work_schedule_villager/minecraft:behavior.work/", "content": { "priority": 7, "active_time": 250, "speed_multiplier": 0.5, "goal_cooldown": 200, "sound_delay_min": 100, "sound_delay_max": 200, "can_work_in_rain": false, "work_in_rain_tolerance": 100, "on_arrival": { "event": "minecraft:resupply_trades", "target": "self" } } }, { "path": "/minecraft:entity/component_groups/work_schedule_fisher/minecraft:behavior.work/", "content": { "priority": 7, "active_time": 250, "speed_multiplier": 0.5, "goal_cooldown": 200, "sound_delay_min": 100, "sound_delay_max": 200, "can_work_in_rain": false, "work_in_rain_tolerance": 100, "on_arrival": { "event": "minecraft:resupply_trades", "target": "self" } } }, { "path": "/minecraft:entity/component_groups/work_schedule_librarian/minecraft:behavior.work/", "content": { "priority": 7, "active_time": 250, "speed_multiplier": 0.5, "goal_cooldown": 200, "sound_delay_min": 100, "sound_delay_max": 200, "can_work_in_rain": false, "work_in_rain_tolerance": 100, "on_arrival": { "event": "minecraft:resupply_trades", "target": "self" } } } ] }, "id": "minecraft:behavior.work" }