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 Mar 19, 2012I mentioned the negating permissions thing because I had some trouble forgetting a Granted spell even after removing the granted permission. I might have forgotten to update the permissions properly or something though.
Would it be possible to implement a per-spell "default-all-perms-false" type option, so even if general spells are available to all by default, I could make class-specific spells require the permission?
-
View User Profile
-
Send Message
Posted Mar 18, 2012@thejedibob
Ah, that error. You can fix that by setting show-mana-on-wood-tool to false, or you can update to the dev build of 2.6.
-
View User Profile
-
Send Message
Posted Mar 18, 2012Well yesterday we had to take off MagicSpells completely, as it was crashing both our 200 player servers. Here is the pastebin.
http://pastebin.com/sa1p4vfS
-
View User Profile
-
Send Message
Posted Mar 18, 2012nisovin, is there any way to prevent fireball, explode, explosivearrow and other area of effect spells from harming other players? I've tried just about everything! Thanks!
-
View User Profile
-
Send Message
Posted Mar 18, 2012@DeltaZX
There is no easy way to ungrant spells. Also, I don't think negating a grant permission will do anything at all. However, you can reset a player's spellbook by doing:
/cast forget player *
You can only have one spell per exploded file. However, you are able to organize them into folders if you wish.
-
View User Profile
-
Send Message
Posted Mar 18, 2012@thejedibob
I'm not aware of any large mana problems or crash exploits. Can you be specific?
-
View User Profile
-
Send Message
Posted Mar 18, 2012Almost 3 weeks since an update... any chance we can get a 1.2 version to fix the large mana problems with the plugins and crash exploits?
-
View User Profile
-
Send Message
Posted Mar 18, 2012Okay, I have two questions;
Is there an easy way to "Ungrant" spells? I'm trying to set up classes to give players spells in batches, but I want them to be removed when the player leaves the class. So far the only way I've found to remove a granted spell is to give myself a negative grant permission and then manually forget the spell, which is a bit of a hassle for large amounts of spells.
Next, if I explode the config file is it limited to one spell per file? And does it only read the exploded spells? Could I explode the config file and make individual files for each classes spells to better organize them?
-
View User Profile
-
Send Message
Posted Mar 17, 2012Can you add a spell option to charge or add money? This would be great for a thief based class for stealing money! Or for an alchemist who can conjure money.
-
View User Profile
-
Send Message
Posted Mar 16, 2012@electrikfuzz
Seems potions won't work. That's disappointing.
-
View User Profile
-
Send Message
Posted Mar 16, 2012@nisovin
[SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'cast' in plugin MagicSpells v2.6
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:461)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:818)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:778)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:761)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
Caused by: java.lang.IllegalArgumentException: Projectile not supported
at org.apache.commons.lang.Validate.notNull(Validate.java:203)
at org.bukkit.craftbukkit.entity.CraftLivingEntity.launchProjectile(CraftLivingEntity.java:278)
at com.nisovin.magicspells.spells.instant.ProjectileSpell.castSpell(ProjectileSpell.java:118)
at com.nisovin.magicspells.Spell.cast(Spell.java:314)
at com.nisovin.magicspells.MagicSpells.onCommand(MagicSpells.java:443)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 12 more
Running 2.6-031216 on build 2034.
-
View User Profile
-
Send Message
Posted Mar 16, 2012@electrikfuzz
It would be way more useful to have the rest of the error. Also, what version of MagicSpells are you running?
-
View User Profile
-
Send Message
Posted Mar 16, 2012I'm having trouble with using potion projectiles:
01:52 PM [SEVERE] Could not pass event PlayerAnimationEvent to MagicSpells
-
View User Profile
-
Send Message
Posted Mar 16, 2012Are you planning on adding charged-up Creeper as a graphical effect? That would be awesome.
-
View User Profile
-
Send Message
Posted Mar 16, 2012@ghostzero2001
http://nisovin.com/magicspells/bindspell
-
View User Profile
-
Send Message
Posted Mar 16, 2012Can you add all spells in the list when you right click with the stick? Cause I want to use the disarm and geyser spell but without typing it. Is there a way we can add all spells to the list when we right-click it?
-
View User Profile
-
Send Message
Posted Mar 13, 2012How do i make the scrolls that i make drop off of Mobs? im using Otherdrops.
-
View User Profile
-
Send Message
Posted Mar 13, 2012@nisovin
He used /cast bind on gold boots, and he wants to unbind them.
-
View User Profile
-
Send Message
Posted Mar 13, 2012@wizard__zorander
So change the cast-item for those spells. Have you read the config info and looked through the config file?
-
View User Profile
-
Send Message
Posted Mar 13, 2012@nisovin
Sorry, somehow carpet and firewalk are now bound to my boots, and some other spells are bound to my gold hoe. I use these items for repair skill with mcmmo because gold trains my repair skill faster, but everytime I wave my boots at the anvil it tries to cast carpet or firewalk. The same goes for my hoe, and it can be dangerous fighting mobs with my gold sword that knows all spells. I hope this helps you understand and is a little more clear. My apologies for the short previous comment.