Mojira Archive
MC-137697

NBT list using "interpret" not comma delimited

Background

When a list of NBT values is displayed using the NBT component, the entries in the list are separated by commas, like so [<item 1>, <item 2>, <item 3>, ...].

The bug

When the items in the list are interpreted as text components using "interpret":true, the entries are no longer comma delimited: [<item 1><item 2><item 3>...].

Steps to Recreate

  1. Create a container with 2+ items with custom names
    /summon chest_minecart ~ ~ ~ {Items:[{id:stone,Count:1b,tag:{display:{Name:"\"A\""}},Slot:0b},{id:stone,Count:1b,tag:{display:{Name:"\"B\""}},Slot:1b},{id:stone,Count:1b,tag:{display:{Name:"\"C\""}},Slot:2b}]}
    
  2. Use the NBT text component to display the names of the items
    /tellraw @s {"nbt":"Items[].tag.display.Name","entity":"@e[type=chest_minecart]"}
    

    The raw text components are comma delimited

  3. Now use "interpret":true on the same items
    /tellraw @s {"nbt":"Items[].tag.display.Name","entity":"@e[type=chest_minecart]","interpret":true}
    

    The interpreted components are not comma delimited

Disclaimer

Since interpret changes the nature of the text, I am unsure whether this is intended behavior.

Fixed

Tedstar (Curtis Anderson)

[Mojang] Bartosz Bok

2018-10-24, 11:13 PM

2018-10-26, 10:52 AM

2018-10-26, 10:52 AM

1

3

Confirmed

NBT, comma, list, nbt, nbt-component, nbt-path, text, text-component

Minecraft 18w43a, Minecraft 18w43b

Minecraft 18w43c