How can I create a system that moves enchantments and durability from one item to another?

Started by barxja_1 on

Topic category: Advanced modding

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I create a system that moves enchantments and durability from one item to another?

(translation made with google translator)

 

As the name suggests, I need to create a procedure that moves durability and enchantments from one item to another.

To give some context on what I need it for, I want to create different weapons that change models and abilities. 

I can create another weapon with a different design and ability, but I don't know how to make the enchantments and durability of the first weapon change to the next ones.