#setting armor stand to player name...

1 messages · Page 1 of 1 (latest)

robust cape
#

Im trying to make a datapack for a server (because Im not doing plugins) and Im trying to make a function that spawns in an armor stand, then sets its name to the player's name, but it doesn't work.

heres the code:

execute as @e[tag=t, limit=1, sort=nearest, type=armor_stand] run data modify entity @s CustomName set from entity @p
tag @e[tag=t, limit=1, sort=nearest, type=armor_stand] remove t```
atomic hollowBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

dapper pendant
#

you cant get players name from player data, you need to use the loot table with players head and then get the name from the item that drops

robust cape
#

ah ok