#How do I detect the type of damage whether it was due to a player or a fall?
1 messages · Page 1 of 1 (latest)
define the cause.
damageSource.cause
here's valid damage causes you can use.
and for detecting it was a player hitting, just define the damaging entity as player.
damageSource.damagingEntity.typeId == "minecraft:player
😘 ty so much man