Extra Hearts

Started by VazzionZockt on

Topic category: Feature requests and ideas for MCreator

Active 5 years ago
Joined Oct 2017
Points:
693

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
Extra Hearts

Ive tried a lot to make my own armor that gives extra hearts and i think it would be a very nice feature that when you create an amor you can decide how many extra heart(s) each part gives.

I think thats a nice idea please think about it!

PS: I am from germany, sorry for that Bad english

 

 

Active 6 years ago
Joined Jun 2018
Points:
703

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
you can use normal commands…
Thu, 06/21/2018 - 09:03

you can use normal commands. Here is an example for a chestplate that gives you 2 extra hearts -

/give @p minecraft:diamond_chestplate 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:4,Operation:0,UUIDLeast:663922,UUIDMost:503556,Slot:"chest"}]}

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5490
There is a potion effect…
Thu, 06/21/2018 - 09:14

There is a potion effect called "health boost"

However if you use it with tick rate trigger it resets every tick. It can be fixed with global variables, however it will only work on singleplayer worlds

Active 6 years ago
Joined Jun 2015
Points:
719

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
Raol, can you tell me how to…
Fri, 03/01/2019 - 16:05

Raol, can you tell me how to do that?

Active 5 years ago
Joined Mar 2019
Points:
673

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
can you say how we can do…
Sun, 03/31/2019 - 02:22

can you say how we can do that?

Active 3 years ago
Joined May 2018
Points:
1339

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1072
Tell me what global variable…
Sun, 03/31/2019 - 06:48

Tell me what global variable we should use?

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5490
I'm sorry for my late reply,…
Sun, 03/31/2019 - 08:35

I'm sorry for my late reply, but I didn't see the comments.

Anyway, I think you can add this procedure to the armor:

If [get nbt variable of entity (armoreffect)] > 2400

    Do  

     Set nbt variable of entity armoreffect to 0

     Add potion effect health boost to provided entity

Set nbt variable of entity armoreffect to (nbt variable of entity armoreffect +1)

 

 

This way, the effect will be reset every 2 minutes. This means that if you drink a milk bucket you will get the effect back in a few time but also means your extra health will be removed every 2 minutes

 

(I am not sure if this works)

Active 3 years ago
Joined May 2018
Points:
1339

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1072
I want to know What variable…
Sun, 03/31/2019 - 10:49

I want to know What variable name, type, we should use

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5490
Just use the procedure…
Mon, 04/01/2019 - 09:48

Just use the procedure blocks in the comment I wrote. You don't need to create new variables if you use the "get/set nbt tag...". These blocks automatically create nbt "variables".

Active 3 years ago
Joined May 2018
Points:
1339

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1072
Ok... sorry I know nothing…
Mon, 04/01/2019 - 12:07

Ok... sorry

I know nothing about variables

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5490
Don't worry. We learn new…
Mon, 04/01/2019 - 12:57

Don't worry. We learn new things every day :)

Active 5 years ago
Joined Mar 2017
Points:
696

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
can i have a step by step…
Wed, 06/26/2019 - 07:05

can i have a step by step instruction, i'm really new at this

Active 3 years ago
Joined Nov 2020
Points:
579

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
is there any way for the…
Thu, 02/24/2022 - 19:58

is there any way for the hearts to not be reset or is that something that cannot be fixed