[HELP] passing on enchants in crafting

Started by Dandyroot on

Topic category: Help with modding (Java Edition)

Last seen on 07:52, 9. Aug 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[HELP] passing on enchants in crafting

I'm trying to figure out how to make a crafting recipe where the enchantments on one component are passed down to the result. so for example;

[Lapis Sword] (with enchantments unbreaking V looting III) + [Book] (unenchanted) Results in: [Enchanted Book] (unbreaking V, looting III)

 

i considered trying to make a procedure in the visual script, but i can't figure out how to tie a procedure to a crafting recipe, nor how to get the visual script to identify the enchantments on an item (i can't find for loop blocks, for instance, that would iterate through each enchantment on an item and record them). do i have to do some magic with NBT tags?

 

Help would be adored, i'm new to everything here and nothing's making sense yet