checkbox for trades

Started by doxo on Sat, 10/22/2022 - 18:05

Topic category: Help with modding (Java Edition)

Last seen on 18:05, 22. Oct 2022
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
checkbox for trades
Sat, 10/22/2022 - 18:05

Hello

Im trying to make a new GUI for trades and i wanted to do something like if the item and the number of item in box 1 is enough to trade for whats in box 2 then the checkbox gets checked and you can trade. The problem is i dont know how to do that can someone help me please?

Last seen on 13:56, 19. Dec 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't think you can do…
Sat, 10/22/2022 - 19:01

I don't think you can do this with a gui checkbox. But you can create 2 images, one for the checkbox frame and one for the check itself. Make the check only appear if the trade is possible.