UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

143 lines 4.79 kB
{ "fields": [ { "id": "broadcast", "title": "Broadcast", "description": "Whether to broadcast out the mob's target to other mobs of the same type.", "defaultValue": false, "dataType": 1, "samples": { "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:behavior.hold_ground/", "content": true }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_follower/minecraft:behavior.hold_ground/", "content": true } ] } }, { "id": "broadcast_range", "title": "Broadcast Range", "description": "Range in blocks for how far to broadcast.", "defaultValue": 0, "dataType": 3, "samples": { "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:behavior.hold_ground/", "content": 8 }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_follower/minecraft:behavior.hold_ground/", "content": 8 } ] } }, { "id": "min_radius", "title": "Min Radius", "description": "Minimum distance the target must be for the mob to run this goal.", "defaultValue": 10, "dataType": 3, "samples": { "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:behavior.hold_ground/", "content": 10 }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_follower/minecraft:behavior.hold_ground/", "content": 10 } ] } }, { "id": "within_radius_event", "title": "Within Radius Event", "description": "Event to run when target is within the radius. This event is broadcasted if broadcast is true.", "dataType": 22, "samples": { "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:behavior.hold_ground/", "content": { "event": "minecraft:ranged_mode", "target": "self" } }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_follower/minecraft:behavior.hold_ground/", "content": { "event": "minecraft:ranged_mode", "target": "self" } } ] } }, { "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/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:behavior.hold_ground/", "content": 5 }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_follower/minecraft:behavior.hold_ground/", "content": 6 } ] } } ], "requires": [ { "id": "targeting_entity_component", "type": "targeting_entity_component" } ], "description": "Compels an entity to stop at their current location, turn to face a mob they are targeting, and react with an event.", "title": "Hold Ground Behavior", "samples": { "/vanilla/behavior_pack/entities/pillager.json": [ { "path": "/minecraft:entity/component_groups/minecraft:patrol_captain/minecraft:behavior.hold_ground/", "content": { "priority": 5, "min_radius": 10, "broadcast": true, "broadcast_range": 8, "within_radius_event": { "event": "minecraft:ranged_mode", "target": "self" } } }, { "path": "/minecraft:entity/component_groups/minecraft:patrol_follower/minecraft:behavior.hold_ground/", "content": { "priority": 6, "min_radius": 10, "broadcast": true, "broadcast_range": 8, "within_radius_event": { "event": "minecraft:ranged_mode", "target": "self" } } } ] }, "id": "minecraft:behavior.hold_ground" }