var dmg == 5//you can insert any number here
Entity.setHealth(Entity.getHealth() - dmg) // this is the function that deals damage to the Entity
61 yeah, anyway because ModPEs can't be used in servers is just in SP where it's still hacky, but whatever.59... That seems like a terribly hacky way to do that. I mean, there's no way for armor or potions to affect the results of directly setting an entity's health in any way.