Started by
VazzionZockt
on
Topic category: Feature requests and ideas for MCreator
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
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"}]}
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
Raol, can you tell me how to do that?
can you say how we can do that?
Tell me what global variable we should use?
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)
I want to know What variable name, type, we should use
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".
Ok... sorry
I know nothing about variables
Don't worry. We learn new things every day :)
can i have a step by step instruction, i'm really new at this
is there any way for the hearts to not be reset or is that something that cannot be fixed