Skip to content

Invisibility Spell

MomoPewpew edited this page Dec 9, 2023 · 11 revisions

Source Code

spell-class: ".buff.InvisibilitySpell"

Description:

A buff spell that makes the player completely invisible to all entities.

The buff spell doesn't have Uses.

Configuration:

Option Description Default Value
prevent-pickups Stop the caster from picking up any items while vanishing. true
mob-radius If any creature is within the radius and targets you, its target is set to null true

Example:

Vanish:
    spell-class: ".buff.InvisibilitySpell"
    permission-name: assassin
    cooldown: 12
    cost:
        - mana 25
    use-cost:
        - mana 5
    use-cost-interval: 1
    str-cost: 25 mana, plus 5 mana per second
    toggle: true
    prevent-pickups: true
    cancel-on-give-damage: true
    cancel-on-take-damage: true
    cancel-on-logout: true
    cancel-on-spell-cast: true
    str-cast-self: "You vanish!"
    str-cast-others: "%a vanishes!"
    str-fade: "&7You are visible again."
Clone this wiki locally