Started by
Coolmanz7
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make an ore that whenever you mine it your max health increases by a heart, but my health wont go up from that.
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make an ore that whenever you mine it your max health increases by a heart, but my health wont go up from that.
I tried that but it only worked once and would only give 4 hearts.
So make a variable and it's default is 0. When you mine that ore, there will be a procedure that changes the variable by 1, and then gives a health boost effect. But the level of the effect will be the variable number.
I tried that and the variable resets every time you mine it.
Download the plugin DTM's Toolkit and add it to your MCreator software. Create a global variable for additionalMaxHealth. On block mined my player -> Create a procedure selecting the Set MaxHealth block from the DTM's Toolkit pluging and do:
Set additionalMaxHealth to additionalMaxHealth + additionalMaxHealth
Set MaxHealth to additionalMaxHealth + 20 (default 10 hearts)
Make it a player Lifetime variable. I think that's where you might've gone wrong, if it keeps reseting.
I don't want to download anything
how do I make a lifetime variable
On the options of create new, it's default is global_map. Change it to player lifetime.
create new what?