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.
Minecraft – How to use selector in CustomName command
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – How to give relative rotation to armor stand
- Minecraft – Different commands select different entities (with the same target selector)
- Minecraft – /entitydata command + armor stands . How to do it properly
- Minecraft – How to Name An Entity With a Player’s name
- Minecraft – How to specify only NBT in the /clear command, not an item
Best 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.