Are you sure you want to report this?

We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.


'/data modify [...] append' to concatenate two strings


Post a new comment:

Please sign in to leave a comment.

  • Avatar
    Xavier Hervy commented

    Would be nice for nbt array too

  • Avatar
    Thick propheT commented

    This would be really useful for appending the player's UUID to the name field of a structure block e.g. "minecraft:some_structure/00000000-0000-0000-0000-000000000000". That way, you could allow each player to have a unique copy of a structure.

    I think this is a reasonable addition, since strings are treated as collections in many languages.

  • Avatar
    deathconekul commented

    I think strings should just be treated like an array of characters, so you could use append, prepend, insert, and also specify the [0] index.