SOLVED: Saving progress inside a GUI

Started by lamon_damon on

Topic category: Help with modding (Java Edition)

Last seen on 12:48, 18. Sep 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
SOLVED: Saving progress inside a GUI
Thu, 08/08/2024 - 15:47 (edited)

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
Last seen on 07:02, 18. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe there's something…
Thu, 08/08/2024 - 14:43

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)

Last seen on 12:48, 18. Sep 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I might've found the…
Thu, 08/08/2024 - 14:55

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

Last seen on 12:48, 18. Sep 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok, just in case I needed to…
Thu, 08/08/2024 - 14:59

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

Last seen on 12:48, 18. Sep 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait, I might've figured it…
Thu, 08/08/2024 - 15:00

wait, I might've figured it out again... I'm going to tell you if this worked

Last seen on 07:02, 18. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well, I made it so the coal…
Thu, 08/08/2024 - 15:03

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 

Last seen on 12:48, 18. Sep 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The game crashes when I try…
Thu, 08/08/2024 - 15:05

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?

Last seen on 07:02, 18. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes (setting size of…
Thu, 08/08/2024 - 15:09

yes (setting size of inventory to 2 will fix the crash)

Last seen on 07:02, 18. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean, unless the GUI has…
Thu, 08/08/2024 - 15:10

I mean, unless the GUI has more than 2 slots

Last seen on 12:48, 18. Sep 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OK IT'S WORKING PROPERLY,…
Thu, 08/08/2024 - 15:12

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!

Last seen on 12:48, 18. Sep 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
even if I exit the GUI the…
Thu, 08/08/2024 - 15:17

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!

Last seen on 07:02, 18. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the GUI settings double…
Thu, 08/08/2024 - 15:23

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 

Last seen on 12:48, 18. Sep 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Everything works, thank you…
Thu, 08/08/2024 - 15:28

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!!

Last seen on 07:02, 18. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no problem
Thu, 08/08/2024 - 15:41

no problem