Button condition with wait timer?

Started by chewdog on Thu, 05/27/2021 - 09:42

Topic category: Help with modding (Java Edition)

Last seen on 22:47, 29. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Button condition with wait timer?
Thu, 05/27/2021 - 09:42

 

 

 Is it possible to make the return = true use the wait block in the flow control or some other way to add a timer on the button condition. I thought about storing data with local var but I dont think you can ID the button through a procedure block. 

 

 Example = player use GUI button and button does not work for next 15 mins. 

 

Thanks

Chew

Last seen on 22:47, 29. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I figured this out by adding…
Thu, 05/27/2021 - 17:56

I figured this out by adding random block procedure and the "and" block" with var + wait. Now I have a working thirst system on 1.16 complete with 3d canteen but its not as flexible as I wanted. I am looking at the code to figure out how to make it tick like hunger does when you move for example.