Mojira Archive
MC-124348

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

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]

Fixed

Alex³

[Mojang] Nathan Adams

2018-01-17, 05:03 PM

2018-01-17, 05:05 PM

2018-01-17, 05:05 PM

0

0

Unconfirmed

Minecraft 18w03a

Minecraft 18w03b