How do I implement a variable into a GUI?

Started by I N E R T I A on

Topic category: Help with modding (Java Edition)

Last seen on 16:04, 29. Jul 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I implement a variable into a GUI?

I'm trying to make a leveling system that lets you expend your XP to level up. The higher level you are, the stronger you'll be due to things like permanent potion effects.

I have a custom slot-less GUI hooked up to a keybind that will let me see three variables: the player's level, XP, and XP needed for the next level. 

The only problem is that I cannot figure out how to input the actual variables into the textfield. I saw some comments about returning the variables via procedures, but nothing seems to work. Every time I write a procedure, the option in the textfield remains 'FIXED.'

How can I resolve this?

Last seen on 20:18, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Sat, 07/01/2023 - 19:40

Last seen on 16:04, 29. Jul 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks everyone! It's…
Mon, 07/03/2023 - 19:22

Thanks everyone! It's working now.