Minecraft 1.12.2
I want to create a re-spawn system for the enemies in the different map areas. I could use a counter on a scoreboard with an armor stand as the entity but with all the areas I have in my map I think it would cause lag.
For example:
I want 5 zombies in an area of 20 block, the player comes and kills 2 of them. The player leaves. The system re-spawns the dead mobs making a total of 5 again.
I know how to test if the player left the area:
/testfor @a[r={radius}]
But what I don't know how to test for the minimum amount of enemies without a scoreboard i can't make it.
I tried the Count modifier in the selector but I realized that is not how it works. I tried something like this:
/testfor @e[type={entity},r={radius},c={amount}]
but it would activate when there was only 1.
In the end:
Is there a way too test for a minimum amount of mobs in a certain radius without a scoreboard?
execute if score
for fake players in 1.13 can be complety mimicked in 1.12, I don't think you can.