How do I create a overlay text label displaying a variable?

Started by caio on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I create a overlay text label displaying a variable?

How do I create a overlay text label displaying a variable?

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you want to make a text…
Sat, 08/12/2023 - 21:53

if you want to make a text getting displayed, you have to make a new variable (global if you need to be able to change it from other things, global is recommended) and then make a new procedure with a text type return block (in flow control, the "return" block that is. at the bottom of the return blocks, it is light green) and then, inside this return block, you put your variable.

however, if you want to make a variable display a number (like a cash counter), it's the exact same thing, except that actually, when setting your text to the number, you need to put the "format number" block, and then put inside the format nmber block the number variable you want to display in it, and then, where there are "#", you just put more of them, i hope i explained well enough and that it will help you, as i had the same issues as you