Enchantment problems

Discussion in 'Plugin Development' started by Atmoist, Oct 20, 2020.

  1. Offline


    Hi so I don't really know where to post about this but I've made my own custom item plugin, everything is working in the plugin itself as intended with no errors.
    The problem is, when I go to enchant an item in game, I can apply any enchantment to items. For example, my netherite armour currently has Effeciency 3, and I added the flame enchantment to an iron sword. I have nothing in my code that would allow the player to do this, I just have set ItemStacks that have enchantments outside of the normal range (Like an axe with sharpness).
    Besides these itemstacks, I have some events for said items but nothing that interacts with enchanting/using an anvil in any way.

    Sorry I tried looking around for this happening and how to fix it elsewhere but it seems quite obscure. Thanks for any help.
  2. Offline

    Mathias Eklund

Share This Page