PhaseSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".instant.PhaseSpell"
Description:
Targeted Spell. Phase through blocks.
Configuration:
- 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 |
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.