Changing a certain item, and keeping the original's enchants.

Started by Pexuls on

Topic category: Help with modding (Java Edition)

Last seen on 03:50, 24. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Changing a certain item, and keeping the original's enchants.

So lets say I wanna make it so, when you do a certain procedure, you can turn a sword into another advanced sword. However, I wanna make it so that the original sword's enchants, (if any,) will stay onto the new upgraded sword. Not really good with using NBT datas or enchantments, so any suggestions below would help!

Last seen on 13:18, 31. Mar 2023
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
there is a procedure in Item…
Mon, 10/10/2022 - 08:10

there is a procedure in Item procedures section called "Copy NBT tags of <item> (if it has any) onto <item>". it makes a copy of item 2 with nbts from item 1. if it didnt work, it probably needs custom code, and I may be able to write it for you.

Last seen on 03:50, 24. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'll test it out later today…
Fri, 10/21/2022 - 23:37

I'll test it out later today.

Tysm!