3
Okay so i'm working on a minigame where you fight mobs, I want to make it so after all the enemies in the area are dead the next wave happens, I need like a /execute command that tests if theres any mobs in a selected radius, and if there's no mobs then I can make the next wave happen.
If anyone knows of a command that can detect if no mobs are nearby can you please share it with me
Create an account or sign in to comment.
2
2
execute unless entity @e[distance=..(your radius),type=!player] run (command for next wave)
1
Ahh I see, there's an "unless entity" thank you that command you showed me will be very helpful