public function attack($damage, EntityDamageEvent $source) { if ($source->isCancelled()) { return; } if ($source->getCause() == EntityDamageEvent::CAUSE_FALL) { $source->setCancelled(); return; } parent::attack($damage, $source); }