DamageSystems.FallDamageNPCs
Package: com.hypixel.hytale.server.core.modules.entity.damage
public static class DamageSystems.FallDamageNPCs extends EntityTickingSystem<EntityStore>Calculates and applies fall damage to non-player living entities. Part of the gather damage group. Only active when fall damage is enabled in the world config. Uses a quadratic curve: damage% = (0.58 * (yVelocity - minFallSpeed))^2 + 10. Rolling mitigates damage: full mitigation below maxFallSpeedRollFullMitigation, partial mitigation below maxFallSpeedToEngageRoll. Resets fall distance after landing.
Static Fields
Section titled “Static Fields”| Field | Type | Description |
|---|---|---|
CURVE_MODIFIER | float | Fall damage curve modifier: 0.58. |
CURVE_MULTIPLIER | float | Fall damage curve power: 2.0. |
MIN_DAMAGE | double | Minimum damage percentage: 10.0. |
Related Types
Section titled “Related Types”- DamageSystems — parent class
- DamageSystems.FallDamagePlayers — equivalent system for players
- DamageCause — uses
FALLcause
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.