forum Forumsplay_arrow Minecraft fiber_manual_record Help

3

Is there a way to test for no mobs

3 emeralds2 replies74 views
created 01/19/2019 1:59 pm by Swanlet
last reply 01/22/2019 1:48 pm

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
Posted by avatar
Swanlet
Level 2 : Apprentice Miner
1

2 replies

2
01/19/2019 2:58 pm
Level 9 : Apprentice Engineer
Cadermate
avatar
execute unless entity @e[distance=..(your radius),type=!player] run (command for next wave)
1
01/20/2019 6:47 pm
Level 2 : Apprentice Miner
Swanlet
avatar
Ahh I see, there's an "unless entity" thank you that command you showed me will be very helpful

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome