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

/stopsound command does not mute sounds correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Awaiting Response
    • Affects Version/s: Minecraft 1.9.3 Pre-Release 2, Minecraft 1.12
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      mac osx 10.11.4 (15E65)
      1,4 GHz Intel Core i5
      Vanilla

    • Confirmation Status:
      Unconfirmed

      Description

      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>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                m124367 Melvin Schop
              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: