fixed bacon deleting all the food traits on crafting

This commit is contained in:
Pyritie 2026-01-04 14:45:07 +00:00
parent be0e8c0510
commit 21f9074a00
3 changed files with 24 additions and 11 deletions

View file

@ -33,6 +33,7 @@
- Fixed incorrect fluid tooltips for the silica glass bottle and iron flask (#2608) @JeanRdSz @Pyritie
- Removed some dough mixing bowl recipes that tried to output more than 5 ingredients because that's the mixing bowl's maximum (#2612) @Pyritie
- Fixed missing heat definition for soybeans (#2603) @Pyritie
- Fixed crafting bacon removing all the other food traits @Pyritie
### Translation updates
- Chinese (simplified) @jmecn
- Russian @Petr211071

View file

@ -1000,24 +1000,31 @@ const registerFirmaLifeRecipes = (event) => {
// #endregion
// #region How do I make yeast starter???
event.recipes.kubejs.shapeless(Item.of('4x firmalife:food/bacon').withName(Text.translate('tfg.emi.bacon_requirement')), [
'tfc:food/pork',
'#forge:tools/knives',
'tfc:powder/salt'
])
// Adds a tooltip to the bacon craft to tell people it needs to be smoked first,
// and adds traits that normally disappear on the craft
event.recipes.tfc.advanced_shapeless_crafting(
TFC.isp.of(Item.of('4x firmalife:food/bacon')
.withName(Text.translate('tfg.emi.bacon_requirement')))
.addTrait("firmalife:smoked")
.addTrait("tfc:brined")
.addTrait("tfc:salted"),
[
TFC.ingredient.notRotten(TFC.ingredient.hasTrait('tfc:food/pork', "firmalife:smoked")),
'#forge:tools/knives',
'tfc:powder/salt'
])
.modifyResult((craftingGrid, result) => {
result.resetHoverName();
return result;
})
.id('firmalife:crafting/bacon')
// Replacement for yeast starter recipe that uses a different, more descriptive tag
event.recipes.tfc.barrel_sealed(72000)
.inputFluid(Fluid.of('minecraft:water', 100))
.inputItem(TFC.ingredient.hasTrait(Ingredient.of('#tfg:dried_fruit'), "firmalife:dried"))
.outputFluid(Fluid.of('firmalife:yeast_starter', 100))
.id('firmalife:barrel/yeast_starter')
// #endregion
}

View file

@ -841,7 +841,7 @@ function registerTFGFoodRecipes(event) {
global.processorRecipe(event, "yeast_starter_from_water", 7200, 8, {
circuit: 10,
itemInputs: ['#tfc:foods/fruits'],
fluidInputs: ['#tfg:clean_water 100'],
fluidInputs: ['#tfg:clean_water 100', 'gtceu:nitrogen 100'],
fluidOutputs: [Fluid.of('firmalife:yeast_starter', 100)]
})
@ -926,7 +926,12 @@ function registerTFGFoodRecipes(event) {
circuit: 1,
itemInputs: ['tfc:food/pork', 'tfc:powder/salt'],
itemOutputs: ['4x firmalife:food/bacon'],
itemOutputProvider: TFC.isp.of('4x firmalife:food/bacon').copyFood()
fluidInputs: ['gtceu:wood_gas 5', 'tfc:brine 100'],
itemOutputProvider: TFC.isp.of('4x firmalife:food/bacon')
.addTrait("firmalife:smoked")
.addTrait("tfc:brined")
.addTrait("tfc:salted")
.copyFood()
})
global.processorRecipe(event, "pickled_egg", 1000, 8, {