Custom Recipe Lag?

Started by _Barry_124_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Recipe Lag?

I noticed that sometimes recipes will lag and skip steps in the procedure. For example, I have a custom crafting GUI and will place the items inside to create the outcome. When I grab the outcome most often the recipe items will correctly be removed and the outcome item will now be in my hand, but occasionally I find the outcome will go into my hand and the crafting items will still remain in the GUI. I've checked and the procedure seems to be fine and will work most of the time; however, the procedure will make mistakes during lag spikes. Does anyone know how to fix this? Another mistake has been reported by a fan of my mod that the outcome item will sometimes disappear during lag spikes as well as its recipe components.

I use all mcreator versions including and greater than 2023.2 and I use multiple Minecraft versions.

 

Below are some images of the procedures:

The Broom Recipe Procedure

^ Broom recipe procedure

Procedure when outcome item is taken from slot

^ Procedure when outcome item is taken from slot

Procedure when crafting GUI is open

^ Procedure when crafting GUI is open

 

Any help or tips are appreciated, thank you!

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the idea that it can…
Fri, 11/08/2024 - 17:35

I have the idea that it can cheak if the recipe procedure is called and if false it'll delete the outcome. This will make sure the outcome stays when the recipe items are in the GUI but once the recipe items are removed it'll delete the outcome. Does anyone know how to have a procedure as if true in a If Do procedure component?