Started by
Zexmus
on
Topic category: Help with Minecraft modding (Java Edition)
So i have made this gui with a purchase button that should see if you have 64 iron ingots and takes it away giving you the item you just bought. but when ever i press the button to give the item and check if i have 64 ingots, (I only had 1 ingot) and it still gave it to me i need help...
How many stuff do you have? Like how much items youre selling. ex (emerald, iron, etc)
This happened to me so if you have 2+ for a procedure you must have the if-do/else-do. If you have 3 do the if-do/else-do then the if--do procedure loop. Then keep on doing that.
(ex.)
If-(procedure)
do-(procedure)
else-(procedure)
do-(procedure)
then connect
if-(procedure)
do-(procedure)
I only have 1 item in the shop
hmm.. Add one more item to the shop and do the if-do/else-do procedure block.