This commit is contained in:
Shiroyasha 2025-09-14 20:52:18 +03:00
commit d8d0e9d536
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
2567 changed files with 167778 additions and 0 deletions

View file

@ -0,0 +1,34 @@
/**
* This file implements some of the functionality necessary to fulfill the purpose of the deprecation pipeline
* as described in KubeJS/startup_scripts/deprecation_pipeline.js.
*
* In particular, the recipes to convert deprecated items to their replacement are defined here.
*/
Object.entries(global.deprecatedItems).forEach(([oldItemID, replacementItemID]) => {
ServerEvents.recipes(event => {
event.shapeless(replacementItemID, [oldItemID]).id(`${oldItemID}_legacy_updater`);
event.recipes.gtceu.atomic_reconstruction(`${oldItemID}_legacy_updater`)
.itemInputs(oldItemID)
.itemOutputs(replacementItemID)
.duration(20)
.EUt(GTValues.VA[GTValues.ULV])
});
});
Object.entries(global.deprecatedFluids).forEach(([oldFluidID, replacementFluidID]) => {
ServerEvents.recipes(event => {
event.recipes.gtceu.chemical_reactor(`${oldFluidID}_legacy_updater`)
.inputFluids(`${oldFluidID} 1000`)
.outputFluids(`${replacementFluidID} 1000`)
.duration(20)
.EUt(GTValues.VA[GTValues.ULV])
event.recipes.gtceu.distillation_tower(`${oldFluidID}_legacy_updater`)
.inputFluids(`${oldFluidID} 1000`)
.outputFluids(`${replacementFluidID} 1000`)
.duration(20)
.EUt(GTValues.VA[GTValues.ULV])
});
});