-1

I am attempting to create a wave survival game, in which zombies and other mobs are fought and killed until there are none left, and another wave is started right after their deaths. I cannot figure out how to use the execute command to test whether or not zombies (non-player mobs) are in the area or are still alive to begin wave two.

2

That's exactly what /execute unless entity is for:

/execute unless entity @e[type=zombie,distance=..10] run <command>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.