Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/shooter.json

50 lines
1.8 KiB
JSON
Raw Normal View History

2022-06-07 20:42:18 +02:00
{
2022-07-20 21:25:32 +02:00
"$id": "blockception.minecraft.behavior.items.minecraft:shooter",
2022-06-07 20:42:18 +02:00
"title": "Shooter",
"description": "Shooter Item Component.",
"type": "object",
"additionalProperties": false,
"properties": {
"ammunition": {
"title": "Ammunition",
2022-07-22 19:41:04 +02:00
"description": "Ammunition.",
2022-06-07 20:42:18 +02:00
"type": "array",
"items": {
"type": "object",
"title": "Ammunition",
"description": "Ammunition definition",
2022-06-07 20:42:18 +02:00
"additionalProperties": false,
"properties": {
"item": { "title": "Item", "description": "Item identifier", "type": "string" },
"use_offhand": { "title": "Use Offhand", "description": "If ammo can be in offhand", "type": "boolean" },
"search_inventory": { "title": "Search Inventory", "description": "If ammo can be stored in the inventory", "type": "boolean" },
"use_in_creative": { "title": "Use In Creative", "description": "If it needs ammo to be used in creative", "type": "boolean" }
2022-06-07 20:42:18 +02:00
}
}
},
"charge_on_draw": { "title": "Charge On Draw", "description": "Charge on draw? Default is set to false.", "default": false, "type": "boolean" },
"max_draw_duration": { "title": "Maximum Draw Duration", "description": "Draw Duration. Default is set to 0.", "default": 0, "type": "number" },
"scale_power_by_draw_duration": {
"title": "Scale Power By Draw Duration",
"description": "Scale power by draw duration? Default is set to false.",
"default": false,
"type": "boolean"
}
},
"examples": [
{
"ammunition" :[
{
"item" :"custom_projectile",
"use_offhand" :true,
"search_inventory" :true,
"use_in_creative" :true
}
],
"max_draw_duration" :1.0,
"scale_power_by_draw_duration" :true,
"charge_on_draw" :false
}
]
2022-06-07 20:42:18 +02:00
}