How do I make variables show in GUI text?

Started by Yayex on

Topic category: Help with modding (Java Edition)

Last seen on 22:06, 17. Jun 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make variables show in GUI text?

I'm creating this forum topic because I don't know how to make variables show in the text of a gui/overlay. If someone can help me with this, I will be very happy.

Last seen on 13:24, 6. Jun 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you have to make a variable,…
Wed, 08/09/2023 - 20:53

you have to make a variable, of string type, then you make a procedure with a string type return block, in the return block you have your variable, then go in your GUI, make a new text (or edit an existing one) and then change the Fixed value to the procedure name you have added. Hope that helps

Last seen on 22:06, 17. Jun 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you! I will try this…
Sun, 11/05/2023 - 01:21

Thank you! I will try this technique right away!

Last seen on 22:06, 17. Jun 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
IT WORKED! THANK YOU SO MUCH…
Sun, 11/05/2023 - 12:59

IT WORKED! THANK YOU SO MUCH! :D

Last seen on 22:06, 17. Jun 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Now I know how to use the …
Wed, 11/08/2023 - 12:40

Now I know how to use the "Return" function! :D