2024-03-24 23:45:47 +11:00
|
|
|
import com.nomiceu.nomilabs.util.LabsModeHelper
|
2024-07-31 22:08:17 +10:00
|
|
|
import gregtech.api.recipes.builders.ImplosionRecipeBuilder
|
|
|
|
import net.minecraft.item.ItemStack
|
2024-03-24 23:45:47 +11:00
|
|
|
|
Add Recycling Recipes for GT Parts and Hatches (#797)
Adds recycling recipes for some GT parts and hatches.
Fixes #780.
/* Github Stuff */
[FEATURE]
[DETAILS]
details = [
"**Adds Recycling Recipes For:**",
"LuV+ Parts",
"LuV+ Energy Hatches",
"4A and 16A Energy Hatches",
"Adjustable Transformers",
"Substation Hatches",
"Laser Hatches",
"Misc Batteries",
]
[DETAILS]
[FIXUP]
sha = "226cd449fe4844b2b2c84cebdd6bfaf3cec9a313"
newBody = '''
[EXPAND]
[[messages]]
messageTitle = "Port Tooltips to Groovy (#796)"
messageBody = """
[FEATURE]
[DETAILS]
detail = \"Tooltips are now Localisable!\"
[DETAILS]
"""
[[messages]]
messageTitle = "Fix Fluids in JEI (#796)"
messageBody = """
[BUG]
[DETAILS]
details = [
\"Fixes Some Fluids being Items in JEI\",
\"Adds Information about Temperature to all Fluids\",
]
[DETAILS]
"""
[EXPAND]
'''
[FIXUP]
Co-authored-by: Integer Limit <103940576+IntegerLimit@users.noreply.github.com>
2024-07-14 06:16:17 -04:00
|
|
|
import static com.nomiceu.nomilabs.groovy.GroovyHelpers.RecyclingHelpers.*
|
2024-03-24 23:45:47 +11:00
|
|
|
import static gregtech.api.GTValues.*
|
|
|
|
|
2024-07-31 22:08:17 +10:00
|
|
|
// Omnium Implosion Compressor Recipes
|
|
|
|
ImplosionRecipeBuilder builder = mods.gregtech.implosion_compressor.recipeBuilder()
|
|
|
|
.inputs(item('extendedcrafting:singularity_ultimate'))
|
|
|
|
.outputs(item('extendedcrafting:material:33'))
|
|
|
|
.chancedOutput(item('gregtech:meta_dust', 275), 2500, 0)
|
|
|
|
.duration(20).EUt(VA[LV])
|
|
|
|
|
|
|
|
// TNT
|
|
|
|
builder.copy()
|
|
|
|
.explosivesAmount(8)
|
|
|
|
.buildAndRegister()
|
|
|
|
|
|
|
|
// Other Explosives
|
|
|
|
for (ItemStack explosive : [item('gregtech:powderbarrel') * 16, metaitem('dynamite') * 4, item('gregtech:itnt') * 2]) {
|
|
|
|
builder.copy()
|
|
|
|
.explosivesType(explosive)
|
|
|
|
.buildAndRegister()
|
|
|
|
}
|
|
|
|
|
2024-03-26 22:24:24 +11:00
|
|
|
if (LabsModeHelper.normal) {
|
|
|
|
// Assembly Control Casing (Change from Output 2 to Output 4)
|
|
|
|
replaceRecipeOutput(item('gregtech:multiblock_casing', 3) * 2, item('gregtech:multiblock_casing', 3) * 4)
|
|
|
|
|
|
|
|
// Sterilizing Filter
|
|
|
|
crafting.replaceShaped(metaitem('blacklight'), [
|
2024-05-19 07:22:30 +01:00
|
|
|
[metaitem('screwTungstenCarbide'), metaitem('plateTungstenCarbide'), metaitem('screwTungstenCarbide')],
|
|
|
|
[null, metaitem('springHssg'), null],
|
|
|
|
[ore('circuitIv'), metaitem('plateTungstenCarbide'), metaitem('cableGtSinglePlatinum')]
|
2024-03-26 22:24:24 +11:00
|
|
|
])
|
|
|
|
|
|
|
|
// Sterilizing Filter Casing
|
|
|
|
replaceRecipeShaped(item('gregtech:cleanroom_casing', 2) * 2, item('gregtech:cleanroom_casing', 2) * 1, [
|
2024-05-19 07:22:30 +01:00
|
|
|
[metaitem('pipeLargeFluidPolybenzimidazole'), metaitem('emitter.luv'), metaitem('pipeLargeFluidPolybenzimidazole')],
|
|
|
|
[metaitem('item_filter'), metaitem('blacklight'), metaitem('item_filter')],
|
|
|
|
[metaitem('electric.motor.luv'), ore('frameGtBlackSteel'), metaitem('rotorIridium')]
|
2024-03-26 22:24:24 +11:00
|
|
|
])
|
|
|
|
|
|
|
|
// Computer Casing
|
|
|
|
mods.gregtech.assembler.recipeBuilder()
|
2024-05-19 07:22:30 +01:00
|
|
|
.inputs(metaitem('frameIridium'), metaitem('plateIridium') * 6, ore('circuitLuv') * 2, metaitem('wireFineCobalt') * 64, metaitem('wireFineCopper') * 64, metaitem('wireGtSingleVanadiumGallium') * 4)
|
|
|
|
.outputs(item('gregtech:computer_casing') * 4)
|
|
|
|
.changeRecycling()
|
|
|
|
.duration(400).EUt(VA[LuV])
|
2024-08-01 08:17:48 +10:00
|
|
|
.replace().buildAndRegister()
|
2024-03-26 22:24:24 +11:00
|
|
|
}
|
|
|
|
|
2024-03-24 23:45:47 +11:00
|
|
|
// UHV Batbufs
|
|
|
|
createRecipe(metaitem('battery_buffer.uhv.4'), [
|
2024-05-19 07:22:30 +01:00
|
|
|
[metaitem('wireGtQuadrupleEuropium'), ore('chestWood'), metaitem('wireGtQuadrupleEuropium')],
|
|
|
|
[metaitem('wireGtQuadrupleEuropium'), metaitem('hull.uhv'), metaitem('wireGtQuadrupleEuropium')]
|
2024-03-24 23:45:47 +11:00
|
|
|
])
|
|
|
|
createRecipe(metaitem('battery_buffer.uhv.8'), [
|
2024-05-19 07:22:30 +01:00
|
|
|
[metaitem('wireGtOctalEuropium'), ore('chestWood'), metaitem('wireGtOctalEuropium')],
|
|
|
|
[metaitem('wireGtOctalEuropium'), metaitem('hull.uhv'), metaitem('wireGtOctalEuropium')]
|
2024-03-24 23:45:47 +11:00
|
|
|
])
|
|
|
|
createRecipe(metaitem('battery_buffer.uhv.16'), [
|
2024-05-19 07:22:30 +01:00
|
|
|
[metaitem('wireGtHexEuropium'), ore('chestWood'), metaitem('wireGtHexEuropium')],
|
|
|
|
[metaitem('wireGtHexEuropium'), metaitem('hull.uhv'), metaitem('wireGtHexEuropium')]
|
2024-03-24 23:45:47 +11:00
|
|
|
])
|
|
|
|
// UHV Turbo Charger
|
|
|
|
createRecipe(metaitem('charger.uhv'), [
|
2024-05-19 07:22:30 +01:00
|
|
|
[metaitem('wireGtQuadrupleEuropium'), ore('chestWood'), metaitem('wireGtQuadrupleEuropium')],
|
|
|
|
[metaitem('wireGtQuadrupleEuropium'), metaitem('hull.uhv'), metaitem('wireGtQuadrupleEuropium')],
|
|
|
|
[metaitem('cableGtSingleEuropium'), ore('circuitUhv'), metaitem('cableGtSingleEuropium')]
|
2024-03-24 23:45:47 +11:00
|
|
|
])
|
|
|
|
|
2024-03-26 22:24:24 +11:00
|
|
|
// HM Ore Drilling Plants
|
|
|
|
if (LabsModeHelper.expert) {
|
2024-08-01 08:17:48 +10:00
|
|
|
// Must Remove Manually as RecipeMap changed
|
|
|
|
mods.gregtech.assembler.removeByOutput([metaitem('large_miner.iv')], null)
|
|
|
|
mods.gregtech.assembler.removeByOutput([metaitem('large_miner.luv')], null)
|
2024-03-26 22:24:24 +11:00
|
|
|
|
|
|
|
mods.gregtech.assembler.recipeBuilder()
|
2024-05-19 07:22:30 +01:00
|
|
|
.inputs(metaitem('hull.iv'))
|
|
|
|
.inputWildNBT(item('redstonearsenal:tool.pickaxe_flux'))
|
|
|
|
.inputs(item('nomilabs:t3laser') * 12, metaitem('frameStainlessSteel') * 12, metaitem('sensor.iv') * 6, metaitem('conveyor.module.iv') * 12, metaitem('fluid.regulator.iv') * 12, metaitem('gearTungstenSteel') * 12)
|
|
|
|
.outputs(metaitem('large_miner.ev'))
|
2024-08-01 08:17:48 +10:00
|
|
|
.duration(400).EUt(VA[IV])
|
|
|
|
.replace().buildAndRegister()
|
2024-03-26 22:24:24 +11:00
|
|
|
|
|
|
|
mods.gregtech.assembly_line.recipeBuilder()
|
2024-05-19 07:22:30 +01:00
|
|
|
.inputs(metaitem('hull.zpm'))
|
|
|
|
.inputWildNBT(item('thermalinnovation:drill', 4))
|
|
|
|
.inputWildNBT(item('thermalinnovation:drill', 4))
|
|
|
|
.inputWildNBT(item('thermalinnovation:drill', 4))
|
|
|
|
.inputs(item('nomilabs:t3laser') * 12, metaitem('frameNaquadahAlloy') * 12, metaitem('sensor.zpm') * 6, metaitem('conveyor.module.zpm') * 12, metaitem('fluid.regulator.zpm') * 12, metaitem('cableGtSingleVanadiumGallium') * 12, item('moreplates:empowered_void_gear') * 12)
|
|
|
|
.fluidInputs(fluid('concrete') * 2304)
|
|
|
|
.outputs(metaitem('large_miner.iv'))
|
|
|
|
.stationResearch(b -> b.researchStack(metaitem('large_miner.ev')).CWUt(16))
|
2024-08-01 08:17:48 +10:00
|
|
|
.duration(800).EUt(VA[ZPM])
|
|
|
|
.buildAndRegister()
|
2024-03-26 22:24:24 +11:00
|
|
|
|
|
|
|
mods.gregtech.assembly_line.recipeBuilder()
|
2024-05-19 07:22:30 +01:00
|
|
|
.inputs(metaitem('hull.uhv'))
|
|
|
|
.inputWildNBT(item('draconicevolution:draconic_staff_of_power'))
|
|
|
|
.inputs(item('nomilabs:t3laser') * 12, metaitem('frameBerkelium') * 12, metaitem('sensor.uv') * 12, metaitem('conveyor.module.uv') * 24, metaitem('fluid.regulator.uv') * 24, metaitem('cableGtSingleEuropium') * 12, metaitem('nomilabs:gearAwakenedDraconium') * 12)
|
|
|
|
.fluidInputs(fluid('concrete') * 2304, fluid('taranium') * 576)
|
|
|
|
.outputs(metaitem('large_miner.luv'))
|
|
|
|
.stationResearch(b -> b.researchStack(metaitem('large_miner.iv')).CWUt(128))
|
2024-08-01 08:17:48 +10:00
|
|
|
.duration(800).EUt(VA[UHV])
|
|
|
|
.buildAndRegister()
|
2024-03-26 22:24:24 +11:00
|
|
|
}
|
|
|
|
|
2024-03-24 23:45:47 +11:00
|
|
|
// World Accelerator HV
|
|
|
|
mods.gregtech.assembly_line.recipeBuilder()
|
2024-05-19 07:22:30 +01:00
|
|
|
.inputs(metaitem('hull.luv'), metaitem('field.generator.luv') * 64, metaitem('field.generator.luv') * 16, metaitem('sensor.luv') * 20, metaitem('emitter.luv') * 20, ore('circuitLuv') * 16, metaitem('plateDoubleIridium') * 4, metaitem('nomilabs:plateDenseDraconium') * 2)
|
|
|
|
.fluidInputs(fluid('soldering_alloy') * 1152, fluid('enderium') * 1152)
|
|
|
|
.outputs(metaitem('world_accelerator.hv'))
|
|
|
|
.changeRecycling()
|
|
|
|
.stationResearch(b -> b.researchStack(item('minecraft:clock')).CWUt(4))
|
|
|
|
.duration(6000).EUt(VA[LuV])
|
|
|
|
.buildAndRegister()
|
2024-03-24 23:45:47 +11:00
|
|
|
|
|
|
|
// World Accelerator EV
|
|
|
|
mods.gregtech.assembly_line.recipeBuilder()
|
2024-05-19 07:22:30 +01:00
|
|
|
.inputs(metaitem('hull.zpm'), metaitem('field.generator.zpm') * 64, metaitem('field.generator.zpm') * 16, metaitem('sensor.zpm') * 20, metaitem('emitter.zpm') * 20, ore('circuitZpm') * 16, metaitem('plateDoubleEuropium') * 4, metaitem('nomilabs:plateDenseDraconium') * 2)
|
|
|
|
.fluidInputs(fluid('soldering_alloy') * 1152, fluid('enderium') * 1152)
|
|
|
|
.outputs(metaitem('world_accelerator.ev'))
|
|
|
|
.changeRecycling()
|
|
|
|
.stationResearch(b -> b.researchStack(metaitem('world_accelerator.hv')).CWUt(32).EUt(VH[ZPM]))
|
|
|
|
.duration(12000).EUt(VA[ZPM])
|
|
|
|
.buildAndRegister()
|
2024-03-24 23:45:47 +11:00
|
|
|
|
|
|
|
// World Accelerator IV
|
|
|
|
mods.gregtech.assembly_line.recipeBuilder()
|
2024-05-19 07:22:30 +01:00
|
|
|
.inputs(metaitem('hull.uv'), metaitem('field.generator.uv') * 64, metaitem('field.generator.uv') * 16, metaitem('sensor.uv') * 20, metaitem('emitter.uv') * 20, ore('circuitUv') * 16, metaitem('plateDoubleEuropium') * 4, metaitem('plateDenseNeutronium') * 2)
|
|
|
|
.fluidInputs(fluid('soldering_alloy') * 1152, fluid('enderium') * 1152, fluid('naquadria') * 576)
|
|
|
|
.outputs(metaitem('world_accelerator.iv'))
|
|
|
|
.changeRecycling()
|
|
|
|
.stationResearch(b -> b.researchStack(metaitem('world_accelerator.ev')).CWUt(128).EUt(VA[UV]))
|
|
|
|
.duration(12000).EUt(VA[UV])
|
|
|
|
.buildAndRegister()
|