Hey!
Here a little idea: use the append argument of the /data modify to concatenate strings.
Example:
I have an item with this nbt tag: {Item:{tag:{test:"Love",test2:"Slime"}}}
With this command:
/data modify entity @e[type=item,limit=1] Item.tag.test append from entity @e[type=item,limit=1] Item.tag.test2
The tag "test" gets for value "LoveSlime".
With "prepend" instead of "append", the result would be "SlimeLove".
7 Comments
Please sign in to leave a comment.
Post a new comment: