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

Mace sounds use the neutral sound category

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w13a
    • 24w11a
    • Confirmed
    • Sound
    • Important
    • 1206195
    • Expansion B

      The mace's sounds make the neutral (Friendly Creatures) sound category instead of the Players sound category. This is inconsistent with other weapons like the sword, which use the Player sound category for attacking sounds.

      To reproduce

      Change all sound categories except for Friendly Creatures and Master to 0%. Summon a pig and a bee. Smash each from a height of at least 1.5 blocks, and notice that the mace sounds appear.

      Code analysis

      In net\minecraft\world\item\MaceItem.java, in hurtEnemy, the sound events are called with the SoundSource.NEUTRAL sound category.

            hawkan [Mojang] hawkan
            CrowdingFaun624 CrowdingFaun624
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: