* - Fixed hide duping recipes. - Added quest book and field guide instances for fishing nets. - Fixed rebar support recipe crash. - Fixed red steel flask dupe. - Fixed red alloy recipe inconsistency. * - Fixed blue steel backpack block lang * - Added max vessel fluid warning to small vessels. * - Moved red steel flask recipe * Update pakku.json * fixed vessel tooltips so they display on the uncolored vessel too * fixed inconsistent small spring recipe with the coiling machine * fixed chiseling non-tfc blocks into slabs was only returning 1 slab instead of both * Field guide updates (#973) * added detected-setblock-be-gone to pakku server * added "requiresNaturalLog" config to afc tree tapping recipes so you can't tap your house * fixed missing tooltips on AFC wooden supports * added recipes for greenhouse ports, added recipes for stainless steel greenhouse (if you want to be fancy) * quest fixes, lang strings * added assembler recipes for most create things, made steam engines, blaze burners, and alternators cheaper, made firmaciv sails use any fabric * langs * removed gt compressed clay, fixed assembler recipe for clay bricks * removed the leather armor recycling because it's basically infinite armor * fixed iron door inconsistency * hopper in assembler now has a circuit condition * fixes #931 * Buff Large Boiler Fuel Efficiency (#977) * bufflargeboilers * formatting * oh so THAT's why the recycling recipes weren't working... * made the steam multiblock inputs/outputs significantly cheaper * changed default flywheel setting back to instanced * added assembler recipes for greate things * updated changelog * added recipes for the other millstones * - Fixed fishing nets event function * Update queststfc_tips.snbt Signed-off-by: Redeix <59435925+Redeix@users.noreply.github.com> * Update en_us.json Signed-off-by: Redeix <59435925+Redeix@users.noreply.github.com> * - Added item to summon armor stands with arms * - Added recipes to empty vessels and molds * - Added recipes for extracting/ forming magma blocks. * - Added recipes for extracting/ forming magma blocks. * - Nerfed steel support recipe output. * Fixes and features (#987) * - Fixed hide duping recipes. - Added quest book and field guide instances for fishing nets. - Fixed rebar support recipe crash. - Fixed red steel flask dupe. - Fixed red alloy recipe inconsistency. * - Fixed blue steel backpack block lang * - Added max vessel fluid warning to small vessels. * - Moved red steel flask recipe * - Fixed fishing nets event function * Update queststfc_tips.snbt Signed-off-by: Redeix <59435925+Redeix@users.noreply.github.com> * Update en_us.json Signed-off-by: Redeix <59435925+Redeix@users.noreply.github.com> * - Added item to summon armor stands with arms * - Added recipes to empty vessels and molds * - Added recipes for extracting/ forming magma blocks. * - Added recipes for extracting/ forming magma blocks. * - Nerfed steel support recipe output. --------- Signed-off-by: Redeix <59435925+Redeix@users.noreply.github.com> * Add wrought iron alternatives for early game cast iron recipes (#985) * Add wrought iron alternatives for early game cast iron recipes * Change doulbe iron ingots tag to use #forge item tags * salt water fast fix (#992) no more circuits Signed-off-by: SverhRazum-Nah <leon.trol@mail.ru> * - Revert mold changes from #987 * Branch merge (#995) * Some recipe changes (#1003) * misc recipes * add saw to jar lid recipe * revert table salt name changing that didn't work * fixed the basin having the wrong tag to be used with the charcoal forge * removed obsidian framed pressure plate - idk what it even does, but it's causing crashes fixes #1006 * Fix for Create Deco bricks conflict with Minecraft bricks in the assembler (#1005) Signed-off-by: TomPlop <tomdidome@gmail.com> * removing the gregtech material error suppression because it's just causing more confusion * updated changelog * Update CHANGELOG.md * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * Update ENHANCEMENT.yml * ISSUE_TEMPLATE * tweaked Y levels of the overworld <-> beneath teleporting * ISSUE_TEMPLATE * github * langs, quest tweaks, updated field guide for sprinklers * put tin jar lid recycling in the right category * hid the new space tfg blocks * updated pakku * I FORGOT TO ADD PUNISHMENT FOR DEATH * aa * Update mods * CHANGELOG --------- Signed-off-by: Redeix <59435925+Redeix@users.noreply.github.com> Signed-off-by: SverhRazum-Nah <leon.trol@mail.ru> Signed-off-by: TomPlop <tomdidome@gmail.com> Co-authored-by: Redeix <brayden.j.m.ford@gmail.com> Co-authored-by: Xikaro <os.valerievich@ya.ru> Co-authored-by: Risuga <oosyrag@gmail.com> Co-authored-by: Redeix <59435925+Redeix@users.noreply.github.com> Co-authored-by: Zack <93035068+ZackH01@users.noreply.github.com> Co-authored-by: SverhRazum-Nah <leon.trol@mail.ru> Co-authored-by: TomPlop <tomdidome@gmail.com>
175 lines
No EOL
6.4 KiB
JavaScript
175 lines
No EOL
6.4 KiB
JavaScript
// priority: 0
|
||
|
||
const generateMixerRecipe = (event, input, fluid_input, output, circuit, fluid_output, duration, EUt, rpm, id) => {
|
||
const recipe = event.recipes.gtceu.mixer(id)
|
||
.itemInputs(input)
|
||
.inputFluids(fluid_input)
|
||
.itemOutputs(output)
|
||
.outputFluids(fluid_output)
|
||
.duration(duration)
|
||
.EUt(EUt)
|
||
|
||
if (circuit != null) {
|
||
recipe.circuit(circuit)
|
||
}
|
||
}
|
||
|
||
const generateCutterRecipe = (event, input, output, duration, EUt, id) => {
|
||
|
||
event.recipes.gtceu.cutter(`tfg:${id}`)
|
||
.itemInputs(input)
|
||
.itemOutputs(output)
|
||
.duration(duration)
|
||
.EUt(EUt)
|
||
}
|
||
|
||
const generateGreenHouseRecipe = (event, input, fluid_amount, output, id) => {
|
||
|
||
// Без удобрения
|
||
event.recipes.gtceu.greenhouse(id)
|
||
.itemInputs(input)
|
||
.circuit(1)
|
||
.inputFluids(Fluid.of('minecraft:water', fluid_amount))
|
||
.itemOutputs(output)
|
||
.chancedOutput(input, 7500, 0)
|
||
.chancedOutput(input, 5000, 0)
|
||
.duration(36000) // 30 mins
|
||
.EUt(72)
|
||
|
||
// С удобрением
|
||
event.recipes.gtceu.greenhouse(`${id}_fertilized`)
|
||
.itemInputs(input)
|
||
.itemInputs('8x gtceu:fertilizer')
|
||
.circuit(2)
|
||
.inputFluids(Fluid.of('minecraft:water', fluid_amount))
|
||
.itemOutputs(output)
|
||
.chancedOutput(input, 8500, 0)
|
||
.chancedOutput(input, 6000, 0)
|
||
.duration(12000) // 10 mins
|
||
.EUt(196)
|
||
}
|
||
|
||
const getFillingNBT = (material, amount) => {
|
||
return {
|
||
tank: {
|
||
FluidName: Fluid.of(material.getFluid()).getId(),
|
||
Amount: amount
|
||
}
|
||
}
|
||
}
|
||
|
||
function generatePlatedBlockRecipe(event, material) {
|
||
// firmaciv plated blocks don't have this property
|
||
let tfcProperty = material.getProperty(TFGPropertyKey.TFC_PROPERTY)
|
||
let outputMaterial = (tfcProperty == null || tfcProperty.getOutputMaterial() == null) ? material : tfcProperty.getOutputMaterial()
|
||
|
||
let plateItem = ChemicalHelper.get(TagPrefix.plate, material, 1);
|
||
|
||
let platedBlock = ChemicalHelper.get(TFGTagPrefix.blockPlated, material, 1);
|
||
let platedSlab = ChemicalHelper.get(TFGTagPrefix.slabPlated, material, 1);
|
||
let platedStair = ChemicalHelper.get(TFGTagPrefix.stairPlated, material, 1);
|
||
|
||
let tfcMetalName = material.getName();
|
||
if (tfcMetalName == "iron")
|
||
tfcMetalName = "cast_iron";
|
||
|
||
event.recipes.create.item_application(platedBlock, ['#forge:stone_bricks', plateItem])
|
||
.id(`tfg:item_application/${material.getName()}_plated_block`)
|
||
event.recipes.createDeploying(platedBlock, ['#forge:stone_bricks', plateItem])
|
||
.id(`tfg:deploying/${material.getName()}_plated_block`)
|
||
event.recipes.gtceu.assembler(`tfg:${material.getName()}_plated_block`)
|
||
.itemInputs('#forge:stone_bricks', plateItem)
|
||
.itemOutputs(platedBlock)
|
||
.circuit(10)
|
||
.duration(50)
|
||
.EUt(GTValues.VA[GTValues.ULV])
|
||
|
||
if (tfcProperty != null) {
|
||
event.recipes.tfc.heating(platedBlock, tfcProperty.getMeltTemp())
|
||
.resultFluid(Fluid.of(outputMaterial.getFluid(), 144))
|
||
.id(`tfc:heating/metal/${tfcMetalName}_block`)
|
||
}
|
||
event.recipes.gtceu.macerator(`tfg:${material.getName()}_plated_block`)
|
||
.itemInputs(platedBlock)
|
||
.itemOutputs(ChemicalHelper.get(TagPrefix.dust, material, 1), 'gtceu:stone_dust')
|
||
.duration(material.getMass())
|
||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||
.EUt(GTValues.VA[GTValues.ULV])
|
||
event.recipes.gtceu.arc_furnace(`tfg:${material.getName()}_plated_block`)
|
||
.itemInputs(platedBlock)
|
||
.itemOutputs(ChemicalHelper.get(TagPrefix.ingot, material, 1), 'gtceu:ash_dust')
|
||
.duration(material.getMass())
|
||
.category(GTRecipeCategories.ARC_FURNACE_RECYCLING)
|
||
.EUt(GTValues.VA[GTValues.LV])
|
||
|
||
|
||
event.recipes.create.item_application(platedSlab, ['#tfg:brick_slabs', plateItem])
|
||
.id(`tfg:item_application/${material.getName()}_plated_slab`)
|
||
event.recipes.createDeploying(platedSlab, ['#tfg:brick_slabs', plateItem])
|
||
.id(`tfg:deploying/${material.getName()}_plated_slab`)
|
||
event.recipes.gtceu.assembler(`tfg:${material.getName()}_plated_slab`)
|
||
.itemInputs('#tfg:brick_slabs', plateItem)
|
||
.itemOutputs(platedSlab)
|
||
.circuit(10)
|
||
.duration(50)
|
||
.EUt(GTValues.VA[GTValues.ULV])
|
||
|
||
if (tfcProperty != null) {
|
||
// Slabs are lossy because it's possible to plate a double slab block with one metal plate
|
||
event.recipes.tfc.heating(platedSlab, tfcProperty.getMeltTemp())
|
||
.resultFluid(Fluid.of(outputMaterial.getFluid(), 72))
|
||
.id(`tfc:heating/metal/${tfcMetalName}_block_slab`)
|
||
}
|
||
event.recipes.gtceu.macerator(`tfg:${material.getName()}_plated_slab`)
|
||
.itemInputs(platedSlab)
|
||
.itemOutputs(ChemicalHelper.get(TagPrefix.dustSmall, material, 2), 'gtceu:small_stone_dust')
|
||
.duration(material.getMass())
|
||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||
.EUt(GTValues.VA[GTValues.ULV])
|
||
event.recipes.gtceu.arc_furnace(`tfg:${material.getName()}_plated_slab`)
|
||
.itemInputs(platedSlab)
|
||
.itemOutputs(ChemicalHelper.get(TagPrefix.nugget, material, 4), 'gtceu:small_ash_dust')
|
||
.duration(material.getMass())
|
||
.category(GTRecipeCategories.ARC_FURNACE_RECYCLING)
|
||
.EUt(GTValues.VA[GTValues.LV])
|
||
|
||
|
||
event.recipes.create.item_application(platedStair, ['#tfg:brick_stairs', plateItem])
|
||
.id(`tfg:item_application/${material.getName()}_plated_stair`)
|
||
event.recipes.createDeploying(platedStair, ['#tfg:brick_stairs', plateItem])
|
||
.id(`tfg:deploying/${material.getName()}_plated_stair`)
|
||
event.recipes.gtceu.assembler(`tfg:${material.getName()}_plated_stair`)
|
||
.itemInputs('#tfg:brick_stairs', plateItem)
|
||
.itemOutputs(platedStair)
|
||
.circuit(10)
|
||
.duration(50)
|
||
.EUt(GTValues.VA[GTValues.ULV])
|
||
|
||
if (tfcProperty != null) {
|
||
event.recipes.tfc.heating(platedStair, tfcProperty.getMeltTemp())
|
||
.resultFluid(Fluid.of(outputMaterial.getFluid(), 144))
|
||
.id(`tfc:heating/metal/${tfcMetalName}_block_stairs`)
|
||
}
|
||
event.recipes.gtceu.macerator(`tfg:${material.getName()}_plated_stair`)
|
||
.itemInputs(platedStair)
|
||
.itemOutputs(ChemicalHelper.get(TagPrefix.dust, material, 1), 'gtceu:stone_dust')
|
||
.duration(material.getMass())
|
||
.category(GTRecipeCategories.MACERATOR_RECYCLING)
|
||
.EUt(GTValues.VA[GTValues.ULV])
|
||
event.recipes.gtceu.arc_furnace(`tfg:${material.getName()}_plated_stair`)
|
||
.itemInputs(platedStair)
|
||
.itemOutputs(ChemicalHelper.get(TagPrefix.ingot, material, 1), 'gtceu:ash_dust')
|
||
.duration(material.getMass())
|
||
.category(GTRecipeCategories.ARC_FURNACE_RECYCLING)
|
||
.EUt(GTValues.VA[GTValues.LV])
|
||
}
|
||
|
||
//const $MRM = Java.loadClass('com.gregtechceu.gtceu.api.data.chemical.material.IMaterialRegistryManager')
|
||
|
||
function forEachMaterial(iterator) {
|
||
//if (GTMaterialRegistry.getPhase() === $MRM.Phase.CLOSED || GTMaterialRegistry.getPhase() === $MRM.Phase.FROZEN) {
|
||
GTMaterialRegistry.getRegisteredMaterials().forEach(material => {
|
||
iterator(material)
|
||
})
|
||
//}
|
||
} |