mojira.dev
MC-152071

Crossbow can be loaded with entities other than arrows

The bug

With commands you can load a crossbow with entities other than arrows (such as a trident), however the crossbow will launch a arrow, not that entity.

In case you loaded a trident into the crossbow, you can see that the projectile is a trident in the crossbow's tooltip.

How to reproduce

  1. Paste this command into a command block or the chat with cheats activated

    /give @p minecraft:crossbow{ChargedProjectiles:[{id:"minecraft:trident",Count:1b}],Charged:1b}
  2. Activate the command block or run the command

  3. Hold the crossbow and fire it (Notice the word "Trident" in the tool-tips)
    → ❌ The projectile fired will be a arrow instead of a trident

Linked issues

Attachments

Comments 7

Can confirm in 1.16.1, 1.16.2, 1.16.3, 1.16.4, and 20w51a.

Can confirm in 21w03a.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w10a. Video attached.

do NOT remove this
it doesn't negatively impact the game in anyway but allows you to mess around in creative

Can confirm in 1.17.1.

Also experiencing this in 1.19.4-rc1

[media]

Used this pack so I didn't need to keep summoning the crossbows

[media]

JC

(Unassigned)

Confirmed

Commands, Items

command, item

Minecraft 1.14.2 Pre-Release 1, 1.14.4, 1.15 Pre-Release 2, 1.16.4, 20w51a, ..., 21w06a, 21w10a, 1.17.1, 1.19.4, 1.20.1

Retrieved