updated recycling recipes for wood (#2986)
This commit is contained in:
parent
6b11a40862
commit
3eb0a5810b
7 changed files with 144 additions and 28 deletions
|
|
@ -453,7 +453,7 @@ const registerAdAstraRecipes = (event) => {
|
||||||
.itemOutputs('ad_astra:steel_door')
|
.itemOutputs('ad_astra:steel_door')
|
||||||
.duration(100)
|
.duration(100)
|
||||||
.EUt(GTValues.VA[GTValues.LV])
|
.EUt(GTValues.VA[GTValues.LV])
|
||||||
.addMaterialInfo(true, true)
|
TFGHelpers.registerMaterialInfo('ad_astra:steel_door', [GTMaterials.Steel, 2, GTMaterials.Glass, 3/4, GTMaterials.Polyethylene, 1/4])
|
||||||
|
|
||||||
event.recipes.gtceu.assembler(`tfg:ad_astra_steel_trapdoor`)
|
event.recipes.gtceu.assembler(`tfg:ad_astra_steel_trapdoor`)
|
||||||
.itemInputs('tfc:metal/trapdoor/steel', '#forge:glass_panes')
|
.itemInputs('tfc:metal/trapdoor/steel', '#forge:glass_panes')
|
||||||
|
|
@ -461,7 +461,6 @@ const registerAdAstraRecipes = (event) => {
|
||||||
.itemOutputs('ad_astra:steel_trapdoor')
|
.itemOutputs('ad_astra:steel_trapdoor')
|
||||||
.duration(100)
|
.duration(100)
|
||||||
.EUt(GTValues.VA[GTValues.LV])
|
.EUt(GTValues.VA[GTValues.LV])
|
||||||
|
|
||||||
TFGHelpers.registerMaterialInfo('ad_astra:steel_trapdoor', [GTMaterials.Steel, 1, GTMaterials.Glass, 3/4, GTMaterials.Polyethylene, 1/4])
|
TFGHelpers.registerMaterialInfo('ad_astra:steel_trapdoor', [GTMaterials.Steel, 1, GTMaterials.Glass, 3/4, GTMaterials.Polyethylene, 1/4])
|
||||||
|
|
||||||
// Etrium only has factory block, encased block, plateblock, panel, and (storage) block
|
// Etrium only has factory block, encased block, plateblock, panel, and (storage) block
|
||||||
|
|
|
||||||
|
|
@ -299,4 +299,45 @@ const registerAFCRecipes = (event) => {
|
||||||
.processingTime(50 * global.VINTAGE_IMPROVEMENTS_DURATION_MULTIPLIER)
|
.processingTime(50 * global.VINTAGE_IMPROVEMENTS_DURATION_MULTIPLIER)
|
||||||
.id(`tfg:vi/lathe/stripping_${x.wood}_wood`)
|
.id(`tfg:vi/lathe/stripping_${x.wood}_wood`)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property {Array} afcWoodRecyclingIndex - Wood recycling material index.
|
||||||
|
*/
|
||||||
|
const afcWoodRecyclingIndex = [
|
||||||
|
['afc:wood/chest_minecart/{type}', ['{wood}', 4, GTMaterials.WroughtIron, 5]],
|
||||||
|
['afc:wood/planks/{type}', ['{wood}', 8]],
|
||||||
|
['afc:wood/planks/{type}_door', ['{wood}', 6]],
|
||||||
|
['afc:wood/planks/{type}_trapdoor', ['{wood}', 4]],
|
||||||
|
['afc:wood/planks/{type}_fence', ['{wood}', 4]],
|
||||||
|
['afc:wood/planks/{type}_log_fence', ['{wood}', 8]],
|
||||||
|
['afc:wood/planks/{type}_fence_gate', ['{wood}', 8]],
|
||||||
|
['afc:wood/planks/{type}_slab', ['{wood}', 2]],
|
||||||
|
['afc:wood/planks/{type}_stairs', ['{wood}', 3]],
|
||||||
|
['afc:wood/planks/{type}_pressure_plate', ['{wood}', 4]],
|
||||||
|
['afc:wood/planks/{type}_button', ['{wood}', 1]],
|
||||||
|
['afc:wood/chest/{type}', ['{wood}', 16]],
|
||||||
|
['afc:wood/trapped_chest/{type}', ['{wood}', 16, GTMaterials.WroughtIron, 4/9, GTMaterials.Wood, 1]]
|
||||||
|
];
|
||||||
|
/**
|
||||||
|
* @param {Array} materials
|
||||||
|
* @param {string} woodMaterial
|
||||||
|
* @return {Array}
|
||||||
|
*/
|
||||||
|
function resolveArgs(materials, woodMaterial) {
|
||||||
|
return materials.map(materials => materials === '{wood}' ? woodMaterial : materials);
|
||||||
|
};
|
||||||
|
global.AFC_HARDWOOD_TYPES.forEach(type => {
|
||||||
|
afcWoodRecyclingIndex.forEach(([template, args]) => {
|
||||||
|
const item = template.replace('{type}', type);
|
||||||
|
const resolvedArgs = resolveArgs(args, GTMaterials.get('hardwood'));
|
||||||
|
TFGHelpers.registerMaterialInfo(item, resolvedArgs);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
global.AFC_SOFTWOOD_TYPES.forEach(type => {
|
||||||
|
afcWoodRecyclingIndex.forEach(([template, args]) => {
|
||||||
|
const item = template.replace('{type}', type);
|
||||||
|
const resolvedArgs = resolveArgs(args, GTMaterials.Wood);
|
||||||
|
TFGHelpers.registerMaterialInfo(item, resolvedArgs);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,31 +2,23 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const registerAsticorCartsRecipes = (event) => {
|
const registerAsticorCartsRecipes = (event) => {
|
||||||
event.remove({ id: 'astikorcarts:animal_cart' })
|
event.remove({ id: 'astikorcarts:animal_cart' });
|
||||||
event.remove({ id: 'astikorcarts:supply_cart' })
|
event.remove({ id: 'astikorcarts:supply_cart' });
|
||||||
event.remove({ id: 'astikorcarts:plow' })
|
event.remove({ id: 'astikorcarts:plow' });
|
||||||
event.remove({ id: 'astikorcarts:wheel' })
|
event.remove({ id: 'astikorcarts:wheel' });
|
||||||
|
|
||||||
event.recipes.gtceu.macerator(`tfg:recycle_astikor_animal_cart`)
|
global.TFC_HARDWOOD_TYPES.forEach(type => {
|
||||||
.itemInputs('#tfcastikorcarts:animal_cart')
|
TFGHelpers.registerMaterialInfo(`tfcastikorcarts:wheel/${type}`, [GTMaterials.get('hardwood'), 2]);
|
||||||
.itemOutputs('#forge:dusts/brass')
|
TFGHelpers.registerMaterialInfo(`tfcastikorcarts:supply_cart/${type}`, [GTMaterials.Brass, 1, GTMaterials.get('hardwood'), 8, GTMaterials.Wood, 12]);
|
||||||
.duration(100)
|
TFGHelpers.registerMaterialInfo(`tfcastikorcarts:plow/${type}`, [GTMaterials.Brass, 1, GTMaterials.get('hardwood'), 8]);
|
||||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
TFGHelpers.registerMaterialInfo(`tfcastikorcarts:animal_cart/${type}`, [GTMaterials.Brass, 1, GTMaterials.get('hardwood'), 14]);
|
||||||
.EUt(GTValues.VA[GTValues.ULV])
|
});
|
||||||
|
global.TFC_SOFTWOOD_TYPES.forEach(type => {
|
||||||
|
TFGHelpers.registerMaterialInfo(`tfcastikorcarts:wheel/${type}`, [GTMaterials.Wood, 2]);
|
||||||
|
TFGHelpers.registerMaterialInfo(`tfcastikorcarts:supply_cart/${type}`, [GTMaterials.Brass, 1, GTMaterials.Wood, 20]);
|
||||||
|
TFGHelpers.registerMaterialInfo(`tfcastikorcarts:plow/${type}`, [GTMaterials.Brass, 1, GTMaterials.Wood, 8]);
|
||||||
|
TFGHelpers.registerMaterialInfo(`tfcastikorcarts:animal_cart/${type}`, [GTMaterials.Brass, 1, GTMaterials.Wood, 14]);
|
||||||
|
});
|
||||||
|
|
||||||
event.recipes.gtceu.macerator(`tfg:recycle_astikor_supply_cart`)
|
event.replaceInput({ mod: 'tfcastikorcarts' }, '#forge:rods', '#mcw_tfc_aio:metal_rods');
|
||||||
.itemInputs('#tfcastikorcarts:supply_cart')
|
};
|
||||||
.itemOutputs('#forge:dusts/brass')
|
|
||||||
.duration(100)
|
|
||||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
|
||||||
.EUt(GTValues.VA[GTValues.ULV])
|
|
||||||
|
|
||||||
event.recipes.gtceu.macerator(`tfg:recycle_astikor_plow`)
|
|
||||||
.itemInputs('#tfcastikorcarts:plow')
|
|
||||||
.itemOutputs('#forge:dusts/brass')
|
|
||||||
.duration(100)
|
|
||||||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
|
||||||
.EUt(GTValues.VA[GTValues.ULV])
|
|
||||||
|
|
||||||
event.replaceInput({ mod: 'tfcastikorcarts' }, '#forge:rods', '#mcw_tfc_aio:metal_rods')
|
|
||||||
}
|
|
||||||
|
|
@ -99,4 +99,43 @@ const registerBeneathRecipes = (event) => {
|
||||||
], {
|
], {
|
||||||
A: `beneath:wood/leaves/warped`
|
A: `beneath:wood/leaves/warped`
|
||||||
}).id(`tfg:shaped/beneath/warped_leaves_to_fallen_leaves`);
|
}).id(`tfg:shaped/beneath/warped_leaves_to_fallen_leaves`);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property {Array} beneathWoodRecyclingIndex - Wood recycling material index.
|
||||||
|
*/
|
||||||
|
const beneathWoodRecyclingIndex = [
|
||||||
|
['beneath:wood/chest_minecart/{type}', ['{wood}', 4, GTMaterials.WroughtIron, 5]],
|
||||||
|
['beneath:wood/planks/{type}', ['{wood}', 8]],
|
||||||
|
['beneath:wood/planks/{type}_door', ['{wood}', 6]],
|
||||||
|
['beneath:wood/planks/{type}_trapdoor', ['{wood}', 4]],
|
||||||
|
['beneath:wood/planks/{type}_fence', ['{wood}', 4]],
|
||||||
|
['beneath:wood/planks/{type}_log_fence', ['{wood}', 8]],
|
||||||
|
['beneath:wood/planks/{type}_fence_gate', ['{wood}', 8]],
|
||||||
|
['beneath:wood/planks/{type}_slab', ['{wood}', 2]],
|
||||||
|
['beneath:wood/planks/{type}_stairs', ['{wood}', 3]],
|
||||||
|
['beneath:wood/planks/{type}_pressure_plate', ['{wood}', 4]],
|
||||||
|
['beneath:wood/planks/{type}_button', ['{wood}', 1]],
|
||||||
|
['beneath:wood/chest/{type}', ['{wood}', 16]],
|
||||||
|
['beneath:wood/trapped_chest/{type}', ['{wood}', 16, GTMaterials.WroughtIron, 4/9, GTMaterials.Wood, 1]]
|
||||||
|
];
|
||||||
|
/**
|
||||||
|
* @param {Array} materials
|
||||||
|
* @param {string} woodMaterial
|
||||||
|
* @return {Array}
|
||||||
|
*/
|
||||||
|
function resolveArgs(materials, woodMaterial) {
|
||||||
|
return materials.map(materials => materials === '{wood}' ? woodMaterial : materials);
|
||||||
|
};
|
||||||
|
|
||||||
|
beneathWoodRecyclingIndex.forEach(([template, args]) => {
|
||||||
|
const item = template.replace('{type}', 'crimson');
|
||||||
|
const resolvedArgs = resolveArgs(args, GTMaterials.get('hardwood'));
|
||||||
|
TFGHelpers.registerMaterialInfo(item, resolvedArgs);
|
||||||
|
});
|
||||||
|
beneathWoodRecyclingIndex.forEach(([template, args]) => {
|
||||||
|
const item = template.replace('{type}', 'warped');
|
||||||
|
const resolvedArgs = resolveArgs(args, GTMaterials.Wood);
|
||||||
|
TFGHelpers.registerMaterialInfo(item, resolvedArgs);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -72,4 +72,6 @@ const registerEtchedRecipes = (event) => {
|
||||||
event.shapeless('create_connected:music_disc_elevator', ['etched:blank_music_disc', 'create:elevator_pulley'])
|
event.shapeless('create_connected:music_disc_elevator', ['etched:blank_music_disc', 'create:elevator_pulley'])
|
||||||
//dear god why
|
//dear god why
|
||||||
event.shapeless('gtceu:sus_record', ['etched:blank_music_disc', '#tfc:knives', 'tfc:food/green_bean']).id('tfg:sus_record');
|
event.shapeless('gtceu:sus_record', ['etched:blank_music_disc', '#tfc:knives', 'tfc:food/green_bean']).id('tfg:sus_record');
|
||||||
|
|
||||||
|
TFGHelpers.registerMaterialInfo('etched:jukebox_minecart', [GTMaterials.WroughtIron, 5, GTMaterials.Wood, 16, GTMaterials.Diamond, 1]);
|
||||||
}
|
}
|
||||||
|
|
@ -74,4 +74,6 @@ function registerTACZMiscRecipes(event) {
|
||||||
.itemOutputs('tfg:certus_mechanism')
|
.itemOutputs('tfg:certus_mechanism')
|
||||||
.EUt(GTValues.VA[GTValues.EV])
|
.EUt(GTValues.VA[GTValues.EV])
|
||||||
.duration(80)
|
.duration(80)
|
||||||
|
|
||||||
|
TFGHelpers.registerMaterialInfo('tacz:target_minecart', [GTMaterials.WroughtIron, 5, GTMaterials.Steel, 1, GTMaterials.Wood, 1]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -290,4 +290,45 @@ const registerTFCRecipes = (event) => {
|
||||||
A: `tfc:wood/sapling/${type}`
|
A: `tfc:wood/sapling/${type}`
|
||||||
}).id(`tfg:shaped/tfc/${type}_krummholz`);
|
}).id(`tfg:shaped/tfc/${type}_krummholz`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property {Array} tfcWoodRecyclingIndex - Wood recycling material index.
|
||||||
|
*/
|
||||||
|
const tfcWoodRecyclingIndex = [
|
||||||
|
['tfc:wood/chest_minecart/{type}', ['{wood}', 4, GTMaterials.WroughtIron, 5]],
|
||||||
|
['tfc:wood/planks/{type}', ['{wood}', 8]],
|
||||||
|
['tfc:wood/planks/{type}_door', ['{wood}', 6]],
|
||||||
|
['tfc:wood/planks/{type}_trapdoor', ['{wood}', 4]],
|
||||||
|
['tfc:wood/planks/{type}_fence', ['{wood}', 4]],
|
||||||
|
['tfc:wood/planks/{type}_log_fence', ['{wood}', 8]],
|
||||||
|
['tfc:wood/planks/{type}_fence_gate', ['{wood}', 8]],
|
||||||
|
['tfc:wood/planks/{type}_slab', ['{wood}', 2]],
|
||||||
|
['tfc:wood/planks/{type}_stairs', ['{wood}', 3]],
|
||||||
|
['tfc:wood/planks/{type}_pressure_plate', ['{wood}', 4]],
|
||||||
|
['tfc:wood/planks/{type}_button', ['{wood}', 1]],
|
||||||
|
['tfc:wood/chest/{type}', ['{wood}', 16]],
|
||||||
|
['tfc:wood/trapped_chest/{type}', ['{wood}', 16, GTMaterials.WroughtIron, 4/9, GTMaterials.Wood, 1]]
|
||||||
|
];
|
||||||
|
/**
|
||||||
|
* @param {Array} materials
|
||||||
|
* @param {string} woodMaterial
|
||||||
|
* @return {Array}
|
||||||
|
*/
|
||||||
|
function resolveArgs(materials, woodMaterial) {
|
||||||
|
return materials.map(materials => materials === '{wood}' ? woodMaterial : materials);
|
||||||
|
};
|
||||||
|
global.TFC_HARDWOOD_TYPES.forEach(type => {
|
||||||
|
tfcWoodRecyclingIndex.forEach(([template, args]) => {
|
||||||
|
const item = template.replace('{type}', type);
|
||||||
|
const resolvedArgs = resolveArgs(args, GTMaterials.get('hardwood'));
|
||||||
|
TFGHelpers.registerMaterialInfo(item, resolvedArgs);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
global.TFC_SOFTWOOD_TYPES.forEach(type => {
|
||||||
|
tfcWoodRecyclingIndex.forEach(([template, args]) => {
|
||||||
|
const item = template.replace('{type}', type);
|
||||||
|
const resolvedArgs = resolveArgs(args, GTMaterials.Wood);
|
||||||
|
TFGHelpers.registerMaterialInfo(item, resolvedArgs);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue