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 Feb 3, 2013Is there a way to set a maximum number of spells a player can buy/know? I think I read it somewhere in the manual, but I have long since forgotten it.
EDIT: Still can't find an option, but it would be a great feature if it is not already.
-
View User Profile
-
Send Message
Posted Jan 31, 2013@Phantasmus
Here's the instructions on how to copy spells: http://nisovin.com/magicspells/spellcopies
@Superboop
Right-click with fist only works if you're clicking on a block. Right-click in air does not work. I suspect McMMO has the same restrictions. If they do have it working, tell me exactly what the feature is and I'll look in to how they do it.
-
View User Profile
-
Send Message
Posted Jan 31, 2013@crore : Why do you have .targetted into the permission?
It should be magicspells.cast.volley
-
View User Profile
-
Send Message
Posted Jan 30, 2013@Phantasmus - No make another spell in the config.
Here is fireball and the stronger version of fireball, I named it pyroblast, both spells do not target players and do not have explosion damage (you can change that of course):
http://pastebin.com/t9gLTSV2
Now to grant the player the fireball spell and the pyroblast spell, you can go two routes - You can have a rank up system with permissions, and / or you can let the players learn the spells through spell shop signs.
For example - you could make a spellshop selling fireball for 10 diamonds and a spellshop selling pyroblast for 20 diamonds. If you wanted have even more fun with it and have another plug in like epic boss , you can have a boss drop a skeleton skull (something a player cannot get without creative mode) and make the player trade that in for a spell to make it more like finishing a quest to achieve a spell.
-
View User Profile
-
Send Message
Posted Jan 30, 2013Earlier I made a ticket about right clicking with fist being impossible.. but it turns out McMMO responds to right clicking with fist (triggering an ability). How does that work?
-
View User Profile
-
Send Message
Posted Jan 30, 2013@tarahere81 Im not sure how you do this. Do I have to type these extra lines (change to: damage-multiplier:5 & change to: cost: - mana 10) in the spells-regular.yml?
If so, then how do people use the modified version of the spell?
Ideally people should be able to modify their spell through a spellbook/tome on my server but I dont mind having to give them a permission for it. Please inform me how I should do this :)
-
View User Profile
-
Send Message
Posted Jan 30, 2013@Phantasmus Totally Phantasmus ! I have different versions of the same spell for pve and pvp :]
-
View User Profile
-
Send Message
Posted Jan 30, 2013@nisovin - Totally understood ! Thanks again for the quick response :] I turned them off for now.
-
View User Profile
-
Send Message
Posted Jan 30, 2013How do I give the command /c bind (Spell Name) to my default users?
(I use GroupManager)
-
View User Profile
-
Send Message
Posted Jan 30, 2013@Artlune ohh so I guess i cant just go around editing files to create new spells.
Is there any way for me to create new spells (I dont know Java) without too much effort? I dont want to complete entirely new spells, but I'd like to have a spell-rank system on my server, where higher-rank spells are essentially the same as the low-rank spells except their stats are changed. For example, I would like to have an upgraded version of the default Fireball spell that does 50% more damage and consumes 50% more Mana. Is this possible>
-
View User Profile
-
Send Message
Posted Jan 29, 2013@Zarkiel7
@tarahere81
The problems with the small fireball and those spell effects is caused by a change in the current CraftBukkit dev builds. This problem is not present in the beta build. Unfortunately, do to the nature of the change, I will not be supporting those dev builds until there is a beta build, because doing so would break support for the beta build. You'll either have to revert to the CB beta build, or not use those effects or the small fireball.
@crore
You need to use the spell header name, not the spell-class.
-
View User Profile
-
Send Message
Posted Jan 29, 2013when default-all-perms-false: true even with nodes like - magicspells.learn.targeted.VolleySpell - magicspells.cast.targeted.VolleySpell
i cant use volley.... am i doing something wrong?
-
View User Profile
-
Send Message
Posted Jan 29, 2013@Phantasmus
spell-class: ".targeted.ForcethrowSpell" doesn't exist. You have to use spell-class: ".targeted.ForcetossSpell" for your ForcethrowSpell.
Also, remove the original spell or place it in it's own file named examplespells.yml so it isn't read by the plugin.
-
View User Profile
-
Send Message
Posted Jan 29, 2013I am having an issue where spells that are taught are not retained. There is an error in console that I believe is related.
-
View User Profile
-
Send Message
Posted Jan 29, 2013Hi,
I'm using this plugin on my server and I've been trying to create a new spell by customizing an existing one , but with no success. I wonder whether it actually is possible to add in new spells yourself by just editing the spells-regular.yml?
I took the Forcetoss spell, and customized some of its effects a bit to create a spell called Forcethrow, but when I use /cast list (as an OP) Forcethrow doesnt appear in the list. Any idea how I could create new spells? (I dont know Java)
http://pastebin.com/sfxbFJPw
Oh and also, some other spells such as Forcebomb arent working either but you probably know this already.
-
View User Profile
-
Send Message
Posted Jan 29, 2013Hmm fireball isnt working with the little fireball anymore
http://pastebin.com/VsqxRMhQ
-
View User Profile
-
Send Message
Posted Jan 29, 2013Oh with 1.4.7 Bukkit And 2.1.3 Magic spells,
The hearts effects does not work properly. The cats do not despawn, the timer appears broken and an error is displayed.
I am guessing u are aware of the issue, someone pointed out below me that the sparkle effects have the same problem.
thats ok I just turned it off for now :D
Thanks again for such a great plug in ! I luv magicspells <3<3
-
View User Profile
-
Send Message
Posted Jan 28, 2013very strange ! it must have been some strange glitch with roar on my server then ! lol.
I guess I will ask my programmer to make a spell like that glitch haha ;)
thanks for the quick response ! Love your plug in !
-
View User Profile
-
Send Message
Posted Jan 28, 2013Nisovin, i want to report a problem, i have been having an issue, where when i kill a monster, it seems to spawn a witch nearby... I need it to stop obviously, and when i remove magicspells, no witches spawn. I have a passive spell that uses a potion effect, that may be the cause, and since most of my spells use potion effects, i cant just redo all of my spells again. Would you mind looking into it?
EDIT: I have done further testing, and found it is the Bluesparkle effect that spawns them, mind trying to fix it?
EDIT2: It also seems to be the Greensparkle too, but it just spawns normal villagers. i would suspect many more of these things..
-
View User Profile
-
Send Message
Posted Jan 28, 2013On my server players can only buy scrolls, but can`t learn spells.
But when they used smthg like freeze - they can cast only 2 snowballs, when op`s can cast 15+ snowballs from one scroll use. How i can fix it? Can`t find smthg in config
(sorry, my English is bad, i know)