Started by
MrCreeps
on
Topic category: Help with Minecraft modding (Java Edition)
For my mod, my armor gives the health boost effect but it doesn't regenerate. Does this issue have to do with the mcreator procedure not working or the Minecraft code?
health boost just increases the entity's max health, increasing actual health is a different process
I know but with the health boost effect it doesn't regenerate the extra health. It doesn't add to the health
then just add health by giving him regeneration effect for n seconds
if your health boost only apply with full set make that
the effect is infinite and if the player lost some armor it eliminate the effect. 2 if the player already have health boost make that it stop giving the effect only that
(sorry for bad english ,ins't my native language)
ins't a bug if the player receives again the effect is reset this happen with other effects like regeneration
How I do I make it so it only applies once
I don't know if you can see these images, but if you can and follow these blocks, then change only one thing in the programming system. I am 90% sure it should do what you want. (If you can't figure out which "==" should be changed (There is more than one) It is above the blue texts that is the command lines)
Does this one work.
Also after making a second armor with a similar procedure, I found out it bugs out the hole thing. Should be easily fixable if I could add a few ticks to the procedure after unequipping it, instead of using "on player tick"
Same problem...
I could not understand the solution and I have the same problem
erkamtb, there is a better way to do this now. Use DTM's Toolkit Attributes plugin since it adds Set Max Health.
Give the player the Regeneration effect plus look at this: https://minecraft.fandom.com/wiki/Health_Boost
it kinda damages the player, like it does the animation and it doesn't fill in the hearts