neuralgia/kubejs/server_scripts/simplylight/recipes.js
Pyritie ec2e3cd3c4
Alpha Release: 0.9.0 (#849)
Signed-off-by: Pyritie <pyritie@gmail.com>
Signed-off-by: TomPlop <tomdidome@gmail.com>
Co-authored-by: Xikaro <os.valerievich@ya.ru>
Co-authored-by: Nebby <78170922+Nebby1999@users.noreply.github.com>
Co-authored-by: Redeix <brayden.j.m.ford@gmail.com>
Co-authored-by: TomPlop <tomdidome@gmail.com>
Co-authored-by: aidie8 <aidenvanzuilen@gmail.com>
Co-authored-by: Xikaro <55663835+Xikaro@users.noreply.github.com>
Co-authored-by: Zleub <debray.arnaud@gmail.com>
2025-04-15 23:27:17 +05:00

161 lines
5.6 KiB
JavaScript

// priority: 0
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: '#forge:dusts/glowstone',
B: '#forge:plates/tin_alloy'
}).id('tfg:simplylight/illuminant_slab')
event.shaped('4x simplylight:wall_lamp', [
'BB ',
'BA ',
'BA '
], {
A: '#forge:dusts/glowstone',
B: '#forge:plates/tin_alloy'
}).id('tfg:simplylight/wall_lamp')
event.shaped('12x simplylight:rodlamp', [
'ACA',
'ABA',
'ACA'
], {
A: '#forge:dusts/glowstone',
B: '#forge:rods/tin_alloy',
C: '#forge:bolts/tin_alloy'
}).id('tfg:simplylight/rod_lamp')
event.shaped('2x simplylight:lightbulb', [
' A ',
'BBB',
' '
], {
A: '#forge:dusts/glowstone',
B: '#forge:plates/tin_alloy'
}).id('tfg:simplylight/light_bulb')
event.shaped('6x simplylight:edge_light', [
'AAA',
'CBC',
' '
], {
A: '#forge:dusts/glowstone',
B: '#forge:rods/tin_alloy',
C: '#forge:bolts/tin_alloy'
}).id('tfg:simplylight/edge_light')
event.shaped('8x simplylight:lamp_post', [
' A ',
' B ',
'CDC'
], {
A: '#simplylight:any_lamp_on',
B: '#forge:rods/long/bronze',
C: '#forge:plates/bronze',
D: '#forge:screws/bronze'
}).id('tfg:simplylight/lamp_post')
event.shaped('8x simplylight:illuminant_block_on', [
'BAB',
'ACA',
'BAB'
], {
A: '#forge:dusts/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: '#forge:dusts/glowstone',
B: '#forge:plates/tin_alloy',
C: '#forge:fine_wires/red_alloy',
}).id('tfg:simplylight/illuminant_block')
}