Custom GUI attached to block causes game to crash

Started by therealnoobking on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom GUI attached to block causes game to crash

I am attempting to make a custom furnace block and the block itself can be placed just fine, I attached a GUI to it but upon right clicking, the UI appears as intended but the game immediately crashes. Here is the crash log: https://pastebin.com/kW5M6YHG

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the crash log it says …
Fri, 05/02/2025 - 21:54

in the crash log it says "Index 2 out of bounds for length 2" it probably is a problem with the inventory size you set in the block entity, it's a furnace so I guess it has three slots, did you set the inventory size to three?

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was under the impression…
Fri, 05/02/2025 - 22:30

I was under the impression that the inventory size's number values functioned the same as the gui editor. Idk why I didn't think to check something so simple lol. Thanks for the help :)

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you're welcome
Fri, 05/02/2025 - 22:50

you're welcome