Jump to content

[1.7.10] How to handle crafting with container items properly


McJty

Recommended Posts

Hi all,

 

In my RFTools auto crafter there is currently a duplication bug with the auto crafter in case there are container items that are supposed to be consumed. Basically when you craft something that outputs the container item (like a bucket) in addition to the output result my crafter puts back the bucket in the inventory. However it appears that there are crafting recipes that use container items that you are supposed to consume while crafting. One example is when you place an inactivated division sigil in the crafting grid. It gives you iron ingots and then goes away.

 

How can I distinguish or know when a recipe is supposed to throw away the container items of the items in the recipe and when it is supposed to keep them?

 

Thanks!

Link to comment
Share on other sites

Yes I thought so too but it isn't. Apparently you also have to handle the damage after crafting. In case of the division sigil it gets damaged to above max damage and the minecraft vanilla code then destroys the container. I added similar code to my crafter to solve this issue.

Link to comment
Share on other sites

  • 6 months later...

How did you get it to destroy the container exactly? I am playing Galactic Science and I really want to use minechem oxygen instead of having to have huge areas of leaf blocks. I found the following minetweaker script:

 

recipes.addShaped(<GalacticraftMars:item.canisterPartialLOX:1>, 
[[<ore:element_O>, <minechem:minechemElement:8>, <ore:element_O>], 
[<ore:element_O>, <GalacticraftCore:item.oilCanisterPartial:1001>, <ore:element_O>], 
[<ore:element_O>, <ore:element_O>, <ore:element_O>]]);

 

This seems to work in a crafting table but in an rftools  crafter it duplicates the empty cells, I also tried the following:

 

recipes.addShaped(<GalacticraftMars:item.canisterPartialLOX:1>, 
[[<ore:element_O>, <minechem:minechemElement:8>, <ore:element_O>], 
[<ore:element_O>, <GalacticraftCore:item.oilCanisterPartial:1001>.transformDamage(100), <ore:element_O>], 
[<ore:element_O>, <ore:element_O>, <ore:element_O>]]);

 

and:

 

recipes.addShaped(<GalacticraftMars:item.canisterPartialLOX:1>, 
[[<ore:element_O>, <minechem:minechemElement:8>, <ore:element_O>], 
[<ore:element_O>, <GalacticraftCore:item.oilCanisterPartial:1001>.noReturn(), <ore:element_O>], 
[<ore:element_O>, <ore:element_O>, <ore:element_O>]]);

 

It still keeps returning the empty cell along with the oxygen cell, which seems to mess up the Rftools crafter. Any suggestions on how to make this work right would be greatly appreciated.

Link to comment
Share on other sites

Sorry for the double post, but I just tried it with an enderio crafter instead of an rftools crafter and that result is even worse.

 

It seems to cause minecraft to become unresponsive, I start falling through the floor and am unable to interact with anything.

 

So much hassle just to breath oxygen that is already there!

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.