Apotheosis

Apotheosis

89M Downloads

Salvaging Table to first look for 'affix_item' then 'other' when recipe salvaging

OmniNova opened this issue · 1 comments

commented

In the datapacks of the mod, I added extra salvaging recipes for non-affix armor and tools in the 'other' category.
When in game, whenever, for example, I try salvaging affixing chestplate, it brings back recipe from 'other' (which would be an ingot or armor material in my case) rather than the recipe for items that are affixed, which doesn't allow u to get rarity materials for that armor/tool.

I was thinking a way to fix this would be an if/then statement (ex: if affixed, then rarity material, else 'other'.output material) or something along those lines, but I don't particular know how to implement this.
Your help is appreciated 🤗.

commented

I've been long meaning to make the salvaging table "matches-all", meaning if multiple recipes exist for the same item it will produce all of the outputs. It seems like that would solve your issue here.