DamageHit type
A hit on a player, before it lands: what players.on_damage hands a pack.
Fields 4
damageHit.amount: numberHalf hearts, before armour.
damageHit.cause: string"fall", "drown", "suffocate", "void", "lava", "fire", "cactus", "starve", "attack", "shot", "blast" or "magic".
damageHit.by: Player?The player who hit, or who shot the arrow.
damageHit.kind: string?The kind's name ("Skeleton") when a mob did it.