The big green PR (#2694)
* blocks * more textures * more textures more textures * blocks * more textures * more textures more textures * blocks * more textures * more textures more textures * blocks * more textures * more textures more textures * firmalife gh stuff * chloroplasts and brick regex * gh recipes * pisciculture fishery * I am going insane * more casings = more gooder * rotten voiding cover * greenhouse glory * Is this it chat * not needed Signed-off-by: Redeix <redeix.m@gmail.com> * missed in conflicts Signed-off-by: Redeix <redeix.m@gmail.com> * consumerism * re-add tag import * remove unused object map * id normalizer function --------- Signed-off-by: Redeix <redeix.m@gmail.com>
This commit is contained in:
parent
3899512635
commit
900e1de8e9
340 changed files with 3654 additions and 798 deletions
|
|
@ -66,64 +66,6 @@ const generateCutterRecipe = (event, input, output, duration, EUt, id) => {
|
|||
|
||||
//#endregion
|
||||
|
||||
//#region Green House
|
||||
/**
|
||||
* Function for generating greenhouse recipes.
|
||||
*
|
||||
* @param {*} event
|
||||
* @param {string} input -Item (Not consumed)
|
||||
* @param {string} fluid -Fluid ID or tag
|
||||
* @param {number} fluid_amount -Fluid amount, in mB
|
||||
* @param {string} output -Item (Chanced output uses input item)
|
||||
* @param {string} id -Recipe ID
|
||||
* @param {string} dimension -Dimension ID
|
||||
* @param {number} fertiliser_count
|
||||
* @param {string|null} output_seconday -Item (Optional, if there should be a third output)
|
||||
* @param {number} EUt
|
||||
*/
|
||||
function generateGreenHouseRecipe(event, input, fluid, fluid_amount, output, id, dimension, fertiliser_count, output_secondary, EUt) {
|
||||
if (EUt === undefined || output_secondary === undefined || fertiliser_count === undefined || dimension === undefined) {
|
||||
throw new TypeError(`Call to generateGreenHouseRecipe for id ${id} is missing args`);
|
||||
}
|
||||
let r = event.recipes.gtceu.greenhouse(id)
|
||||
.notConsumable(input)
|
||||
.circuit(1)
|
||||
.inputFluids(`${fluid} ${fluid_amount}`)
|
||||
.itemOutputs(output)
|
||||
.chancedOutput(input, 750, 0)
|
||||
.chancedOutput(input, 500, 0)
|
||||
.duration(36000) // 30 mins
|
||||
.EUt(EUt)
|
||||
|
||||
if (dimension !== null) {
|
||||
r.dimension(dimension)
|
||||
}
|
||||
if (output_secondary !== null) {
|
||||
r.chancedOutput(output_secondary, 750, 0)
|
||||
}
|
||||
|
||||
|
||||
// С удобрением (With fertilizer)
|
||||
r = event.recipes.gtceu.greenhouse(`${id}_fertilized`)
|
||||
.notConsumable(input)
|
||||
.itemInputs(Item.of('gtceu:fertilizer', fertiliser_count))
|
||||
.circuit(2)
|
||||
.inputFluids(`${fluid} ${fluid_amount}`)
|
||||
.itemOutputs(output)
|
||||
.chancedOutput(input, 4000, 0)
|
||||
.chancedOutput(input, 3000, 0)
|
||||
.duration(12000) // 10 mins
|
||||
.EUt(EUt)
|
||||
|
||||
if (dimension !== null) {
|
||||
r.dimension(dimension)
|
||||
}
|
||||
if (output_secondary !== null) {
|
||||
r.chancedOutput(output_secondary, 4000, 0)
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
|
||||
//#region Filling NBT
|
||||
/**
|
||||
* Function to get fluid filling NBT.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue