I'm having (for example) a entity (Drop) with this NBT:
{Item:{tag:{display:{Lore:["test1"]}},id:"minecraft:bread"}}
I'm trying to add a new lore:
/data merge entity @e[type=item,tag=myDrop] {Item:{tag:{display:{Lore:["test2"]}}}}
But when I execute this and collect my drop there is ONLY test2 as lore but i need test1 and test2. Please help! Thanks.
EDIT: I don't know the content and/or the count of test1.
EDIT2: So simply a array.append() but how in minecraft?
Item.tag.display.Lore[1]
as the path?/data merge
doesn't have a path argument. I don't think it's possible to do what you want.