Improved NatProg compat

This commit is contained in:
oitsjustjose 2022-01-19 15:58:13 -06:00
commit 8e9c12c98e
4 changed files with 151 additions and 413 deletions

View file

@ -95,4 +95,34 @@ onEvent("recipes", (event) => {
count: 1,
},
});
const tconWoods = [
{
log: "tconstruct:greenheart_log",
strippedLog: "tconstruct:stripped_greenheart_log",
wood: "tconstruct:greenheart_wood",
strippedWood: "tconstruct:stripped_greenheart_wood",
plank: "tconstruct:greenheart_planks",
},
{
log: "tconstruct:skyroot_log",
strippedLog: "tconstruct:stripped_skyroot_log",
wood: "tconstruct:skyroot_wood",
strippedWood: "tconstruct:stripped_skyroot_wood",
plank: "tconstruct:skyroot_planks",
},
{
log: "tconstruct:bloodshroom_log",
strippedLog: "tconstruct:stripped_bloodshroom_log",
wood: "tconstruct:bloodshroom_wood",
strippedWood: "tconstruct:stripped_bloodshroom_wood",
plank: "tconstruct:bloodshroom_planks",
},
];
tconWoods.forEach((woodType) => {
event.remove({ output: woodType.plank });
global.genNatProgRecipes(woodType.log, woodType.strippedLog, woodType.plank).forEach((x) => event.custom(x));
global.genNatProgRecipes(woodType.wood, woodType.strippedWood, woodType.plank).forEach((x) => event.custom(x));
});
});