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
Any ideas why my spells aren't charging reagents for players to cast them? I'm getting no errors in console. CB1560 PermissionsBukkit 1.2. Most everything in regards to the plugin is default. Version 1.3.2
Guys, little heads up - i reported a bug in spells related to the player interact error people are getting on current bukkit dev builds - it appears the issue occurs when falsebook (or perhaps craftbook too, not tested it on that) is also installed, specifically the events relating to reading bookcases and learning spells off bookcases seems to confuse something in the right mouse click with empty hand event - ( you get it anytime, ANY block not just bookcase is empty hand right clicked) they tidied (or maybe just supressed) it up in the latest falsebook build and craftbukkit build when used together. If you get the error, just update your craftbukkit and falsebook (or any plugin you use that listens on right hand click player interact (like spout?) events if you dont have falsebook) that seems to have nailed it finally for me. PS awsome fun plugin this !
Not seeing any errors with the latest CB 1531
Is there any plans of update on this one, or is it dead?
@xXZymosisXx
Getting this same error. Using Craftbukkit 1522
2011-11-13 09:43:31 [SEVERE] Could not pass event CUSTOM_EVENT to MagicSpells java.lang.ClassCastException
@Wilko343
Fixed it for ya! :D
How does this work alongside McMMO?
Excellent plugin! Also check out another of Nisovin's plugins called Bookworm! The customizability of Magicspells is beyond awesome. The ability to create spells from external plugins is one of the features that makes this plugin a permanent staple on my own private server!
It keeps on spamming this in my console, it literally won't stop saying this. Why's it doing that?:
2011-11-13 09:43:31 [SEVERE] Could not pass event CUSTOM_EVENT to MagicSpells java.lang.ClassCastException
I can't make mana to work. This is one of the spells in the config:
@Wilko343
Have you put mana costs on your spells?
Why does mana not go down when I use a spell? I have mana: enabled in the config.
EDIT: Found proper area to put this.
I understand this completely. Better than a MMO plugin! Maybe you can add a feature where the player is attacked by a spell too much they can learn it? It would be great to have that instead of teaching them the spell.
@Werzieq
I don't understand eighter... Larger explination would be helpful
Me no understand:
: Please change the spells/scroll/stack-by-data-var option from bj to bs.