forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
Lightwalk Spell
JasperLorelai edited this page May 19, 2024
·
17 revisions
spell-class: ".buff.LightwalkSpell"
This spell can only be cast by/on players.
A buff spell that lights up the player's path.
Buff spell Uses increment whenever the player moves.
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 |
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]