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
Does this work with EnchantMore ? If not could you please update it so that it does ? :)
Ok I answered my own question. It does work and it will enchant random things like Flint & Steel but it doesn't seem to support all the enchantments like Punch and Feather Falling. Could you please add support for the full list of enchantments ? I have once again found my answer. Feather Falling and Punch do not actually exist and are just renamed versions of Enchantment.PROTECTION_FALL and Enchantment.ARROW_KNOCKBACK respectively. Sorry to have doubted your plugin :)
Having said all of that I now really like this plugin :) Thanks for making it. Hopefully my discoveries help out someone else with the same misconceptions.
Also, could you please change this line "You just got given " to "You were just given " or You have been given " so that it will be grammatically correct.
Still wondering if there is some way to have the tool tips... I know I've seen a custom map with an enchanted sign that had the tool tip...
Edit: Nvm. Looked at a Lets Play of the map and the tool tip doesn't show in multiplayer, only single player. Oh well. :/
@JoshzPruitt
Yes they do. You can test it by dropping an enchanted item then picking it back up.
@Tux2
Fair enough. Do the items keep their enchantment even if they are dropped and another player picks them up?
@JoshzPruitt
Client mod. Otherwise you would need a chat notification when holding the item.
Can the enchantments be applied to non-tool items like signs or blocks? I tried it on a sign and a chest and it gave me the item with no enchants. Edit: Apparently it DOES give the enchants, but it doesn't show the tool tip for them. Is there any way for it to show the tool tip to make it more obvious?
@levisn1
the diamond armor is not part of this plugin, unless you plan to enchant it, now for your sword you need to pick a name like firesword so then your config would look like this
firesword: FIRE_ASPECT: 2
then when you go into the game, you type in
/ea give {players name} 276:0 firesword
this will give the player a diamond sword (276) with your fire aspect 2
pls Tux im a newbie..:P can you explane me how to set cfg? for example, i want to do a package FULL DIAMOND ARMOR the secondo package will be a diamond sword with FIRE_ASPECT 2
packages: samplepackage: silk_touch: 1 DURABILITY: 8 samplepackage2: LOOT_BONUS_MOBS: 2 DURABILITY: 8 /ea give <PlayerName> <ItemID:damagevalue> <package>..if i want a no damaged tools? i have to se it on 0? how to do? i dont understand.. ah another question if you can answer, i use pex in buycraft..if i want to use the right command which is the right command?
@xleon97
Some items, like colored wools and dyes, rely on the damage value to determine item types. Also, for tools the damage value specifies how damaged the tool is.
/ea give <PlayerName> <ItemID:damagevalue> <package> what is <sub>damagevalue'' ? when i do for damagevalue ''1'' i just get a normal pickaxe</sub>
sorry for my bad english ;)
@levisn1
Yes, it works just fine with 1.2.4!
WORK ON 1.2.4?
does this work on 1.2.3??
@Redstoner_Pro
You'll need to talk to the author of the Easy Enchant plugin but it should be relatively easy to integrate with if he chooses to do so.
would there be any way to send these packages to Easy Enchant plugin so that they could be crafted through a craft table? Im looking for a way to add weapon enchantments to an axe. MCMMO makes axes into weapons and it would only seem right that the players can add enchants to them too.