forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 69
ReplaceSpell
JasperLorelai edited this page Mar 24, 2021
·
13 revisions
A targeted spell that replaces the targeted block.
Option | Description | Default Value |
---|---|---|
y-offset |
Modifies the start height location. | 0 |
radius-up |
Radius of the spell up. | 1 |
radius-down |
Radius of the spell down. | 1 |
radius-horiz |
Horizontal radius of the spell. | 1 |
duration |
Duration of the block replace. | 0 |
point-blank |
Should it target blocks at the caster's location? | false |
replace-random |
Should it replace blocks with random blocks from replace-with? | true |
power-affects-radius |
Should spell power affect radius? | false |
replace-blocks |
List of block types which can be replaced by other blocks. List "all" to allow all blocks. | null |
replace-blacklist |
List of block types which are irreplaceable. | null |
replace-with |
List of block types which should replace blocks from replace-blocks list. | null |
Example:
replace:
spell-class: ".targeted.ReplaceSpell"
point-blank: true
duration: 60
replace-blocks:
- grass_block
replace-with:
- stone