Auxilor / EcoEnchants

Custom Enchantments Plugin for the latest minecraft version
GNU General Public License v3.0
262 stars 160 forks source link

Modifying cost-exponent to mimic Vanilla cost specifically will prevent some custom enchants from working in anvils #351

Open baailey opened 1 year ago

baailey commented 1 year ago

Describe the bug With a lower cost-exponent than what the plugin sets by default, you cannot apply enchants that have a lot of levels (Boss Hunter, Bleed, Cubism etc.) to items via an anvil due to the XP cost being presumably less than 1.

To Reproduce Steps to reproduce the behavior:

  1. Set your cost-exponent to 0.45
  2. Give yourself a Bleed 1 book
  3. Try applying it to a sword in an anvil

Expected behavior For there to be a minimum XP level set no matter the enchant. It shouldn't deny being able to apply it at all, especially when the cost-exponent I've set is to copy Vanilla XP costs specifically

Screenshots https://gfycat.com/AggravatingAptArabianwildcat

Server Information (please complete the following information):

Additional context As stated, the reason I have it set to 0.45 is because that is what best copies Vanilla XP cost. If increasing this cost is the only fix, I think that's a bit ridiculous. I recommend having all enchants have a minimum XP cost to counter this issue, because it's obvious the enchants with 5+ enchants cause a problem when servers wish to copy vanilla costs. I hope this can be considered and fixed.