GUI Stacking and Item Multiplication

Started by kirby_hat on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI Stacking and Item Multiplication

I'm trying to make a gui menu that when you put certain items in it will destroy the item you put in and then give you different items. I was able to make it work, but one of the items I want to add is lithium when you put cobblestone in the gui. But when multiple cobblestone is put in, it only gives you the same amount as I put for 1 cobblestone, 2 lithium. (for example, I want to make it so that if you put in 3 cobblestone you get 6 lithium, 9 cobblestone you get 18 lithium, etc.) Also I want to make it stack so that if you put 1 cobble stone after the other the lithium will stack in that slot. (for example the lithium given will go from 2 to 4 to 6 if you keep putting 1 cobblestone in) Can someone help with this please? Thanks

You will need to get count…
Tue, 12/31/2024 - 16:37

You will need to get count of items in slot and store this in local variable to determine output amount.

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei