Remove an item's possibility to be enchanted?

Started by john_nuts331 on

Topic category: Help with modding (Java Edition)

Last seen on 21:55, 25. Mar 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Remove an item's possibility to be enchanted?

An item i made uses the durability system to tell the player how many uses it has left, and i want there to be a fixed number of uses, but because I'm using durability, they can automatically be enchanted with unbreaking and mending, which I do not want.

Is there a way to stop the item from being enchantable?

Last seen on 04:04, 3. Feb 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
One method would be to…
Fri, 12/23/2022 - 23:14

One method would be to create a new curse enchantment and make it incompatible with mending and unbreaking then apply it to the item