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

Strange Effect of /playsound in Datapack when Loading World after Closing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.13-pre1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7 64-bit
    • Confirmation Status:
      Unconfirmed

      Description

      I've been attempting to make a datapack that plays looping music to different players depending on where they are in the world.

      In the process of debugging my commands, I kept running into a situation that seems to cause a playsound command to trigger during the world load and continue playing after the game is paused and even after the world is closed, thus continuing to play on the title screen. Because this bug could be used to harass someone and the most obvious methods of preventing it don't work, I've labelled this report as private to prevent abuse.

      Regarding the bug itself, I have no idea what about the functions is triggering the bug since everything I've tried doing to prevent it hasn't worked. However, I've attached a resource pack and world capable of reproducing it.

      To reproduce everything I know about the bug:

      1. Open Minecraft
      2. Apply the attached resource pack
      3. Open the attached world and the sound plays normally
      4. Save and quit to title
      5. Reopen the world and the sound is playing twice, one bugged and one normal
      6. Save and quit to title and the bugged sound continues playing
      7. Close Minecraft
      8. Open Minecraft
      9. Open the world and the sound doesn't bug out
      10. Save and quit to title
      11. Reopen the world and the sound is playing twice again

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                zero318 zero318
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: