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

  3. Offline

    tsuna25

    This plugin is great (i use spoutmaterials or morematerials to add custom items to use as wands for your spells):D
     
  4. Offline

    shanko

    Id be glad to try it

    also
    "This version will break compatibility with the current version of MobArena (v0.94.3.24) in order to support R5"

    Not sure if you knew but there are "bleeding builds" of Mob Arena... I'll test to see if they are compatible with MagicSpells later today


    edit:Also any explanation on the new spells?


    edit: I am reading the config.... these new spells are BLOWING my mind!!! Wow So many possibilies lol

    edit: yeah materlize isnt in the config! >=[
     
  5. Offline

    nisovin

    The new spells are in the spell list. The materialize example spell is called "water". Can you point me toward these "bleeding" MobArena builds?
     
  6. Offline

    shanko

    Its on the IRC, here is what it says on there

    Latest bleeding dev build (v0.94.4.47 (requires 1.1-R4) - Rewrote command handling, added help command and per-command help flag) | Download: http://tinyurl.com/mableeding | Changelog: http://goo.gl/i4e31 | To-Do & Known Bugs: http://goo.gl/OhXqi |

    combust spell is insta kill

    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

    Not sure what shadowstep does but when I left click anybody it says "No Target" I have target players set to true
     
  8. Offline

    nisovin

    Add a range to it.
     
  9. Offline

    shanko

    If you make a mistake in the config, then type /cast reload, everyones spells get reset............

    This just ruined my entire day x.x


    edit: luckily i backed up like a smart person!
     
  10. Offline

    shroomduck

    Is there a way to /cast teach "player" everything

    Maybe I am blind but ive been looking for awhile now lol
     
  11. Offline

    shanko

    shroomduck

    give them the magicspells.grant.* perms

    enable-volatile-features: true

    whats this do?

    edit: Also you should add a damage:
    field to the projectile spell, it would be cool if we could make players shoot snowballs that do damage. Also I cant find any spells that work with it besides explode or lightning are there any? :p

    doubleedit: Nvm on the first Q

    Code:
    MagicSpells has some features that the Bukkit API currently does not provide methods for. In order to do this, I have to access the Minecraft server code directly. I try to do this in a way that makes it update-proof, but it's not perfect. So, if you do a major server version update and this plugin starts throwing lots of errors, try setting this to false. Additionally, if you try to use some other Bukkit-compatible server (like Spout), you would have to set this to false.
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  12. Offline

    nisovin

    Last edited by a moderator: Jul 16, 2016
  13. Offline

    shanko

    found this
    Code:
    26.02 08:21:00 [Server] INFO Connection reset
    26.02 08:19:23 [Server] INFO NOPA <xDaemonic> Whoops?
    26.02 08:19:17 [Server] INFO NOPA <xDaemonic> Bam
    26.02 08:19:14 [Server] INFO War> Reset 6505 blocks in warzone lockout.
    26.02 08:19:09 [Server] INFO    ... 16 more
    26.02 08:19:09 [Server] INFO    at com.nisovin.magicspells.MagicPlayerListener.onPlayerInteract(MagicPlayerListener.java:68)
    26.02 08:19:09 [Server] INFO    at com.nisovin.magicspells.MagicPlayerListener.castSpell(MagicPlayerListener.java:155)
    26.02 08:19:09 [Server] INFO    at com.nisovin.magicspells.Spell.cast(Spell.java:218)
    26.02 08:19:09 [Server] INFO    at com.nisovin.magicspells.Spell.cast(Spell.java:254)
    26.02 08:19:09 [Server] INFO    at com.nisovin.magicspells.spells.targeted.ZapSpell.castSpell(ZapSpell.java:60)
    26.02 08:19:09 [Server] INFO    at org.bukkit.craftbukkit.entity.CraftLivingEntity.getTargetBlock(CraftLivingEntity.java:116)
    26.02 08:19:09 [Server] INFO    at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:90)
    26.02 08:19:09 [Server] INFO    at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:287)
    26.02 08:19:09 [Server] INFO    at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:254)
    26.02 08:19:09 [Server] INFO    at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:167)
    26.02 08:19:09 [Server] INFO Caused by: java.lang.IllegalStateException: Start block missed in BlockIterator
    26.02 08:19:09 [Server] INFO    ... 12 more
    26.02 08:19:09 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
    26.02 08:19:09 [Server] INFO    at java.lang.reflect.Method.invoke(Method.java:601)
    26.02 08:19:09 [Server] INFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    26.02 08:19:09 [Server] INFO    at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
    26.02 08:19:09 [Server] INFO Caused by: java.lang.reflect.InvocationTargetException
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:514)
    26.02 08:19:09 [Server] INFO    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
    26.02 08:19:09 [Server] INFO    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
    26.02 08:19:09 [Server] INFO    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    26.02 08:19:09 [Server] INFO    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
    26.02 08:19:09 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
    26.02 08:19:09 [Server] INFO org.bukkit.event.EventException
    26.02 08:19:09 [Server] SEVERE Could not pass event org.bukkit.event.player.PlayerInteractEvent to MagicSpells
     
  14. Offline

    Rellac

    Hi. I'm not sure if I've found a bug or merely configured something wrong, but I seem to have issues with pvp. The only simple spell that could previously damage another player was fireball. However, it was a wee bit too strong, so I tried to remove explosions and fire damage and edit the damage levels myself.

    However, it can't be used in pvp. I can kill mobs just fine, but not players. It's rather essential to my server to not have my "Mage" class overpowered or underpowered. And I can't seem to do anything but have them one or the other.

    I also have a problem with wand-only spells. I recently set it so fireball wasn't castable via command and only usable via Blaze Rods (to get around an annoyance we had with certain douchebaggy players). This works all dandy, but when a player recieves the Mage class, he doesn't have his fireball available on his wand. It just doesn't seem to want to work. Is there a way to fix this?

    Also, While I'm here, I seem to be having another problem. I wasn't 100% sure whether I should post it here or with commandsigns, but I decided this would be a better place.

    I'm trying to add a feature to remove spells while changing rank (hence I have to use commandsigns to do both), but when I use a correctly set up /* command, I'll just be told "the player doesn't know that spell". I have no idea what's wrong. I can't just give players the forget spell ability, for obvious reasons.

    They also don't seem to be getting spells on getting the "Mage" class.

    It would be nice for support of adding/losing spells allocated in the permissions file on rank. I think I've saw somewhere, that this doesn't and never will support it and I know you must get this a lot, but I really think it's neccessary for a lot of users and would be a perfect addition. No other spell plugin has quite as good spells in the list.


    Summon also doesn't do anything.


    Here's my config:
    (Trimmed off a tad to keep it small enough to post)

    Code:
    general:
        debug: false
        alt-config: altConfig.yml
        str-cast-usage: |
            Usage: /cast <spell>.
            Use /cast list to see a list of spells.
        str-unknown-spell: You do not know a spell with that name.
        str-spell-change: You are now using the %s spell.
        str-spell-change-empty: You are no longer using a spell.
        str-on-cooldown: That spell is on cooldown (%c seconds remaining).
        str-missing-reagents: You do not have the required reagents for that spell.
        str-cant-cast: You can't cast that spell right now.
        str-no-magic-zone: An anti-magic aura makes your spell fizzle.
        str-console-name: Admin
        text-color: 3
        broadcast-range: 20
        allow-cycle-to-no-spell: true
        only-cycle-to-castable-spells: false
        ops-have-all-spells: true
        default-all-perms-false: false
        ignore-default-bindings: false
        ignore-cast-item-durability: [ 268, 269, 270, 271, 283, 284, 285, 286, 290, 294, 314, 315, 316, 317 ]
        global-cooldown: 500
        cast-on-animate: true
        mana:
            enable-mana-bars: true
            max-mana: 100
            mana-bar-prefix: "Mana:"
            mana-bar-size: 35
            color-full: 10
            color-empty: 0
            regen-tick-seconds: 5
            regen-percent: 5
            show-mana-on-use: true
            show-mana-on-regen: false
            show-mana-on-wood-tool: false
            tool-slot: 8
            mana-potion-cooldown: 15
            str-mana-potion-on-cooldown: You cannot use another mana potion yet (%c seconds).
            mana-potions:
                - 373 50
     
    spells:
     
        list:
            name: list
            description: List all the spells you know.
            only-show-castable-spells: true
            reload-granted-spells: false
            str-prefix: "Known spells:"
            str-no-spells: You do not know any spells.
        help:
            name: help
            description: Get information about a specified spell.
            str-usage: "Usage: /cast help <spell>"
            str-no-spell: You do not know a spell by that name.
            str-desc-line: "%s - %d"
            str-cost-line: "Cost: %c"
        teach:
            name: teach
            description: Teach a spell to another player.
            require-known-spell: true
            str-usage: "Usage: /cast teach <target> <spell>"
            str-no-target: No such player.
            str-no-spell: You do not know a spell by that name.
            str-cant-teach: You can't teach that spell.
            str-cant-learn: That person cannot learn that spell.
            str-cast-self: You have taught %t the %s spell.
            str-cast-target: "%a has taught you the %s spell."
        forget:
            name: forget
            description: Make a player forget a spell.
            str-usage: "Usage: /cast forget <target> <spell>"
            str-no-target: No such player.
            str-no-spell: You do not know a spell by that name.
            str-doesnt-know: That person does not know that spell.
            str-cast-self: You made %t forget the %s spell.
            str-cast-target: "%a has made you forget the %s spell."
            str-cast-self-target: "You have forgotten the %s spell."
            str-reset-target: "You have reset %t's spellbook."
            str-reset-self: "You have forgotten all of your spells."
        spellbook:
            name: spellbook
            description: Create a spellbook that teaches a spell.
            default-uses: -1
            destroy-when-used-up: false
            str-use: "Usage: /cast spellbook <spell> [uses]"
            str-cast-self: You have created a spellbook with the %s spell.
            str-no-spell: You do not know a spell by that name.
            str-cant-teach: You can't create a spellbook with that spell.
            str-no-target: You must target a bookcase to create a spellbook.
            str-has-spellbook: That bookcase already has a spellbook.
            str-cant-destroy: You cannot destroy a bookcase with a spellbook.
            str-cant-learn: You cannot learn the spell in this spellbook.
            str-already-known: You already know the %s spell.
            str-learned: You have learned the %s spell!
        bind:
            name: bind
            enable: true
            description: Binds a spell to a wand item.
            str-cast-self: You have successfully bound the %s spell to the item you are holding.
            str-usage: You must specify a spell name and hold an item in your hand.
            str-no-spell: You do not know a spell by that name.
            str-cant-bind: That spell cannot be bound to an item.
     
        blink:
            name: blink
            description: Teleport a short distance.
            cast-item: 369
            can-cast-by-command: false
            cooldown: 8
            range: 25
            pass-through-ceiling: false
            smoke-trail: true
            cost:
                - mana 10
            str-cost: 10 Mana
            str-cast-self: You blink away!
            str-cast-others: "%a blinks away!"
            str-cant-blink: You cannot blink there.
        build:
            name: build
            description: Build blocks from far away.
            cast-item: 369
            cooldown: 2
            range: 25
            slot: 0
            consume-block: true
            show-effect: true
            check-plugins: true
            allowed-types: 1,2,3,4,5,12,13,17,20,22,24,35,41,42,43,44,45,47,48,49,50,53,57,65,67,80,85,87,88,89,91,92
            cost:
                - mana 5
            str-invalid-block: You can't build that block.
            str-cant-build: You can't build there.
        carpet:
            name: carpet
            description: Lets you walk on a platform of glass.
            cast-item: 369
            cooldown: 30
            cancel-on-logout: true
            cancel-on-teleport: true
            size: 2
            cost:
                - 331 5
                - 288 5
            use-cost:
                - 288 1
            use-cost-interval: 50
            str-cost: 5 redstone, 5 feathers, plus 1 feather every 50 blocks
            str-cast-self: You are now walking on air!
            str-cast-others: "%a is now walking on air!"
            str-fade: You are no longer walking on air.
        combust:
            name: combust
            description: Set a target on fire.
            cast-item: 369
            cooldown: 10
            range: 20
            obey-los: true
            fire-ticks: 100
            target-players: false
            check-plugins: true
            cost:
                - 331 1
                - 263 1
            str-cost: 1 redstone dust and 1 coal
            str-no-target: No target found.
        confusion:
            name: confusion
            description: Cause nearby monsters to attack each other.
            cast-item: 369
            cooldown: 30
            range: 20
            cost:
                - 331 4
            str-cost: 4 redstone dust
            str-cast-self: You cause nearby monsters to become confused and attack each other.
            str-cast-others: "%a causes nearby monsters to attack each other."
        conjure:
            name: conjure
            description: Conjure some magical reagents.
            cast-item: 369
            cooldown: 600
            items:
                - 331 5-7
                - 265 1-2 10%
                - 351:4 1 10%
            add-to-inventory: false
            str-cost: free
            str-cast-self: You have conjured some magical reagents!
        cripple:
            name: cripple
            description: Slow down a targeted enemy.
            cast-item: 369
            cooldown: 15
            range: 20
            effect-strength: 5
            effect-duration: 100
            target-players: true
            obey-los: true
            cost:
                - 331 2
            str-cost: 2 redstone dust
            str-cast-self: You have crippled your enemy.
            str-no-target: No target found.
        disarm:
            name: disarm
            description: Disarm your opponent.
            cast-item: 369
            cooldown: 15
            range: 20
            disarmable-items:
                - 369
                - 261
                - 267
                - 268
                - 276
                - 283
            disarm-duration: 100
            obey-los: true
            cost:
                - mana 20
            str-cost: 20 Mana
            str-no-target: No target found.
            str-invalid-item: Your target could not be disarmed.
            str-cast-self: You have disarmed %t.
            str-cast-target: "%a has disarmed you."
        drainlife:
            name: drainlife
            description: Drain life from your enemy and give it to you.
            cast-item: 369
            cooldown: 5
            range: 15
            damage: 2
            heal: 2
            animation-speed: 2
            obey-los: true
            target-players: false
            check-plugins: true
            cost:
                - 331 2
            str-cost: 2 redstone dust
            str-cast-self: You drain life from your enemy.
            str-no-target: No target found.
        empower:
            name: empower
            description: Makes your spells more powerful.
            cast-item: 369
            power-multiplier: 1.5
            cooldown: 120
            duration: 30
            num-uses: 10
            cost:
                - 331 3
            use-cost:
                - 331 2
            use-cost-interval: 1
            str-cost: 3 redstone, plus 2 redstone for each spell cast
            str-cast-self: You feel yourself glowing with magical energy.
            str-cast-others: "%a begins to glow with magical energy."
            str-fade: You are no longer glowing with magical energy.
        entomb:
            name: entomb
            description: Encase an enemy in glass.
            cast-item: 369
            cooldown: 5
            range: 15
            obey-los: true
            target-players: false
            tomb-block-type: 20
            tomb-duration: 20
            cost:
                - 331 3
                - 20 1
            str-cost: 3 redstone dust and 1 glass
            str-no-target: No target found.
        explode:
            name: explode
            description: Create an explosion.
            cast-item: 369
            cooldown: 30
            range: 25
            explosion-size: 4
            backfire-chance: 3
            check-plugins: true
            cost:
                - 331 5
                - 289 1
            str-cost: 5 redstone dust and 1 gunpowder
            str-no-target: You cannot create an explosion there.
            str-cast-self: Boom!
            str-cast-others: Boom!
        fireball:
            name: fireball
            description: Throw a fiery ball of destruction.
            cast-item: 369
            can-cast-by-command: false
            cooldown: 1
            range: 30
            require-entity-target: false
            obey-los: true
            target-players: false
            check-plugins: true
            additional-damage: 0
            no-fire: true
            no-explosion: false
            cost:
                - mana 20
            str-cost: 20 Mana
            str-no-target: You cannot throw a fireball there.
        firenova:
            name: firenova
            description: Summon an expanding ring of fire.
            cast-item: 369
            cooldown: 10
            range: 5
            tick-speed: 10
            check-plugins: true
            cost:
                - 331 2
                - 263 1
            str-cost: 2 redstone dust and 1 coal
            str-cast-self: You summon an expanding ring of fire.
            str-cast-others: "%a summons an expanding ring of fire."
        flamewalk:
            name: flamewalk
            description: Burn your enemies around you as you walk.
            cast-item: 369
            cooldown: 30
            range: 8
            fire-ticks: 100
            tick-interval: 100
            target-players: false
            duration: 120
            cost:
                - 331 5
                - 263 2
            use-cost:
                - 331 1
            use-cost-interval: 15
            str-cost: 5 redstone, 2 coal, plus 1 redstone occasionally
            str-cast-self: You begin to burn your enemies around you.
            str-fade: You are no longer burning your enemies.
        forcepush:
            name: forcepush
            description: Push back your enemies.
            cast-item: 369
            cooldown: 8
            range: 10
            pushback-force: 30
            additional-vertical-force: 15
            max-vertical-force: 20
            target-players: false
            cost:
                - 331 3
            str-cost: 3 redstone dust
            str-cast-self: You push back your enemies!
            str-cast-others: "%a pushes back his enemies."
        forcetoss:
            name: forcetoss
            description: Magically throw an enemy into the air.
            cast-item: 369
            cooldown: 5
            range: 15
            damage: 0
            horizontal-force: 30
            vertical-force: 15
            obey-los: true
            target-players: false
            check-plugins: true
            cost:
                - 331 2
            str-cost: 2 redstone dust
            str-no-target: No target found.
            str-cast-self: You push back your enemy!
            str-cast-others: "%a pushes back his enemy."
        frostwalk:
            name: frostwalk
            description: Lets you walk on water.
            cast-item: 369
            size: 2
            leave-frozen: false
            cooldown: 30
            cost:
                - mana 10
            use-cost:
                - mana 5
            use-cost-interval: 50
            str-cost: 10 Mana, plus 5 Mana every 50 blocks
            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.
        gate:
            name: gate
            description: Teleport to spawn.
            can-cast-with-item: false
            world: CURRENT
            coordinates: SPAWN
            use-spell-effect: true
            cost:
                - mana 30
            str-cost: 30 Mana
            str-cast-self: You have teleported to spawn.
            str-cast-others: "%a teleports!"
            str-gate-failed: Unable to teleport.
        geyser:
            name: geyser
            description: Create a geyser of water at your enemy's feet.
            cast-item: 369
            range: 20
            damage: 0
            velocity: 10
            animation-speed: 2
            geyser-height: 4
            geyser-type: water
            obey-los: true
            target-players: false
            check-plugins: true
            cost:
                - 331 2
            str-cost: 2 redstone dust
            str-cast-self: You create a geyser at your enemy's feet.
            str-no-target: No target found.
        gills:
            name: gills
            description: Allows you to breath underwater.
            cast-item: 369
            glass-head-effect: true
            cooldown: 60
            duration: 300
            num-uses: 5
            cost:
                - 331 3
            use-cost:
                - 331 1
            use-cost-interval: 1
            str-cost: 3 redstone dust, plus 1 every few seconds
            str-cast-self: You form gills on your neck!
            str-fade: Your gills disappear.
        haste:
            name: haste
            description: Sprint faster for a time.
            cast-item: 369
            effect-strength: 3
            boost-duration: 300
            duration: 60
            cost:
                - 331 3
            str-cost: 3 redstone
            str-cast-self: You gain unnatural speed!
            str-cast-others: "%a gains unnatural speed!"
            str-fade: You lose your unnatural speed.
        heal:
            name: heal
            description: Heals a target player.
            cast-item: 369
            heal-amount: 10
            obey-los: true
            cooldown: 0
            range: 12
            cost:
                - 331 2
            str-cost: 2 redstone dust
            str-cast-self: You have healed %t.
            str-cast-target: "%a has healed you."
            str-no-target: No target to heal.
            str-max-health: "%t is already at max health."
        invulnerability:
            name: invulnerability
            description: Makes you invulnerable to damage.
            cast-item: 369
            damage-causes:
                - block explosion
                - contact
                - drowning
                - entity attack
                - entity explosion
                - fall
                - fire
                - fire tick
                - lava
                - lightning
                - projectile
                - suffocation
                - void
            duration: 60
            cost:
                - 331 5
            use-cost:
                - 331 1
            use-cost-interval: 5
            str-cost: 5 redstone dust, plus 1 occasionally
            str-cast-self: You feel your skin harden.
            str-cast-others: "%a's skin hardens."
            str-fade: You feel your skin return to normal.
        leap:
            name: leap
            description: Leap forward.
            cast-item: 369
            forward-velocity: 40
            upward-velocity: 15
            cancel-damage: true
            cooldown: 10
            cost:
                - 331 2
            str-cost: 2 redstone dust
            str-cast-self: You leap forward.
            str-cast-others: "%a leaps forward."
        lifewalk:
            name: lifewalk
            description: Flowers grow in your footsteps!
            cast-item: 369
            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-self: Flowers grow in your footsteps!
            str-cast-others: Flowers grow in %a's footsteps!
            str-fade: Flowers no longer grow in your footsteps.
        lightning:
            name: lightning
            description: Call down lightning.
            cast-item: 369
            cooldown: 15
            range: 20
            additional-damage: 0
            no-damage: false
            require-entity-target: false
            obey-los: true
            target-players: false
            check-plugins: true
            cost:
                - 331 2
            str-cost: 2 redstone dust
            str-cast-self: You call down lightning.
            str-cast-others: "%a calls down lightning."
            str-no-target: Unable to find target.
        lightwalk:
            name: lightwalk
            description: Light your path.
            cast-item: 369
            cost:
                - 331 3
                - 50 3
            use-cost:
                - 331 1
            use-cost-interval: 25
            str-cost: 3 redstone and 3 torches, plus 1 redstone occasionally
            str-cast-self: Light appears at your feet.
            str-fade: The light at your feet goes out.
        mana:
            name: lifetap
            description: Restores mana at the cost of life.
            cooldown: 3
            cast-item: 369
            mana: 25
            cost:
                - health 4
            str-cost: 2 hearts
            str-cast-self: You restore 25 mana.
        mark:
            name: mark
            description: Marks your location for later recall.
            cooldown: 43200
            permanent-marks: true
            cost:
                - mana 30
            str-cost: 30 Mana
            str-cast-self: You have marked your location.
        minion:
            name: minion
            description: Summons an undead minion to aid you.
            cast-item: 369
            cooldown: 60
            duration: 60
            mob-chances:
                - Zombie 75
                - Skeleton 25
            prevent-sun-burn: true
            target-players: false
            cost:
                - mana 30
            str-cost: 30 Mana
            str-cast-self: You summon an undead minion.
            str-cast-others: "%a has summoned an undead minion."
            str-fade: Your undead minion dies.
        pain:
            name: pain
            description: Cause your enemy pain.
            cast-item: 369
            cooldown: 5
            damage: 3
            range: 15
            obey-los: true
            target-players: false
            check-plugins: true
            cost:
                - 331 1
                - health 1
            str-cost: 1 redstone dust and a half heart
            str-no-target: No target found.
        phase:
            name: phase
            description: Phase through solid matter.
            cast-item: 369
            cooldown: 10
            range: 5
            max-distance: 15
            cost:
                - 331 2
            str-cost: 2 redstone dust
            str-cant-phase: Unable to find place to phase to.
        prayer:
            name: prayer
            description: Heals yourself for five hearts.
            cast-item: 369
            cooldown: 15
            amount-healed: 10
            cost:
                - 331 1
            str-cost: 1 redstone dust
            str-cast-self: You have healed yourself.
            str-at-full-health: You are already at full health.
        purge:
            name: purge
            description: Kill all monsters and animals around you.
            cast-item: 369
            cooldown: 60
            range: 15
            cost:
                - 331 3
            str-cost: 3 redstone dust
            str-cast-self: You purge all life around you.
            str-cast-others: "%a purges all nearby life."
        reach:
            name: reach
            description: Place and destroy blocks from far away.
            cast-item: 369
            cooldown: 120
            duration: 60
            range: 15
            consume-blocks: true
            drop-blocks: true
            cost:
                - 331 3
            str-cost: 3 redstone dust
            str-cast-self: You gain the ability to manipulate the world around you.
            str-fade: You can no longer manipulate the world around you. 
        recall:
            name: recall
            description: Teleports you to your marked location.
            cooldown: 300
            max-range: -1
            allow-cross-world: true
            cost:
                - mana 60
            str-cost: 60 Mana
            str-cast-self: You teleport to your marked location.
            str-no-mark: You have not marked a location to recall to.
            str-other-world: You cannot recall to another world.
            str-too-far: Your marked location is too far away.
            str-cast-others: "%a disappears!"
        reflect:
            name: reflect
            description: Reflect spells cast at you.
            cooldown: 30
            num-uses: 5
            cost:
                - 331 3
            use-cost:
                - 331 1
            use-cost-interval: 1
            str-cost: 3 redstone dust plus 1 redstone per spell reflected
            str-cast-self: You feel a magical barrier surround you.
            str-cast-others: A magical barrier surrounds %a.
            str-fade: Your magical barrier fades.
        repair:
            name: repair
            description: Repairs your gear.
            cooldown: 120
            to-repair:
                - held
                - hotbar
                - inventory
                - helmet
                - chestplate
                - leggings
                - boots
            cost:
                - 331 3
                - 265 1
            str-cost: 3 redstone dust and 1 iron bar
            str-cast-self: You've repaired your gear!
            str-nothing-to-repair: You have nothing to repair.
        safefall:
            name: safefall
            description: Allows you to fall without taking damage.
            cast-item: 369
            cooldown: 60
            duration: 300
            num-uses: 5
            cost:
                - 331 2
            use-cost:
                - 288 1
            use-cost-interval: 1
            str-cost: 2 redstone dust, plus 1 feather each time you fall
            str-cast-self: You feel lighter.
            str-fade: Your normal weight returns.
    Sorry for the massive wall of text here, I merely wish for you to impart your knowledge and wisdom unto this humble noob.
     
  15. Offline

    luew12345

    hi, I love this plugin but i used /cast bind and now i want to unbind, is that possible?
    if not plz add so u can use /cast unbind or something
    My server ip is:mine.sveasoft.com:1337
     
  16. Offline

    nisovin

    Rellac

    The fix to many of your problems is to set the 'reload-granted-spells' option to true on the list spell, then either tell your players to /cast list when getting a class change, or force them to /cast list with your command sign. This will reload their granted spells, which will give them any new spells and add those spells to the wand as well.

    Giving players the forget spell shouldn't be a problem, because they can only forget their own spells unless the have the magicspells.advanced permission. If you still don't like that, just rename the forget spell to something obscure like laksbdcjklabsldfhsd so that they'll never guess it, and add it to the list of hidden spells on the list spell.

    Please read the FAQ.

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

    luew12345

    ok

    thx i was stupid not to read =p

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

    Rellac

    Ah, thanks a lot. :)

    How would I add forget to the list of hidden spells, though? I can't seem to figure it out. And would I need to use "forget" or the name I input?
     
  19. Offline

    nisovin

    Add spells-to-hide: [forget] to the list spell. You can use "forget" as long as it's still the config section header name, even if you've changed the name: property.
     
  20. Offline

    shanko

    seems like when I right click it shuffles through the spells too fast because I hold the right click down a little bit too long, is there any settings I can cahnge in MC or my PC to fix this :confused:?
     
  21. Offline

    nisovin

    Until now I didn't even realize you could hold down the button to cycle spells, I've always just clicked multiple times. I doubt there's a way to change the speed it cycles.
     
  22. Offline

    shanko

    yeah I think it may be my spoutcraft actually, it only recently started to do this =x, oh well!
     
  23. Offline

    Rellac

    This doesn't seem to work. Anyone can see the forget spell with /c list. Here:

    Code:
        list:
            name: list
            description: List all the spells you know.
            only-show-castable-spells: true
            reload-granted-spells: true
            str-prefix: "Known spells:"
            str-no-spells: You do not know any spells.
            Add spells-to-hide: [forget]
     
        forget:
            name: rthbsgfhgfhhfjgj
            description: Make a player forget a spell.
            str-usage: "Usage: /cast forget <target> <spell>"
            str-no-target: No such player.
            str-no-spell:
            str-doesnt-know: That person does not know that spell.
            str-cast-self: You made %t forget the %s spell.
            str-cast-target: "%a has made you forget the %s spell."
            str-cast-self-target:
            str-reset-target: "You have reset %t's spellbook."
            str-reset-self: "You have forgotten all of your spells."
    
     
  24. Offline

    nisovin

    Rellac Don't put "Add " on there, it's just "spells-to-hide".
     
  25. Offline

    Rellac

    I'm such a failure at life..

    Thanks :D

    Sorry to bug you; but is it a known bug where damage spells can't be used in pvp unless they're a fireball with explosions or lightning?
     
  26. Offline

    nisovin

    No, spells should work fine in pvp. Make sure the target-players option is set to true for spells that you want to be able to target players. If that doesn't work, try setting check-plugins to false. If that works, it means you have another plugin canceling the damage.
     
    Rellac likes this.
  27. Offline

    Rellac

    Ah yes, I had it set to not target players. Thanks for putting up with me. :)
     
  28. Offline

    gartral

    Does it have any dependcies? Like Spout or Essentials?
     
  29. Offline

    Tame

    Disregard please, figured it out. Excellent mod!
     
  30. Offline

    nisovin

    No.
     
  31. Offline

    shanko

    29.02 15:10:08 [Server] WARNING [MagicSpells] Projectile spell 'shurkin' has no spells!

    is there anything bad about this? I just made an easy "shurkin" spell where fires can just fire rapid arrows with no spell damage just arrow damage
     

Share This Page