Im trying to make a wave spawn kind of thing and i would like a command block to activate its comparator redstone signal when the command blocks command is negative.
I tried this using /testfor @e[type=!Zombie] but that does not work as it detects the player or any other mob. any way to do this without a redstone torch ?
Best Answer
One way to do this is to have a second command block testing if the previous one failed:
The impulse command block would have your current command (
/testfor @e[type=Zombie]
).The chain command block, which is the one you should run comparators/conditionals off of, would then have:
X Y Z
should be the coordinates of the impulse command block.This makes the chain block succeed when the impulse block fails.