Mojira Archive
MC-270475

Container component slot -1 crash

/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

Fixed

Roark

[Mojang] eowyn36

2024-04-07, 05:24 AM

2024-04-10, 08:41 AM

2024-04-10, 08:41 AM

0

0

Confirmed

Very Important

Platform

Crash

24w14a

1.20.5 Pre-Release 1