DamageSystems.CanBreathe
Package: com.hypixel.hytale.server.core.modules.entity.damage
public static class DamageSystems.CanBreathe extends DelayedEntitySystem<EntityStore>A ticking system in the gather damage group that inflicts drowning or suffocation damage on living entities that cannot breathe. Ticks every 1.0 seconds. Checks the entity’s oxygen stat: if at minimum and the entity cannot breathe at its breathing height, deals 10 damage (DROWNING) if in fluid, or 20 damage (SUFFOCATION) if in a solid block.
Static Fields
Section titled “Static Fields”| Field | Type | Description |
|---|---|---|
DAMAGE_AMOUNT_DROWNING | float | Drowning damage per tick: 10.0. |
DAMAGE_AMOUNT_SUFFOCATION | float | Suffocation damage per tick: 20.0. |
Related Types
Section titled “Related Types”- DamageSystems — parent class
- DamageCause — uses
DROWNINGandSUFFOCATIONcauses - Damage — the damage events generated
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.