Need help with variables!

Started by koli_dx on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with variables!

So I am making a mod with a costum XP system and would be pretty nice to see the XP counter in the GUI/Overlay, is there a way to show the Player persistent Variable somehow? Thanks in advance!

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, there is. For your…
Mon, 09/19/2022 - 07:23

Yeah, there is. For your overlay, insert text and make it:

<VAR:integer:VariableName>

If you want, you could do stuff like:

 

Current Xp: <VAR:integer:VariableName>

Or something like that. Replace VariableName with the name of your player persistent variable, it should work.

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you! You are a real…
Mon, 09/19/2022 - 09:14

Thank you!

You are a real life saver!