Inactive [FUN] MagicSpells - Add magic to your server

Discussion in 'Inactive/Unsupported Plugins' started by nisovin, May 8, 2011.

  1. Offline

    nisovin

    MagicSpells - Add magic to your server!

    View the plugin on BukkitDev!

    MagicSpells is a plugin that creates 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. Each spell can be assigned customized reagent (item) costs, cooldowns. durations, ranges, and so on. Spells can be cast by using the /cast command, swinging a wand, or both. It's all customizable.

    Download

    Important: Read before downloading! There is a lot of information in this post. I know, it's a lot to read. However, I spent quite a while writing it all in what I hope is a clear, informative, and understandable manner. So, please, read the entire post before asking a question. Chances are, the answer is already here. I also suggest taking a nice look through the configuration file. Is it a massive file? Yes, it is. But if your question is "can I do this?" then a look through the configuration options would be a good idea.
    Plugin Manual

    There is a lot of useful information in the plugin manual, which can be found here:

    MagicSpells Plugin Manual

    Usage

    Spells can be cast either by using the /cast command or by using a wand item. To cast a spell, a player must first know the spell. Server operators know all spells by default. They can teach spells to other players by using the teach spell. For example, to teach bob the blink spell, an operator would type: /cast teach bob blink.

    Bob can now use 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.

    Spells

    View Spell List

    Configuration

    The zip file contains a config.yml file that should go into the MagicSpells folder within your plugins directory. The default configuration has appropriate spell costs, durations, and messages for each spell. However, you will most likely want to customize this to fit your server.

    You can modify the config.yml file directly, or you can choose to leave it intact and instead create an alternate config file, by default altConfig.yml. Any configuration values in this alternate file will override the values in the main config file.

    There are some general configuration options that apply to all spells, as well as options for each individual spell. Important: The default configuration file does NOT contain all config options, it is just an example. Just because a config option isn't in the default doesn't mean it is not available. For example, it's possible to add a duration to any buff spell, even though the default configuration file does not have a duration on all buff spells.

    To reload the configuration, simply cast the fake reload spell (/cast reload). Only server operators can do this (it can also be done from the command line).

    Please see the plugin manual for information about all of the various configuration options.

    Frequently Asked Questions

    Help me! Why isn't it working?
    If - after reading through this entire post - you can't figure out why it isn't working, please take the time to submit a proper help request. You can post your request either on in this thread or in the MagicSpells forum. You should provide the following information:
    • The CraftBukkit build you're using.
    • The MagicSpells version you're using.
    • Which permissions plugin (if any) you are using.
    • The error in the console, if there is one.
    • Your config file(s). Please don't post them directly , use a service like http://pastebin.com and just post the link.
    It says I need reagents whenever I cast a spell! Where do I get reagents?
    One of the main ideas behind this plugin is to give players cool abilities, but with a cost. The reagents are the spell's cost. This can be configured in the config.yml file individually for every spell. The config option name is "cost". You can also add your name to the list of exceptions in the general.cast-for-free option.

    Can I unbind spells from items?
    Yes. Simply use the bind spell to bind the spell to your empty hand, and it will no longer be bound to any item.

    Why can't my players cast spells?
    Why does it say "You cannot cast that spell right now" when I try to cast any spell?
    If you're using Permissions, please make sure your permissions are all set up correctly. Look in the Configuration: Permissions section for more information. Also double check and make sure your use-permissions config option is set to true.

    What are the Permissions nodes?
    The nodes are listed on the permissions information page in the plugin manual.

    I can't get my Permissions working! Can you help me?
    Remember that all nodes use the "real" spell name, rather than the name you define with the "name" option. If you cannot get your permissions working, feel free to ask for help. Make sure you specify which permissions plugin you are using, and all of the items from the "Help Me!" question above.

    Will you add iConomy (or another economy plugin) support?
    With the addition of the 'tome' and 'scroll' spells, I currently have no plans to add special support for an economy plugin. You should be able to create tomes and scrolls and sell them using any plugin that allows you to sell items, thus allowing you to sell spells.

    I have a great spell idea! Will you add it?
    Please tell me about it by submitting a ticket! I can't guarantee that I'll make it, but if it's a feasible idea, I'll definitely consider it. I'm always looking for new spell ideas. Note that I may not respond directly to your idea, but I always read the suggestions.

    I've found a bug! What do I do?
    Please submit a ticket! Please include your CraftBukkit build number, any error in the console, the situation that caused the error (if known), and if you think it's applicable, the list of plugins you use.

    Change Log

    View full change log



    Donate: Always gotta have a donate link for those who love their plugin authors.
     
  2. Offline

    nisovin

    External spells act exactly the same all the other spells do. There is no special syntax, you cast one by doing "/c <spellname>". There's also no special config rules for it. Just use the spellcopies system.
     
  3. Offline

    Zombiemold

    All of a sudden, Admins can't seem to cast any spells.

    All we get is "You can't cast that right now"

    We have all the permissions that we would need, including no reagent costs, no cooldowns, granted all spells.

    What might have happened? I can't seem to troubleshoot it out.
     
  4. Offline

    dockozel

    Still having trouble with externals. Here are the relevant parts of my config: http://pastebin.com/qLpB2gRP
    I'm getting: "You do not know a spell by that name." when typing "/c daylight"
     
  5. Offline

    nisovin

    You need to name your second external spell "daylight" not "external". Look at the spell copies example.

    Sounds like you don't have cast permissions.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  6. Offline

    DarkZeR0

    You should add Force Pull To this plugin BE SO SIICK
    and pull items to.

    Oh oH The Camp spell
    Make a sphere at the radius of however you want to modify in the config so the default should be 5
    and the sphere is made outta Wood! :D

    Oh and Trap players Inside Exploding Tnt Trees The trees have tnt below them just 1
    and the top is just a normal tree

    I see submit a spell but..i dont wanna type that much just short lines.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  7. Offline

    shanko

    I was able to make this custom by setting the other foce-type spells to negative velocities
     
  8. Offline

    DarkZeR0

    I wonder how to do that but the plugin doesnt work for me anymore when its updated uhh 1.3.2 worked. or 1.31
     
  9. Offline

    Supar

    How do you set the wand to be an item with specific data value? Like charcoal instead of coal or lapis lazuli.
     
  10. Offline

    shanko

    Go to the config file, open it up and change the bolded part here:

    blink:
    name: blink
    description: Teleport a short distance.
    cast-item: 263:1
    cooldown: 8
    range: 25
    pass-through-ceiling: false
    smoke-trail: true
    cost:
    - 331 2
    str-cost: 2 redstone dust
    str-cast-self: You blink away!
    str-cast-others: "%a blinks away!"
    str-cant-blink: You cannot blink there.


    edit: note that this just changed blink, you'll have to change it for the rest of them too.
     
  11. Offline

    Supar

    Thanks a bunch man! :D
     
  12. Offline

    XepherLink

    could you add a spell where, the reagents are bones and rotten flesh and summons 1-3 zombies and skeletons and takes out 1/4 of the mana bar?
     
  13. Offline

    shanko

    You can do that already
     
  14. Offline

    PandaraRA

    Hey been really loving the plugin...was wondering if it's possible to have a spell that increases a users max mana on use?

    If it's already possible...how? thank you so much read over everything everywhere and can't find it anywhere.
     
  15. Offline

    shanko

    apparently fireballs have been changed in the new MC to not blow up on contact? =[[[ I hope you can work around that somehow

    edit: nevermind... this just seems to be the faulty dev bukkit build for 1.0! lol
     
  16. Offline

    htwight

    Is there any way to unbind a spell?

    Edit:sorry, i didn't read the whole post the first time.
     
  17. Offline

    Darkvoltage3

    This node stops them from using the spell right look i know you must think im the stupitest guy ever but i just want to make sure :p magicspells.cast.spellname
     
  18. Offline

    serdious

    in the server im a op, why many spells like firenova doesn't appears in my wand??
     
  19. Offline

    CakRochi

    How to use only me?
    I want to use me.
    If users have the skills then that seems to a RPG game...
    I'd like to a reality minecraft
     
  20. Offline

    conyehwest

    Whenever I start my server this comes up on the terminal and none of the spells work:
    10:11:08 [SEVERE] Error occurred while enabling MagicSpells v1.3.2 (Is it up to date?): org/bukkit/configuration/file/YamlConfiguration java.lang.NoClassDefFoundError: org/bukkit/configuration/file/YamlConfiguration at com.nisovin.magicspells.util.MagicConfig.<init>(MagicConfig.java:19) at com.nisovin.magicspells.MagicSpells.load(MagicSpells.java:127) at com.nisovin.magicspells.MagicSpells.onEnable(MagicSpells.java:102) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154) at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) Caused by: java.lang.ClassNotFoundException: org.bukkit.configuration.file.YamlConfiguration at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 13 more
     
  21. Offline

    nisovin

    Are you using build 1337 or later?
     
  22. Offline

    XepherLink

    Is their a way to make it so Magic is purely based off Mana, and no reagents, and the hoes break after like 10 spells
     
  23. Offline

    shanko

    Just edit the reagents in the config to whatever you want, including only mana
     
  24. Offline

    Rurikar22

    Random spells? Random commands it External Spell?

    Pretty please? :>
     
  25. Offline

    Maxxgold

    Do you guys have a Dev builds section ?
     
  26. Offline

    shanko

    Anyone know the IDs to summon Snow Golems and Magma Cubes?

    Blazes seem to work fine with "Blaze", I tried "SnowMan" and "LavaSlime" neither worked, I think they were changed?
     
  27. Offline

    jazzman170

    i get this error with build 1519

    20:31:30 [SEVERE] Could not pass event PLAYER_INTERACT to MagicSpells
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.inventory.CraftItemStack.getEnchantments(CraftItemStack.java:171)
    at org.bukkit.inventory.ItemStack.clone(ItemStack.java:209)
    at com.nisovin.magicspells.MagicPlayerListener.onPlayerInteract(MagicPlayerListener.java:123)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:330)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:546)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)


    but yet strangely everything works fine :confused: And i seem to get this very rarely but i do get it all the time when i right click my stargate sign.
     
  28. Offline

    cell123

    best plugin ever :D
     
  29. Offline

    Maxxgold

    I'm getting this as well. Craftbukkit 1522
     
  30. Offline

    mike0fmikes

    I've got a few questions if someone has the time. I've looked around ITT for a bit, but couldn't find an answer.

    So I'm trying to set up a server with two types of mages; we'll call them standard and advanced. Both standard and advanced mages can cast all the basic spells; with each spell having 20 casts total each. Advanced mages can cast about 15 additional spells that have no cast-limit. Furthermore, I'm hiding some spell book cases in various places in the world that will have additional spells (beyond the basic and advanced spells). These 'ultra-advanced' spells will have a cast-limit like the basic spells.

    Standard mages can't cast the teach spell and don't have access to the teach permission nodes for any spell. Advanced mages can create one-time use scrolls as well as spell-book cases.

    OK, so here's the question(s):
    -Is there a way to define which spells can have spell-book cases created and which can-not?
    -Is there a way to define which spells can have scrolls created and which spells can-not?
    -Could I set it so that magicspells.learn.randomadvancedspell: false to solve for this? (as in, they would be able to use the scroll, but not learn from the spellbook case or by someone teaching them.)

    Basically I don't want standard mages to be able to learn the advanced mage's spells, but I do want them to be able to use a scroll with a single use on it from the advanced spells. I guess you could say I want advanced mages to be able to create scrolls for their advanced spells, but not book cases.

    Suggestion: Add 'can-create-spellbook', 'can-create-scroll', and 'can-create-tome' fields into the available fields for all spells.


    THANKS!!!

    I think my post might need some clarity added:​
    I was wondering if I could give the magicspells.cast.something node to a player but not the magicspells.learn.something node. In effect, making it so they can use a scroll with that spell, but couldn't use a book case with that spell. Essentially they would be able to cast the spell, but not be able to learn the spell.​
    In addition to those suggestions (adding 'can-create-spellbook', 'can-create-scroll', and 'can-create-tome' fields into the list of spell options..which, if you can do what I mentioned above, would be moot) I'd like to make a couple others:​
    Weather: rain, thunder, clear (i know it can be done with external spells, but I think such a full featured mod should come with it out of the box).​
    Suffocation (a typical damaging spell, just an interesting way to do it).​
    A way to spam a spell by casting just once, for instance minion could be copied into a spell called horde which would spam the spell X times. Or lightening could be copied into a spell called Tesla that would pepper the cast location with bolts of lightening.​
    A spell that is similar to mana (lifetap) that would instead take from EXP and add to mana or health. An interesting workaround (if you can call it that) would be to make EXP one of the reagent items so that you can use it for everything if you want.​
    Allow for multiple marked locations, mod defined of course. I.E. admin could designate 5 marked locations max; each player could designate /cast mark mark1 or /cast mark mark2 or /cast mark home. Then /cast recall home or /cast recall mark1 could be used to go to those locations.​
    A period of duration for the forget spell would be nice. I.E. John can /cast forget bob blink making bob not able to blink for X time. Of course, you could have an over ride that would make the player forget indefinitely.​
    thorns (no explanation necessary)​
    drain mana (as per drain life). You take from their mana, and return it to your HP. For that matter, you could use a common chunk of code. I.E. you could make a branch of "Leaching" (like meta and instant branch) spells that would not only have a casting cost, but a returned cost as an option. Then "drain" would be the only necessary spell. You could have Drain 'life' which would take something as a cost, and return life. Or drain exp which could drain exp and add to mana. So essentially a whole bunch of new spells could be created by copying the drain spell, but specifying a drain object and a replenish object. These spells could be cast on your-self or another individual.​
    Thanks!!! Again, excellent plugin. My server wouldn't be nearly as fun without it, and I think all servers should run this mod. Thanks again!!!​

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  31. Offline

    nisovin

    Yes, you can do this. Try looking at the config options, especially for the scroll spell.​
    Just don't give magicspells.teach permissions for the spells you don't want allowed.​
    These are planned, but I'm not in a hurry. As you said, external spells can work fine.​
    Exactly how would this spell work?​
    Your lightning spell would require more than just an ability to spam the spell. Otherwise it would just spam it in the exact same location over and over. This would really just be a whole new spell. However, it is technically possible to 'spam' spells with multi-spells. Just list the spell more than once.​
    I'll add experience as a reagent option.​
    Just make multiple mark and recall spells.​
    This isn't really how 'forget' is intended to work. I do plan to add a 'silence' spell however.​
    I could probably modify the drainlife spell to do this.​
     

Share This Page