Stonevision Spell - MomoPewpew/MagicSpells GitHub Wiki

Source Code

spell-class: ".buff.StonevisionSpell"

Targeting:

This spell can only be cast by/on players.

Description:

A buff spell that turns nearby blocks into any other block, client-side only.

Buff Uses:

Buff spell Uses increment whenever the player moves.

Configuration:

Option Description Default Value
radius The radius that blocks get turned into glass. 4
unobfuscate If you are running a plugin that obfuscates ore, you will need to set this to true if you want the player to see the real ores when using this spell. You should leave this false to save system resources if you don't use such a plugin. false
transparent-types A list of blocks to turn into a new block. null
material Block to show the transparent-types as. barrier

Example:

stonevision:
    spell-class: ".buff.StonevisionSpell"
    name: stonevision
    spell-icon: stone
    description: See through stone.
    cast-item: book
    range: 4
    transparent-types:
        - stone
    unobfuscate: false
    material: barrier
    cooldown: 60
    duration: 30
    cost:
        - mana 50
        - stone 2
        - glass 2
    str-cost: 50 mana, 2 stone, and 2 glass
    str-cast-self: You can see through stone!
    str-fade: You can no longer see through stone.