Enchantments disappear after using custom item in crafting grid

Started by Spoocer on

Topic category: Help with MCreator software

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enchantments disappear after using custom item in crafting grid

I made custom knife tool for crafting and fighting. If you use it in crafting table, knife damages by 1 use.
I enchanted knife item with Mending, but after crafting got damaged and no enchantment.
How to fix removing enchantments on crafting?

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This sounds like it may be a…
Sat, 09/30/2023 - 13:30

This sounds like it may be a function of the way MCreator is coded. Item damage and enchantments are both handled by NBT data. It sounds like MCreator is replacing the item and copying NBT data, the issue is it's only copying damage NBT.