Skip to content
JasperLorelai edited this page Jul 19, 2026 · 13 revisions

Source Code

spell-class: ".instant.PhaseSpell"

Description:

Allows the caster to teleport through phase-able blocks.

  • The spell relies on range to find the first block to phase through. It only skips air while looking for a block, meaning the caster could phase through passable blocks, such as plants, and cobweb.

  • The spell looks for an exit location, that is within max-distance. All blocks are phase-able, unless an explicit list of them is specified with phasable-blocks, or negated with non-phasable-blocks.

  • The exit location is only valid if the block and the block above is air.

                      --------------- UPDATE ----------
    

Allows the caster to teleport through phase-able blocks.

  • The spell relies on range to find the first block to phase through.
    • It only skips air while looking for a block, meaning the caster could phase through passable blocks, such as plants, and cobweb. A - If ignore-transparent-blocks is disabled, all Transparent blocks are ignored instead.
  • The spell looks for an exit location, that is within max-distance.
    • All blocks are phase-able, unless an explicit list of them is specified with phasable-blocks, or negated with non-phasable-blocks. A - Enabling phase-non-passable makes all non-passable blocks phase-able, so you can filter phase-able blocks easier.

Configuration:

Option Description Type Default Supports expressions
phasable-blocks A list of block types that can be phased through. If this option is empty or left out, all blocks can be phased through. String List false
non-phasable-blocks A list of block types that cannot be phased through. String List false
max-distance The maximum distance the caster can travel through solid matter to reach open air. This includes the distance leading up to the wall (the range). Integer 15 true
power-affects-max-distance Since 4.0 Beta 13. Boolean true true
str-cant-phase The message that appears if the spell fails. Rich Text "Unable to find a place to phase to." true

Example:

phase:
    spell-class: ".instant.PhaseSpell"
    name: phase
    spell-icon: diamond
    description: Phase through solid matter.
    cast-item: stick
    cooldown: 10
    range: 5
    max-distance: 15
    phasable-blocks: []
    cost:
        - mana 15
    str-cost: 15 mana
    str-cant-phase: Unable to find place to phase to.

Clone this wiki locally