Universal compost items (#1451)
* Added universal compost * Universal compost changes from comments
This commit is contained in:
parent
b6fc3e9fee
commit
b59a4e8136
5 changed files with 56 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
BIN
kubejs/assets/tfg/textures/item/universal_compost_browns.png
Normal file
BIN
kubejs/assets/tfg/textures/item/universal_compost_browns.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 140 B |
BIN
kubejs/assets/tfg/textures/item/universal_compost_greens.png
Normal file
BIN
kubejs/assets/tfg/textures/item/universal_compost_greens.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 139 B |
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue