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
Okay so if anyone could help me with spell copies that would be great. I wanted to make some spell copies, one of the biggest ones I wanted to make is a "moon" spell to make it night as opposed to the "sun" spell. I got rid of all of them for now, except this one because I really want to make this one available:
sun:
spell-class: ".channeled.SunSpell"
name: sun
description: Changes the time to morning.
channel-time: 10
req-participants: 1
req-percent: 35
max-distance: 20
time-to-set: 0
cost:
- mana 100
str-cost: Depletes all your mana.
str-too-far-away: You are too far away from the ritual.
str-start-channel: You begin to channel the sun spell.
str-moved: You have stopped channeling.
str-spell-success: You have successfully called the sun.
str-announce: The sun has suddenly appeared in the sky!
moon:
spell-class: ".channeled.SunSpell"
name: moon
description: Changes the time to night.
channel-time: 10
req-participants: 0
req-percent: 35
max-distance: 20
time-to-set: 14000
cost:
- mana 100
str-cost: Depletes all of your mana.
str-too-far-away: You are too far away from the ritual.
str-start-channel: You begin to channel the moon spell.
str-moved: You have stopped channeling.
str-spell-success: You have successfully called the moon.
str-announce: The moon has suddenly appeared in the sky!
The spacing is fine according to the site, I just don't know how to post stuff here. xD but the spell doesn't seem to be anywhere. I tried /cast moon and /cast help moon and it says I do not know a spell by that name. Other than that, External is the only spell that seems to not be working.
@Sk8Sanctified
Ops have those permission nodes by default. Are you a server op? If so, you'll need to explicitly negate those nodes.
Hmm I believe this is a bug. I once had nocooldown and noreagents granted with nodes but now I can't revert back to using cooldowns and reagents, I've deleted all areas where I had the permission. Made OPs no longer have perm even though I'm testing this non-op to see if that would fix, but no luck. Basicly my player once had the spells_god inhertance (found in the link) and I would like him to have spells_healer. Everything worked fine when I cast forget, except cooldowns and reagents.. I'm stuck with not needing them..
CraftBukkit - 1597
MagicSpells - 2.0
GroupManager - 1.7 of essentials 2.7.2
No error in console
This is the link to my config.yml of MagicSpells http://pastebin.com/pQXGXxF1
This is the link to my plugin.yml of MagicSpells http://pastebin.com/UQNgespf
This is the link to my groups and subgroup of my player http://pastebin.com/ECwQjgPG
This is the link to the inhertance nodes of my player http://pastebin.com/13BcR7FN
This is the link to the user file of my player http://pastebin.com/vGPUBTDu
Hopefully this will help make since to you as to why it's not working because I don't know what else to do.. It's been one of those days, hours of messing with a plugin.. No success..
Please and Thank you for the awesomeness.
Im having troubles configuring the temporary permissions node for an external spell... Could you make a quick guide or give me an example of a well defined command, please?
Thanks and awesome mod!
Yup it seems as if I have
permissions permanently *super sad face*
Anyone else reagents and cooldowns not working at all?? I even tried to give myself the commands
Thinking its enable somehow, hoping the - -node fixes, but didn't work. I made these false for OP command too, made it impossible to have these permissions yet it seems as if I do. Now, I know I allowed myself to have these permissions at one point and I remember cooldown and reagents working before I allowed this.. I know you need to cast forget on yourself to default back to granted spells, do these permissions work the same?? If so its broke.. because I'm sure I casted forget all spells on myself a few times after I made sure there was no way I could have access to the nocooldown and noreagents perms.. I've seriously looked over everything in the yml's.
Please help. Without cooldowns and use of reagents I can't really use this plugin as people will be waaayyy overpowered..
donated :)
So I am running into a problem that has stumped me. (go figure) I know it's something wrong in my permissions...well, I think it is anyway. I'm trying to make a spell-book case for a spell-copy called scorch (combust is the original spell) and I'm not able to. I can make other spell bookcases, just not any of the spell copy spells. Also, none of my external spells are showing up in my list. So I'm kindda pouring over the configs and permission files now for what I've missed. It's probably glaringly obvious. Mind taking a look? (I'll put the pastebins up in the forums)
@cynnicaldoubt
Lapis is 351:4
Brilliant mod! :D Cant wait to get it on my server :) only problem is i was hoping to get all the spells to run off lapis dye (crystals)? But i cant seem to use them as they have no proper data value :(
Anyone able to help?
@jisaacs1207
It isnt meant to be for heroes. :/
With heroes multitalent out, is there any chance this plugin will be updated to include more skills as well? Is this plugin going to fade out?
I would absolutely love to be able to disable the mana system all together, if possible. the /m command messes with TownyChat, and doesn't allow moderators to toggle their chat on and off.
Being able to switch off that command, and allow Towny to take it over, would be wonderful ^_^
I also found that deleting the external spell that came with the config fixed things... unfortunately they broke again after I was cycling through... now it wont work even after a restart. I submitted a ticket with my error log already. My config used to work, so I assume it's not that unless something has changed within the last few months?
Hey I found the problem. Reagents started working again when I deleted one of my external spells. Something must have been wrong with it.
No, the regular players are not ops. I have no idea which plugins would conflict. Falsebook maybe, since both have the ability to read and alter books and bookshelves? I'll try disabling and see. Other than that, I'll just keep messing with it. Thanks nisovin
@Dockozel
And none of your players are getting charged reagents? Are they all ops? Do you have any plugins that might be interfering? Honestly, I don't know how to help you, it works fine when I try it.
http://pastebin.com/3zUqPTaG
@Dockozel
I need to see your MagicSpells config and your PermissionsBukkit config. Use pastebin and give me the link.
No Sir, the only nodes anyone has are the cast and learn nodes for whichever spell.
@Dockozel
Do your players have the magicspells.noreagent node?