ReachSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".buff.ReachSpell"
[!IMPORTANT] Since
1.20.5and4.0 Beta 15you can instead use theblock_interaction_rangeandentity_interaction_rangeattributes (See attribute meta variables).
Targeting:
This spell can only be cast by/on players.
Description:
A buff spell that lets the player place and (instantly) destroy blocks.
Buff Uses:
Buff spell Uses increment whenever the player right clicks or left clicks.
Configuration:
- 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 | 
Example:
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.