Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-278618

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.4 Release Candidate 3
    • None
    • MC: 1.21.4 RC3
      OS: Windows 11 Pro
      Java: 21.0.3
    • Unconfirmed
    • (Unassigned)

      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

            Unassigned Unassigned
            PvPqnda PvP Panda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: