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 Jul 18, 2013I tried to make custom spell but i don't think they worked any idea what is wrong? i put it in the spells-regular.yml
-
View User Profile
-
Send Message
Posted Jul 18, 2013I think its the dev build and next time post spells in the BBcode Markup Type
-
View User Profile
-
Send Message
Posted Jul 18, 2013This is that spell:
volare: spell-class: ".buff.WindwalkSpell" name: volare spell-icon: feather enabled: true description: Fly through the air. cast-item: book fly-speed: 0.1 launch-speed: 1 cancel-on-land: false cancel-on-logout: true cancel-on-teleport: true cancel-on-damage: false duration: 120 cost: - mana 50 - feather 4 use-cost: - redstone 2 use-cost-interval: 25 str-cost: 50 mana, 4 feathers, plus 2 redstone every 25 seconds str-cast-self: You can now walk on the wind! str-cast-others: "%a is now walking on the wind!" str-fade: You are no longer walking on the wind.
-
View User Profile
-
Send Message
Posted Jul 17, 2013Is there a page with examples of the new spells?
-
View User Profile
-
Send Message
Posted Jul 17, 2013@poncjusz
Did you rename Both titles and the dev build Might be the cause.
-
View User Profile
-
Send Message
Posted Jul 17, 2013@ModingMc Yes, it is windwalk spell, but renamed. It working fine, until latest dev version.
-
View User Profile
-
Send Message
Posted Jul 17, 2013@Tomica44
As far as I know there isn't but someone could probable could make a mod
-
View User Profile
-
Send Message
Posted Jul 17, 2013Is there a way to use this on single player
-
View User Profile
-
Send Message
Posted Jul 17, 2013@poncjusz
Next time put that on pastebin please and I believe the error is coming from the WindWalk spell have you modified that or copied it and not rename it?
-
View User Profile
-
Send Message
Posted Jul 16, 2013Nisovin, is there anything we can do about this in the config file perhaps? These worlds dont need spells anyway; other than the warnings it all still seems to work fine - just annoying :o)
2013-07-17 13:12:28 [SEVERE] Error saving player spellbook: XbejaboneX 2013-07-17 13:12:28 [SEVERE] java.io.FileNotFoundException: plugins/MagicSpells/spellbooks/TARDIS/TARDIS_Worlds/TARDIS_bradenzee/xbejabonex.txt (No such file or directory)
More info: I've tried creating that folder manually - no difference.
-
View User Profile
-
Send Message
Posted Jul 16, 2013@nisovin
Can you give an example of the new particle projectile spell from the last dev builds?
-
View User Profile
-
Send Message
Posted Jul 16, 2013This is complete error message:
java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.nisovin.magicspells.MagicSpells$7.execute(MagicSpells.java:819) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:191) at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:373) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:630) at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.IllegalArgumentException: Cannot make player fly if getAllowFlight() is false at org.bukkit.craftbukkit.v1_6_R2.entity.CraftPlayer.setFlying(CraftPlayer.java:909) at com.nisovin.magicspells.spells.buff.WindwalkSpell.castSpell(WindwalkSpell.java:83) at com.nisovin.magicspells.Spell.handleCast(Spell.java:469) at com.nisovin.magicspells.Spell.cast(Spell.java:429) at com.nisovin.magicspells.Spell.cast(Spell.java:369) at com.nisovin.magicspells.spells.command.ScrollSpell.onPlayerInteract(ScrollSpell.java:261) ... 20 more
java.lang.IllegalArgumentException: Cannot make player fly if getAllowFlight() is false at org.bukkit.craftbukkit.v1_6_R2.entity.CraftPlayer.setFlying(CraftPlayer.java:909) at com.nisovin.magicspells.spells.buff.WindwalkSpell.castSpell(WindwalkSpell.java:83) at com.nisovin.magicspells.Spell.handleCast(Spell.java:469) at com.nisovin.magicspells.Spell.cast(Spell.java:429) at com.nisovin.magicspells.Spell.cast(Spell.java:369) at com.nisovin.magicspells.spells.command.ScrollSpell.onPlayerInteract(ScrollSpell.java:261) at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.nisovin.magicspells.MagicSpells$7.execute(MagicSpells.java:819) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:191) at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:373) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:630) at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Server version: git-Bukkit-1.5.2-R1.0-20-g58c4152-b2810jnks (MC: 1.6.2) MagicSpells version: 2.16
-
View User Profile
-
Send Message
Posted Jul 16, 2013@DivinityCraft
The correct options are cancel-on-give-damage and cancel-on-take-damage.
-
View User Profile
-
Send Message
Posted Jul 16, 2013There is a bug with the Windwalk spell. The cancel-on-damage setting does nothing, which is particularly unfortunate for us since we don't want the spell used for PvP, just building. I'm using the latest version of the plugin and of Bukkit. Great plugin by the way, we have been using it for almost a year.
-
View User Profile
-
Send Message
Posted Jul 16, 2013@ModingMc
Worked it out, It appears that MagicSpellsTeams plugin is preventing the mount spell, once I remove this plugin it works. I also checked if adding beneficial: true would help but no difference.
-
View User Profile
-
Send Message
Posted Jul 15, 2013@LihPeu
You should not need a external Command spell and the mount spell makes a player ride you or vise verse, just making sure you know. Paste bin link: http://pastebin.com/EaEuELmZ
-
View User Profile
-
Send Message
Posted Jul 15, 2013@ModingMc
I have tried passive spells and external spells. Could you please provide a paste of the spells you used to get it working?
-
View User Profile
-
Send Message
Posted Jul 15, 2013@ Lihpeu
I use the mount spell for a fake spider jockey and I don't believe that it would work with a AE spell but I know passive works (rightclick) it may not work for some triggers or other ways of casting because it is a targeted spell. If you cant get multispell to work try a targeted External spell and just make the caster type cast Mount.
Im not sure how to get them off
-
View User Profile
-
Send Message
Posted Jul 15, 2013@Poncjusz
When did you encounter this error and could u post a link to the full error log
-
View User Profile
-
Send Message
Posted Jul 15, 2013I have error encounter:
15.07 20:17:51 [Server] SEVERE [MagicSpells] This error has been saved in the errors folder 15.07 20:17:51 [Server] SEVERE [MagicSpells] Cannot make player fly if getAllowFlight() is false (java.lang.IllegalArgumentException) 15.07 20:17:51 [Server] SEVERE [MagicSpells] AN EXCEPTION HAS OCCURED:
What does it mean and can fix it somehow?