How to add health

Started by Coolmanz7 on

Topic category: Help with modding (Java Edition)

Last seen on 02:49, 12. Apr 2024
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.

Last seen on 02:49, 12. Apr 2024
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.

Last seen on 12:37, 30. Mar 2024
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.

Last seen on 02:49, 12. Apr 2024
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.

Last seen on 07:36, 20. Apr 2023
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)

Last seen on 12:37, 30. Mar 2024
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.

Last seen on 02:49, 12. Apr 2024
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

Last seen on 02:49, 12. Apr 2024
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

Last seen on 12:37, 30. Mar 2024
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.

Last seen on 02:49, 12. Apr 2024
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?