Running procedures while in a GUI

Started by Agent_Y on Tue, 11/03/2020 - 23:00

Topic category: Help with modding (Java Edition)

Last seen on 13:07, 4. Nov 2020
Joined Oct 2020

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Running procedures while in a GUI
Tue, 11/03/2020 - 23:00

So I'm trying to make a crafting table,

All the procedures work fine, I have one that checks if the right items are in the right slots, and if they are the result of the crafting is put in the output slot, then I've got another the removes anything in the output slot if something is removed from the input slots, and then one last on the removes the items in the input slot if the item that is output is taken. 

The issue I'm having is that I can't run the first procedure all the time, only when the contents of the input slots are changed, so it doesn't run when I put an item in the slot

Is there any way of having a procedure constantly running while a specific gui is open? Or some other way of making this work like a normal crafting bench in minecraft?

Thanks in advance