OffsetLocationSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.OffsetLocationSpell"

targeting cast argument values:

Value Supported
entity false
location true
entity_from_location false

Description:

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

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Supports expressions
relative-offset The offset to use relative to the player. Vector true
absolute-offset A hard offset related to the player's coordinates, not where they're looking. Vector true
spell Sub-spell to cast at an offset. String false
yaw Since 4.0 Beta 15. Angle ~0
pitch Since 4.0 Beta 15. Angle ~0

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