Started by
Bodi
on
Topic category: Help with Minecraft modding (Java Edition)
GUI slots just drop items if i closed the GUI , i want the slot to save the item when i close the GUI (just like inventory) .
Topic category: Help with Minecraft modding (Java Edition)
GUI slots just drop items if i closed the GUI , i want the slot to save the item when i close the GUI (just like inventory) .
You need to set the number of slots in your item/block
it must be the same number
hey so i did what you said to do but how it crashes whenever i try open the gui
@kolokythi,
the size of inventory (slot count) works like so:
The first slot you add in the GUI beginns with the slot id 0. for example if you have 6 slots its id's is like this:
0, 1, 2, 3, 4, 5
Therefore you need to type the number of slots not the last slot id.