0

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] ~ ~ ~ 
9
  • what did you try that didn't work? what version are you using?
    – Esther
    Jun 1 at 18:02
  • 1.18.2 i tried this /execute as @e[type=zombie] at @e[type=zombie] run playsound custom.sussyb master @a[distance=0..10] ~ ~ ~ in a repeating command block Jun 1 at 18:23
  • add that to your question. You can use the edit button for that.
    – Esther
    Jun 1 at 18:23
  • ok i added everything to the question Jun 1 at 18:28
  • I suppose it's Minecraft Java, since you didn't mention it
    – pinckerman
    Jun 1 at 18:29

1 Answer 1

1
/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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .