Global Variable appearing in GUI (SOLVED)

Started by Withie The Cryptid on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Global Variable appearing in GUI (SOLVED)
Thu, 01/18/2024 - 05:58 (edited)

I want to make a sort of non-physical credit system for my mod. I want to make it so you can click on certain blocks that will take you to a store where you can purchase items using those credits. I made the credits a global variable so even if the player exits one of these stores, they'll still have the same amount of credits when they come back. However, I also want to make it so you can actually see the amount of credit you have while you're in the store GUI. I don't know how to do this, so if someone could tell me how, that would be a great help! Or if there's an easier/better way to do this whole system, I'm also open to hearing that!

Edited by Withie The Cryptid on Thu, 01/18/2024 - 05:58
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind. I figured out…
Thu, 01/18/2024 - 05:58

Nevermind. I figured out that you need to use a return string and use some text blocks.