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

Using data get to get an element of a string array says the tag doesn't exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w03b
    • Minecraft 18w03a
    • None
    • Unconfirmed

      The bug

      When using /data get entity to get a specific element number of an array with strings, it says the tag does not exist.

      How to reproduce

      1. Summon an entity with a tag:
        /summon minecraft:chicken ~ ~ ~ {Tags:["imAChicken"]}
      2. This command works and returns the whole list in chat:
        /data get entity @e[type=chicken,limit=1,tag=imAChicken] Tags
      3. This command says the tag doesn't exist:
        /data get entity @e[type=chicken,limit=1,tag=imAChicken] Tags[0]

            dinnerbone [Mojang] Nathan Adams
            AlexMCool Alex³
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: