Making a shop

Started by Zexmus on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Feb 2019
Points:
848

User statistics:

  • Modifications: 1
  • Forum topics: 33
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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...

Active 5 years ago
Joined Jul 2018
Points:
841

User statistics:

  • Modifications: 3
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 114
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)

Active 3 years ago
Joined Feb 2019
Points:
848

User statistics:

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

I only have 1 item in the shop

 

Active 5 years ago
Joined Jul 2018
Points:
841

User statistics:

  • Modifications: 3
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 114
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.