Mojira Archive
MC-144357

data modify ignores selectors in text

Using a mcfunction to copy a player's name onto an entity (a zombie in this example) as such...

execute as @s run data modify entity @e[type=zombie,limit=1,distance=..6] CustomName set value "{\"text\":\"Zombie \",\"selector\":\"@s\"}"

 

Names the entity "Zombie " and ignores the selector portion of the string.

I even tried specifying my own <playername> in place of the @s selector, and it still ignores the selector string portion.

 

 

Duplicate

Scott Miller

2019-02-18, 06:22 AM

2021-01-16, 02:56 AM

2019-02-18, 06:54 AM

0

0

Unconfirmed

Minecraft 19w07a

-