How to conect variable to lable in GUI?

Started by OverBebra on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Oct 2023
Points:
159

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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?

Active 1 day ago
Joined Feb 2018
Points:
2015

User statistics:

  • Modifications: 1
  • Forum topics: 166
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 795
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.

Active 1 year ago
Joined Oct 2023
Points:
159

User statistics:

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

thx man