How to store a number variable in a label with the new text system?

Started by MrChicken0 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to store a number variable in a label with the new text system?

Hello,

 

I am trying to make a multiplier for the damage of certain weapons that increases permanently when used. I have the main system of it complete, but when I try to display it in a overlay label on the player's screen, nothing works. If I store it as a string, I can't add it using math procedures therefore rendering it useless. Can anyone help me?

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can change a number…
Sun, 05/21/2023 - 17:00

You can change a number variable to a String using the "Create text with" and plug your variable getter to the input entry. TheTo get a number from a text, use the "Get number from text" block