EnchantControl
I gave this project up, when I found out that the anvil result slot is untouchable from the server and 100% client side.
EnchantControl
This plugin lets you control enchant through enchanting tables and anvils and modify the vanilla mechanics
What this plugin does
- Allow you to control the maximum enchantment level and number of bookshelfs needed for it
- Allow you to remove enchantments completely
- Allow you to change the maximum level of enchantments
- Allow you to change the probability of enchantments dependant to the level
- Allow you to change the costs for anvil use
- Allow you to disable the renaming of items with an anvil
- Allow you to define the maximum levels of enchantments with anvils
How to use this plugin
This plugin replaces the vanilla enchantment calculation with the one defined in the config by yourself. So in order to get this plugin to work just drop it in your plugins folder and specify every item in the config to your needs (How? See config section).
Config
- maxEnchantingLevel: Maximum level an item can be enchanted with in an enchanting table (vanilla is 30, used to be 50)
- first-,second-,thirdEnchantLevel: Define the level the 3 tabs in the enchanting table are going to be as formula (use <level> for the players current level)
- sword-,tool-,bowEnchantments: A list of all enchantments that swords/tools/bows can get
- sword-,tool-,bowMaxEnchantments: The maximum amount of enchantments swords/tools/bows can get
- materialModifier~ (~ is the material; e.g.: materialModifierWood): Specific modifier of a material (used in the probability for enchantments)
- Probability(~ is enchantment name; e.g.: silktouchProbability): Probability for the specific enchantment (use 'mm' (without ' ') as the MaterialModifier and <level> as the levels the player invested for this enchant) as formula
- maxAnvilLevel: Maximum xp levels that can be used in an anvil (vanilla is 39)
- renameCost: Cost for renaming an item (in xp level)
- renameItems: Whether items can be renamed (true or false)
- Price(~ is enchantment name; e.g.: silktouchPrice): Price of keeping an enchantment in the anvil in levels (use <enchantlevel> for the level of the enchantment)
- Price(~ is the material; e.g.: woodPrice): Price for repairing / combining a specific material in level
Source
The source can be found in the jar in the folder 'src'.
@mncat77
I agree, this is a useful plugin even with the glitchy look! Please upload an alpha version of it as it would be much appreciated by many.
Sounds like good plugin. Just if you will add also Real Enchantment name it would be amazing...
@mncat77
Release it and just mark it as Alpha or something, this plugin sounds amazing.
I'd say publish it. Then people could give you feedback/advice. I know releasing glitching things aren't good but if people know it is in development I think they can forgive those bugs.
I would love to see it published, with or without the glitch. This is the only plugin that shows promise for modifying both the anvil levels and the enchant levels, which is very convenient
@mncat77
I think you should man, I know I could definitely benefit with this. I've looked around at the other plugins that limit enchanting and none of them seem to have the spark that this one has. I don't want to completely take away enchants like some plugins do, I want to actually edit the values. This is definitely the plugin for me, glitchy anvil graphics and all.
To everyone asking for this: the plugin is not hard to finish, but it is going to look a bit glitchy in action because of the client always showing the vanilla result in an anvil. Thats the only reason I didn't yet upload it. That's fine with you? I don't like publishing it with that glitchy look....
Really need this!
When is the expected release date? This plug-in is exactly what I am looking for. Thanks for putting in the hard work! Much appreciate what you do!
@island219
Just annoyed by the packet sent (Plugin message/Custom payload) when an item is renamed, casting the active player container to ContainerAnvil preventing my plugin to fire in. I'll use ProtocolLib to catch it and override it currently working on that, atm no. (Also this plugin exceeds the bukkit api and depends mostly on NMS code don't know if you are familiar with that, no offense though was just guessing that because of your plugins.)
Need any help?
I must say that I am quite excited about this plugin and will try it out as soon as it releases. Keep on going. :)
I agree with Emcitement. If you manage to feature all of whats listed in this plugin, this will be the only one of its kind. EnchantLimiter causes all enchanted bows to be invulnerable in durability, vEnchant can't limit specific enchant level caps, and Enchant Handicap doesn't account for anvils. I'll be looking forward to this.
@Emcitement
I am about half way through making this plugin, I don't know when I'll have time to release it but it should be in the next month defenitely (and hopefully in the next 1-2 weeks).
"Allow you to change the costs for anvil use" "Allow you to define the maximum levels of enchantments with anvils"
This is 100% exactly what I've been looking for. I will love you forever if this plugin comes out.