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
- 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}]} - 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 - 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.
2018-10-24, 11:13 PM
2018-10-26, 10:52 AM
2018-10-26, 10:52 AM
1
3
NBT, comma, list, nbt, nbt-component, nbt-path, text, text-component