Need help with variables!

Started by koli_dx on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Sep 2021
Points:
547

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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!

Active 3 months ago
Joined Jul 2021
Points:
696

User statistics:

  • Modifications: 3
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 127
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.

Active 1 year ago
Joined Sep 2021
Points:
547

User statistics:

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

Thank you!

You are a real life saver!