- Added recipe to separate fertilizer into pure sources, and mix them back together. (#927)

- Added recipes to sew hides together and cut them apart.
This commit is contained in:
Redeix 2025-04-29 09:39:55 -05:00 committed by GitHub
parent b01a61335d
commit 7b678a5bef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 79 additions and 0 deletions

View file

@ -62,6 +62,8 @@
- Allowed more blocks to be used as oven, forge, and bloomery insulation.
- Fixed lang error with treated wood planks recipe.
- Fixed bug with mmc package.
- Added recipe to separate fertilizer into pure sources, and mix them back together.
- Added recipes to sew hides together and cut them apart.
## [0.9.1] - 18.04.2025
### Changes

View file

@ -238,4 +238,78 @@ const registerTFCRecipes = (event) => {
event.recipes.shapeless('gtceu:small_brass_gear', [ 'tfc:brass_mechanisms' ]).id('tfg:replace_brass_mechanisms')
event.replaceInput({ input: 'tfc:brass_mechanisms' }, 'tfc:brass_mechanisms', 'gtceu:small_brass_gear')
// Fertilizers
event.recipes.gtceu.centrifuge('tfg:gtceu/centrifuge/pure_fertilizers')
.itemInputs('1x gtceu:fertilizer')
.itemOutputs('1x tfc:pure_nitrogen', '1x tfc:pure_potassium', '1x tfc:pure_phosphorus')
.duration(340)
.EUt(GTValues.VA[GTValues.ULV])
event.recipes.gtceu.mixer('tfg:tfc/mixer/fertilizer')
.itemInputs('1x tfc:pure_nitrogen', '1x tfc:pure_potassium', '1x tfc:pure_phosphorus', ChemicalHelper.get(TagPrefix.dustSmall, GTMaterials.Clay, 1))
.itemOutputs('1x gtceu:fertilizer')
.duration(160)
.EUt(GTValues.VA[GTValues.ULV])
//Hide Sewing
const stages = [
'raw',
'soaked',
'scraped',
'prepared',
'sheepskin'
];
const sizes = [
'small',
'medium',
'large'
];
stages.forEach((stage) => {
sizes.forEach((size, index) => {
// Find the next larger size.
const nextLarger = sizes[index + 1];
// If a larger size exists, sew the hides together.
if (nextLarger) {
event.recipes.tfc.damage_inputs_shapeless_crafting(
event.shapeless(`1x tfc:${nextLarger}_${stage}_hide`, [
`2x tfc:${size}_${stage}_hide`,
'#tfc:sewing_needles',
'#forge:string',
'tfc:glue'
]).id(`tfg:tfc/${size}_to_${nextLarger}_${stage}_hide`)
)
event.recipes.gtceu.assembler(`tfg:gtceu/assembler/${size}_to_${nextLarger}_${stage}_hide`)
.inputFluids(Fluid.of('gtceu:glue', 25))
.itemOutputs(`1x tfc:${nextLarger}_${stage}_hide`)
.itemInputs(`2x tfc:${size}_${stage}_hide`)
.duration(60)
.circuit(7)
.EUt(GTValues.VA[GTValues.ULV])
}
// Find the next smaller size.
const nextSmaller = sizes[index - 1];
// If a smaller size exists, cut the hide.
if (nextSmaller) {
event.recipes.tfc.damage_inputs_shapeless_crafting(
event.shapeless(`2x tfc:${nextSmaller}_${stage}_hide`, [
`1x tfc:${size}_${stage}_hide`,
'#forge:shears'
]).id(`tfg:tfc/${size}_to_${nextSmaller}_${stage}_hide`)
)
event.recipes.gtceu.assembler(`tfg:gtceu/assembler/${size}_to_${nextSmaller}_${stage}_hide`)
.itemOutputs(`2x tfc:${nextSmaller}_${stage}_hide`)
.itemInputs(`1x tfc:${size}_${stage}_hide`)
.duration(60)
.circuit(4)
.EUt(GTValues.VA[GTValues.ULV])
}
});
});
}

View file

@ -409,6 +409,7 @@ function registerTFCMachineRecipes(event) {
.itemInputs('tfc:small_sheepskin_hide')
.itemOutputs('tfc:wool')
.duration(100)
.circuit(3)
.EUt(4)
// 1x Medium SheepSkin -> 1x Wool
@ -416,6 +417,7 @@ function registerTFCMachineRecipes(event) {
.itemInputs('tfc:medium_sheepskin_hide')
.itemOutputs('2x tfc:wool')
.duration(100)
.circuit(3)
.EUt(4)
// 1x Large SheepSkin -> 1x Wool
@ -423,6 +425,7 @@ function registerTFCMachineRecipes(event) {
.itemInputs('tfc:large_sheepskin_hide')
.itemOutputs('3x tfc:wool')
.duration(100)
.circuit(3)
.EUt(4)
// Wool Yarn