Making a shop

Started by Zexmus on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a shop

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...

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How many stuff do you have?…
Wed, 03/20/2019 - 03:04

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)

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I only have 1 item in the…
Fri, 03/22/2019 - 18:20

I only have 1 item in the shop

 

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmm.. Add one more item to…
Mon, 03/25/2019 - 20:46

hmm.. Add one more item to the shop and do the if-do/else-do procedure block.