Gills Spell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".buff.GillsSpell"
Targeting:
This spell can be cast by/on all living entities.
Description:
A buff spell that allows the entity to breathe underwater.
Buff Uses:
Buff spell Uses increment on tick-interval
.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
head-effect |
Defines whether or not the player should get a block placed on their head. | Boolean | true |
head-block |
Material name of the head block. | String | "glass" |
refill-air-bar |
Boolean | true |
Example:
gills:
spell-class: ".buff.GillsSpell"
description: Allows you to breathe underwater.
cast-item: book
head-effect: true
cooldown: 60
duration: 300
num-uses: 5
cost:
- mana 50
- sugar_cane 1
use-cost:
- sugar_cane 1
use-cost-interval: 1
str-cost: 50 mana and 1 sugar cane, plus 1 sugar cane few seconds
str-cast-self: You form gills on your neck!
str-fade: Your gills disappear.