Global Variables in Label Overlay

Started by 0uA1S on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Apr 2023
Points:
248

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Global Variables in Label Overlay

So I would like to have the label display the value of my variable in my overlay.

 

I tried multiple things like putting the label text as "<:myVar:>" or "{myVar}" but nothing worked.

The result is my overlay displaying the text I've written and not the actual value of my variable.

I noticed that when creating my Label the type can only be "Fixed" there is no dynamic type or anything else.

What did I do wrong and how can I make this work ?

Active 1 week ago
Joined Aug 2016
Points:
3304

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2927
Make a procedure returning…
Thu, 04/13/2023 - 00:39

Make a procedure returning your variable. Then, select it in the dropdown list (where "Fixed" is). Fixed is to write a specific text.

Active 2 years ago
Joined Apr 2023
Points:
248

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
It works perfectly thank you
Thu, 04/13/2023 - 13:24

It works perfectly thank you

Active 3 weeks ago
Joined Apr 2023
Points:
245

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
Can you make a screenshot…
Tue, 08/22/2023 - 10:39

Can you make a screenshot pls?