LogicUsing Events
Entity Hit Player
Triggers when a non-player entity damages a player.
This event fires when a mob or other non-player entity damages a player.
Action Values
Player: The player who was damaged.Entity: The entity that dealt the damage.Damage: A Number value representing the damage dealt.
Event Configuration
- Entity Type: Filter by the type of the attacking entity.
- Cancel Event: If
true, the player will not take damage.
Use Cases
- Creating safe zones where mobs cannot hurt players.
- Applying a special effect (like poison) to the player when hit by a specific mob.
- Reducing incoming damage from certain enemy types.