{
"format_version": "1.20.60",
"minecraft:item": {
"description": {
"identifier": "custom:gold_wizard",
"menu_category": {
"group": "custom:wizards",
"category": "equipment"
}
},
"components": {
"minecraft:max_stack_size": 1,
"minecraft:shooter": {
"ammunition": [
{
"item": "minecraft:fire_charge",
"use_offhand": false,
"search_inventory": true,
"use_in_creative": true
}
],
"max_draw_duration": 0.5,
"scale_power_by_draw_duration": true,
"charge_on_draw": false
},
"minecraft:display_name": {
"value": "item.gold_wizard.name"
},
"minecraft:icon": {
"textures": {"default":"gold_wizard"}
},
"minecraft:durability": {
"max_durability": 100,
"damage_chance": {
"min": 50,
"max": 100
}
},
"minecraft:repairable": {
"repair_items": [
{
"items": [
"custom:gold_wizard"
],
"repair_amount": "context.other->query.remaining_durability + 0.2 * context.other->query.max_durability"
},
{
"items":[
"amethyst_shard"
],
"repair_amount": 2
}
]
},
"minecraft:hand_equipped": true,
"minecraft:can_destroy_in_creative": false,
"minecraft:use_animation": "bow",
"minecraft:use_modifiers": {
"use_duration": 1.0,
"movement_modifier": 0.35
}
}
}
}
Through the code, we can use the “gold_wizard” to shoot small fireballs if fire charge is an ammunition having the minecraft:projectile component mentioned in offical documentation.
![Note] Ammunition used by minecraft:shooter must have the minecraft:projectile component in order to function properly.
Of course fire charge has the component, else it won’t be able to be shot from the dispenser.
In addition, arrows and snowballs are valid ammunitions. The snowballs are throwable while arrows are not. The snowball and the arrow have same identifier with their projectile entity while fire charge is not.
In conclusion, there’re 3 possible cases:
The documentation is incorrect.
The fire charge hasn’t minecraft:projectile component. (but how?)
The wizard needs more settings.
They didn’t show me an error log. So I suppose I don’t need more settings.
Attachments
Comments 6
Hi!
Can you please add a video of this issue?
Can you also add a variation pack with snowballs and video of that too?
This ticket will automatically reopen when you reply.
The video… If it do help? You can’t see my mouse through the video. So, if it doesn’t work, the wizard won’t shoot, either consume the fire charge.
But if it works(by using snowball), I can offer a video.
[media]As for the pack… I won’t offer the original pack, because it has many extra unnecessary elements. and the pack @GoldenHelmet just offered is enough for test. if you want a variation pack, only need to replace “minecraft:fire_charge” with “minecraft:snowball” in the file “goldy.json” in the pack.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Beta & Preview Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
I can confirm the issue. The problem persists even if you create an item json for the fire charge and give it a projectile component. The attached pack contains a ranged weapon item created with the code provided by the reporter and an item json that sets the projectile for fire charges to minecraft:small_fireball, which is the projectile that dispensers shoot when they consume fire charges. The fire charge item definition also includes a component to set the stack size to 16 in order to confirm that the definition is being loaded.
Steps to reproduce:
Apply the pack below to a world and enter the world in creative mode.
[mediaInline]
Give yourself the custom:gold_wizard item and a stack of fire charges. The gold wizard item is invisible, but that does not matter.
Try to use the gold wizard item.
Expected result:
You shoot a small fireball and consume a fire charge.
Observed result:
Nothing happens.
Note: I also tried setting the gold wizard item to shoot snowballs, and that works as expected.