Skip to content
JasperLorelai edited this page Mar 21, 2022 · 12 revisions

RotateSpell

Source Code

Description:

Targeted Spell. Rotates the target's yaw or pitch by a specified amount. Other options allow the caster to make the target face them and vice versa.

Configuration Options:

Option Description Default Value
rotation-yaw Amount of degrees the target's yaw rotates in. 10
rotation-pitch Amount of degrees the target's pitch rotates in. 0
affect-pitch Enables the use of rotation-pitch. false
face Controls the relation between the target and the caster - where they face. Valid values: "caster" (target faces caster), "target" (caster faces their target), "away-from-caster" and "away-from-target". ""
random The target rotates with a random amount of degrees. false
mimic-direction Causes the caster/target to face in the same direction as the target/caster. This changes depending on whether you have face-target or face-caster enabled. false

Spell Default:

Rotate: 
    spell-class: ".targeted.RotateSpell"
    name: Rotate
    cast-item: stick
    cooldown: 15
    random: true

Charm Spell Example:

variables:
    Charm_Counter:
        type: player
        min: 0
        max: 60
        default: 0
        permanent: false
Charm_Cast:
    spell-class: ".MultiSpell"
    name: Charm
    cast-item: stick
    cooldown: 10
    spells:
        - Charm_Loop
Charm_Loop:
    spell-class: ".MultiSpell"
    spells:
        - Charm
        - DELAY 1
        - Charm_Loop
    modifiers:
        - variableequals Charm_Counter:60 denied
    variable-mods-cast:
        - Charm_Counter +1
Charm: 
    spell-class: ".targeted.RotateSpell"
    face-caster: true

Clone this wiki locally