as in the title I'm working on a mod for 1.18.2 and am almost done iv got all my items, textures, models, and recipes made except for the de-crafting recipes. let me give some context, I'm remaking my layered armor mod where you can take armor and layer them in sorts like how real armor is done. Leather being the base, chainmail being the middle layer, and the rest of the materials are available as a sort of plate to put on the outside cover. iv got the first stage of decrafting done via the craftRemainder() property. but there is a problem with this method when expanded to the rest of the items.
N= netherite, C= chainmail, L= Leather
LCN => LC , N works just fine with LC being the craft remainder of LCN and N being the result of the crafting recipe.
if I set L as the craft remainder of LC then when constructing LCN via LC+N I get the expected result of LCN but with L left over in the crafting table that being a problematic extra. i had L set as the crafting remainder of LC because that is expected for LC => L , C spitting out C and leaving L behind. I'm not sure if there is a sort of trick I could do where for certain recipes the property craftRemainder() is set to null for LC specifically when doing certain recipes or if you can specify a recipe to leave an item behind rather than the item from the inside of a recipe leaving one behind?
I'v tried to get .setContainerItem() to work but it hasn't worked either, effectively the same result.