Is there a way to keep playing sound at zombie's location?



  • How do I make it so a sound will play only once and won't repeat when a player gets 10 blocks near a zombie? But I want the sound to play AT The location of the zombie, so it will be like 3D sound. I tried stuff but they didn't work and I'm running out of ideas.

    Minecraft version: 1.18.2 Java

    A command I tried in a repeating command block:

    /execute as @e[type=zombie] at @e[type=zombie] run playsound custom.sussyb master @a[distance=0..10] ~ ~ ~ 
    


  • /execute at @e[type=zombie] run playsound minecraft:ambient.cave master @a[distance=..10] ~ ~ ~
    

    It should work. Just replace the minecraft:ambient.cave with sussyb



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2