I get a different result when crafting than I should

Started by Lupetas on

Topic category: Help with MCreator software

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I get a different result when crafting than I should
Tue, 09/24/2024 - 00:55 (edited)

Hello friends! I'm new to the forum and I've seen that there's a great community behind it. I hope to stay for a long time and soon be able to help solve problems. I'll get straight to the point, I've created a crafting table in GUI and when I add the recipe using Procedure and go to craft it I get a different result than I should, I need help, thanks! I'm attaching photos to make it easier to understand.
GUI Buttom
https://gyazo.com/7b24f2b64d8632db5b66846b24af0913
The first half of the Procedure
https://gyazo.com/e65f768d070a002a0a597a927351dd27
The second half of the Procedure
https://gyazo.com/025891ae006fe64ecacd0dd69c1a6e7c

The problem is when I want to craft some leggings, I get the boots and two items that I have left over from the leggings recipe.
Before press the 'Pulir' buttom
https://gyazo.com/13744cebb825a97ee1bdd9680c94ba62
After pressing the button
https://gyazo.com/634f82382e4bc2fe23f4c45f81f2ab8f

Greetings and thanks!!! I am very grateful for the program.

 

Edited by Lupetas on Tue, 09/24/2024 - 00:55
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the leggings recipe is just…
Tue, 09/24/2024 - 13:00

the leggings recipe is just the helmet recipe but with 2 more gems, since the procedure checks first for the helmet one, when it detects that the gems are in the right position it crafts a helmet ignoring the other two gems, to solve it after checking if the items are in the right slot, you should also check if the other slots are empty, it would be good to do so in every recipe

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@bo_boHi bo_bo, thanks for…
Tue, 09/24/2024 - 18:31

@bo_bo

Hi bo_bo, thanks for answering me, I fully understand the problem since you explained it to me, however I don't know how to modify the procedure to verify that the gems are in the correct slot or to verify if the others are empty, could you help me? It would be much appreciated.
I appreciate it, greetings!