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 Sep 23, 2013@DiscipleGeek
@fuzyfeet
Try this out: http://pastie.org/8349424
The important thing is the lore line. It should be in the format
&0&kMS$:tome:spell,uses
Where tome is the config name of the tome spell (probably tome, unless you changed it), spell is the config name of the spell to learn, and uses is the number of uses for the tome.
-
View User Profile
-
Send Message
Posted Sep 23, 2013@fuzyfeet
Yeah, if they had Predefined Tomes like they have Predefined Scrolls, that would solve this problem.
-
View User Profile
-
Send Message
Posted Sep 23, 2013Is there a way to make the damage in the pain spell a certain type of damage? I've made a musket using the pain spell and would like to have the damage be projectile so that people can use projectile protection enchants against it.
-
View User Profile
-
Send Message
Posted Sep 22, 2013the consume-cast-item option i don't understand. I'm assuming it is a boolean operator, but neither false or true consume the item.
-
View User Profile
-
Send Message
Posted Sep 22, 2013I don't know what to do either, I've been playing with "forcecast" and some other options, but your idea about the book's id it an interesting one. In creative I was able to clone the book as a tome using the middle mouse but save for installing something like NotEnoughItems or using a NBT editor to see what the player is holding, I don't know how to get the DV of the item.
It would be nice if the Predefined Items could make tomes, maybe a similar to the predefined scrolls...?
-
View User Profile
-
Send Message
Posted Sep 22, 2013@fuzyfeet
I'm banging my head against this.
The biggest obstacle is the fact that unless you know a spell, you can't teach it or create a tome or spell book. (even with the require-known-spell option in "teach" set to false)
I've even tried using the ExternalCommandSpell class to bypass the restriction by temp opping the caster, but from my tests, even when the user is opped by console, he isn't granted the spells until they log out and back in.
Here's what I created:
learn:
spell-class: ".ExternalCommandSpell"
name: learn
enabled: true
spell-icon: book
always-granted: true
cooldown: 0
can-cast-by-command: true
can-cast-with-item: true
temporary-op: true
command-to-execute:
- "cast tome %2"
command-to-execute-later: []
command-delay: 0
temporary-permissions: []
require-player-target: false
str-cast-self: You create a tome!
str-cant-use-command: "&4You don't have permission to do that."
I'm starting to run out of ideas, but I've got one other.
When a tome is created, how does the plugin recognize it as being able to teach a spell? Is it a special data/damage value? I should be able to reproduce it in RecipeManager if I knew that.
-
View User Profile
-
Send Message
Posted Sep 22, 2013help with this error with predefined items:
Invalid Predefined Item: MemorySection[path='predefined-items,firesword', root='YamlConfiguration']
-
View User Profile
-
Send Message
Posted Sep 22, 2013@Thechegga
Remove the stick as the cast item for each spell. See the Configuration in the Plugin Manual.
-
View User Profile
-
Send Message
Posted Sep 22, 2013How can I disable the Stick as a cast Item??
-
View User Profile
-
Send Message
Posted Sep 21, 2013Niso, with your new bow spell, is it possible to make skeletons shoot spells at targets by giving them some custom named bows, or is that not possible?
Edit: is there anyway you can add witherskull to the list of projectiles, along with fireball?
-
View User Profile
-
Send Message
Posted Sep 21, 2013@fuzyfeet
thank you
-
View User Profile
-
Send Message
Posted Sep 21, 2013@thequestingbeast
If you read the change log for v3.0-b4 it states "Update for 1.6.4 compatibility". The v3 updates are more like beta tests, but there is your answer.
-
View User Profile
-
Send Message
Posted Sep 21, 2013Will you be updating to 1.6.4 (it breaks MagicSpells) or are you waiting till 1.7?
-
View User Profile
-
Send Message
Posted Sep 21, 2013@DiscipleGeek
For the tome to work it requires a written book, not a book and quill or regular book. To get it to be a scroll you would need a scroll that triggers a command spell that does the teach spell. Not sure without a lot of tinkering and testing, but maybe you could use the /forcecast in the external command spell to force it to work.
-
View User Profile
-
Send Message
Posted Sep 21, 2013@centaurianArcher
Thanks for the reply! It actually was helpful, and I am glad someone is willing to help!
Also, people can ignore the thing about lightning. Apparently I had the stick setup as a "Lightning rod" and so it cast down lightning wherever I clicked.
Also also, is it possible to edit the telekinesis spell so that it only opens and closes iron doors? I want a sort of secret-passage which can only be opening with a spell, and this is how I want to do it. However, it needs to also automatically close the door a few seconds after opening it. Any ideas? Or if anyone could write a spell and share it with me, that does this, that would be wonderful!
-
View User Profile
-
Send Message
Posted Sep 21, 2013@joehardy8
Well, you could make use of a permissions plugin that allows you to set up different permissions for different worlds. I also remember skimming past a plugin that allowed you to limit certain plugins to certain worlds, but I don't recall the name. Sorry. :-/
If you wanted to work with MagicSpells and only MagicSpells for this goal, I guess you could set "separate-player-spells-per-world" to "true" and only give people spells while they're within your test world?
I'm sorry I can't be of much help. I just figured I should say something, since no answer came up.
-
View User Profile
-
Send Message
Posted Sep 20, 2013I would like to know if I can make this only work in one world. I want to create a Plugin Test World on my server, so that I can configure this perfectly before I release it to the whole server. However, I need it to only work on one world first.
If it helps, I do have WorldGuard on the server.
Thanks!
Also, when I cast spells with the stick, it causes lightning to strike down. I want to turn this off, but cannot find a config option for it.
-
View User Profile
-
Send Message
Posted Sep 19, 2013@fuzyfeet
@fuzyfeet
Installed RecipeManager, been working with it all night. Love it because it's letting me do some of the things my players have been after coal > diamond etc.
But....
I can't figure out how to reference a tome or spellbook for a craft recipe. I see how predefined scrolls should work, but it doesn't look like you can learn from a scroll (which I like).
I even installed bookworm on a suggestion from this thread:
http://dev.bukkit.org/bukkit-plugins/magicspells/forum/35606-tomes-as-rewards/#p7
But Bookworm fails to see the Tome as a book.
Enlighten me please? I'm so close.
-
View User Profile
-
Send Message
Posted Sep 19, 2013@DiscipleGeek
Or you can use RecipeManager. I personally like it as I can overwrite vanilla or mod's recipes.
-
View User Profile
-
Send Message
Posted Sep 19, 2013@Nefiron
That's great! I'll get it installed and play with it. Looks like craftbook is very complex... Mind if I hit you up for some assistance if I can't wrap my head around it?