Topic category: Troubleshooting, bugs, and solutions
I have created a sort of crafting table with only two input slots. But when i right click in game to open the GUI, the game crashes. I have looked on others problems but their solutions dont work for me. I have some screenshots:
"enabled inventory" options for the block:
https://drive.google.com/open?id=1-z2HsRDAUJkoEKbUsZMswTsr67rmdG0q
Block GUI:
https://drive.google.com/open?id=1G9DCMCdc6IgDfjR6u6RelRXzaNSzaar7
GUI craft procedure (Gets called when the craft button is clicked):
https://drive.google.com/open?id=1W-8dVnXn-qFjHu3v6arX__IXVEZEsIub
It is only a part of the code for all the recipes, but it is just the same code everywhere.
I hope the links work, if not then say it and i will try to fix.
Why does your GUI skip slot 02?
Also “Size of inventory” should be set to 4 because you have 3 slots + 1.
And the part where it starts with the word “comma” has a 2 in there, and there is no 2 slot in your GUI.
Yeah i saw that, instead of id 3 it should be id 2 och the output slot. Works now
Good :)
and if you dont have any slots? what then? cuz it crashes every time for me, whether i have slots or not
This is a common issue, please search the website a bit