Automatic Scraping with Sequenced Assembly
This commit is contained in:
parent
36afeeab12
commit
d5770b8993
1 changed files with 11 additions and 0 deletions
|
|
@ -1331,6 +1331,17 @@ const registerCreateRecipes = (event) => {
|
|||
.duration(40)
|
||||
.EUt(20)
|
||||
})
|
||||
|
||||
//Allow automatic scraping by using sequenced assembly
|
||||
event.forEachRecipe({ type: 'tfc:scraping' }, r =>
|
||||
{
|
||||
let originalRecipeIngredient = r.json.get("ingredient").get("item");
|
||||
let output = r.originalRecipeResult;
|
||||
|
||||
event.recipes.createSequencedAssembly([output], originalRecipeIngredient,[
|
||||
event.recipes.createDeploying(originalRecipeIngredient, [originalRecipeIngredient, '#tfc:knives']).keepHeldItem()
|
||||
]).transitionalItem(originalRecipeIngredient).loops(16)
|
||||
})
|
||||
|
||||
// #endregion
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue