UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

96 lines 3.32 kB
{ "fields": [ { "id": "minimum_critical_power", "title": "minimum_critical_power", "description": "Specifies how long a player must charge a projectile for it to critically hit.", "dataType": 3, "samples": { "/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [ { "path": "/minecraft:item/components/minecraft:projectile/", "content": 1.25 } ], "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [ { "path": "/minecraft:item/components/minecraft:projectile/", "content": 1.25 } ] } }, { "id": "projectile_entity", "title": "projectile_entity", "description": "Which entity is to be fired as a projectile.", "dataType": 2, "validity": [ { "comparison": "pattern", "value": "^(?:\\w+(?:\\.\\w+)*:(?=\\w))?(?:\\w+(?:\\.\\w+)*)(?:<((?:\\w+(?:\\.\\w+)*:(?=\\w))?\\w+(?:\\.\\w+)*)*>)?$" } ], "samples": { "/vanilla/behavior_pack/items/wind_charge.json": [ { "path": "/minecraft:item/components/minecraft:projectile/", "content": "wind_charge_projectile" } ], "/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [ { "path": "/minecraft:item/components/minecraft:projectile/", "content": "minecraft:snowball" } ], "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [ { "path": "/minecraft:item/components/minecraft:projectile/", "content": "minecraft:snowball" } ] } } ], "description": "Compels the item to shoot, similarly to an arrow. Items with minecraft:projectile can be shot from dispensers or used as ammunition for items with the minecraft:shooter item component. Additionally, this component sets the entity that is spawned for items that also contain the minecraft:throwable component", "samples": { "sample": [ { "path": "sample", "content": { "minimum_critical_power": 1.25, "projectile_entity": "arrow" } } ], "/vanilla/behavior_pack/items/wind_charge.json": [ { "path": "/minecraft:item/components/minecraft:projectile/", "content": { "projectile_entity": "wind_charge_projectile" } } ], "/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [ { "path": "/minecraft:item/components/minecraft:projectile/", "content": { "minimum_critical_power": 1.25, "projectile_entity": "minecraft:snowball" } } ], "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [ { "path": "/minecraft:item/components/minecraft:projectile/", "content": { "minimum_critical_power": 1.25, "projectile_entity": "minecraft:snowball" } } ] }, "title": "Projectile", "id": "minecraft:projectile" }