1

Testfor name of entity spawned from named egg.

hokage3211's Avatar hokage321112/21/14 11:03 pm
12/22/2014 9:26 pm
hokage3211's Avatar hokage3211
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's Avatar
hokage3211
Level 49 : Master Engineer
39

Create an account or sign in to comment.

3

1
12/22/2014 9:26 pm
Level 49 : Master Engineer
hokage3211
hokage3211's Avatar
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
12/22/2014 6:06 am
Level 84 : Elite Programmer
Arcaniax
Arcaniax's Avatar
"name=" doesn't work with spaces in between names
1
12/22/2014 1:59 pm
Level 49 : Master Engineer
hokage3211
hokage3211's Avatar
Oh, so how would I test for a name with a space? Or is that not possible right now?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome