Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-144357

data modify ignores selectors in text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 19w07a
    • None
    • macOS Mojave 10.14.3 (18D109)
    • Unconfirmed

      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.

       

       

            Unassigned Unassigned
            Gatinh0 Scott Miller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: