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 Dec 31, 2012In the case of ExternalCommandSpell for temporary-permissions you write: "A list of permission nodes to grant a player temporarily when casting the spell. Note: PermissionsEx doesn't seem to properly support this feature."
For me, setting temporary-op: true solves this pex problem luckily.
Example:
horde:
spell-class: ".ExternalCommandSpell"
name: horde
spell-icon: 6:3
enabled: true
description: Spawn a zombie horde
cast-item: 283
cooldown: 300
can-cast-by-command: true
can-cast-with-item: true
command-to-execute:
- "spawnmob zombie 5"
command-to-execute-later: []
command-delay: 0
command-to-block: []
temporary-permissions:
- "essentials.(spawnmob|spawnmob.zombie)"
temporary-op: true
require-player-target: false
obey-los: true
range: 20
cost:
- 367 33
- mana 55
str-cost: 33 rotten flesh, 55 mana
str-cast-self: You summoned a horde of zombies!
str-cast-others: "%a summoned a horde of zombies!"
str-cant-use-command: "&4You don't have permission to do that."
-
View User Profile
-
Send Message
Posted Dec 30, 2012@xphoenixxx
You need to use a dev build of 2.12. Read the notice at the top of the page.
-
View User Profile
-
Send Message
Posted Dec 30, 2012Any thoughts here? I get this even if i wipe the magicspells folder; I am guessing its not fully 1.4.6 ready.. or is it a case of I need to get a newer dev build? Or has the dependancies changed?
2012-12-31 16:24:48 [INFO] [MagicSpells] Enabling MagicSpells v2.11
2012-12-31 16:24:48 [SEVERE] Error occurred while enabling MagicSpells v2.11 (Is
it up to date?)
java.lang.NoClassDefFoundError net/minecraft/server/Packet
at com.nisovin.magicspells.MagicSpells.load(MagicSpells.java:168)
at com.nisovin.magicspells.MagicSpells.onEnable(MagicSpells.java:136)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
r.java:381)
at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java
:278)
at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.j
ava:260)
at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:32
1)
at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:30
0)
at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:25
9)
at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java
:149)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:
399)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84
9)
Caused by: java.lang.ClassNotFoundException net.minecraft.server.Packet
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader
.java:70)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
java:53)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 13 more
-
View User Profile
-
Send Message
Posted Dec 30, 2012Hi, i am making a wizard group in Essential how do i make it so only they have this and not default is the a block permission node or something help
-
View User Profile
-
Send Message
Posted Dec 30, 2012Whenever I use /cast, it just repeats in chat!Dev Builds :P
-
View User Profile
-
Send Message
Posted Dec 30, 2012@zarakh01
No, buff spells do not work that way.
@Silial
That should already be possible.
@shankomaster
I'm not planning on getting rid of it, but it has been an annoying spell to keep working. If it breaks again in the future, I may end up not fixing it.
@Jacopo007
Your cuboid is 0 blocks high. You should also use integer values, not decimal values.
-
View User Profile
-
Send Message
Posted Dec 30, 2012@Jacopo007
Try to set the 'type' to 'worldguard' and the 'area' to 'spawn' as is says in the No Magic Zone page
-
View User Profile
-
Send Message
Posted Dec 30, 2012@Willbbz
i write in zones.yml: zone1: enabled: true world: world type: cuboid point1: 46.0,76.0,73.0 point2: 159.0,76.0,231.0 message: You can't here. disallowed-spells: - blink
Any errors?... I set the region with name "spawn" and this is the worldguard file of the region: regions: spawn: type: cuboid min: {x: 46.0, y: 76.0, z: 73.0} max: {x: 159.0, y: 76.0, z: 231.0} priority: 0 flags: {} owners: players: [vendicatore, lexotan] members: {}
-
View User Profile
-
Send Message
Posted Dec 30, 2012@Jacopo007
Use WorldGuard to disable commands in your spawn region
-
View User Profile
-
Send Message
Posted Dec 30, 2012How i can disable all the spells in Safezone (spawn) ?
-
View User Profile
-
Send Message
Posted Dec 30, 2012I hope CarpetSpell being crossed out doesnt mean youre getting rid of it.... I would rather have a magic carpet spell then letting players fly around and not be able to tell if they are flying or actually hacking. Please leave in the carpet spell :[
-
View User Profile
-
Send Message
Posted Dec 29, 2012Would it be possible to have the "dowse" entity type to set to a player? Thus letting it target a random nearby player?
Thanks for reading and/or replying!
-
View User Profile
-
Send Message
Posted Dec 29, 2012Is there any way to cast a buff spell on a target instead of just yourself?
-
View User Profile
-
Send Message
Posted Dec 29, 2012@LihPeu Thank you!!!!!
-
View User Profile
-
Send Message
Posted Dec 29, 2012@Jacopo007
@1codekiller
2.12 is compatible with 1.4.6.R0.1 and is available as a dev build http://nisovin.com/magicspells/developmentbuilds
-
View User Profile
-
Send Message
Posted Dec 29, 2012@tornmage
Yea man, I have the same problem :P
-
View User Profile
-
Send Message
Posted Dec 29, 2012So is this plugin compatible with the craftbukkit beta build 1.4.6-RO.1?
-
View User Profile
-
Send Message
Posted Dec 29, 2012@nisovin
It's fixed, thank you!
-
View User Profile
-
Send Message
Posted Dec 29, 2012@nisovin
Ok, im waiting the version 2.12... For you, when is ready?
-
View User Profile
-
Send Message
Posted Dec 28, 2012@Thyrin
Shops should be working again in the latest dev build of 2.12.
@artlune
Okay, I think it's really working this time in the latest dev build.
@Jacopo007
Please read the notice at the top of the page.