RotateSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.RotateSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
true |
location |
true |
entity_from_location |
false |
Description:
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:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
rotation-yaw |
Amount of degrees the target's yaw rotates in. | Float | 10 |
rotation-pitch |
Amount of degrees the target's pitch rotates in. | Float | 0 |
affect-pitch |
Enables the use of rotation-pitch. | Boolean | 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 . |
String | |
random |
The target rotates with a random amount of degrees. | Boolean | 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. |
Boolean | false |
Example:
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:
- variable Charm_Counter=60 denied
variable-mods-cast:
- Charm_Counter +1
Charm:
spell-class: ".targeted.RotateSpell"
face: caster