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

"/item replace" command causes armor equipping sounds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17, 21w39a, 1.18.1, 1.18.2
    • None
    • Community Consensus
    • (Unassigned)

      The Bug

      The "/item replace" command is the successor of "/replaceitem" in 1.17. However, unlike its predecessor, this new command causes the replacement of armor to cause the sound effect of when one is equipping armor. 

      The sound effects do not play to the player the "/item replace" command is affecting - the sound is only played to other players near them. 

      Steps to replication: 

      1. At least two players are required. One for the "/item replace" to affect, and the other(s) as the bystander(s). 
      2. Place and activate a Repeating Command Block with the command "/item replace entity @p armor.chest with minecraft:diamond_chestplate". 
      3. The affected player will have a diamond chestplate constantly replaced in their chest armor slot - the bystander(s) will constantly hear the sound of the former equipping a diamond chestplate. 

      This occurs with all armor types, armor parts, and Elytras. This does not occur with items/slots within the inventory or hotbar. Please disable the sound for other players in future developments. 

      Observed Behavior:

      The minecraft:item.armor.equip_TYPE sound can only be heard by other players when using the "/item replace" command.

      Expected Behavior:

      The minecraft:item.armor.equip_TYPE sound would be able to be heard by all players when using the "/item replace" command.

            Unassigned Unassigned
            Jeonsaryu Aaron Park
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: