I summon an armor stand and gave him tag of Any
. Now I want to use CustomName command like /entitydata @e[tag=Any] {CustomName:"Hello player"}
but I want to specify the name of the player using selector using @p
I was wondering if anyone could help me with it.
-
Probably impossible.– HolyBlackCatAug 11, 2017 at 16:35
1 Answer
There is currently no way to have "dynamic" NBT like that. Unless you set up a different command for every possible name, there is no way to insert a player's name into NBT data.
-
so is there any way I can use scorebord value in the CustomName? Aug 11, 2017 at 16:52
-
No. You can't insert anything into a custom name; not names, not scores, not NBT, nothing. It can only be the text you typed out beforehand.– AjaxGbAug 11, 2017 at 16:53
-
Well thanks for helping me I didn't had this information.Thank you very much. Aug 11, 2017 at 16:55