Custom Gui freezes the game

Started by Hellcat667 on

Topic category: Help with modding (Java Edition)

Last seen on 10:57, 5. Jan 2023
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Gui freezes the game

Hello, im trying to make backpack mod, but everytime i wanna open one, game freezes. Im getting this error 11:03.07 [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexp - Pastebin.com

and thats my gui setup.

any ideas please? i can send more info if needed 

"Caused by: java.lang…
Fri, 12/10/2021 - 13:10

"Caused by: java.lang.RuntimeException: Slot 54 not in valid range - [0,54)"

Increase amount of slots in your block/item settings. It should be +1 to the amount you need (but if you are unsure, you can make it even bigger).