Started by
Lanuraj
on
Topic category: Help with Minecraft modding (Java Edition)
how to make your own experience indicator for a mod and how to make a procedure in order for the experience to increase. How to make other indicators in general
so your saying you want an different xp bar that increases and decreases similar to xp?
yep
okay im in class currently but ill explain it later but for now watch this https://www.youtube.com/watch?v=nDoclprdfV0
since if you want it on screen overlays are important
okay so fist you would make an overlay with a varible, ... i forgot how to put the xp level number there but im sure you can find it online try youtube. you make a different overlay per level and have a varible for each one xp lev 1, xp lev2, xp lev 3 etc. xp bars are hard to show the exact xp so i would reccomend only showing the level and use the actual numbers to the varible
then once you have the varible set it to zero and set up a series of procedures depending on how you want the player to get xp. so if you want when enemy killed by player give 5 of the xp you set up on enity death set varible to varible +5. im not sure how you want the player to lose xp but all you have to do is set the trigger so if on attack with 20 damage sword set varible to varible -5.
finally you need to set a cap so if varible > 20000 (or whatever number) varible = 20000.
hope you understood that, the mcreator lingo is a little hard to decipher :)
if you want bars like healthh bars its mostly the same, just instead of levels do circles or whatever.
thx very much. i will try it
any other questions just ask