SimpleWands
Introduction
SimpleWands adds a variety of craftable wands to your world. Wands are mid-range weapons that fire different projectiles and cause different effects (positive and negative) when they hit the target.
The wands are simple to use. They have only two actions - a main action and a secondary action. These actions are triggered by the left mouse button and the right mouse button, respectively. Whenever an action is triggered, the wand fires a particular projectile towards the target.
The wands also rely on a mana system. A player must have enough mana (which is the same as “power” or “energy”) in order to use the wand. This plugin allows the server operators to choose a mana mechanism that works for them, from item-in-inventory to scoreboard objective score.
Wands
The default wands are:
- FireyWand
- Main: Long-range, light damage attack that sets targets on fire.
- Secondary: Mid-range fireball that sets all targets in the area on fire if it hits.
- IcyWand
- Main: Long-range, light damage attack.
- Secondary: Mid-range snowball that slows down the target if it hits and causes light damage.
- HealingWand
- Main: A mid-range projectile. If it hits, heals the target for 1 HP.
- Secondary: A short-range projectile. If it hits, gives the target regeneration.
- SupportWand
- Main: A mid-range projectile. If it hits, gives the target swiftness.
- Secondary: A mid-range projectile. If it hits, gives the target strength.
- LightningWand
- Main: Long-range, light damage attack.
- Secondary: Mid-range, high cost attack. If it hits, the target will be struck by a lightning and suffer additional damage.
- PoisonWand
- Main: Long-range, light damage attack.
- Secondary: Mid-range high cost attack. If it hits, poisons the target and everyone in the area.
- WickedWand
- Main: Mid-range egg which weakens the target and causes light damage.
- Secondary: Mid-range attack. If it hits, 1 level of positive effect will be removed from the target (e.g. Swiftness 2 will turn into Swiftness 1).
- MendingWand
- Main: A mid-range projectile. If it hits, heals the target for 1 HP.
- Secondary: Mid-range mending effect. If it hits, 1 level of negative effect will be removed from the target (e.g. Weakness 2 will turn into Weakness 1).
- ProtectionWand
- Main: A mid-range projectile. If it hits, gives the target a quick absorption effect, which gives the player the ability to absorb damage.
- Secondary: Mid-range projectile. If it hits, gives the target damage resistance effect (reduces all incoming damage).
Please note that server owners may add new wands or change the existing wands.
Projectiles
The behavior and properties of wands actually come from the projectiles they fire. In fact, a wand is just a composition of two projectiles types (main and secondary). The types of projectiles, their damage values, effects, cost and range are all listed in the configuration file of the plugin (config.yml). As a server owner, you may add new projectiles. This is, for example, the configuration section of the secondary projectile used by the healing wand:
regenegg: type: egg cost: 5 range: 10 effect: type: 10 duration: 60 amplifier: 2
This means that a projectile called “regenegg” (used by the secondary action of the healing wand) is of type egg, costs 5 mana, has a range of 10 blocks and causes the regeneration effect for 60 ticks (3 seconds) amplified (x2).
Mana Mechanism
The plugin supports four mana mechanisms:
- 'xp' - The player XP level
- 'item' - The amount of a particular item in the player's inventory (default is redstone).
- 'food' - The player's food level.
- 'scoreboard' - The score of the player in a scoreboard of a defined objective (called "mana" by default)
The default mana mechanism is ‘item’, which means a player’s mana will be determined by the amount of redstone (you may change this to a renewable item like sugar) that they have in their inventory. Whenever the player uses a wand, that amount will be taken from their inventory.
For a mana system that self-regenerates (since version 1.4), you may use 'scoreboard'. It displays the player's mana on a personal scoreboard whenever the player switches to the wand or uses it, and it does not affect other aspects of the game. The mana is regenerated at a pace of 1 mana per second, up to a maximum of 20 (configurable).
Food level is also an interesting mana source in survival/pvp servers. For the wands to be effective, a player will have to eat frequently during battle to regenerate mana.
Change the attribute 'ManaMechanism' in config.yml to switch the mana mechanism (this will require a server reload).
Crafting
By default, the wands above can be crafted. The recipes are listed in the configuration file of the plugin. A server owner may choose to remove those recipes, in which case the wands will only be available via the /simplewands give command.
For example, this is the default crafting recipe for the FireyWand wand:
FireyWand: Materials: P: BLAZE_POWDER B: BLAZE_ROD N: NETHER_STAR Shape: Row1: -P- Row2: -N- Row3: -B-
Commands
The list of commands:
- /simplewands version - Shows the plugin’s version.
- /simplewands give <wand> - Gives you a wand of type <wand>.
- /simplewands info - Shows information about wands and projectiles.
- /simplewands reload - Reloads the configuration file.
- /simplewands disable - Disables the plugin until the next server reload.
By default, only server operators can use the commands.
Permissions
There are two permission settings:
- simplewands.usecmd - Allows you to use the simplewands command (defaults to ops only).
- simplewands.usewand - Allows you to use the wand (defaults to everyone).
Kits
If you use a kit plugin, which supports lore settings, you can also add the wands to the kits. In Essentials, the item specification will be:
items: - 369 1 name:&eFirey_Wand lore:Type:_FireyWand
the scoreboard wand doesn't regen automatically any help?
My mana on the scoreboard broke one time, but that's mostly fine.
The firey wand made the person with the wand on fire, so I changed it to an egg. The secondary is eoafireball or whatever, but If I change that, the main changes. Some of the wands (healing, mending) you can't splash on your self, you have to stand like 10 blocks away. Is there anyway you could fix that, some of the wants you can splash on your self.
EDIT: I deleted the config and got a new one, changed the recipes, changed lightning rod to teleport wand (left/right click shoots pearl).
So, the firey wand now shoots a firepearl, BUT it also teleports you. Left click does the exact same thing. It feels like some secondary "projectiles" are actually primary ones.
I have one little problem with this plugin. If I am making pvparena with scoreboards and I want players to don´t dmg their teammates how can I do it? If it´s not possible you should really add that.
Oh kk thx lol, so simple.........,guess time to upgrade
@Javi420
The latest version only works with newer CraftBukkit versions (1.7.5+).
hi , thx for this great plugin btw......, im getting a error idk if myb u can help me, I get it over n over again, started happening as soon as I craft/use a wand and then wont stop unless I turn off server..
[Server thread/WARN]: [SimpleWands] Task #6 for SimpleWands v1.8 generated an exception java.lang.NoSuchMethodError: org.bukkit.Server.getPlayer(Ljava/util/UUID;)Lorg/bukkit/entity/Player; at org.samson.bukkit.plugins.simplewands.smartscoreboard.SmartScoreboardService.incrementMana(SmartScoreboardService.java:154) [?:?] at org.samson.bukkit.plugins.simplewands.smartscoreboard.SmartScoreboardRegenTask.run(SmartScoreboardRegenTask.java:15) [?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:53) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:587) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
Thx a lot btw
@oLLyyy
Update: I just tested wands in WorldGuard regions where the pvp flag is set to 'deny', and they do not affect players. That is, players cannot hurt other players using wands inside those areas.
@eyalzh
I mean the prevent the ability to use wands inside world guard regions, basically prevent them right and left clicking with wands would be great
Woah awesome plugin. Will this plugin work alongside faction plugins.
@oLLyyy
By WorldGuard integration, do you mean not being able to damage someone with the wands inside non-pvp areas?
Hello, i use this a main feature on my Anarchy Server. However i would like WorldGuard integration.
Can you please make a video or something helpful to show me how to implement this with kits!? Im dying to know and im quite confused on how to use this with the essential kits plugin. Thanks!
iiAWESOMNESS
Add special effects and cooldowns! Also make it so it can give the user to heal them self or a potion effect!
Is it possible to add special effects upon impact? (like an instant firework effect)
Hi,
Would it be possible for mana to use the items durability?
@vi0linwarlord
You can add new wands and projectiles to the configuration file. However, there is no permission node per wand. Rather, you can attach a wand to a name perfix (see RPG hooks in the configuration file). So, you can have Wand X used only by players who have "[Mage]" in their prefix.
About the kits - yes. Because wands are just items with lore, they can be added to Essentials' kits. See Essentials wiki for more info.
2 questions: 1. How do I make Custom Wands (Like for Staff and Donators)? 2. Is is possible to have the Wands in the Kits?
@eyalzh
ok thanks
@Madc0wz
In the config.yml file, change ManaMechanism setting to scoreboard (it is item by default). Then reload the server (/reload). That's it :)
Excuse me for being a noob, but how do I change the mana mechanism to scoreboard