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
I'd like to be able to look up the different packages while in-game e.g.
/ea packages would show me a list of package names: Squire, Page, Knight, Paladin, etc.
/ea [packagename] info would show me a list of what the package "does":
17.10,19.2,20.2,NAME=Excalibur,LORE=The sword in the stone
would enchant a player's sword with Smite 10 Knockback 2 Fire Aspect 2 and name it Excalibur etc.
I'm currently trying to set this up on a server where console access is through Windows Remote Desktop, so is suboptimal and a hassle to have to stay logged in to this all the time I need to tweak the packages.
edit: if this isn't going to be updated for 1.5, then feel free to disregard and I'll just use NBTEdit instead.
Does this plugin support the "Thorns" enchantment? If it doesn't I would love to see it added soon! I'm working on setting up a unique pvp server and I'm going to be selling some items.
I'm pretty sure this need to be updated i tried it with 1.4.7 and it did work.
Nice Plugin, tell me if you need any assistance with it!
Ok, so when I make the packages in the config and go back in the game to play and I type in /ea give matthew8771 276:0 Pvpsword (that's name I put in config) It gives me a normal bow and when I go back into config to fix it..... The whole packages section is deleted. Can you please help me?
Very nice, but two things. One: Could you make it so named items don't appear italic? And two, how do I place the selection symbol in the config file? Thanks.
I was attempting to make an armor package on buycraft, and this package would include a diamond chestplate, a diamond helmet, diamond boots, and diamond leggings, all of which are fully enchanted. I am able to receive my enchanted chestplate and helm, but it doesn't give the boots and leggings, anyone know what I can do to fix this?
Edit: Tried it again without changing any of my configurations, and all of the sudden it has started working.
Is it possible to add multiple level of multiple enchantment on a single item?
how do i apply the sharpness enchantment?
EDIT: found it.
Though.. isnt it easier to just call the enchantments the name they are? :P
Is TuxTwoLib still required?
Can you get this to work with enchanted books? so that you can do: /ea give (player) 403 (enchantpackage)
Fantastic plugin, how did I not find this sooner!
I'm having trouble with the -repairxp switch... I do have some high-level enchants on the items, but no matter what I set it to (-repairxp 0, -repairxp 1, etc), I'm told that repairing the item at an anvil is too expensive, even while at level 90.
@donald1440
New enchantments and potion effects are automatically supported. I should probably update the list on the website though to include all the new enchantment effects you can actually apply.
Where is smite and protection?
How do I distribute my item "godsword" with the name master?
/ea give username 276 master where do I insert the "godsword" name
Nevermind
@Tux2:
Thanks for this awesome plugin, I needed it. Works great with Buycraft. :D
@Tux2
I use it for Buycraft, works perfect thank you.
pointshop looks cool and all, but it uses commands...to spawn in the item its own currency, and im pretty sure the package names, -lore, -name, and potion data values and such wont fit, let alone the name of the player. unless theres a %p or something to identify the player when they hit the sign. Have an example of this work perfectly with long commands Adondriel. It would be better if native sign support was provided by tux2 using iconomy or something. i understand he doesn't have to.
@killaz916
pointshop works, but it uses a separate currency.
@Adondriel
wow, i should have read the stuff better, sorry.