1

Testfor name of entity spawned from named egg.

hokage3211 12/21/14 11:03 pm
1k
12/22/2014 9:26 pm
okay, if you take a spawn egg, name it on an anvil, and you spawn it then it gets that name, right? Well say I did that with a squid and named the egg "Spell Charge", after using this command:
/testfor @e[name=Spell Charge] it doesn't work at all, feel free to test it and see if I'm just wrong or something, but I'd like to know how to test for the name you gave the egg?
Posted by
hokage3211
Level 53 : Grandmaster Nerd Programmer
52

  Have something to say?

JoinSign in

3

hokage3211
12/22/2014 9:26 pm
Level 53 : Grandmaster Nerd Programmer
workaround:
scoreboard players set @e (insert objective to monitor for specifically that name) 1 {CustomName:"(insert custom name, even with spaces)"}

tesfor @e[score_(objective name)_min=1]
1
Arcaniax
12/22/2014 6:06 am
Level 84 : Elite Programmer
"name=" doesn't work with spaces in between names
1
hokage3211
12/22/2014 1:59 pm
Level 53 : Grandmaster Nerd Programmer
Oh, so how would I test for a name with a space? Or is that not possible right now?
1

Welcome