forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
PhaseSpell
JasperLorelai edited this page Jul 19, 2026
·
13 revisions
spell-class: ".instant.PhaseSpell"Allows the caster to teleport through phase-able blocks.
-
The spell relies on
rangeto find the first block to phase through. It only skipsairwhile 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 withphasable-blocks, or negated withnon-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
rangeto find the first block to phase through.- It only skips
airwhile looking for a block, meaning the caster could phase through passable blocks, such as plants, and cobweb. A - Ifignore-transparent-blocksis disabled, all Transparent blocks are ignored instead.
- It only skips
- 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 withnon-phasable-blocks. A - Enablingphase-non-passablemakes all non-passable blocks phase-able, so you can filter phase-able blocks easier.
- All blocks are phase-able, unless an explicit list of them is specified with
- Range depends on general range options.
- Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
| 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 |
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.