Started by
frootloopgoop
on
Topic category: Help with Minecraft modding (Java Edition)
The way this specific crafting station is supposed to work is it will check all slots 0-8 for potion ingredients, and if it has found one it will fill slots 9-12 with items representing the potion effect of the ingredient.
The slot will fill with the item as intended, but when multiple ingredients are added, the slot in 9 is overwritten rather than adding 1 to the variable adding an additional item in slot 10.
The procedure updates on GUI tick
Image of how it should work:
Image showing it not working:
The Code:
Break will exit your loop, not the if/else condition. This means it is only running once.
Your current logic looks like this:
What you want is this:
more test
I'm not able to edit the post above, ignore the 'more test' at the end and maybe add a 'move to next ingredient slot' at the bottom (inside the repeat)
Thank you a lot and have a Merry Christmas if you celebrate it.