On Entity - on Push by Entity Attack (Event) — Lusk

Addon: Lusk · Category: Event · Since: 1.0.2

Syntax

[on] (entity attack push|push by [entity] attack)

Description

Fired when an entity is pushed by another entity's attack. The acceleration vector can be modified. If this event is cancelled, the entity will not get pushed.

Note: Some entities might trigger this multiple times on the same entity as multiple acceleration calculations are done.

Event Values

  • event-command sender
  • event-entity
  • event-entity type
  • event-knockback cause
  • event-location
  • event-vector
  • event-world

Examples

on entity attack push:

View source