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 Aug 26, 2013For some reason my players cannot cast a spell with a stick. They have to manually type it in. How do I give them access to casting spells with a stick?
-
View User Profile
-
Send Message
Posted Aug 25, 2013if a spell replaces another with the "replaces" flag, you shouldnt immediatly be able to relearn the old spell. It fixes itself and removes it upon logout/reload but shouldnt it not even be possible?
-
View User Profile
-
Send Message
Posted Aug 25, 2013There are links on this page just above, in the section labeled Useful Links linking to all kinds of information on this plugin including spell lists and examples of those spells.
-
View User Profile
-
Send Message
Posted Aug 25, 2013@Redstoner_Pro
I've done that and it doesn't work. But I'll try again. Is there a list of all spells somewhere online?
-
View User Profile
-
Send Message
Posted Aug 25, 2013@KingOfHunting
magicspells.learn.spellname
-
View User Profile
-
Send Message
Posted Aug 25, 2013@Frogawesome
They can do the spell, it's just that they can't learn it on their on. I gave them the permission to cast all of them - magicspells.cast.* (even though I don't want them too, I'll explain it now) What I want is to give them some permission or something like that for them to only be able to LEARN the cast that I want them to.
-
View User Profile
-
Send Message
Posted Aug 25, 2013@KingOfHunting
did you add the magicspells.cast.<spell> permission? otherwise it does not work
-
View User Profile
-
Send Message
Posted Aug 24, 2013I have a small question.. So the spells are working great, but my users can only use them if I teach them the spell.
I gave them all the grant spells for the spells that they should know, and they can't teach themselves the spell because it says they don't know them even though I disabled that (So that you don't need to know the spell to teach it).
So my question is, how does it work? Which permission should they have for it to work properly?
Thanks for your help.
-
View User Profile
-
Send Message
Posted Aug 23, 2013Thanks centaurainArcher! I didn't know I was able to change the cost of a spell to experience, that's exactly what I was looking for!
-
View User Profile
-
Send Message
Posted Aug 21, 2013@BerryMe
You've accidentally named your potion effect spell "potipotion_trigger" when your passive spell is looking for something named "potion_trigger." Simple mistake! Keep in mind that the top line is what the plugin uses to identify spells, while the name line is what players use to identify spells.
@XxQ8LioNxX
On the configuration page, you'll find a few useful links, including the No Magic Zones page.
@InfernalVII Firstly, check to make sure your predefined scrolls are set up. Take a look at the Scroll Spell configuration page for that. If they're set up correctly, and still not working, then MobArena is probably causing the problem. Remember that there are two ways to assign classes their inventories in MobArena. The first way is to define the classes in the configuration(note that you can use this to give classes select permissions). The second way is to use class chests safely hidden beneath the class selection signs. This second method is great for granting items provided by plugins that don't like don't work with others.
@zedarean
In the mana configuration file, you'll find an option called show-mana-on-experience-bar, though I'm not certain this is what you're looking for. You could also change all of your spell costs to use experience or whole levels. You could even use bottles o' enchanting as sort of "mana potions!" Keep in mind that the amount of MC experience needed before you reach the next MC level increases when you get to a high enough level. You can see these numbers at the MC wiki.
-
View User Profile
-
Send Message
Posted Aug 20, 2013I have a set of spells but for some reason my passive spell won't work, can somebody explain what is wrong. http://pastebin.com/qky9ZgSx
-
View User Profile
-
Send Message
Posted Aug 20, 2013Hi i have a suggestion can u make a command So if an area ( Selected By WorldEdit) No one can cast some spells that the owner of the server choose ? Thanks
-
View User Profile
-
Send Message
Posted Aug 20, 2013i want to make a wizard class for my mobarena using scrolls for spells, but when i player selects the class he gets just papers instead of "scrolls", any way around this?
-
View User Profile
-
Send Message
Posted Aug 19, 2013Is it possible to set this plugin to completely hijack the XP bar, and/or disable automatic mana regeneration and use XP orbs (or some other method) to regenerate mana instead? If not, could these features possibly be implemented in a future update? McMMO makes the minecraft XP system fairly useless, it would be great to have the option of overriding it completely with this plugin.
-
View User Profile
-
Send Message
Posted Aug 19, 2013@Commando323
If you load the server do you get an error log then? if not try to make all spell names (not the name:) on the same space, that fixed it for me.
-
View User Profile
-
Send Message
Posted Aug 19, 2013@Vulture7
You set these parameters for each spell (i.e.: Spell Configuration from the Plugin Manual). Read though the manual.
-
View User Profile
-
Send Message
Posted Aug 18, 2013How can I allow users to cast spells with sticks?
@fuzyfeet
Well for them it just reacts as a normal stick(default) and they're only able to cast it through commands. Which config file is that found in though?
-
View User Profile
-
Send Message
Posted Aug 18, 2013@Vulture7
Same way they can cast any spell. They have to have the cast and learn permission nodes, be taught the spell (or granted it via the grant permission node) and the spell has to have the 'cast-item' set to stick (and 'can-cast-with-item' is true which is the default). If you want them to only be able to cast via a stick then make sure the spell's 'can-cast-by-command' is set to false.
-
View User Profile
-
Send Message
Posted Aug 18, 2013@Frogawesome
No it doesn't work, I want a console command to teach a spell to a player (not in his spellbook, but he have permission to cast it), not a player command. My players have : magicspells.learn.* AND magicspells.cast.* I just want a console command to teach a spell.
-
View User Profile
-
Send Message
Posted Aug 18, 2013How can I allow users to cast spells with sticks?