now only the recipes that use 8 inputs actually use 8 fertiliser

This commit is contained in:
Pyritie 2025-06-29 20:36:25 +01:00
parent 7519e85fea
commit 27692fdf40
3 changed files with 10 additions and 10 deletions

View file

@ -436,12 +436,12 @@ const registerFirmaLifeRecipes = (event) => {
// Семена фруктов // Семена фруктов
global.FIRMALIFE_GREENHOUSE_FRUIT_RECIPE_COMPONENTS.forEach(element => { global.FIRMALIFE_GREENHOUSE_FRUIT_RECIPE_COMPONENTS.forEach(element => {
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, 'minecraft:overworld') generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, 'minecraft:overworld', 1)
}) })
// Семена ягод // Семена ягод
global.FIRMALIFE_GREENHOUSE_BERRY_RECIPE_COMPONENTS.forEach(element => { global.FIRMALIFE_GREENHOUSE_BERRY_RECIPE_COMPONENTS.forEach(element => {
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null) generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null, 1)
}) })
//#endregion //#endregion

View file

@ -23,7 +23,7 @@ const generateCutterRecipe = (event, input, output, duration, EUt, id) => {
.EUt(EUt) .EUt(EUt)
} }
const generateGreenHouseRecipe = (event, input, fluid_amount, output, id, dimension) => { const generateGreenHouseRecipe = (event, input, fluid_amount, output, id, dimension, fertiliser_count) => {
// Без удобрения // Без удобрения
let r = event.recipes.gtceu.greenhouse(id) let r = event.recipes.gtceu.greenhouse(id)
@ -42,7 +42,7 @@ const generateGreenHouseRecipe = (event, input, fluid_amount, output, id, dimens
// С удобрением // С удобрением
r = event.recipes.gtceu.greenhouse(`${id}_fertilized`) r = event.recipes.gtceu.greenhouse(`${id}_fertilized`)
.itemInputs(input) .itemInputs(input)
.itemInputs('8x gtceu:fertilizer') .itemInputs(Item.of('gtceu:fertilizer', fertiliser_count))
.circuit(2) .circuit(2)
.inputFluids(Fluid.of('minecraft:water', fluid_amount)) .inputFluids(Fluid.of('minecraft:water', fluid_amount))
.itemOutputs(output) .itemOutputs(output)

View file

@ -56,26 +56,26 @@ const registerTFCRecipes = (event) => {
// Дерево // Дерево
global.TFC_WOOD_TYPES.forEach(wood => { global.TFC_WOOD_TYPES.forEach(wood => {
generateGreenHouseRecipe(event, `8x tfc:wood/sapling/${wood}`, 16000, `64x tfc:wood/log/${wood}`, `tfg:greenhouse/${wood}`, 'minecraft:overworld') generateGreenHouseRecipe(event, `8x tfc:wood/sapling/${wood}`, 16000, `64x tfc:wood/log/${wood}`, `tfg:greenhouse/${wood}`, 'minecraft:overworld', 8)
}) })
global.AFC_SAPLINGS.forEach(x => { global.AFC_SAPLINGS.forEach(x => {
generateGreenHouseRecipe(event, `8x afc:wood/sapling/${x.sapling}`, 16000, `64x ${x.log}`, `tfg:greenhouse/${x.sapling}`, 'minecraft:overworld') generateGreenHouseRecipe(event, `8x afc:wood/sapling/${x.sapling}`, 16000, `64x ${x.log}`, `tfg:greenhouse/${x.sapling}`, 'minecraft:overworld', 8)
}) })
// Семена фруктов // Семена фруктов
global.TFC_GREENHOUSE_FRUIT_RECIPE_COMPONENTS.forEach(element => { global.TFC_GREENHOUSE_FRUIT_RECIPE_COMPONENTS.forEach(element => {
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, 'minecraft:overworld') generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, 'minecraft:overworld', 1)
}) })
// Семена овощей // Семена овощей
global.TFC_GREENHOUSE_VEGETABLE_RECIPE_COMPONENTS.forEach(element => { global.TFC_GREENHOUSE_VEGETABLE_RECIPE_COMPONENTS.forEach(element => {
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null) generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null, 1)
}) })
// Семена ягод // Семена ягод
global.TFC_GREENHOUSE_BERRY_RECIPE_COMPONENTS.forEach(element => { global.TFC_GREENHOUSE_BERRY_RECIPE_COMPONENTS.forEach(element => {
generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null) generateGreenHouseRecipe(event, element.input, element.fluid_amount, element.output, element.name, null, 1)
}) })
// Растения // Растения
@ -83,7 +83,7 @@ const registerTFCRecipes = (event) => {
const itemId = element.id; const itemId = element.id;
const recipeId = `greenhouse_${itemId.replace(':', '_')}`; const recipeId = `greenhouse_${itemId.replace(':', '_')}`;
generateGreenHouseRecipe(event, itemId, 8000, `8x ${itemId}`, recipeId, null); generateGreenHouseRecipe(event, itemId, 8000, `8x ${itemId}`, recipeId, null, 1);
}); });
//#endregion //#endregion