mojira.dev
MC-278618

Crossbows loaded with something other than an arrow still fires an arrow

Crossbows loaded with non-projectile items via commands still fire damage-inflicting arrow entities when the crossbow's tooltip states it's loaded with something different.

Expected behavior may include the item not firing anything at all, or just not responding to player action.

Note the fired arrow gives the player who picks it up the initially correct loaded item.

 

Steps to reproduce:

  1. Load a world in Minecraft 1.21.4 Release Candidate 3 with commands enabled

  2. Run in chat: 

    /give @s crossbow[charged_projectiles=[{id:"minecraft:stick",count:1}]]
  1. Observe item in inventory, notice the statement "Projectile: [Stick]"

  2. Fire the stick-loaded crossbow, notice arrow entity

Linked issues

Attachments

Comments 2

Does MC-271286 describe your issue?

Unfortunately, yes

PvPqnda

(Unassigned)

Unconfirmed

(Unassigned)

1.21.4 Release Candidate 3

Retrieved