How do i make a gui shop (SOLVED)

Started by Zexmus on Mon, 07/22/2019 - 21:27

Topic category: Help with modding (Java Edition)

Last seen on 20:08, 25. May 2020
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How do i make a gui shop (SOLVED)
Tue, 08/27/2019 - 21:47 (edited)

Im making a gui shop but not sure how to make it so you have to buy the item with more than 1 item

example:

I have 1 iron ingot in the shop selling it for 15 dirt.

 

How do  i make it so it detects the 15 dirt and subtracts it and gives you the iron ingot???

Edited by Zexmus on Tue, 08/27/2019 - 21:47
Last seen on 20:08, 25. May 2020
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
erm still kinda confused…
Tue, 08/27/2019 - 05:59

erm still kinda confused none of those videos really show me how to check if the provided entity has 15 dirt in the inventory

You said you want to give 15…
Tue, 08/27/2019 - 10:33

You said you want to give 15 dirt, but even the other way around, you can use get number of items in slot procedure blocks to achieve this.

Last seen on 20:08, 25. May 2020
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Ohhhhh, Okok I get it thanks…
Tue, 08/27/2019 - 21:47

Ohhhhh, Okok I get it thanks for the help.