Skip to content

Armor Spell

MomoPewpew edited this page Dec 22, 2024 · 18 revisions

Source Code

spell-class: ".buff.ArmorSpell"

Targeting:

This spell can be cast by/on all living entities.

Description:

A buff spell that summons armor for the entity.

Buff spell Uses increment whenever the entity receives damage while wearing the armor buff.

Configuration:

Option Description Default Value
permanent Whether the armor is permanent, or temporary. If permanent, it will be removable, and if temporary, it will not be able to be taken off for the duration. false
replace Whether the conjured armor should replace any armor the caster currently has on. If this is not enabled, and there is ANY armor currently equipped, the spell will not be able to be cast. false
revert Whether the previous item should be returned to the caster after the buff expires. false
helmet The helmet to conjure to the player. Supports Magic Items and Cast-Items format. ""
chestplate The chestplate to conjure to the player. ""
leggings The leggings to conjure to the player. ""
boots The boots to conjure to the player. ""
offhand The offhand item to conjure to the player. ""
str-has-armor String message to send if the caster already has armor on and replace is not set to true. "You cannot cast this spell if you are wearing armor."

Example:

BloodyArmor:
    spell-class: ".buff.ArmorSpell"
    toggle: false
    replace: true
    permanent: false
    duration: 30
    helmet: leather_helmet{name:"&4Bloody Helmet", color:FF0000, enchants:{ blast_protection:2 }}
    chestplate: leather_chestplate{name:"&4Bloody Chestplate", color:FF0000, enchants:{ blast_protection:2 }}
    leggings: leather_leggings{name:"&4Bloody Leggings", color:FF0000, enchants:{ blast_protection:2 }}
    boots: leather_boots{name:"&4Bloody Boots", color:FF0000, enchants:{ blast_protection:2 }}
Clone this wiki locally