ArmorSpell - TheComputerGeek2/MagicSpells GitHub Wiki
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 Uses:
Buff spell Uses increment whenever the entity receives damage while wearing the armor buff.
Configuration:
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
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. | Boolean | false |
true |
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. | Boolean | false |
true |
helmet |
The helmet to conjure to the player. Supports Magic Item String and Magic Item Config format. | String | false |
|
chestplate |
The chestplate to conjure to the player. | String | false |
|
leggings |
The leggings to conjure to the player. | String | false |
|
boots |
The boots to conjure to the player. | String | false |
|
str-has-armor |
String message to send if the caster already has armor on and replace is not set to true. | Rich Text | "You cannot cast this spell if you are wearing armor." |
true |
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}}'