EnchantAnything

Have you ever wished for a way to give away enchanted items? Maybe you have BuyCraft or an Enjin shop and want to give enchanted items to players. Whether the player is online or offline at the time this plugin will give them the item regardless! With a config file for defining your own custom enchantment packages that you can apply to any item.

This plugin was commissioned by the owner of WildCraft: "Terribly Pleasant" go check them out!

Features

  • NEW! Add in player names, dates, times and custom variables dynamically to lore!
  • NEW! Add colors into item names and lores!
  • Give away pre-defined enchantment packs on any item
  • Give away pre-defined potion effects on any potion!
  • Add custom item names, lore, repair values, and colors to leather armor!
  • Works with data values!
  • Gives the player the item regardless if they are online or not
  • Perfect for BuyCraft/Donationcraft integration!
  • Reload the config on the fly with /ea reload
  • Permissions support
  • Apply any enchantment to any item
  • Works through the console
  • Give away unenchanted items by giving it a bogus package

How to use

  1. Drop the plugin and TuxTwoLib in the plugin folder
  2. Start the server
  3. Edit the config.yml file in the plugins/EnchantAnything folder with the packages and lores you want
  4. Do /ea reload in game and you are ready to go!

Commands

  • /ea give <PlayerName> <Material:damagevalue> <package> - gives the player the item with the enchantment package applied to it
  • /ea potiongive <PlayerName> <Material:damagevalue> <package> - gives the player the potion with the effects package applied to it
  • /ea reload - Reloads the enchantment packages
  • Optional parameters (can be added to the end of the command in any order):
    -name [Item Name] - Add a custom name to the item.
    -lore [lorepackage] Adds the lorepackage specified.
    -color [r255,g255,b255] - Sets the color on leather armor. Separate colors by commas with no spaces. Each color is in decimal from 0-255, and should be prefixed with the color name (r = red, g = green, b = blue)
    -repairxp [xpneeded] - Sets the repair cost
    -custom [custom variables] - Pass custom variables for the lore

Lore Parameters

List of all the parameters you can put in the lore:

  • %player% - The player's name that you are giving the object
  • %date% - The curent date in YYYY-MM-DD format
  • %datemdy% - The current date in MM-DD-YYYY format
  • %time% - The current time in the server's timezone
  • %time24% - The current time in 24 hour format
  • %timezone% - The current timezone
  • %#% - Custom variables passed via the -custom parameter. Each word separated by a space is a variable specified by a number, starting with 1. So in the following string: This is a test string. They would be:
    %1% = This
    %2% = is
    %3% = a
    %4% = test
    %5% = string.

Materials Cheat Sheet

Permissions

  • enchantanything.give - The ability to give an enchanted item to a player
  • enchantanything.reload - The ability to reload the config file
  • enchantanything.potiongive - The ability to give a custom potion to a player

Enchantment List

  • ARROW_DAMAGE
  • ARROW_FIRE
  • ARROW_INFINITE
  • ARROW_KNOCKBACK
  • DAMAGE_ALL
  • DAMAGE_ARTHROPODS
  • DAMAGE_UNDEAD
  • DIG_SPEED
  • DURABILITY
  • FIRE_ASPECT
  • KNOCKBACK
  • LOOT_BONUS_BLOCKS
  • LOOT_BONUS_MOBS
  • LUCK
  • LURE
  • OXYGEN
  • PROTECTION_ENVIRONMENTAL
  • PROTECTION_EXPLOSIONS
  • PROTECTION_FALL
  • PROTECTION_FIRE
  • PROTECTION_PROJECTILE
  • SILK_TOUCH
  • THORNS
  • WATER_WORKER

