Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Get health

MasterOf13FPS

Administrator
Staff member
Administrator
MasterOf13FPS
Joined
Jul 11, 2020
Messages
0
Reaction score
26
Points
0
How can I get the health of the player I'm hitting?
 
If youre hitting the Player legit, you can use:

Entity en = mc.objectMouseOver.entityHit;

en.getHealth();

But remeber that you have to check if the entity isnt null
 
If youre hitting the Player legit, you can use:

Entity en = mc.objectMouseOver.entityHit;

en.getHealth();

But remeber that you have to check if the entity isnt null
You have to check if the entity is an actual player.
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top