How to add health

Started by Coolmanz7 on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 months ago
Joined Aug 2021
Points:
583

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
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.

Active 2 months ago
Joined Aug 2021
Points:
583

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
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.

Active 3 months ago
Joined Jul 2021
Points:
698

User statistics:

  • Modifications: 3
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 127
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.

Active 2 months ago
Joined Aug 2021
Points:
583

User statistics:

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

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

Active 2 years ago
Joined Aug 2021
Points:
562

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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)

Active 3 months ago
Joined Jul 2021
Points:
698

User statistics:

  • Modifications: 3
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 127
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.

Active 2 months ago
Joined Aug 2021
Points:
583

User statistics:

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

I don't want to download anything

Active 2 months ago
Joined Aug 2021
Points:
583

User statistics:

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

how do I make a lifetime variable

Active 3 months ago
Joined Jul 2021
Points:
698

User statistics:

  • Modifications: 3
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 127
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.

Active 2 months ago
Joined Aug 2021
Points:
583

User statistics:

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

create new what?