Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-259202

data modify string sub command [<start>] and [<end>] don't allow negative values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 23w03a
    • None
    • Confirmed
    • Commands

      The data modify string sub command [<start>] and [<end>] don't allow negative values.

      Generally you would expect these slices to act more more like nbt lists that can use negative values.
      Example: SomeList[-1]

      However a command like this:
      /data modify block ~ ~ ~ SomeString set string block ~ ~ ~ SomeOtherString -2 -1

      Gives an error and is inconsistent with this behavior.

            Unassigned Unassigned
            MukiTanuki MukiTanuki
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: