3

Is there a way to test for no mobs

Swanlet's Avatar Swanlet1/19/19 1:59 pm
3 emeralds 375 2
1/22/2019 1:48 pm
Swanlet's Avatar Swanlet

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 Swanlet's Avatar
Swanlet
Level 38 : Artisan Miner
10

Create an account or sign in to comment.

2

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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome