Knockback (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.7

Syntax

(apply knockback to|knock[back]) %livingentities% [%direction%] [with (strength|force) %-number%]

Description

Apply the same velocity as a knockback to living entities in a direction. Mechanics such as knockback resistance will be factored in.

Examples

knockback player north
knock victim (vector from attacker to victim) with strength 10

View source