mojira.dev
MC-265389

"/item modify" command makes armor/offhand equip sound

The bug

The /item modify command makes armor and offhand play their equip sound when you modify their components.

How to reproduce

  1. Equip a chestplate
    → ✔ The armor equip sound is played

  1. Run the following command:

    /item modify entity @s armor.chest {function:"set_damage",damage:-0.1,add:true}

    → ❌ The armor equip sound is played again

Linked issues

Attachments

Comments 3

Can confirm that this also applies to Elytra, which will make shuffling sounds when modified.

Can confirm in 1.21

Still present in 1.21.11. I can take over maintaining this report since the original creator doesn’t seem to have migrated their account.

KirbAvion

(Unassigned)

Confirmed

Platform

Normal

Commands

1.20.1, 1.20.2 Pre-Release 4, 1.20.2 Release Candidate 2, 1.20.4, 1.21, 1.21.11, 26.1 Snapshot 10

Retrieved