How Can I get a delay on my GUI button before I retrieve items from a slot?

Started by CookUpAStorm on

Topic category: Help with modding (Java Edition)

Last seen on 09:48, 24. Jul 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How Can I get a delay on my GUI button before I retrieve items from a slot?

I'm working on a crafting bench which uses a GUI Button. Is there a way to delay this button using NBT's (or something else) before I retrieve my items. The image attached is the current code without the delay.  Attached is the code for when the button is pressed. 

https://www.dropbox.com/s/wrty2rl1z1wvapa/Screenshot%202022-07-08%20084

I followed a timer tutorial already which follows this layout, but I'm struggling to integrate this to work with the procedure above. (timer also attached) Any Ideas? 

https://www.dropbox.com/s/6wn2mw495e3idmu/Screenshot%202022-07-08%20131

Overall Aim -----> Add items in slots -------> Click Button ---------->200 tick delay --------> retrieve items. Thank you :) 

Last seen on 22:27, 12. Feb 2024
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I could help only if button…
Sat, 07/09/2022 - 13:36

I could help only if button click trigger weren't player trigger.

Sorry i mean you cant use block related procedures to buttons since they are gui related and not block related. :(