Skip to content
JasperLorelai edited this page May 19, 2024 · 14 revisions

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:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports expressions
radius The radius that blocks get turned into glass. Integer 4 true
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. Boolean false true
transparent-types A list of blocks to turn into a new block. String List false
material Block to show the transparent-types as. String "barrier" true

Example:

stonevision:
    spell-class: ".buff.StonevisionSpell"
    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.
Clone this wiki locally