본문 바로가기
마인크래프트/플러그인

매직스펠 Instant,Target,Buff Option

by ENJCAT 2020. 5. 18.

Instant Spell Configuration:

can-cast-with-item Defines if this spell is castable with items. Boolean true
can-cast-by-command Defines if this spell is castable with the /cast (spell) command. Boolean true

 

 

Targeted Spell Configuration:

always-activate Defines if the spell's reagents will be charged and the cooldown activated even if the spell fails to find a valid target. Boolean false
play-fizzle-sound Defines if the spell should play the fire extinguish sound if the spell fails to find a valid target. Boolean false
target-self Forces the targeting handler to target the caster instead. Boolean false
spell-on-fail Spell to cast if the spell fails to cast (e.g. if it fails to find a target). String null
str-cast-target String to send to the target if the target is a player. String null
str-no-target String to send to the caster if the target handler failed to find a valid target. String null

 

 

Buff Spell Configuration:

can-cast-with-item Defines if this spell is castable with items. Boolean true
can-cast-by-command Defines if this spell is castable with the /cast (spell) command. Boolean true
targeted Defines if this spell should become a targeted spell (it will accept Targeted Spell Configuration options). For versions below MS 4.0 this option will not be able to target entities other than players. Boolean false
toggle Defines whether the spell can be deactivated while it's still active. It will only apply cooldown when its duration fades. Boolean true
use-cost A string list of reagent costs required for the buff to be active. The cost will be charged on the interval defined with the option below. The list of cost reagents includes: health, mana, hunger, experience, levels, durability, money (if Valut plugin is present), and Item Type. All items on this list require quantity seperated from the reagent by a space character except Item Type which will assume the quantity of 1 if not specified. String List null
use-cost-interval Interval defined in ticks for the use-cost option. Integer 0
num-uses Number of uses before the buff spell expires. Integer 0
duration Buff spell duration specified in seconds before the buff expires. Set to 0 do define infinite duration. Float 0
power-affects-duration Defines whether Spell Power can affect the duration of the spell. Boolean true
cancel-on-give-damage Defines whether the buff spell will cancel if the caster deals damage to another entity. Boolean false
cancel-on-take-damage Defines whether the buff spell will cancel if the caster recieves damage. Boolean false
cancel-on-death Defines whether the buff spell will cancel if the caster dies. Boolean false
cancel-on-teleport Defines whether the buff spell will cancel if the server emits a teleport event for the caster. Boolean false
cancel-on-change-world Defines whether the buff spell will cancel if the caster switches worlds. Boolean false
cancel-on-spell-cast Defines whether the buff spell will cancel if the caster casts a spell. Boolean false
cancel-on-logout Defines whether the buff spell will cancel if the caster leaves the game. Boolean false
spell-on-use-increment Spell that will be casted whenever the buff spell has been used. This spell will be casted once even if num-uses is set to 0. String null
spell-on-cost Spell that will be casted whenever the buff spell tries to charge cost. String null