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

Container component slot -1 crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 1
    • 24w14a
    • None
    • Windows 10, PC
    • Confirmed
    • Crash
    • Very Important
    • Platform

      /give @s chest[minecraft:container=[{slot:-1,item:{id:'stone'}}]]
      

      This command when pasted in crashes the game. (crash report .10.29) When I change the slot value to 1, run it, then edit it in the chat to -1, and run it, it errors and when I try to go back to the command via my history it crashes. (crash report .11.57) It continues to do this when trying to access it from history (crash report .12.42) until I manually edit and remove the command from my command history file.

      Launcher crash notes:

      The game crashed whilst keypressed event handler
      Error: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0

            Karaoglu [Mojang] eowyn36
            RoarkCats Roark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: