Jump to content

1.18.2 forge item de-crafting/one-to-many/ roadblock


zero8034

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.