Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/shooter.json
Xterionix c56338d900 Update blocks and items to newest format (#215)
* Add emit_vibration
* Add min and max bounds to collision_box
* Remove experimental label from crafting_table
* Fix flammable definition
* Add geometry.cross
* Add culling property to block_culling_rules
* Add max length to loot
* Remove part visibility
* Remove experimental label from placement filter
* Add min max bounds to selection box
* Remove unit cube as deprecated
* Remove armor component
* Add protection to wearable
* Remove render offsets
* Remove on_dig
* Remove dye powder
* Remove knockback resistance
* Update durability
* Remove foil
* Add glint
* Update hand_equipped
* Update food
* Remove frame from :icon
* Remove max damage
* Remove on_use
* Remove on_use_on
* Update max stack size
* Update repairable
* Updated :shooter
* Update stacked by data
* Add use modifiers
* Remove use_duration
* Remove weapon
* Add allow_off_hand
* Add can_destroy_in_creative
* Add damage
* Fix max_stack_size
* Add enchantable
* Add hover text color
* Add liquid clipped
* Add record
* Add should_despawn
* Tags component
* Add use_animation
* Update item components
* Update block components
* Update source/behavior/entities/format/events.json
---------
Co-authored-by: Daan Verstraten <daanverstraten@hotmail.com>
2024-02-11 12:05:56 +01:00

50 lines
1.8 KiB
JSON

{
"$id": "blockception.minecraft.behavior.items.minecraft:shooter",
"title": "Shooter",
"description": "Shooter Item Component.",
"type": "object",
"additionalProperties": false,
"properties": {
"ammunition": {
"title": "Ammunition",
"description": "Ammunition.",
"type": "array",
"items": {
"type": "object",
"title": "Ammunition",
"description": "Ammunition definition",
"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" }
}
}
},
"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
}
]
}