init
This commit is contained in:
commit
a956daf8e2
2351 changed files with 163047 additions and 0 deletions
32
kubejs/server_scripts/fixes_tweaks/gregtech_credits.js
Normal file
32
kubejs/server_scripts/fixes_tweaks/gregtech_credits.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
Creates Forming Press recipes for all tiers of Gregtech Credits,
|
||||
replacing the singular one for Cupronickel.
|
||||
*/
|
||||
ServerEvents.recipes(event => {
|
||||
// Remove the one forming press recipe for Cupronickel
|
||||
event.remove({ id: "gtceu:forming_press/credit_cupronickel" })
|
||||
|
||||
const metals = [
|
||||
"copper",
|
||||
"cupronickel",
|
||||
"silver",
|
||||
"gold",
|
||||
"platinum",
|
||||
"osmium",
|
||||
"naquadah",
|
||||
"neutronium"
|
||||
]
|
||||
|
||||
for (let index = 0; index < metals.length; index++) {
|
||||
// Total energy cost (default 1600 EU for Cupronickel)
|
||||
let energyIn = 1600 * Math.pow(4, index);
|
||||
|
||||
// Create recipes for all coin types
|
||||
event.recipes.gtceu.forming_press(`gtceu:forming_press/${metals[index]}_credit`)
|
||||
.notConsumable("gtceu:credit_casting_mold")
|
||||
.itemInputs(`gtceu:${metals[index]}_plate`)
|
||||
.itemOutputs(`4x gtceu:${metals[index]}_credit`)
|
||||
.EUt(energyIn / (20 * 5))
|
||||
.duration(20 * 5)
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue