Universal compost items (#1451)

* Added universal compost

* Universal compost changes from comments
This commit is contained in:
Vazde 2025-07-27 19:21:26 +03:00 committed by GitHub
parent b6fc3e9fee
commit b59a4e8136
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 56 additions and 3 deletions

View file

@ -487,6 +487,8 @@
"item.tfg.wood.lumber.aeronos": "Aeronos Lumber",
"item.tfg.wood.lumber.strophar": "Strophar Lumber",
"item.tfg.wood.lumber.glacian": "Glacian Lumber",
"item.tfg.universal_compost_browns": "Universal Compost Browns",
"item.tfg.universal_compost_greens": "Universal Compost Greens",
"material.tfg.latex": "Latex",
"material.tfg.vulcanized_latex": "Vulcanized Latex",
"material.tfg.fluix": "Fluix",

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

View file

@ -965,4 +965,50 @@ function registerTFGMiscellaneousRecipes(event) {
.circuit(4)
.duration(800)
.EUt(GTValues.VA[GTValues.MV])
// Universal compost
const COMPOST_COLORS = ['browns', 'greens'];
COMPOST_COLORS.forEach(color => {
// Lows via crafting with mortar
event.shapeless(Item.of(`tfg:universal_compost_${color}`, 1), [
Ingredient.of([`#tfc:compost_${color}_low`]).subtract([`tfg:universal_compost_${color}`]),
'#forge:tools/mortars'
])
.id(`tfg:shapeless/universal_compost_${color}_low`)
// Mediums via crafting with mortar
event.shapeless(Item.of(`tfg:universal_compost_${color}`, 2), [
`#tfc:compost_${color}`,
'#forge:tools/mortars'
])
.id(`tfg:shapeless/universal_compost_${color}_medium`)
// Highs via crafting with mortar
event.shapeless(Item.of(`tfg:universal_compost_${color}`, 4), [
`#tfc:compost_${color}_high`,
'#forge:tools/mortars'
])
.id(`tfg:shapeless/universal_compost_${color}_high`)
// Lows via forge hammer
event.recipes.gtceu.forge_hammer(`tfg:universal_compost_${color}_low`)
.itemInputs(Ingredient.of(`#tfc:compost_${color}_low`).subtract(`tfg:universal_compost_${color}`))
.itemOutputs(`tfg:universal_compost_${color}`)
.duration(20)
.EUt(8)
// Mediums via forge hammer
event.recipes.gtceu.forge_hammer(`tfg:universal_compost_${color}_medium`)
.itemInputs(`#tfc:compost_${color}`)
.itemOutputs(Item.of(`tfg:universal_compost_${color}`, 2))
.duration(20)
.EUt(8)
// Highs via forge hammer
event.recipes.gtceu.forge_hammer(`tfg:universal_compost_${color}_high`)
.itemInputs(`#tfc:compost_${color}_high`)
.itemOutputs(Item.of(`tfg:universal_compost_${color}`, 4))
.duration(20)
.EUt(8)
})
}

View file

@ -353,7 +353,12 @@ const registerTFGItems = (event) => {
event.create('tfg:rocket_cone_t2')
.translationKey('tfg:rocket_cone_t2')
//endregion
//#region Universal compost items
event.create('tfg:universal_compost_browns')
.tag('tfc:compost_browns_low')
event.create('tfg:universal_compost_greens')
.tag('tfc:compost_greens_low')
//#endregion
}