Started by
lamon_damon
on
Topic category: Help with Minecraft modding (Java Edition)
Hello! I wanted to make a new table that when right clicked, it opens a GUI, in said GUI there's 2 slots, one is an input one and the other is output, in the input you put coal, specifically only a stack of coal, no more, no less, and 1 minute it should transform into a custom item. I have done this entire process, but when I exit the table, nothing saves, you have to re-put the stack of coal because it just deletes it, and the 1 minute timer restarts, if anyone knows how I can save that time when you exit the GUI, it would be extremely useful! Thanks!
Edited by lamon_damon on Thu, 08/08/2024 - 15:47
maybe there's something wrong in the block or GUI settings, because it works for me. Check if the slot number ID's in the procedure are the same of the ones in the GUI and if the block settings are right (tick rate to 1, bound to GUI, enabled right click to open GUI)
I think I might've found the problem, I accidentally set slot 0 as slot 1 in one line, so I'll try and see if it works now
ok, just in case I needed to clarify this, in slot 0 I wanted to put exactly 64 coal blocks and then in slot 1, you get for example a diamond block, and then those 64 coal blocks get removed to create that diamond block
wait, I might've figured it out again... I'm going to tell you if this worked
well, I made it so the coal gets removed and then the timer to create the block in the output starts, but I can change that, for now tell me if you're able to make it work as I intended
The game crashes when I try opening the GUI when right clicking the block - https://imgur.com/a/EHkjLE8 in which case, is this correct?
yes (setting size of inventory to 2 will fix the crash)
I mean, unless the GUI has more than 2 slots
OK IT'S WORKING PROPERLY, but it's taking any stack of any item and transforming it into the desired item, I want it to be only 64 Coal Blocks if that's possible!
even if I exit the GUI the countdown still continues, which is AMAZING! If the coal blocks thing can work then that'll be everything! I really can't thank you enough for helping me! I'm sorta a newbie to this "coding" stuff in MCreator, and getting an understanding of how NBT stuff works is really helpful!
in the GUI settings double click on the input slot, you'll see the slot settings, there is one called "limit stack input to", put coal there
Everything works, thank you so unbelievably much!! Thanks for not getting frustrated with each of my mistakes, I appreciate you a lot!! Again, thank you very much!!
no problem