Potion Effect List

  • ABSORPTION
  • BLINDNESS
  • CONFUSION
  • DAMAGE_RESISTANCE
  • FAST_DIGGING
  • FIRE_RESISTANCE
  • HARM
  • HEAL
  • HEALTH_BOOST
  • HUNGER
  • INCREASE_DAMAGE
  • INVISIBILITY
  • JUMP
  • NIGHT_VISION
  • POISON
  • REGENERATION
  • SATURATION
  • SLOW
  • SLOW_DIGGING
  • SPEED
  • WATER_BREATHING
  • WEAKNESS
  • WITHER

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of KevinEssence KevinEssence Oct 10, 2014 at 08:40 UTC - 0 likes

    Still the best plugin for years!

    KevinEssence Server owner at hub.prxcraft.com

    Kevin

  • Avatar of LHammonds LHammonds Jul 01, 2014 at 00:51 UTC - 0 likes

    @Tux2: Go

    I've tried the following commands but it yields no effects at all.

    ea give HammondsLegacy potion samplepotion -name Werewolf
    ea give HammondsLegacy 373 samplepotion -name Werewolf
    

    It is just a bottle of water with a werewolf name.

    Here is the section of the config that is being referenced:

    potions:
      samplepotion:
        REGENERATION:
          duration: 500
          amplifier: 4
          ambient: true
        NIGHT_VISION:
          duration: 500
          amplifier: 2
          ambient: false
    
    Last edited Jul 01, 2014 by LHammonds

    Website: HammondsLegacy.enjin.com

    Minecraft Server: HammondsLegacy.com

  • Avatar of Tux2 Tux2 Jun 29, 2014 at 06:06 UTC - 0 likes

    @LHammonds: Go

    Try doing the potion as a water bottle without specifying it being a night vision potion.

    http://myfavs.me/bcs.pngDonate Bitcoins?1Lr7prAnqYpZe2UizvPKV2Cg4KSuj2weXb
    If you didn't take the time to read how my plugins work, don't expect me to take the time to diagnose your stupidity.
    If updates to my plugins depended on donations, they would never update. Donate!

  • Avatar of LHammonds LHammonds Jun 29, 2014 at 00:28 UTC - 0 likes

    @Tux2: Go

    I used the default sample configuration and spelled out the command I used to spawn the potion. What did I do wrong? (also, I have not used this for potions before)

    Here is the command again:

    ea give HammondsLegacy potion:16390 samplepotion -name Werewolf
    

    LHammonds

  • Avatar of Tux2 Tux2 Jun 25, 2014 at 23:35 UTC - 0 likes

    @TheR3ktor: Go

    Did you install TuxTwoLib as well?

  • Avatar of TheR3ktor TheR3ktor Jun 25, 2014 at 10:28 UTC - 0 likes

    My server won't even load the plugin? It can load any other plugins.

  • Avatar of Tux2 Tux2 Jun 21, 2014 at 20:01 UTC - 0 likes

    @LHammonds: Go

    Interesting about the potions. I'd check to make sure that you had them typed in correctly as I didn't change any potion related code.

    I totally forgot about your feature request! It's been added into version 1.3 and uploaded to bukkit! See the cheat sheet above for the parameters.

  • Avatar of LHammonds LHammonds Jun 21, 2014 at 14:38 UTC - 0 likes

    EnchantAnything v1.2 works on CraftBukkit 1.7.9-R0.3 Build 3095 with TuxTwoLib-1.7.9-b2 on Windows 7, 64-bit and Ubuntu Server 12.04.4 LTS 64-bit and Java 1.7.0_55 64-bit.

    It also works on Spigot 1.7.9-R0.3 Build 1496

    Commands Tested:

    ea give HammondsLegacy diamond_pickaxe samplepackage -name Master Silkpickaxe -lore samplelore
    ea give HammondsLegacy leather_chestplate boguspackage -name Hulk Smash -color r102,g255,b102
    ea give HammondsLegacy potion:16390 samplepotion -name Werewolf
    

    NOTE: The "samplepotion" in the config shows 2 effects, regeneration and night vision...however, when applied via the command above, it only applies night vision and seems to forget regeneration.

    Old Request: Is there a way to add the buyers name and date of purchase to the lore? For example, having an entry in config.yml as "Procured by {USERNAME} on {DATE}" which if given to HammondsLegacy would read as "Procured by HammondsLegacy on 2013-07-31"

    Thanks,

    LHammonds

    Last edited Jun 21, 2014 by LHammonds
  • Avatar of Tux2 Tux2 Jun 15, 2014 at 18:20 UTC - 0 likes

    @Ubique1964: Go

    Yes, it does. In fact I just pushed a new updated version to ensure future compatibility. With version 1.2 not only does it support 1.7.9 but I also added the ability for you to put colors in the item name and lore!

  • Avatar of Ubique1964 Ubique1964 Jun 08, 2014 at 01:47 UTC - 0 likes

    Does this still work for 1.7.*

Facts

Date created
Feb 22, 2012
Categories
Last update
Jun 21, 2014
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
EnchantAnything
Downloads
8,325
Recent files
  • R: v1.3 for CB 1.7.9-R0.1 Jun 21, 2014
  • R: v1.2 for CB 1.7.9-R0.1 Jun 15, 2014
  • R: v1.1 for CB 1.6.4-R2.0 Dec 20, 2012
  • R: v1.0 for CB 1.3.1-R1.0 Feb 22, 2012

Authors

  • Avatar of Tux2
    • Manager
    • Author