EnhancedEnchants
EnhancedEnchants
Combine enchantments on an anvil to increase their level (infinitely).
Costs and limitations are configurable.
Changelog
1.6
- You can change the messages that the plugin sends through the config;
1.5
- Swift sneak enchantment support (1.19);
1.4
- You can now disable merge types;
- You can now disable certain enchantments;
- Multiplier can be specified per enchant individually;
- Custom attributes are now preserved on merged items;
1.3
- Fixed permissions (they work);
- Autocomplete for commands;
- Lore is now preserved on items;
- Added a reload command;
- You can disable the "Too Expensive!" message through the config;
1.2
- You can now specify the maximum allowed level per enchant through the config;
- Fixed a bug where some items could receive improper enchantments;
1.1
- Added commands to change the multiplier and maximum repair cost;
- Players receive a message that tells them the cost of combining enchants when the anvil menu reads "Too Expensive!";
- Fixed a bug where renaming an item would allow you to combine enchantments past the maximum allowed repair cost;
Config
max_repair_cost
- The maximum level cost that is allowed to be spent combining enchants, before it says "Too Expensive!"
- Default: 50
multiplier
- The multiplier for cost increase per level of enhanced enchant.
- Making Unbreaking IV would cost <vanilla cost> + <multiplier> * 1
- Making Unbreaking V would cost <vanilla cost> + <multiplier> * 2
- and so on..
- Default: 10
too_expensive_message
- Should the plugin notify players when the client shows "Too Expensive!" when the maximum allowed cost is not exceeded.
- Default: true
enchantments (Contains all enchantments)
- multiplier (see above)
- limit (the maximum level for this enchant)
- disabled (if true, this enchant can't be obtained from an anvil)
Commands
/enhancedenchants maxrepaircost <number>
/enhancedenchants bookonbook <true/false>
/enhancedenchants bookonitem <true/false>
/enhancedenchants itemonitem <true/false>
/enhancedenchants reload
Permissions
enhancedenchants.use
- Able to combine enchants above the vanilla limit;
- Given to all by default;
enhancedenchants.admin
- Able to modify the cost settings using above mentioned commands;
- Given to operators by default;
Always improving
Please let me know if you find any issues with the plugin.
Suggestions are welcome, too.
In reply to Nattayy:
Thank you for the bug report. This issue is resolved as of version 1.2;
The plugin is perfect except for one thing I discovered: if you have two books, where the cost to combine them is 'too expensive', you can just rename the final book to anything, and confirm the action anyway.
My tests:
- Having two Efficiency 5 books, the cost says 15. Renaming the book made the cost say 6, but on confirming, 15 levels were taken from me after all, so this worked. (the name of the book got reverted too, and I didn't pay anything for the non-working naming process, so that's perfect as well, just visual glitches).
- Having two Eff 9 books, the cost was 'too expensive' based on default config settings, but renaming the book at THIS stage and then confirming while the cost was only 6 or so levels made an Eff 10 book. The >50 levels WERE taken from my XP bar, but I ended up with an op book that should have been impossible with my settings.
So that's a major exploit, but apart from that, it's a simple and good plugin that I'd want to keep!
In reply to notenoughbees:
Thank you for the bug report. This issue is resolved as of version 1.1;
Any chance we can limit which enchants get used? Some of them are kinda OP.
Basically have a separate part of the config wherein is the name of the enchantment and the max level that it can go to?
In reply to LordWellenDowd:
This feature is implemented as of version 1.2;
Is there a way (or a file edit) that I could disable the custom enchant combining part of the plugin, I really like it, but, for our survival server we want to be rid of the, too expensive, but not have OP enchants. I already set the multiplier to 2000 but if we wanted to combine certain items it will think I want to get a custom enchant, or, sometimes it will just display a custom enchant even tho I'm not combining anything that would make a custom enchant. -thx
In reply to RoarkCats:
I will look into that last part.
As for disabling OP enchants, i might add that come the next update. No promises, though.
In reply to Kars1090:
Would look forward to that feature.
Is there anything I could do manually like removing specific files and text or something?
As for "that last part" it might have something to do with combining say power IV and IV to V bow and then adding other enchants onto the bow (starting with not vanilla max combine) if that makes sense.
I am currently using this in 1.14 on a server and in survival and the max_repair_cost isn't changing anything.. I didn't set it above the max number you mentioned below, I made sure to save the file and restart the server, and yet, in survival, it still says "Too Expensive!" We are all opped on the server and for now, we'll just work in creative when combining hight numbers of xp, but, it would be preferable if you could let me know or create a fix for this! -Thanks
In reply to RoarkCats:
It says too expensive but the result is still obtainable, given a sufficient amount of experience.
This is because the max value is hard coded into the client in survival. The drawback is that players arent able to see the actual costs of the combinement when they are in survival. But it still works.
In reply to Kars1090:
Oh, sorry, Idk why, but, I set it to work and tested it but either I didn't notice that it worked or I'm just blind, thanks! Nice Plugin! (I wonder if it's possible to change the hard coding..?)
In reply to RoarkCats:
It would require client modifications.
In 1.14.3 if u try to enchant in survival, it says 'too expensive!' anyway it lets u enchant, but it doesnt shows the lvl cost.
If u are in creative, it doesnt says nothing and just show u the lvl u need.
Anyway great job man i love your plugin! <3
please update it to 1.14.2
In reply to Forge_User_05964807:
It should work for 1.14
Thank you for the plugin mate
Hi there, I've been using your plugin for almost a week now but noticed, Non-OP members on my server cannot see any custom enchants in their anvils. Basically it doesnt work for em. Is there a certain permission I need to give them I haven't noticed myself yet?
In reply to Forge_User_77722134:
Download version 1.1, it has the permissions for all by default. Otherwise there is a permission called enhancedenchants.use.
In reply to Kars1090:
Awesome man, the permission worked! 1 Think I noticed was that for example Riptide 3 is the maximum one allowed? Is that intentional?
You can make for example a Riptide 7 book, but when combined with a standart empty trident it just gives it Riptide 3. Even if combining A riptide 3 trident with another one or just a riptide 3 book It doesnt make it a Riptide 4. Just 3
In reply to Forge_User_77722134:
Interesting. It is not intentional and i hadn't tried it. Must be a limitation put in place by the game.