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

    Hex

    Could you just gimme some spells on the game xP I cant access it.
     
  3. Offline

    NeonJ

    I try using /cast list, but it says I do not know that spell. I'm an admin so I have the '*' permission, so why can't I use this?
     
  4. Offline

    Stroved

    Gills seems to stop fall damage when you use it and fall on grass. I tested it from a cliff, without gills, and I took damage. I then put gills on, did the same and I take no damage.

    No idea why this is :p
     
  5. Offline

    anon

    I would like to ask for a insta-grow tree spell, something like put a sapling, point and it grows.
     
  6. Offline

    Kainzo

    Seeing some issues on Permissions 3.14 - hopefully will be addressed soon.
     
  7. Offline

    KuroSnow

    make a spellbook file for yourself, and add all the spells in, or enable "ops get all spells" in the config.
     
  8. Offline

    nisovin

    What kind of issues? I honestly don't use Permissions, and haven't tested that functionality of the plugin even a little bit. I can't see anything saying that the API has changed, so I have no idea what could be wrong.
     
  9. Offline

    LucidLethargy

    Now that they finally fixed it, please add fireballs in! :D
    Also thank you SO much for all your work, this is a HUGE part of my server now and it's amazing to have such an awesome plugin to base my new class system on!
     
  10. Offline

    Kainzo

    I think it has to do with the Cost ability - I'm not certain its correct in the nodes.
     
  11. Offline

    Joy

    Can't wait for more spells :D
     
  12. Offline

    esiao

    Hello, I like your plugin, but there are a few things that I dislike:
    - the volley, I think that it's not good working, when I use it I take dommages and the target one or two arrow, I think that it can better if thats not a dispenser of arrow but really 10 arrow or more that are shoot.
    - the forcepush, there is a problem if you are two blocks under the taget he fly in the sky and die on the ground if you add vertical force. In the other way if you want to push him in the sky you can't.
    I think that the possibility to chose push away or push in the air is a good feature. For exemple I use the speel and the ennemy goes 10 blocks up in the air. It add fall dommages and that's cool, isn't it ? And the forcepush when you push an ennemy in the sky(i'm in water he is over me) The server crash, that's problematic.

    Thanks, for the plugin hope you can make it better.
    Sorry for my english, im french
     
  13. Offline

    cardboardmark

    I like it, nice job. It's easy to use and the spells are awesome, can't wait for more. Keep it up! Volley does seem a bit buggy but idk it's prolly just me lol.

    Also, when someone does a /cast list it states they do not know that spell even if they know every spell. Any ideas?
     
  14. Offline

    Joy

    Bug, well, more of a feature request/issue:

    Using the spell grant nodes. If I for example grant spell X as node in World B, but not in World A.

    User ports to world B, node is granted, but spell only works after relog. Then porting back to world A, node is gone, but spell will remain until relog :/
     
  15. Offline

    shuyin

    hey why cant i get other items then golden swords or sticks to cast spells with
    i edited my file to
    can-cast-with-item: true
    cast-item: bow
    but it wont work and if i replace bow with stick it does work
     
  16. Offline

    nisovin

    You need to use the item id. http://www.minecraftwiki.net/wiki/Data_values

    Updated to version 0.5! New spells! New options! Bug fixes!

    An important note to those updating:

    If you are using Permissions, you will need to give the magicspells.cast.<spell> permission for all spells to all players who should be able to cast those spells. To maintain the functionality of previous versions, just give magicspells.cast.* to everyone. This will not give them the spells, just allow them to cast the spells. Using these permissions should allow you to set up multi-world permissions where different worlds might allow different spells.

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

    kahlilnc

    Amazing update. I love the binding. :)

    Dont use them.

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

    nisovin

    Seems I forgot to include the lifewalk config values in the default config. I've put them in the config file link in the original post, and here they are here also:
    Code:
        lifewalk:
            name: lifewalk
            description: Flowers grow in your footsteps!
            cast-item: 317
            tick-interval: 15
            red-flower-chance: 15
            yellow-flower-chance: 15
            sapling-chance: 5
            tallgrass-chance: 25
            fern-chance: 15
            cost:
                - 331 2
                - 38 1
            use-cost:
                - 331 1
            use-cost-interval: 20
            str-cost: 2 redstone and 1 rose, plus 1 redstone every few seconds
            str-cast: Flowers grow in your footsteps!
            str-cast-others: Flowers grow in %a's footsteps!
            str-fade: Flowers no longer grow in your footsteps.
    
     
  19. Offline

    ClonedInsanity

    Love the update, good work =D
     
  20. Offline

    Abengoshis

    Can anyone tell me what I'm doing wrong? I've tried switching between the original config and my changed config to see the problem and I think it's because what I put as the cost isn't valid, although according to the configuration instructions it should be:

    Code:
            cost:
                - 351[:4] 2
    doesn't appear to work (I'm using lapis for the reagent). The colon makes the 351 bold, and makes nothing work. How can I use lapis without it bugging?

    EDIT: Never mind, I figured it out. You can't use the square brackets, just 351:4.
    I think that needs to be made clearer in the config instructions.
     
  21. Offline

    Darkvoltage3

    heres a good idea for an update.... make it to where you can make free cast players have to learn spells from a bookcase thats a must need for my server.......[stick]
     
  22. Offline

    nisovin

    Unless I misunderstand you, that is how it works already. Only ops get all spells by default, and there's even an option to turn that off as well.
     
  23. Offline

    Darkvoltage3

    ya but dont they need the reagents to cast it cause put it like this say if I wanted to make all spells free cast to where i only need one item to cast all the spells and you only need one so you can use it as many times as you want BUT I want the players to learn it from a bookcase could that be possible?:oops:
     
  24. Offline

    nisovin

    Your run-on sentence is extremely difficult to read. However, again, unless I misunderstand, the plugin is already capable of doing what you want. You're free to remove all spell costs if you want. You're free to remove all cooldowns if you want. That doesn't somehow magically give everyone the spells, they'll still have to learn them.
     
  25. Offline

    Dae Fenris

    I'm having some trouble with making a spell copy. I've copied my exact frostwalk spell, changed the name to permafrost, and edited one value (leave-frozen: true). Then added the spellcopies section linking permafrost=frostwalk. Am I doing something wrong, or is this sort of configuration not possible?

    Code:
        permafrost:
            name: permafrost
            description: Lets you walk on water.
            cast-item: 262
            size: 1
            leave-frozen: true
            cooldown: 0
            str-cost: Freecast
            str-cast-self: You can now walk on water!
            str-cast-others: "%a can now walk on water!"
            str-fade: You can no longer walk on water.
        spellcopies:
            - permafrost=frostwalk
     
  26. Offline

    nisovin

    That should be fine... are you getting any errors when you reload the plugin?
     
  27. Offline

    Dae Fenris

    Nope !

    20:54:55 [INFO] MagicSpells v0.5 loaded!
     
  28. Offline

    nisovin

    Can I see your full config file?
    Edit: Also, maybe you didn't give yourself permission to the new spell?
    Edit2: Also, make sure the spellcopies node is at the root level, and not indented under spells.
     
  29. Offline

    Darkvoltage3

    ok cool and sorry you couldnt understand but you pretty much answered my question :D
     
  30. Offline

    KuroSnow

    Version 0.5
    • Added permissions for teaching and casting.
    Permissions for teaching as in magicspells.teach.<spell>? Or...? Because that would be super win and I would give you a cookie. =)
     
  31. Offline

    nisovin

    Precisely. In order for a player to teach a spell, they must have the magicspells.teach.<spell> permission.
     

Share This Page