Lightwalk Spell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".buff.LightwalkSpell"
Targeting:
This spell can only be cast by/on players.
Description:
A buff spell that lights up the player's path.
Buff Uses:
Buff spell Uses increment whenever the player moves.
Configuration:
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
block-type |
Block used as the light source. | String | light |
true |
allowed-types |
Material list to allow the light block to spawn. | String List | [air] |
false |
y-offset |
Offset of the light block along the y-axis. | Double | 0 |
true |
Example:
glowstone-walk:
spell-class: ".buff.LightwalkSpell"
cast-item: golden_boots
description: Light your path.
block-type: glowstone
y-offset: -1
allowed-types:
- grass_block
cost:
- mana 25
- torch 3
use-cost:
- torch 1
use-cost-interval: 25
str-cost: 25 mana and 3 torches, plus 1 torch occasionally
str-cast-self: Light appears at your feet.
str-fade: The light at your feet goes out.
light-walk:
spell-class: ".buff.LightwalkSpell"
block-type: light[level=15]
y-offset: 0
allowed-types: [air]