I want the player to take damage, but don't let his original health decrease, but the date. PHP: public function OnDamage(EntityDamageEvent $event){ $data = ["Health" => 500]; $damage = $event->getFinalDamage(); $count = $data["Health"] - $damage; $data["Health"] = $count; $event->setCancelled(); } But when stopping the damage, the player doesn't make animation or sound, how can I stop it without this happening?
And how do I do this for everything? I think I did something like that, even going to 0 damage, the heart lost (0.5) and knockback works?