problem displaying global var

Started by mangamaniacs2064 on

Topic category: Help with MCreator software

Active 3 years ago
Joined Jul 2017
Points:
780

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 27
problem displaying global var
Sun, 10/06/2019 - 23:58 (edited)

i made a gui.. i want to display some value: the global variable is test1. its value is set to 9... so i want o display  that value.

 

<VAR:test1>

 

doesnt work i only see:

 

<VAR:test1> as text....

Edited by mangamaniacs2064 on Sun, 10/06/2019 - 23:58
Active 3 years ago
Joined Jul 2017
Points:
780

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 27
okay i use a global variable…
Sun, 10/06/2019 - 23:40

okay i use a global variable session... but in a text field here what i tried :

 

<VAR:test1>

 

doesnt work i only see <VAR:test1>

 

 

Active 5 months ago
Joined Apr 2014
Points:
1223

User statistics:

  • Modifications: 2
  • Forum topics: 27
  • Wiki pages: 1
  • MCreator plugins: 0
  • Comments: 656
if you want to display it in…
Sun, 10/06/2019 - 23:58

if you want to display it in chat than use get value of provided nbt tag procedure block

 

Active 3 years ago
Joined Jul 2017
Points:
780

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 27
thanks i already know how to…
Mon, 10/07/2019 - 00:12

thanks i already know how to do that.. i want to diplsay it in the gui.

 

for example

a globalvariable named energy si set value to 0.

 

so i want to see in gui: energy:0

Active 3 years ago
Joined Jul 2017
Points:
780

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 27
okay i got it working in the…
Mon, 10/07/2019 - 00:21

okay i got it working in the GUI:

 

i used <VAR:test1>

 

Active 1 day ago
Joined Feb 2018
Points:
1990

User statistics:

  • Modifications: 1
  • Forum topics: 163
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 786
Set your global Variable to…
Sat, 02/20/2021 - 17:08

Set your global Variable to Global Map