Skip to content

GripSpell

MomoPewpew edited this page Jul 28, 2023 · 7 revisions

Source Code

spell-class: ".targeted.GripSpell"

Description:

Targeted spell. Teleports the targeted entity to your location.

Configuration:

Option Description Default Value
y-offset Height offset of the teleport location. (overrides relative-offset) 0
location-offset Forward offset of the teleport location. (overrides relative-offset) 0
check-ground Defines whether the spell should check ground while gripping the target. true
relative-offset Relative offset of the teleport location. "1,1,0"
str-cant-grip Message sent to the caster when the target cannot be teleported. Empty

Example:

grip:
    spell-class: ".targeted.GripSpell"
    range: 100
    can-target: players,nonplayers
    relative-offset: 5,1,0
    str-cant-grip: "Cant teleport your target there!"

Clone this wiki locally