Refactored ore recipes and moved them out of TFG-Core (#888)

* refactored ore recipes and moved them out of TFG-Core. Also fixed the quern producing more output than the others, and added a workaround for the greate millstone bug

* fixed VI centrifuging recipes and bulk washing recipes to be consistent with their LV versions

---------

Signed-off-by: Pyritie <pyritie@gmail.com>
This commit is contained in:
Pyritie 2025-04-20 13:34:41 +01:00 committed by GitHub
parent 8000b83b7d
commit 8b3745f72f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 531 additions and 402 deletions

View file

@ -177,7 +177,7 @@ const registerAFCRecipes = (event) => {
.duration(300)
.EUt(2)
event.replaceOutput({ id: 'gtceu:centrifuge/sticky_resin_separation' }, 'gtceu:raw_rubber_dust', 'gtceu:carbon_dust')
event.replaceOutput({ id: 'gtceu:centrifuge/sticky_resin_separation' }, 'gtceu:raw_rubber_dust', '3x gtceu:carbon_dust')
//#endregion

File diff suppressed because it is too large Load diff

View file

@ -579,11 +579,6 @@ function registerTFCMaterialsRecipes(event) {
.useDurability(true)
.id(`rnr:heating/metal/${material.getName()}_mattock`)
// event.recipes.tfc.anvil(`rnr:metal/mattock_head/${material.getName()}`, ingotItem, ['punch_last', 'punch_not_last', 'draw_not_last'])
// .tier(tfcProperty.getTier())
// .bonus(true)
// .id(`rnr:anvil/${material.getName()}_mattock_head`)
event.recipes.tfc.heating(`rnr:metal/mattock_head/${material.getName()}`, tfcProperty.getMeltTemp())
.resultFluid(Fluid.of(outputMaterial.getFluid(), 144))
.id(`rnr:heating/metal/${material.getName()}_mattock_head`)

View file

@ -489,6 +489,7 @@ function registerVintageImprovementsRecipes(event) {
// #region Curving Press
// Copied from https://github.com/ThePansmith/Monifactory/blob/15c109298104e0c0b5083b266264bd6c158c6154/kubejs/server_scripts/mods/optionalCompats/create.js#L251
event.forEachRecipe([{ type: 'gtceu:extruder' }],
recipe => {
let r = JSON.parse(recipe.json)
@ -517,60 +518,6 @@ function registerVintageImprovementsRecipes(event) {
// #endregion
// #region Centrifuge
// Copied from https://github.com/ThePansmith/Monifactory/blob/15c109298104e0c0b5083b266264bd6c158c6154/kubejs/server_scripts/mods/optionalCompats/create.js#L251
event.forEachRecipe([{ type: 'gtceu:centrifuge' }],
recipe => {
let r = JSON.parse(recipe.json)
// ULV recipes only
let EUt = (r.tickInputs && r.tickInputs.eu) ? r.tickInputs.eu[0].content : null;
if (!(EUt <= 8)) { return }
let inputs = [];
if (r.inputs.item) {
r.inputs.item.forEach(i => {
let ins = i.content.ingredient;
if (i.content.count)
ins.count = i.content.count;
inputs.push(ins)
})
}
else return;
let outputs = [];
if (r.outputs.item) {
r.outputs.item.forEach(i => {
let out = i.content.ingredient;
if (i.content.count)
out.count = i.content.count;
if (i.chance != 0 && i.chance != 10000)
out.chance = i.chance / 10000;
outputs.push(out)
})
}
else return;
event.custom({
type: 'vintageimprovements:centrifugation',
ingredients: inputs,
results: outputs,
processingTime: r.duration * global.VINTAGE_IMPROVEMENTS_DURATION_MULTIPLIER
}).id(`tfg:vi/${recipe.getId().split(':')[1]}`)
}
)
// Fix weird inconsistency
event.replaceOutput({ id: 'tfg:vi/centrifuge/sticky_resin_separation' }, 'gtceu:raw_rubber_dust', 'gtceu:carbon_dust')
// #endregion
// #region Vacuum
event.custom({