Overlay Procedure for Mana System

Started by Herobrine Cade on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Overlay Procedure for Mana System

I decided to add a mana system to my mod, and for my other mod where I used a reverse mana system(it goes down every tick, items that utilize it make it go up, and there are negative side effects if it goes too high), and for that I just made it display above the hotbar. However, this is not something that is sustainable if I want it in multiple mods, plus other mods and even vanilla Minecraft utilize this feature, so it's not great. I tried to make an overlay, but I can't figure out how to make it display anything besides a fixed text, and I don't want to have to create hundreds of fixed texts and display different ones based on the mana. I could also just create 20 or so different images and do the same thing, but again, this would still be painful and besides I don't even make my textures, I get my friend to do them(of course, I do give him credit) and I would hate to put him through the pain of doing this. Can anyone help me?
btw I'm using MCreator 2024.2, forge 1.20.1