Skip to content
SXRWahrheit edited this page Sep 29, 2018 · 26 revisions

Qualified Name: com.nisovin.magicspells.spells.instant.BeamSpell

Parent: InstantSpell

Source Code

Functionality: A ranged mechanic which shoots in a line that travels instantly to its end destination.

Configuration:

Option Description Default Value
spell The spell cast on hit. null(will error)
hit-radius Radius around projectile that will be collided with. 2
vertical-hit-radius Radius of vertical collision. 2
y-offset Starting position of the beam according to caster's location. 0
rotation Rotation of the beam over time and distance to the degree given. 0
beam-horiz-offset Starting position horizontally. 0
beam-vert-offset Starting position vertically. 0
max-distance Max distance it will travel before removal. 50
interval How often it will play the spell's listed effects in ticks. 5

Example:

LightBeam:
    spell-class: ".instant.BeamSpell"
    spell: LightBeamHit
    beam-width: 2
    y-offset: 0
    max-distance: 30
    interval: 1
Clone this wiki locally