mojira.dev
MC-101460

/stopsound command does not mute sounds correctly

The /stopsound command (/stopsound @a) does not mute all sounds correctly when hooked up to a 20Hz clock (blue repeating commandblock)

Taken into account that 20Hz does not suffice to mute all sounds constantly, some sounds are not cut off at all. Sometimes the sound of fire for example keeps running for longer than a tick or 2 ticks, quite a long sound can play fully without getting cut off...

Expected:

  • Sounds will play for max 1 tick cause /stopsound @a will cut it off then

In Practice:

  • Sometimes sounds just fully keep playing.

Possible solution/fix (idea):

  • Have data values on each player that keeps track of which sounds have been muted in that tick, the next tick, that datavalues get wiped if /stopsound is not ran that tick, and keep the datavalues/change it, when it is ran.
    You may have something like (some messy pseudo-data)

    {
      "muted": [
        "music",
        "ambient",
        "hostile": [
          "mobs.zombie.hurt"
        ]
      ]
    }

Where you would have a list of all the sound categories that are muted, and a list of specific sounds under a category. if all sounds are muted, either a list of all of them, or something else is in the data? idk

it is an idea for a fix.

The result that you want is complete silence when /stopsound @a is ran each tick.
and completely specific muted sounds with /stopsound @a <category> <sound>

Linked issues

Comments 7

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

Is this still an issue in the most recent versions (currently that is 1.11) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

This is still an issue in 1.12 because when I try muting the entity.lighting.impact sound, it doesn't get muted all the way. It would get muted at the very end of the sound being played. I can submit evidence to support confirmation of this bug, if needed.

Would a moderator please update the affected versions of this bug report to minecraft 1.12?

感觉这个有点像MC-35856。我在1.12和1.12.1使用时,有时有两种音乐同时播放,一个可以通过退出世界或/stopsound或关闭音乐音量来停止,另一个则无法停止(除非关闭总音量)。

@unknown, English please. Also, this has nothing to do with MC-35856.

Is this still a issue in the latest version of the game(currently 1.13.1)?

If so, please add it to the affected versions, thanks!

AgentM

(Unassigned)

Unconfirmed

Minecraft 1.9.3 Pre-Release 2, Minecraft 1.12

Retrieved