MagicSpells
Note: MagicSpells is being maintained on this GitHub fork and you can find help at the official Discord.
Info
MagicSpells is a Minecraft Bukkit plugin that creates magic spells your players can use. Its main purpose is to give your players access to certain abilities that you might not want to give them unlimited access to. However, instead of just giving them access to boring commands, they instead get more interesting spells. Each spell can be configured in many ways:
- Reagent costs (the cost of using the spell, including items, mana, health, hunger, experience, and item durability)
- Cooldowns (the amount of time a player must wait between uses)
- Durations (how long certain effects last)
- Ranges (how far away spells can be used from their target)
- Many more options, depending on the spell
Spells can be cast by using the /cast command, swinging a configurable wand item, or both. It's also possible to have them triggered from other actions the player may take. It's all customizable.
Usage
Before a player can cast a spell, they must already know it. There are several ways a player can learn a spell:
- Taught with the teach spell
- Learned from a spellbook
- Learned from a tome
- Gained from a grant permission
- Purchased from a shop
- Being a server op (they know all spells) For example, a server op can teach Bob the blink spell by typing: ''/cast teach bob blink''.
Once a spell is learned, it can be cast either by using the ''/cast'' command or by using a wand item. Now that Bob knows the blink spell, he can either cast it by command, by typing ''/cast blink'', or he can cast it with a wand item. To select the spell, he holds the wand in his hand and right clicks. Right clicking will cycle through any spells assigned to the item he is holding. When he has the one he wants, he left clicks to cast.
If Bob does not have the required reagents for the spell, or if he has cast it recently and it is still on cooldown, he will not be able to cast the spell and will instead receive an error message.
If mana is enabled, a player can use the ''/mana'' command to see how much mana they currently have. Mana can also be configured so it is displayed on the experience bar.
Useful Links
Videos
-
View User Profile
-
Send Message
Posted Apr 2, 2013@IISpeedyCamelII
Think you're looking for: rightclickblocktype passive spell
http://nisovin.com/magicspells/passivespell
For the xp bar I'm not really sure.
The settings you have should be correct and should be working.
I have had some issues in the past aswell with the mana bar but i don't have it anymore.
It got randomly fixed so really no idea about this might try contact nisovin on irc.
@Iscerming
http://nisovin.com/magicspells/developmentbuilds
@BerryMe
calculate-drops-individually: false
This will make it so the percentages are calculated all together instead of separate for each item. example:
-
View User Profile
-
Send Message
Posted Apr 1, 2013Is it possible for a conjure spell to have a chance of spawning 3 items but only spawning one?
For example, If I can use a netherstar to conjure and it will either give me a diamond,emerald, or a stick but only 1. But it is randomized
-
View User Profile
-
Send Message
Posted Apr 1, 2013@Furo0179
Hi, just wondering if you could tell me how you got MagicSpells working on the snapshot, it won't work for me. Thanks
-
View User Profile
-
Send Message
Posted Apr 1, 2013Ive solved some of it now. I still need help with if there is a way to cast a spell when you click on a placed item on the ground?
Also I use a spell with cast-time: 20 and it works fine but I also have use-exp-bar-as-cast-time-bar: true but it doesnt work, these are pretty much default but it doesnt work http://pastebin.com/5szpCX8s, it seems that nothing on the xp bar is working for me and neither do effects.
@Dinastya And I did what you said with mana but it just regens in the chat and doesnt update on the xp bar. http://pastebin.com/RRVd79J2 Also when I conjure a bow I have it set to conjure it as power level 4 items: - 261;38-4 but in game its only level 1
-
View User Profile
-
Send Message
Posted Mar 31, 2013Has anyone gotten the magic shops to work on 1.5.I have working magic spells using the dev build but cant seem to get the shops to work.
-
View User Profile
-
Send Message
Posted Mar 31, 2013When I left click my enderchest (un-oped) nothing happens but if I type /cast list I then can use it as normal. Also is there anyway adding an enchanted weapon to the enderchest because it doesnt seam im able to add an enchantment to a conjure spell.
Also is there a way to cast a spell when you click on a placed item on the ground?
@Dinastya
And I did what you said with mana but it just regens in the chat and doesnt update on the xp bar. http://pastebin.com/RRVd79J2
Thanks
@welknair @Furo0179
There is a dev build out for 1.5.1 but im waiting for a stable version of it to come out, im just currently using 1.4.7 build as it works fine and is stable. :P
-
View User Profile
-
Send Message
Posted Mar 31, 2013Is the current version compatible with 1.5.1? If not, is an update on the way? I run an RP server, and we very much wish to use MagicSpells to handle our Mages and Priests :D
-
View User Profile
-
Send Message
Posted Mar 30, 2013@BeastGuy_28
Does anyone have the rightclickblocktype trigger working? If so, what versions of craftbukkit, magicspells, and minecraft do you have? I Really need this, so if you have it working please show me.
-
View User Profile
-
Send Message
Posted Mar 30, 2013@IISpeedyCamelII
No but conjure spell can add items to enderchest.
add-to-ender-chest: true
So you could set a multi spell that also adds items to chest when they start.
-
View User Profile
-
Send Message
Posted Mar 30, 2013Is there anyway to spawn the enderchest with items in it?
-
View User Profile
-
Send Message
Posted Mar 29, 2013@Dinastya
Thanks check my PM?
-
View User Profile
-
Send Message
Posted Mar 29, 2013@IISpeedyCamelII
Yes, Each spell can have that setting.
So if you want one with left you add the cast-with-left-click etc.
@IISpeedyCamelII
/mana won't update the xp bar and this isn't possible.
There are 2 things you can do is show mana when it regens.
And show mana when it is used by a spell or something.
But other then that it's not possible.
What you could do is write a spell that doesn't do anything but will use 1 mana to update it on the mana bar.
For the enderchest:
spell-icon: Back_Pack
This isn't a valid icon of course.
Icons need to be valid minecraft items.
And when you don't want a description just remove the line instead of leaving it blank.
-
View User Profile
-
Send Message
Posted Mar 29, 2013@Dinastya
I get the same error, upgraded my server, and magic spells to 1.5, but I still get the error. (I fixed that double space thing).
Does anyone have this working so i can see it?
-
View User Profile
-
Send Message
Posted Mar 29, 2013@Dinastya
Ok thats fine can you check my latest question :P and do you put them on each spell?
-
View User Profile
-
Send Message
Posted Mar 29, 2013I need help asap with this, when I type /mana, mana doesnt appear on my ex bar this is my mana code
http://pastebin.com/nzfV5uMp
also im trying to use the enderchest spell
http://pastebin.com/Njd54S6d
it doesnt work, any reason why?
please help
-
View User Profile
-
Send Message
Posted Mar 29, 2013@IISpeedyCamelII
cast-with-left-click: true/false
cast-with-right-click: true/false
And not adding you on skype sorry.
-
View User Profile
-
Send Message
Posted Mar 29, 2013@Sirapyro
Alright thanks, ill keep it in mind
-
View User Profile
-
Send Message
Posted Mar 29, 2013@Dinastya
Okay thanks, is it possible to have some spells cast with left click and some with right click?
can you add me on skype or something?
-
View User Profile
-
Send Message
Posted Mar 29, 2013@IISpeedyCamelII
You can use the setting always-granted and set it to true.
Then everyone get this granted.
I never use this though i prefer to do it with permissions.
So i have a group newcomer that grants players certain spells they need.
And then give the groups that can use the spell the cast permissions.
@Techy4198
Instead of saying it doesn't work you should give more information.
Nobody can help you if you just say it does not work.
You should post your spell in a pastebin and be more specific what you do and what doesn't work etc.
@Wazzupp11
Great :)
@BeastGuy_28
I think your server is 1.5? And the version you use is 1.4.
You also have 2 spaces in the spell not sure how niso coded it but in some cases it matters.
Then it reads the second space as argument what makes it a empty right click what could cause this error.
And if that don't work try set it to like dirt and see what happens.
-
View User Profile
-
Send Message
Posted Mar 29, 2013@dannyjayes1
Yes, read here.