How to add health

Started by Coolmanz7 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add health

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.

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried that but it only…
Tue, 09/07/2021 - 03:03

I tried that but it only worked once and would only give 4 hearts.

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So make a variable and it's…
Tue, 09/07/2021 - 04:26

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.

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried that and the…
Wed, 09/08/2021 - 14:17

I tried that and the variable resets every time you mine it.

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Download the plugin DTM's…
Wed, 09/08/2021 - 14:50

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)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make it a player Lifetime…
Wed, 09/08/2021 - 22:19

Make it a player Lifetime variable. I think that's where you might've gone wrong, if it keeps reseting.

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't want to download…
Wed, 09/08/2021 - 22:29

I don't want to download anything

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do I make a lifetime…
Wed, 09/08/2021 - 23:21

how do I make a lifetime variable

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On the options of create new…
Thu, 09/09/2021 - 01:45

On the options of create new, it's default is global_map. Change it to player lifetime.

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create new what?
Thu, 09/09/2021 - 22:23

create new what?