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
hey man quick question i wanna use mana for cost for all spells so for examlple my blind 1 i have - mana 10
to use 10 mana but it doesnt cost 10 mana or even do the spell anymore...
@deleted_6837836
http://www.minecraftwiki.net/wiki/Potion_effects
I was wondering, what the potion types? I'm trying to make a spell like blind, but I don't know what type potion effects are.
@CorvusPVP
It actually links to a subforum, not a single thread.
The Magic Shop plugin says to direct comments/discusions to the thread, but links to a thread that doesn't exist.
I'm really excited about that coming out with selling scrolls. I would like to be able to sell scrolls with specific spells on them, so that the users are limited to what they purchase with their in game currency.
Great plugin.
@G4meM0ment
It's because the * node gives you magicspells.notarget, which prevents you from being targeted. I had actually forgotten to add that to the permission information page, but I've added it now.
@Grifhell
The best way to optimize is to remove spells you don't need. You can delete them from the config, or you can add the enabled: false option to them. Disabling the mana system would also be a good idea if you aren't using it at all. It's also safe to ignore that warning, it just means it didn't create a new config.yml because you already have one.
I've got a very annoying problem everyone with the -'*' node cant be hit by target using spells.
I just let my Admins dont have all spells, teach and they cant cast them.
I tried out to be not OP but it didt worked.
After, I set myself to normal user others were allowed to cast spells on me.
Very thanks. Say me, i want max optimize plugin, which rows in config.yml can I remove for this? Exsmple global-cooldown? Or completely erase the mana, if I do not need
I can erase it all?
And that is this?
i want delete cost, but if i delete
then in start server i have this
@Grifhell
You're trying to use spells that were added in version 2.2, but you're using version 2.1.2. You'll have to upgrade to use those spells.
Hi all. nisovin thanks you, good plugin. Only that
This is bad?
@nisovin
Yes I was aware of this, but of course. It was my misunderstanding how that setting worked. I thought having it at... default-all-perms-false: false ment it would make them false. Next time I will read a more carefully, I tend to skim through wording situations like these often. I'm working with around 50 plugins now, time for me to slow down and read carefully or this might happen more :P.
Thanks !
@Sk8Sanctified
You are aware that everyone has learn and cast permissions for each spell by default, right? It's indicated as such on this page:
http://dev.bukkit.org/server-mods/magicspells/pages/configuration/permissions/
If you'd like, you can force all permissions to default false by setting the default-all-perms-false option (as also indicated on that page).
@Godworld
You can ignore that.
I need to update the config.yml file manually, I get this Warning when I start my server:
[WARNING] Could not save config.yml to plugins/MagicSpells/config.yml because config.yml already exists.
@nisovin Here is an example of the protector class
A protector on my server was able to learn drainlife (a healer spell) from a spell book....
Now let me ask you this, do you see the permission to learn drainlife anywhere?
@nisovin
woah now, I'm sure they have never had any learn nodes ever (besides the 3 which there class allows)... The way I set up classes for my server is made subgroups using GM then have 5 set classes(subgroups). Each class has the permissions to grant spells and cast the "Granted" spells for there class.
I have a 3 "purchased" spells for each class. Which I added respective learn permission for those 3 spells that the class is allowed and ONLY those 3 spells.
Yet they can still learn any spell with a spellbook. Weather they have the learn permission or not.
Maybe soon is up to you this time?
@Sk8Sanctified
I'm sure that if they didn't have the learn permission they would have never learned the spell. They must have had it. If you set up your permissions right it will work fine. "Soon" is up to you, not me.
@nisovin
Ok well I'm sure that they never had the learn permission or cast permission but they can do both, no that they have found the spellbook bookcase.... I need a way to deny these spells soon. They shouldn't have them at all...
@Sk8Sanctified
If they don't have the learn permission, they won't be able to learn it. If they don't have the cast permission, they won't be able to cast it (but could learn it if they have the learn permission). Negating the grant permission won't do anything.
Heya nisovin, quick question. If I add negative grant and cast nodes to players, will that also make it so they are unable to learn and use the spell through spellbooks?
I never added certain spells to classes I had made because I don't want them to use these spells. However, I had placed hidden spell books throughout the world so players can learn more advance spells for there classes. The classes that don't have cast permissions for some of these spells found in spellbooks, are able to find the spellbook, learn the spell and have all abilities to it. Weather I added the node or not to there class group.
@nisovin