0

I know how to use the /testfor parameters in a command block to scan for players. But I need to test for zombies. Can you test for things that aren't players? If so then what else can I test for and how do I type it into the block. /testfor Zombie[~,~,~,r=10] isn't working. And if not, what would it take to get Mojang to change it?

1 Answer 1

3

Zombies are entities, and entities can be detected by type. To test for zombies:

/testfor @e[type=zombie,x=value_here,y=value_here,z=value_here,r=value_here]
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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