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

Unexpected error when giving '/data get' a negative index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w20c, Minecraft 1.13-pre3, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1-pre1, Minecraft 1.13.1
    • None
    • Confirmed

      The bug

      When I use /data get with a path of an array with a negative index, it says An unexpected error occurred trying to execute that command. There isn't any further information in the logs.

      How to reproduce

      Type in that command for example:

      /data get entity @s Inventory[-1]
      

            Unassigned Unassigned
            MaxiHuHe04 Maximilian Herczegh
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: