1
Testfor name of entity spawned from named egg.
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?
/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?
Create an account or sign in to comment.
3
1
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]
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
"name=" doesn't work with spaces in between names
1
Oh, so how would I test for a name with a space? Or is that not possible right now?