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

Knockback enchantment affects arrows shot from bows, but not non-arrow projectiles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21 Pre-Release 2, 1.21 Pre-Release 3
    • None
    • OS: Arch Linux x86_64
      Kernel: Linux 6.9.3-arch1-1
      Java version: openjdk-22
    • Community Consensus
    • Enchantments

      Arrows shot from a bow enchanted with Knockback will deal increased knockback when hitting a mob, consistent with the behavior for Punch. This behavior does not exist in 1.20.6 and below.

      At the same time, non-arrow projectiles (snowballs, tridents) that have been enchanted with either Knockback or Punch do not have knockback applied to ranged attacks; however, Knockback is still applied to melee attacks.

      This behavior extends to the minecraft:knockback data-based enchantment effect. The bug likely stems from a bow-specific implementation of Punch that has not been migrated fully to the 1.21 data-driven approach. As of 1.21pre3, there is no way to modify the knockback of a non-arrow projectile through enchantments.

      Expected outcome: Knockback should not be applied to arrows shot from a bow enchanted with Knockback.

      Observed outcome: Knockback is applied to arrows shot from a bow enchanted with Knockback, but not to any non-arrow projectiles.

      Steps to reproduce:

      1. Run the following commands:
        /give @p minecraft:bow[minecraft:enchantments=\{levels:{'minecraft:punch':2}}]
        /give @p minecraft:bow[minecraft:enchantments=\{levels:{'minecraft:knockback':2}}]
      2. Fire an arrow each from both bows; if the bug is present, both arrows will deal similar knockback

            Unassigned Unassigned
            pg_4919 pg_4919
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: