Mojira Archive
MC-260882

Crossbows summoned with an invalid projectile are "Charged with Air"

Relates to MC-152071

The Bug:

Summoning a crossbow that is loaded with a projectile that doesn't have an item form, results in a crossbow that is loaded with "air" and shoots a blank shot.

To reproduce

/give @p minecraft:crossbow{Charged:1b,ChargedProjectiles:[{id:"minecraft:small_fireball",Count:1b}]} 

or

/give @p minecraft:crossbow{Charged:1b,ChargedProjectiles:[{id:"asdf",Count:1b}]} 

This is inconsistent with how other items that are not viable for charging in a crossbow are handled. Normally, when you summon a crossbow with an item that cannot be shot by a crossbow, it will be in the tooltip, but shoot an arrow.

Won't Fix

Eclipse

2023-03-10, 02:26 AM

2024-04-02, 02:01 PM

2023-03-16, 08:08 AM

0

1

Confirmed

Items, UI

1.19.4 Release Candidate 1, 1.19.4

-