Jump to content

1.10.2 How to make mobs naturally regenerate health.


TheRPGAdventurer

Recommended Posts

2 minutes ago, TheRPGAdventurer said:

My mob just won't regenerate health unless thrown with potions, how do I make it naturally regenerating health?

Override the update/updateEntity method and give it some health back every so often.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Just now, TheRPGAdventurer said:

what class in minecraft do I have to look for examples?

No Entity besides the Player and the Wither naturally regen as far as I know, so try those.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Can make your own with the EntityLivingUpdate Event and simply just use the Entity.Heal() command

I have various timers and the like in my mod attached via Capabilities so I can say "This entity can only heal after not being damaged fro 10 seconds"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.