TransWikia.com

How can I testfor a named entity?

Arqade Asked by Chrisdude011 on June 23, 2021

I would like to testfor a Zombie called “Zombie Boss”. I’ve tried this:

/testfor @e[Name=Zombie_Boss,r=10000] ~ ~ ~

But it doesn’t work. Why?

3 Answers

The name argument shoudn't be capitalized, and also unless you are testing for the mob in a specific area, r argument isn't required, nor the ~s

Try this:

/testfor @e[name=Zombie_Boss]

Answered by Auri on June 23, 2021

/testfor @e[type=Zombie,Name=Zombie_Boss]

You need to place a comparator and then a repeater leading into a command block with the command.

Answered by UnknownCharting on June 23, 2021

/testfor @e {CustomName:"Zombie Boss"}

Answered by Coder Kid on June 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP