Enchantments disappear after using custom item in crafting grid

Started by Spoocer on

Topic category: Help with MCreator software

Active 1 year ago
Joined Mar 2021
Points:
592

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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?

Active 10 months ago
Joined Jun 2023
Points:
319

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 174
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.