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
With the new updates (2.4-2.4.1), targeted spells seem to be broken. Even with the default config. It'll say no target found and everything, but when I actually target them it just says nothing and doesn't cast the spell on them.
it had been really cool if you hooked this plugin to heroes
@nisovin
Thank you!~
@SolomonGajda
Cast it again?
Love this plug-in. I have one simple question. How do I, as an admin. cancel a buff spell I put on myself. I put the lightwalk spell on myself, and I can't get it off. I logged out and back in. I tried teleporting. It follows me everywhere. Any help on how to manually disable this would be appreciated!
ok so the difference is that you either need or dont need the spell copies at the bottum with the new spell loading?
nisovin ...great update thanks...but now MA and MS aren't playing well together..
I guess you changed a few things around that might have affected MA...not sure who to turn to to prod to fix it.
p.s. im using the bleeding edge build of MA
@mrdeadlock
For shops? I have not done this yet.
@GarretSidzaka
It depends on if you're using the new spell loading or not. The new spell loading does not require the section at the end of the config.
sorry about the spicy post. my bukkit jibe is about having to deal with about 30 updates and 30 developers.
anyway i think ive solved the permission problem, but all my custom spells did not show up.
does the custom spell copies still need the spell compies section at the end of the config
I havent seen a reply, did I miss it, about a possible XP as payment for spells?
@josip1
Don't give them the bind spell, and set can-cast-by-command to false for each spell.
@GarretSidzaka
This is a great example of terrible feedback. Also, don't blame Bukkit for your own incompetence.
@nisovin
How would I make it so that users can't use /cast and /cast bind
But can use the item that its auto bound to?
<<reply 553742="">>
i'm positive, no one on our server has that permission node. I stood 20 blocks away and even at point blank range and it won't cast
EDIT
here's a head-scratcher, the spell works correctly on my test server but not on the main server o.O exact same spell
EDIT 2
The spell isn't fully running, it doesn't run the "execute later" commands at all, don't see a reason for it, if i take out the need for a target so the spell is cast on me it works perfectly.
EDIT 3
after tinkering around and several reloads later it works fine lol, not exactly sure what part i changed caused it to work but I'm not going to complain <.< haha
@Faldonboy
Are you casting at a targetable player? A player with magicspells.notarget, for example, would not work.
This is one of the external spells in question, I probably just messed up somewhere while I was writing it out, whenever I cast it though it says there is no target
Also having the same problem as redstoner, the spell never runs out unless you relog, the potion effect bubbles never go away either
@Faldonboy
@deleted_6837836
Yes, the person does not need access to the individual spells to cast a multispell.
@Faldonboy
2. The "range" argument for shadowstep is missing in the default config, I just added "range: 20" and now it works fine: http://pastebin.com/Jjm5068P
4. "This version will break compatibility with the current version of MobArena (v0.94.3.24), however, it appears bleeding builds of MobArena should work fine"
Is it possible for a player to cast a multispell, while, the person does not have access to the spells individually?
I want to have a variant of an empower spell (blinding and empowering you), but I don't want people simply using the empower spell instead of my multispell.
OK time to dump a ton of stuff on you :P so i'm sorry in advance for the ones that are giving out errors i'm sorry I can't give you the errors on most of them I don't have access to server logs but if theres any other info you want let me know