MagicSpells API - V 1.0
made by Alexis__l
with Skript
Dependencies :
Languages :
- Español
- English
API Content :
- Set max mana
- Add mana
- Remove mana
- Set mana regen
- Get max mana
- Get mana
- Teach spell
- Remove spell
- Cast
- Force cast
- Set cooldown
- Get cooldown.
How to use the API :
First you have to download the skript and put it in the Scripts folder (/plugins/skript/scripts), then use /sk reload MagicSpells API - Skript
And o'go, the API will be installed in your Skripts folder. Now to use it you will need to use the functions found in that skript.
Examples
Set Max Mana:
command / set - max - mana < player > < integer >:
trigger :
setMaxMana ( arg 1 , arg 2 ) Add Mana :
command / add - mana < player > < integer >:
trigger :
if addMana ( arg 1 , arg 2 ) is true :
message "You added %arg 2% mana to %arg 1%"
else :
message "an error ocurried"
Remove Mana :
command / remove - mana < player > < integer >:
trigger :
if removeMana ( arg 1 , arg 2 ) is true :
message "you removed %arg 2% of mana from %player%"
else :
message "an error ocurried"
Set Mana Regen :
command / set - mana - regen < player > < integer >:
trigger :
setManaRegen ( arg 1 , arg 2 ) Get Max Mana :
command / get - max - mana [ < player > ] :
trigger :
if arg 1 is not set :
message "Your Max Mana is: %getMaxMana(player)%"
else :
message "%arg 1%'s max mana is %getMaxMana(arg 1)%" Get Mana :
command / get - mana < player >:
trigger :
if arg 1 is not set :
message "Your Actual Mana is: %getMana(player)%"
else :
message "%arg 1%'s actual mana is %getMana(arg 1)%" Teach Spell :
command / teach - spell < player > < text >:
trigger :
if teachSpell ( arg 1 , arg 2 ) is true :
message "%player% teach you the %arg 2% spell" to arg 1
else :
message "&cAn error ocurried" Remove Spell :
command / remove - spell < player > < text >:
trigger :
if arg 2 is "*" :
removeSpell ( arg 1 , arg 2 )
message "%player% remove all your spells from your spellbook" to arg 1
else :
if removeSpell ( arg 1 , arg 2 ) is true :
message "%player% remove %arg 2% spell from your spellbook" to arg 1
else :
message "an error ocurried" Cast :
command / ms - api - cast < player > < text >:
trigger :
if cast ( player, arg 2 ) is true :
message "you casted the %arg 2% spell" to arg 1
else :
message "an error ocurried" Force Cast :
command / force - cast < player > < text >:
trigger :
cast ( player, arg 2 )
message "you casted the %arg 2% spell" to arg 1
command / entity - cast < text >:
trigger :
cast ( targeted entity, arg 1 )
message "%targeted entity% cast the %arg 1% spell" Set Cooldown :
command / set - cooldown < player > < text > < integer >:
trigger :
setCooldown ( player, arg 2 , arg 3 )
message "You set the cooldown of %player% %arg 2%'s spell to %arg 3% seconds" Set Cooldown :
command / get - cooldown < player > < text >:
trigger :
message "The cooldown of %arg 2% spell is %getCooldown(player, arg 2)% seconds" Any suggestions will be welcome.
In case you find bugs report it to me.
My Discord User : alexis.__l#9027
leave 5 stars if u read this<3
Similar projects
Script →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta