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. – HolyBlackCat Aug 11 '17 at 16:35

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? – Daniyal Shafiq Aug 11 '17 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. – AjaxGb Aug 11 '17 at 16:53
  • Well thanks for helping me I didn't had this information.Thank you very much. – Daniyal Shafiq Aug 11 '17 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.