forked from TheComputerGeek2/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 3
HomingProjectileSpell
MomoPewpew edited this page Jul 28, 2023
·
10 revisions
spell-class: ".targeted.HomingProjectileSpell"
A targeted spell that shoots a homing missile made of a projectile.
Option | Description | Default Value |
---|---|---|
projectile-type |
The type of projectile. | arrow |
relative-offset |
Relative offset applied at the start location. | "0.5,0.5,0" |
target-relative-offset |
Relative offset applied at the target location. | "0.5,0.5,0" |
tick-interval |
How often to play the particle effect and check hitboxes (in ticks) | 1 |
spell-interval |
Used with the hit-air-during option, casts the spell-on-hit-air each defined ticks |
20 |
special-effect-interval |
How often to play the particle effects (in ticks) | 0 |
intermediate-special-effect-locations |
How often to play the particle effects between travelled locations (in ticks) | 0 |
velocity |
The velocity of the missile. | 1 |
hit-radius |
How far from the center of the missile to look for entities to hit. | 2 |
vertical-hit-radius |
How far vertically from the center of the missile to look for entities to hit. | 2 |
stop-on-modifier-fail |
Whether the missile should disappear if homing-modifiers will fail |
true |
max-duration |
The maximum duration this missile is allowed to exist. (in seconds) | 20 |
spell |
The default sub-spell to cast on hit. Must be a targeted spell that can hit the ground or an entity, depending on how the options above are set up. | "" |
spell-on-hit-air |
Sub-spell to cast when it reaches max distance. Must be a targeted spell that can hit the ground or an entity, depending on how the options above are set up. (requires spell-interval ) |
"" |
projectile-name |
Name of the projectile | "" |
spell-on-hit-ground |
Sub-spell to cast when the missile hits ground. Must be a targeted spell that can hit the ground, depending on how the options above are set up. | "" |
spell-on-modifier-fail |
Sub-spell to cast when the missile's modifier list fails. Must be a targeted spell that can hit the ground, depending on how the options above are set up. (requires homing-modifiers ) |
"" |
spell-after-duration |
Sub-spell to cast when the missile reaches its max-duration. Must be a targeted spell that can hit the ground, depending on how the options above are set up. | "" |
homing-modifiers |
Modifiers for the missile, if the modifier check won't pass, the missile will stop flying. | null |
Homing-Projectile:
spell-class: ".targeted.HomingProjectileSpell"
name: "Homing Projectile"
range: 100
cooldown: 10
cast-item: bone
permission-name: homing_missile
projectile-type: enderpearl
projectile-name: "&e&lEnderPearl"
velocity: 0.75
max-duration: 10
hit-radius: 2
vertical-hit-radius: 2
tick-interval: 1
special-effect-interval: 1
relative-offset: 1,1,0
target-relative-offset: 0,1,0
can-target: players,nonplayers
spell: DMG_HOMING_PROJECTILE
effects:
eff1:
position: target
effect: particles
height-offset: 1
particle-name: explosion_large
horiz-spread: 0.25
vert-spread: 0.25
speed: 0
count: 5
eff2:
position: special
effect: particles
particle-name: redstone
color: 000000
horiz-spread: 0.1
vert-spread: 0.1
count: 10
DMG_HOMING_PROJECTILE:
spell-class: ".targeted.PainSpell"
helper-spell: true
permission-name: homing_missile
damage: 4
ignore-armor: true
check-plugins: true
can-target: players,nonplayers
!!!This is not the official MagicSpells wiki!!!
This wiki was cloned from the official one to document the changes to the plugin that were made specifically for Dwarves vs Zombies 2023 and Lords of Minecraft 2