Yeah but I couldn’t get much out of it, the code was all over the place. The only thing I could find related to guis is opentradescreen() or something. I’ll probably double check but I doubt I’ll find anything.
While playing, I opened the crafting table and the recipe book, and then I tried to filter all recipes by 'craftable'. All of a sudden, the game saves and closes, and a screen saying that an error occurred and crashed the game. This occurred repeatedly, even when I managed to filter recipes, when toggling it back or exiting the crafting table, it just saves and crashes.
I was playing with:
Command: effect give @s minecraft:night_vision 999999 15 true
Command: effect give @s minecraft:haste 999999 15 true
Command: effect give @s minecraft:invisibility 999999 15 true
Command: fill 149 7 -239 249 9 -349 air
Technical name of error that pops up:
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.item.ItemStack.m_41720_()" because "stack" is null
Steps to Reproduce
Open a new 1.17.1 world.
Collect different materials (I went underground in peaceful mode and collected various materials and blocks).
You must have cheats enabled. (I applied night vision, haste, and invisibility, and constantly changed between Creative and Survival)
Change the game mode to Survival
Craft some stuff, get things from a furnace, etc...
Open a crafting table and the recipe book.
Try to filter by 'Craftable'.