Offset Location Spell - MomoPewpew/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.OffsetLocationSpell"

Description:

A targeted spell that casts other targeted spells at an offset.

Configuration:

Option Description Default Value
relative-offset The offset to use relative to the player. 0,0,0
absolute-offset A hard offset related to the player's coordinates, not where they're looking. 0,0,0
forced-pitch Whether the targeted location should have a specific pitch. If unspecified, the pitch of the caster is used instead. Caster pitch
spell Sub-spell to cast at an offset. ""

Example:

Meteor:
    spell-class: ".TargetedMultiSpell"
    require-entity-target: false
    spells:
        - OffsetLocation
OffsetLocation:
    spell-class: ".targeted.OffsetLocationSpell"
    relative-offset: 0,10,0
    spell: MaterializeMagma
MaterializeMagma:
    spell-class: ".targeted.MaterializeSpell"
    block-type: magma_block
    falling: true
    apply-physics: true
    play-break-effect: true