I am making a Minecraft jetpack with a testfor command a /execute command which gives me levitation and also with particle effects. I am trying to add sound with the playsound command by putting it on top of the chain command blocks for the /execute and the particles but it makes this really horrible sound because it is playing constantly. I tried to put it in a separate repeating command block but it doesn't work. Does anyone know how to do this? Thanks!
Minecraft – playsound command for a jetpack
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – Detect Particle command
- Minecraft – My command-block augmented sword isn’t freezing players when they’re hit!
- Minecraft – How to make a dropper with a specific pattern of items inside turn into a building
- Minecraft – How to create an “impact grenade” in Minecraft 1.13
- Minecraft – /tp command not working
- Minecraft – How to run chains after a /testfor command without having each additional command block being conditional to previous steps
Best Answer
You probably want to loop the command slower. You can do this using redstone (just a regular redstone clock).
If you don't want to use redstone, you can tell the command block to only execute the command every few iterations.
To do this, you assign a timer scoreboard to the player that ticks up every game tick and only if it reaches the time you want, the sound gets played and then the timer gets reset.
Setup:
In loop, replace
@p
with the selector of the flying player and...
with the rest of your playsound command:If it's a function, you can also use
/schedule
(archive):or: