I made a shapeless recipe that modifies an NBT tag based on the tags of each input item.
The script I wrote for this "works", but I feel like I did a couple of weird things:
- I created 7 different recipes to account for the different number of inputs.
- I had to test whether each level of NBT was null at each step to prevent the recipe from bugging out (no error, but items would disappear from the crafting grid).
- Also just the fact that I'm an amateur programmer. I probably have some yanderedev type code in here.
The first two points are the most important. They feel like workarounds I would usually only do for vanilla datapacks.