neuralgia/kubejs/server_scripts/simplylight/recipes.js
Gustavo f3dfa471ec
Refactor & update to gt7
* gt7 removed credits/coins

* port gregtech additions to java

* add eslint locally

* add style linting

* switch target ECMA standard

* run linter

* clean up a bunch of linter errors

* remove outdated greate API calls

* forgot about the TFC multi compat issue

* reverted greate recipe removals

* some more linting stuff

* fix some issues with greenhouse recipes

* fix up some material stuff

* fix recipe types

* - Fixed single block machine rendering (#1465)

* minor fixes and changes

---------

Signed-off-by: Pyritie <pyritie@gmail.com>
Co-authored-by: Pyritie <pyritie@gmail.com>
Co-authored-by: Redeix <59435925+Redeix@users.noreply.github.com>
2025-07-28 12:27:06 +10:00

161 lines
5.6 KiB
JavaScript

// priority: 0
"use strict";
const registerSimplylightRecipes = (event) => {
// remove old recipes
global.MINECRAFT_DYE_NAMES.forEach(color => {
event.remove({ id: `simplylight:illuminant_${color}_block_on_dyed` })
event.remove({ id: `simplylight:illuminant_${color}_block_dyed` })
})
event.remove({ id: `simplylight:illuminant_block_on_dyed` })
event.remove({ id: `simplylight:illuminant_block_dyed` })
event.remove({ id: 'simplylight:illuminant_slab' })
event.remove({ id: 'simplylight:walllamp' })
event.remove({ id: 'simplylight:rodlamp' })
event.remove({ id: 'simplylight:bulb' })
event.remove({ id: 'simplylight:edge_light' })
event.remove({ id: 'simplylight:lamp_post' })
event.remove({ id: 'simplylight:illuminant_block_on' })
event.remove({ id: 'simplylight:illuminant_block' })
// new recipes
global.MINECRAFT_DYE_NAMES.forEach(color => {
//exeption for white lamps because who needs consistency?
if (color !== 'white') {
event.recipes.gtceu.chemical_bath(`simplylight:chemical_bath/dyeing/illuminant_${color}_block_on`)
.itemInputs('#simplylight:any_lamp_on')
.inputFluids(Fluid.of(`tfc:${color}_dye`, 25))
.itemOutputs(`simplylight:illuminant_${color}_block_on`)
.duration(80)
.EUt(20)
.category(GTRecipeCategories.CHEM_DYES)
event.recipes.gtceu.chemical_bath(`simplylight:chemical_bath/dyeing/illuminant_${color}_block`)
.itemInputs('#simplylight:any_lamp_off')
.inputFluids(Fluid.of(`tfc:${color}_dye`, 25))
.itemOutputs(`simplylight:illuminant_${color}_block`)
.duration(80)
.EUt(20)
.category(GTRecipeCategories.CHEM_DYES)
event.recipes.tfc.barrel_sealed(1000)
.outputItem(`simplylight:illuminant_${color}_block_on`)
.inputItem(Ingredient.of('#simplylight:any_lamp_on').subtract(`simplylight:illuminant_${color}_block_on`))
.inputFluid(Fluid.of(`tfc:${color}_dye`, 25))
.id(`simplylight:barrel/dyeing/illuminant_${color}_block_on`)
event.recipes.tfc.barrel_sealed(1000)
.outputItem(`simplylight:illuminant_${color}_block`)
.inputItem(Ingredient.of('#simplylight:any_lamp_off').subtract(`simplylight:illuminant_${color}_block`))
.inputFluid(Fluid.of(`tfc:${color}_dye`, 25))
.id(`simplylight:barrel/dyeing/illuminant_${color}_block`)
}
})
event.recipes.tfc.barrel_sealed(1000)
.outputItem(`simplylight:illuminant_block_on`)
.inputItem(Ingredient.of('#simplylight:any_lamp_on').subtract(`simplylight:illuminant_block_on`))
.inputFluid(Fluid.of(`tfc:white_dye`, 25))
.id(`simplylight:barrel/dyeing/illuminant_block_on`)
event.recipes.tfc.barrel_sealed(1000)
.outputItem(`simplylight:illuminant_block`)
.inputItem(Ingredient.of('#simplylight:any_lamp_off').subtract(`simplylight:illuminant_block`))
.inputFluid(Fluid.of(`tfc:white_dye`, 25))
.id(`simplylight:barrel/dyeing/illuminant_block`)
event.recipes.gtceu.chemical_bath(`simplylight:chemical_bath/bleaching/illuminant_block_on`)
.itemInputs(Ingredient.of('#simplylight:any_lamp_on').subtract(`simplylight:illuminant_block_on`))
.inputFluids(Fluid.of('gtceu:chlorine', 72))
.itemOutputs('simplylight:illuminant_block_on')
.duration(80)
.EUt(20)
.category(GTRecipeCategories.CHEM_DYES)
event.recipes.gtceu.chemical_bath(`simplylight:chemical_bath/bleaching/illuminant_block`)
.itemInputs(Ingredient.of('#simplylight:any_lamp_off').subtract(`simplylight:illuminant_block`))
.inputFluids(Fluid.of('gtceu:chlorine', 72))
.itemOutputs('simplylight:illuminant_block')
.duration(80)
.EUt(20)
.category(GTRecipeCategories.CHEM_DYES)
event.shaped('6x simplylight:illuminant_slab', [
'AAA',
'BBB',
' '
], {
A: 'minecraft:glowstone',
B: '#forge:plates/tin_alloy'
}).id('tfg:simplylight/illuminant_slab')
event.shaped('4x simplylight:wall_lamp', [
'BB ',
'BA ',
'BA '
], {
A: 'minecraft:glowstone',
B: '#forge:plates/tin_alloy'
}).id('tfg:simplylight/wall_lamp')
event.shaped('12x simplylight:rodlamp', [
'ACA',
'ABA',
'ACA'
], {
A: 'minecraft:glowstone',
B: '#forge:rods/tin_alloy',
C: '#forge:bolts/tin_alloy'
}).id('tfg:simplylight/rod_lamp')
event.shaped('2x simplylight:lightbulb', [
' A ',
'BBB',
' '
], {
A: 'minecraft:glowstone',
B: '#forge:plates/tin_alloy'
}).id('tfg:simplylight/light_bulb')
event.shaped('6x simplylight:edge_light', [
'AAA',
'CBC',
' '
], {
A: 'minecraft:glowstone',
B: '#forge:rods/tin_alloy',
C: '#forge:bolts/tin_alloy'
}).id('tfg:simplylight/edge_light')
event.shaped('4x simplylight:lamp_post', [
' A ',
' B ',
' C '
], {
A: '#simplylight:any_lamp_on',
B: '#forge:rods/long/tin_alloy',
C: '#forge:plates/tin_alloy',
}).id('tfg:simplylight/lamp_post')
event.shaped('8x simplylight:illuminant_block_on', [
'BAB',
'ACA',
'BAB'
], {
A: 'minecraft:glowstone',
B: '#forge:plates/tin_alloy',
C: '#forge:fine_wires/red_alloy',
}).id('tfg:simplylight/illuminant_block_on')
event.shaped('8x simplylight:illuminant_block', [
'ABA',
'BCB',
'ABA'
], {
A: 'minecraft:glowstone',
B: '#forge:plates/tin_alloy',
C: '#forge:fine_wires/red_alloy',
}).id('tfg:simplylight/illuminant_block')
}