forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
ReachSpell
JasperLorelai edited this page Jan 18, 2025
·
3 revisions
spell-class: ".buff.ReachSpell"
Important
Since 1.20.5
and 4.0 Beta 15
you can instead use the block_interaction_range
and entity_interaction_range
attributes (See attribute meta variables).
This spell can only be cast by/on players.
A buff spell that lets the player place and (instantly) destroy blocks.
Buff spell Uses increment whenever the player right clicks or left clicks.
- This spell uses 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 |
---|---|---|---|---|
consume-blocks |
Defines whether to use blocks in the player's inventory as a cost for placement. | Boolean | true |
true |
drop-blocks |
Defines whether broken blocks should drop as items. | Boolean | true |
true |
disallowed-break-blocks |
Materials | String List | false |
|
disallowed-place-blocks |
Materials | String List | false |
reach:
spell-class: ".buff.ReachSpell"
description: Place and destroy blocks from far away.
cast-item: stick
cooldown: 120
duration: 60
range: 15
consume-blocks: true
drop-blocks: true
disallowed-break-blocks:
- air
- bedrock
disallowed-place-blocks:
- air
- bedrock
cost:
- mana 50
str-cost: 50 mana
str-cast-self: You gain the ability to manipulate the world around you.
str-fade: You can no longer manipulate the world around you.