- Joined
- Jul 11, 2020
- Messages
- 0
- Reaction score
- 26
- Points
- 0
How can I get the health of the player I'm hitting?
You have to check if the entity is an actual player.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
thanksYou have to check if the entity is an actual player.