UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

694 lines 20.9 kB
{ "title": "Leashable", "description": "Describes how this mob can be leashed to other items", "fields": [ { "id": "can_be_stolen", "dataType": 1, "defaultValue": false, "samples": { "/vanilla/behavior_pack/entities/llama.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": true } ], "/vanilla/behavior_pack/entities/trader_llama.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": true } ] }, "description": "If true, players can leash this entity even if it is already leashed to another mob.", "title": "Can Be Stolen" }, { "id": "hard_distance", "description": "Distance in blocks at which the leash stiffens, restricting movement.", "dataType": 0, "experienceType": 3, "suggestedMaxValue": 20, "defaultValue": 6, "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": 6 } ], "/vanilla/behavior_pack/entities/armadillo.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": 6 } ] }, "title": "Hard Distance" }, { "id": "soft_distance", "description": "Distance in blocks at which the 'spring' effect starts acting to keep this entity close to the entity that leashed it.", "dataType": 0, "experienceType": 3, "suggestedMaxValue": 20, "defaultValue": 4, "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": 4 } ], "/vanilla/behavior_pack/entities/armadillo.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": 4 } ] }, "title": "Soft Distance" }, { "id": "max_distance", "description": "Distance in blocks it which the leash breaks.", "dataType": 0, "experienceType": 3, "suggestedMaxValue": 20, "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": 10 } ], "/vanilla/behavior_pack/entities/armadillo.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": 10 } ] }, "title": "Max Distance" }, { "id": "on_leash", "title": "On Leash", "description": "Event to call when this entity is leashed.", "dataType": 22, "samples": { "/vanilla/behavior_pack/entities/ocelot.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "event": "minecraft:on_leash", "target": "self" } } ], "/vanilla/behavior_pack/entities/wolf.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "event": "minecraft:on_leash", "target": "self" } } ] } }, { "id": "on_unleash", "title": "On Unleash", "description": "Event to call when this entity is unleashed.", "dataType": 22, "samples": { "/vanilla/behavior_pack/entities/ocelot.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "event": "minecraft:on_unleash", "target": "self" } } ], "/vanilla/behavior_pack/entities/wolf.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "event": "minecraft:on_unleash", "target": "self" } } ] } }, { "id": "presets", "title": "Presets", "description": "Defines how this entity behaves when leashed to another entity. A preset is selected upon leashing and remains until the entity is leashed to something else. The first preset whose \"filter\" conditions are met will be applied; if none match, a default configuration is used instead.", "dataType": 15, "subForm": { "description": "Defines how this entity behaves when leashed to another entity. A preset is selected upon leashing and remains until the entity is leashed to something else. The first preset whose \"filter\" conditions are met will be applied; if none match, a default configuration is used instead.", "fields": [ { "id": "filter", "title": "Filter", "description": "Conditions that must be met for this preset to be applied. These conditions are only evaluated upon leashing.", "dataType": 20 }, { "id": "hard_distance", "title": "Hard Distance", "description": "Distance in blocks at which the leash stiffens, restricting movement.", "defaultValue": 6, "dataType": 3 }, { "id": "max_distance", "title": "Max Distance", "description": "Distance in blocks at which the leash breaks.", "defaultValue": 10, "dataType": 3 }, { "id": "soft_distance", "title": "Soft Distance", "description": "Distance in blocks at which the \"spring\" effect starts acting to keep this entity close to the entity that leashed it.", "defaultValue": 4, "dataType": 3 } ] } } ], "samples": { "/vanilla/behavior_pack/entities/allay.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/armadillo.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/axolotl.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/bee.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/boat.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/camel.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/cat.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/chest_boat.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/chicken.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/cow.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/dolphin.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/donkey.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/fox.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/frog.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": {} } ], "/vanilla/behavior_pack/entities/glow_squid.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/goat.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/hoglin.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/horse.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/iron_golem.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/llama.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10, "can_be_stolen": true } } ], "/vanilla/behavior_pack/entities/mooshroom.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/mule.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/ocelot.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10, "on_leash": { "event": "minecraft:on_leash", "target": "self" }, "on_unleash": { "event": "minecraft:on_unleash", "target": "self" } } } ], "/vanilla/behavior_pack/entities/parrot.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/pig.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/polar_bear.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/rabbit.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/sheep.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/skeleton_horse.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/sniffer.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/snow_golem.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/squid.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/strider.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/trader_llama.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10, "can_be_stolen": true } } ], "/vanilla/behavior_pack/entities/wolf.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10, "on_leash": { "event": "minecraft:on_leash", "target": "self" }, "on_unleash": { "event": "minecraft:on_unleash", "target": "self" } } } ], "/vanilla/behavior_pack/entities/zoglin.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/vanilla/behavior_pack/entities/zombie_horse.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/addon_starter/1_hello_world/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/addon_starter/2_entities/behavior_packs/aop_mobs/entities/biceson.behavior.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/addon_starter/2_entities/behavior_packs/aop_mobs/entities/frost_moose.behavior.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10, "can_be_stolen": true } } ], "/samples/addon_starter/2_entities/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/addon_starter/complete/behavior_packs/aop_mobs/entities/biceson.behavior.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/addon_starter/complete/behavior_packs/aop_mobs/entities/frost_moose.behavior.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10, "can_be_stolen": true } } ], "/samples/addon_starter/complete/behavior_packs/aop_mobs/entities/sheepomelon.behavior.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/behavior_pack_sample/entities/cow.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/casual_creator/chill_dreams/1_dream_turkey/behavior_packs/mamm_cds/entities/dream_turkey.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/casual_creator/chill_dreams/2_dreams_come_true/behavior_packs/mamm_cds/entities/dream_turkey.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/casual_creator/chill_dreams/complete/behavior_packs/mamm_cds/entities/dream_turkey.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ], "/samples/casual_creator/custom_cat_eliza/behavior_packs/mike_eliz/entities/eliza.json": [ { "path": "/minecraft:entity/components/minecraft:leashable/", "content": { "soft_distance": 4, "hard_distance": 6, "max_distance": 10 } } ] }, "id": "minecraft:leashable" }