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
- Drop the plugin and TuxTwoLib in the plugin folder
- Start the server
- Edit the config.yml file in the plugins/EnchantAnything folder with the packages and lores you want
- 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.
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
Well all good things have to come to an end I suppose
Any chance of getting this updated? or anyone know of a similar plugin?
Are there any plans on adding support for attributes, http://minecraft.gamepedia.com/Attribute#Attributes_available_on_all_living_entities to this plugin?
I have been attempting to make kits using colored names and lores, along with these attributes, but no matter what I do, it seems like I have to pick between one or another...
Still the best plugin for years!
@Tux2
I've tried the following commands but it yields no effects at all.
It is just a bottle of water with a werewolf name.
Here is the section of the config that is being referenced:
@LHammonds
Try doing the potion as a water bottle without specifying it being a night vision potion.
@Tux2
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:
LHammonds
@TheR3ktor
Did you install TuxTwoLib as well?
My server won't even load the plugin? It can load any other plugins.
@LHammonds
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.
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:
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
@Ubique1964
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!
Does this still work for 1.7.*
this would be awesome if you could also apply potion effects to weapons as well.
added colored names like essentials please
added colored names please
@orgiz0701
Yes it is possible, just use LUCK and LURE
Source code please? I want to hook it into new plugin :)
Is it possible to add the new 1.7.2 enchantments?
Enchantments: Lure & Luck of the Sea
@xdeathoreox
Sorry :P