Feature/tidying recipes (#2733)
* Added tags to support recycling * Cleaned up recipe bloat for recycling * Merged loops * Remove constant * Remove constant * I think this is what you mean * Updated tags * Sorry! --------- Co-authored-by: Redeix <redeix.m@gmail.com>
This commit is contained in:
parent
b94347d9e1
commit
8c6551dda6
2 changed files with 35 additions and 71 deletions
|
|
@ -16,91 +16,47 @@ function registerGTCEURecyclingRecipes(event) {
|
|||
// Iron Door
|
||||
TFGHelpers.registerMaterialInfo('minecraft:iron_door', { 'iron': 2 })
|
||||
|
||||
// #region Fix TFC hanging sign metal dupe for Macerator and Arc Furnace
|
||||
|
||||
const SIGN_METALS = [
|
||||
GTMaterials.Copper,
|
||||
GTMaterials.Bronze,
|
||||
GTMaterials.BlackBronze,
|
||||
GTMaterials.BismuthBronze,
|
||||
GTMaterials.WroughtIron,
|
||||
GTMaterials.Steel,
|
||||
GTMaterials.BlackSteel,
|
||||
GTMaterials.RedSteel,
|
||||
GTMaterials.BlueSteel
|
||||
];
|
||||
|
||||
SIGN_METALS.forEach(metal => {
|
||||
// Arc furnace
|
||||
global.TFC_WOOD_TYPES.forEach(wood => {
|
||||
event.remove(`gtceu:arc_furnace/arc_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
event.recipes.gtceu.arc_furnace(`gtceu:arc_furnace/macerate_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemInputs(`tfc:wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
// #region Hanging Signs
|
||||
global.TFC_EQUIPMENT_METALS.forEach(metal => {
|
||||
// Recycling Hardwood
|
||||
// Arc Recycling Hardwood
|
||||
event.recipes.gtceu.arc_furnace(`tfg:arc_recycling/${metal}/hardwood`)
|
||||
.itemInputs(`#tfg:hanging_sign/${metal}/hardwood`)
|
||||
.itemOutputs('gtceu:tiny_ash_dust')
|
||||
.chancedOutput(ChemicalHelper.get(TagPrefix.nugget, metal, 1), 3750, 0)
|
||||
.inputFluids(Fluid.of('gtceu:oxygen', 12))
|
||||
.chancedOutput(`#forge:nuggets/${metal}`, 3750, 0)
|
||||
.duration(12)
|
||||
.EUt(30)
|
||||
.category(GTRecipeCategories.ARC_FURNACE_RECYCLING)
|
||||
})
|
||||
|
||||
global.AFC_WOOD_TYPES.forEach(wood => {
|
||||
event.recipes.gtceu.arc_furnace(`gtceu:arc_furnace/macerate_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemInputs(`afc:wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
// Macerating Hardwood
|
||||
event.recipes.gtceu.macerator(`tfg:macerating/hanging_sign/'${metal}/hardwood`)
|
||||
.itemInputs(`#tfg:hanging_sign/${metal}/hardwood`)
|
||||
.itemOutputs('gtceu:hardwood_dust')
|
||||
.chancedOutput(`#forge:tiny_dusts/${metal}`, 3750, 0)
|
||||
.duration(108)
|
||||
.EUt(8)
|
||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||||
|
||||
// Recycling Softwood
|
||||
// Arc Recycling Softwood
|
||||
event.recipes.gtceu.arc_furnace(`tfg:arc_recycling/${metal}/softwood`)
|
||||
.itemInputs(`#tfg:hanging_sign/${metal}/softwood`)
|
||||
.itemOutputs('gtceu:tiny_ash_dust')
|
||||
.chancedOutput(ChemicalHelper.get(TagPrefix.nugget, metal, 1), 3750, 0)
|
||||
.inputFluids(Fluid.of('gtceu:oxygen', 12))
|
||||
.chancedOutput(`#forge:nuggets/${metal}`, 3750, 0)
|
||||
.duration(12)
|
||||
.EUt(30)
|
||||
.category(GTRecipeCategories.ARC_FURNACE_RECYCLING)
|
||||
})
|
||||
|
||||
// Macerator
|
||||
global.TFC_HARDWOOD_TYPES.forEach(wood => {
|
||||
removeMaceratorRecipe(event, `macerate_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
event.recipes.gtceu.macerator(`gtceu:macerator/macerate_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemInputs(`tfc:wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemOutputs('gtceu:hardwood_dust')
|
||||
.chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, metal, 1), 3750, 0)
|
||||
.duration(108)
|
||||
.EUt(8)
|
||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||||
})
|
||||
|
||||
global.TFC_SOFTWOOD_TYPES.forEach(wood => {
|
||||
removeMaceratorRecipe(event, `macerate_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
event.recipes.gtceu.macerator(`gtceu:macerator/macerate_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemInputs(`tfc:wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
// Macerating Softwood
|
||||
event.recipes.gtceu.macerator(`tfg:macerating/hanging_sign/'${metal}/softwood`)
|
||||
.itemInputs(`#tfg:hanging_sign/${metal}/softwood`)
|
||||
.itemOutputs('gtceu:wood_dust')
|
||||
.chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, metal, 1), 3750, 0)
|
||||
.chancedOutput(`#forge:tiny_dusts/${metal}`, 3750, 0)
|
||||
.duration(108)
|
||||
.EUt(8)
|
||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||||
})
|
||||
|
||||
global.AFC_HARDWOOD_TYPES.forEach(wood => {
|
||||
event.recipes.gtceu.macerator(`gtceu:macerator/macerate_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemInputs(`afc:wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemOutputs('gtceu:hardwood_dust')
|
||||
.chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, metal, 1), 3750, 0)
|
||||
.duration(108)
|
||||
.EUt(8)
|
||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||||
})
|
||||
|
||||
global.AFC_SOFTWOOD_TYPES.forEach(wood => {
|
||||
event.recipes.gtceu.macerator(`gtceu:macerator/macerate_wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemInputs(`afc:wood/hanging_sign/${metal.getName()}/${wood}`)
|
||||
.itemOutputs('gtceu:wood_dust')
|
||||
.chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, metal, 1), 3750, 0)
|
||||
.duration(108)
|
||||
.EUt(8)
|
||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||||
})
|
||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||||
})
|
||||
// #endregion
|
||||
|
||||
//#region support recycling
|
||||
//#region Supports
|
||||
event.recipes.gtceu.macerator(`hardwood_support_to_dust`)
|
||||
.itemInputs('#tfg:hardwood_supports')
|
||||
.itemOutputs('gtceu:hardwood_dust')
|
||||
|
|
|
|||
|
|
@ -434,6 +434,14 @@ function registerTFCItemTags(event) {
|
|||
event.add('forge:dyes/green', 'tfc:powder/malachite')
|
||||
event.add('forge:dyes/brown', 'tfc:powder/garnierite')
|
||||
event.add('forge:dyes/yellow', 'tfc:powder/limonite')
|
||||
|
||||
//Hanging Signs Soft & Hard Wood
|
||||
global.TFC_EQUIPMENT_METALS.forEach(metal => {
|
||||
event.add(`tfg:hanging_sign/${metal}/hardwood`, global.TFC_HARDWOOD_TYPES.map(wood => `tfc:wood/hanging_sign/${metal}/${wood}`))
|
||||
event.add(`tfg:hanging_sign/${metal}/softwood`, global.TFC_SOFTWOOD_TYPES.map(wood => `tfc:wood/hanging_sign/${metal}/${wood}`))
|
||||
event.add(`tfg:hanging_sign/${metal}/hardwood`, global.AFC_HARDWOOD_TYPES.map(wood => `afc:wood/hanging_sign/${metal}/${wood}`))
|
||||
event.add(`tfg:hanging_sign/${metal}/softwood`, global.AFC_SOFTWOOD_TYPES.map(wood => `afc:wood/hanging_sign/${metal}/${wood}`))
|
||||
})
|
||||
}
|
||||
|
||||
/** @param {TagEvent.Block} event */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue