mojira.dev
MC-271286

minecraft:charged_projectiles component accepts any item id, but any values beside those normally attainable shoot arrows.

The issue is as stated in the title. I discovered this while attempting to make a crossbow loaded with a Wind Charge, and the tooltip said it was, but when I shot the crossbow, an arrow came out instead of a Wind Charge. Additionally, when the arrow was picked up, a Wind Charge appeared in the inventory instead.

Steps to reproduce:

1) Use this command:

/give @s minecraft:crossbow[minecraft:charged_projectiles=[{id:'minecraft:wind_charge'}]]

2) Observe the tooltip, and note the projectile name.

3) Shoot the crossbow.

4) Pick up the arrow embedded in the target surface.

One additional oddity is that this works with any item, not simply projectiles. Similarly to the example case, it will state the name of the item in the "Projectile:" tooltip, shoot as an arrow, and turn into the item on pickup of the arrow. Perhaps the component should accept an entity id, rather than an item id? Or, more likely, the accepted item ids could be restricted. The former option would open possibilities for mapmakers, but the latter is likely more simple to implement.

Linked issues

Comments 1

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Shock_Micro

(Unassigned)

Confirmed

(Unassigned)

1.20.6

Retrieved