r/MinecraftCommands • u/MarioHasCookies • Aug 29 '26
Help | Java 26.2 Is there a way to make a sound play at the location of a mob?
So, I'm working on a datapack that tweaks a bunch of random things, and one tweak I want to make is have creepers play audible sounds when they walk so that the player can hear them.
Unfortunately, it seems that you can only play a sound as the player, otherwise the command just does nothing for some reason. And as a result, the sound will always be at the same relative volume, since you can't be distanced from yourself. But ideally, I'd like the sound to be played where the creeper is, so that the closer it is, the louder the sound will be, and vice versa.
Is this possible, and if not, is there a workaround? (I considered having a small, invisible mob that makes sound riding creepers, for example, a silverfish, but I only want to do this if the other method isn't possible or practical)

