UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

144 lines 4.48 kB
{ "fields": [ { "id": "ammunition", "title": "ammunition", "description": "Ammunition.", "dataType": 15, "subForm": { "title": "V1 20 50 ShooterItemComponent Ammunition", "description": "V1 20 50 ShooterItemComponent Ammunition", "fields": [ { "id": "use_in_creative", "title": "use_in_creative", "description": "Can use in creative mode? Default is set to false.", "dataType": 1 }, { "id": "search_inventory", "title": "search_inventory", "description": "Can search inventory? Default is set to false.", "dataType": 1 }, { "id": "item", "title": "item", "description": "Ammunition item description identifier.", "dataType": 2, "alternates": [ { "id": "item", "dataType": 24 } ] }, { "id": "use_offhand", "title": "use_offhand", "description": "Can use off-hand? Default is set to false.", "dataType": 1 } ] }, "samples": { "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [ { "path": "/minecraft:item/components/minecraft:shooter/", "content": [ { "item": "minecraft:snowball", "use_offhand": true, "search_inventory": true, "use_in_creative": true } ] } ] } }, { "id": "scale_power_by_draw_duration", "title": "scale_power_by_draw_duration", "description": "Scale power by draw duration? Default is set to false.", "dataType": 1, "samples": { "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [ { "path": "/minecraft:item/components/minecraft:shooter/", "content": true } ] } }, { "id": "max_draw_duration", "title": "max_draw_duration", "description": "Draw Duration. Default is set to 0.", "dataType": 3, "samples": { "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [ { "path": "/minecraft:item/components/minecraft:shooter/", "content": 1 } ] } }, { "id": "charge_on_draw", "title": "charge_on_draw", "description": "Charge on draw? Default is set to false.", "dataType": 1 } ], "requires": [ { "id": "minecraft:projectile", "type": "item_component" } ], "samples": { "sample": [ { "path": "sample", "content": { "ammunition": [ { "item": "custom_projectile", "use_offhand": true, "search_inventory": true, "use_in_creative": true } ], "max_draw_duration": 1, "scale_power_by_draw_duration": true, "charge_on_draw": false } } ], "/samples/custom_items/behavior_packs/custom_item/items/my_sword_shoot.json": [ { "path": "/minecraft:item/components/minecraft:shooter/", "content": { "ammunition": [ { "item": "minecraft:snowball", "use_offhand": true, "search_inventory": true, "use_in_creative": true } ], "max_draw_duration": 1, "scale_power_by_draw_duration": true, "charge_on_draw": false } } ] }, "description": "Compels an item to shoot projectiles, similarly to a bow or crossbow. Must have the minecraft:use_modifiers component in order to function properly.", "note": "Ammunition used by minecraft:shooter must have the minecraft:projectile component in order to function properly.", "note2": "Items equipped with the shooter component will only sustain damage while shooting. Durability will remain unaffected if the item is used for melee attacks.", "title": "Shooter", "id": "minecraft:shooter" }