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.

  • 0
    Xavier Hervy commented
    Comment actions Permalink

    Would be nice for nbt array too

  • 1
    Thick propheT commented
    Comment actions Permalink

    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.

  • 0
    RELapis commented
    Comment actions Permalink

    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.