Before NBT became a component, a crossbow could be charged with air and fired blank shots. Also, it was previously decided not to fix this. (MC-260882)
However, now that it is a component, the crossbow can only be charged with items that exist as items, and cannot fire blank shots.
For example, the following command will fail to run:
/give @p crossbow[charged_projectiles=[{id:"air",count:1}]] 1
Linked issues
relates to 2
Attachments
Comments 6
Related to MC-152071
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 – Snapshot 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
Please reconsider this specification. This method is required to create a custom weapon on command that can be held like a gun. Detection of right-clicks using things like Food is incomplete due to unavoidable slowdown.
I agree with @Chuzume. In 1.20.4 this was a very easy way to get a custom right click detection method set up for map making. Perhaps adding an new item component to detect right and left clicks of an item could compensate for this?
After running the command you are greeted with the following error:
[media]