Jump to content

[1.7.10] edit Player Health


Fansana

Recommended Posts

Hello my fellow modders.

 

I am currently working on a Mod that should change the way the Combat system in Mincraft works.

For this purpose i want to edit the EntityPlayer class or at least i want to Change the Max health of a Player.

In the end i would like a full rpg system with different damage types like Normal, poison, lightning,  ...

 

But for now i would like to know how to replace the EntityPlayer class with my own wrapper class so that i have controll over getMaxHealth.

 

FML: 1.7.10-10.13.3.1355-1.7.10

 

I a new here so bew kind

Link to comment
Share on other sites

Thanks alot.

 

This really helped me but is there still a way i can replace or modify the way a player tanks Damage and such?

The only way i know is by wrapping the EntityPlayer, or chatching all the LivingHurtEvents.

I a new here so bew kind

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.