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

Attack sounds are played at the player's position rather than at the entity being attacked.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.20.4, 24w10a, 24w11a
    • None
    • Unconfirmed
    • (Unassigned)

      When attacking an entity, sounds such as

      minecraft:entity.player.attack.strong

      ,

      minecraft:entity.player.attack.crit

      ,

      minecraft:entity.player.attack.knockback

      , and

      minecraft:entity.player.attack.sweep

      are played at the player's position instead of the entity's position. While this could be intentional, it's inconsistent with entity interactions triggered by right-clicking, where sounds are played at the entity's position as expected. For instance, shearing a sheep produces the shearing sound at the sheep's position. It's unclear when sounds like

      minecraft:entity.player.attack.weak

      and

      minecraft:entity.player.attack.nodamage

      play. This discrepancy might be intentional to prevent excessively loud sounds for the attacking player upon hitting another player. Testing becomes simpler by increasing the

      minecraft:player.entity_interaction_range

      attribute. This issue is related to MC-268946.

            Unassigned Unassigned
            NoUser No User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: