
Require ProtocolLib
Features:
All features can be disable with config
- Uses a new formula for calculating the required experience levels for anvils.
- Allows anvil usage beyond the vanilla level 39 cap.
- Disable mending (default off)
- Gives you the ability to skin armor using other armor pieces (see gallery for how)
Why change the anvil formula?
With the vanilla formula for level calculation, book with low enchants level are useless as it could lead to being too expensive.
You need a calculator to calcualte what book to put on first, which is annoying.
Repairing with ores are not practical due to the xp requirement and mending are too unbalanced.
Anvil level formula:
This is not required for gameplay, please check code for more clearity.
TL;DR: Levels are calculated base on changes in enchantment.
Basic formula (code):
Cost=∑(Level×3)+[Mending Bonus (5)]
If enchantment books are used (code):
Repair Cost=[Cost calculation of book]×Multiplier
If not (code):
Final Repair Cost=max(1,[Result Cost]−max([Item1 Cost],[Item2 cost]))×Multiplier
Rename and repair always cost 1 level.
Examples:
Note level of enchants are represent with roman numerals for clearity, value calculate with multiplier of 1.
Unenchanted pickaxe + Unbreaking III require 9 levels (III * 3)
Unbreaking III pickaxe + Mending require 8 level (I * 3 + 5)
Efficiency V pickaxe + Unbreaking III pickaxe require 9 level ((V*3 + III*3)-max(V*3,III*3))
Config:
| Name | Description | default |
|---|---|---|
| disableMending | disable mending | false |
| maxCost | Max level allowed | 32767 |
| multiplier | Level multiplier (require rebalance) | 1 |
| disableRebalance | disable rebalance | false |
| disableSkinning | disable skinning | false |
Credit:
Anvil Unlocker for showing infomation about how level unlock work
