Skip to content

DamageCause

Namespace Mc.Scripting · Kind enum

public enum DamageCause : byte

Why an entity took damage (derived from the vanilla damage type).

Name Value Description
Other 0 Any damage type without a dedicated cause.
Contact 1 Cactus, stalagmite, sweet berry bush.
EntityAttack 2 Melee attack by an entity.
Projectile 3 Arrow, trident, fireball, thrown item, spit, wind charge …
Suffocation 4 Inside a wall.
Fall 5 Fall damage.
Fire 6 Standing in fire.
FireTick 7 Burning.
Lava 8 Lava.
Drowning 9 Out of air.
Explosion 10 An explosion.
Void 11 Below the world.
Lightning 12 Lightning bolt.
Starvation 13 Starvation.
Magic 14 Magic, poison, instant damage.
Wither 15 The wither effect or a wither.
FallingBlock 16 A falling block or anvil.
Thorns 17 Thorns enchantment.
FlyIntoWall 18 Elytra kinetic damage.
HotFloor 19 Magma block.
Cramming 20 Entity cramming.
Dryout 21 Water animals out of water.
Freeze 22 Powder snow.
Kill 23 /kill or the generic kill damage.
Border 24 Outside the world border.
Campfire 25 Campfire.
MaceSmash 26 Mace smash attack.
Custom 27 Damage dealt by a plugin.