forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
Drainlife Spell
JasperLorelai edited this page May 19, 2024
·
14 revisions
spell-class: ".targeted.DrainlifeSpell"
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
-
delayed
- Plays the effect at the caster's location every animation tick. -
special
- Plays the effect at the caster's location at the current location of the animation every tick.
This spell is used to drain resources from the target.
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports Expressions |
---|---|---|---|---|
take-type |
Valid values: health , mana , hunger , experience . |
String | "health" |
true |
give-type |
Defines what should be given to the caster. | String | "health" |
true |
spell-damage-type |
This is a custom damage type which can be used together with the resist spell. It's very optional. | String | true |
|
take-amt |
Amount to take from the target. | Float | 2 |
true |
give-amt |
The amount to give to the caster. | Float | 2 |
true |
power-affects-amount |
Since 4.0 Beta 13. | Boolean | true |
true |
animation-speed |
The speed of the spell effect. A smaller number is faster. | Integer | 2 |
true |
instant |
Defines if the caster should receive the effect instantly or wait until the animation brings them to the caster. | Boolean | true |
true |
ignore-armor |
Ignores armor. | Boolean | true |
true |
check-plugins |
Whether to attempt to check other plugins for PvP restrictions. | Boolean | true |
true |
show-spell-effect |
Whether to show the animated smoke moving from target to caster. | Boolean | true |
true |
avoid-damage-modification |
Whether the damage of this spell shouldn't be modified by any spells. | Boolean | true |
true |
spell-on-animation |
Sub-spell to cast when the animation reaches the caster. | String | false |
|
damage-type |
Defines the damage cause of this spell. | String | "entity_attack" |
true |
drainlife:
spell-class: ".targeted.DrainlifeSpell"
name: drainlife
spell-icon: ghast_tear
description: Drain life from your enemy and give it to you.
cast-item: blaze_rod
cooldown: 5
range: 15
take-type: health
take-amt: 2
give-type: health
give-amt: 2
animation-speed: 2
ignore-armor: false
instant: false
can-target: players,monsters
check-plugins: true
cost:
- mana 10
str-cost: 10 mana
str-cast-self: You drain life from your enemy.
str-no-target: No target found.
effects:
eff1:
position: special
effect: particles
height-offset: 1
particle-name: redstone
color: FF0000
horiz-spread: 0.25
vert-spread: 0.25
count: 10