How do I make the variable show how many levels you have right now in the GUI on version 2022.2?

Started by MrLololoshka29999 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make the variable show how many levels you have right now in the GUI on version 2022.2?

How do I make the variable show how many levels you have right now in the GUI on version 2022.2?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just make the Textbox in theā€¦
Wed, 09/27/2023 - 15:48

Just make the Textbox in the GUI a variable that references a procedure. In the procedure, get the current level of the event/target entity, (the one who's displaying the GUI), convert it to text format, (using the 'display number as text formatted as...' function), and return this as a string.