How to conect variable to lable in GUI?

Started by OverBebra on

Topic category: Help with modding (Java Edition)

Last seen on 13:39, 7. Nov 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to conect variable to lable in GUI?

I saw a tutorial where in labal settings in "text" was choise to direct put variable in but i dont have this. What can i do to make it work?

Last seen on 11:45, 26. Jul 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
As of MCreator Version 2023…
Sun, 10/08/2023 - 10:06

As of MCreator Version 2023.1 the Token System for the GUI was replaced with the Procedure System.

 

If you want to add a variable for your label Component you need to create a Procedure with an return Text Block where you can use your variables there.

Last seen on 13:39, 7. Nov 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx man
Sun, 10/08/2023 - 10:54

thx man