How to check from a number of items in an entity's GUI

Started by AidenR0 on

Topic category: Help with MCreator software

Last seen on 11:52, 29. Sep 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check from a number of items in an entity's GUI

Hey there!

So I've been trying to create a mob which you can trade with, everything is working flawlessly, from the actual trading to the GUI. With only one exception; You see, one of the trades take 5 items instead of 1 to get a set number of items in return. This is working, at least the part where you get the set number of items in return. What is not working is checking for the number of items you need to trade with. (Basically, I want the trade to be 5 Copper coins to 15 Lepron (a new stone type))

For some reason this isn't exactly working, I tried adding the itemstack procedures, but they add a new dependency which the GUI trade button (which you click to get the traded item) won't accept. This is my procedure:
procedure

Am I doing something wrong here?

Thank you

Last seen on 11:52, 29. Sep 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
FIXED! Sorry for the thread,…
Wed, 08/11/2021 - 20:02

FIXED!

Sorry for the thread, I realized that instead of the = variable, I should've added >_ (equal or bigger) 

If this trading set of procedures work, I'll do a tutorial on it when I release the new update for my mod.