Skip to content

Commit

Permalink
Merge pull request #933 from quackquack-11/icbm-to-2.6.x
Browse files Browse the repository at this point in the history
migrate icbm to 6.3.x
  • Loading branch information
bruberu authored Jul 25, 2024
2 parents 4e9c412 + 41c365f commit 5c5d2ab
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 79 deletions.
217 changes: 139 additions & 78 deletions groovy/postInit/mod/ICBM.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def name_removals = [
"icbmclassic:missile/ex/smoke",
"icbmclassic:missile/ex/nuclear",
"icbmclassic:missile/ex/emp",
"icbmclassic:missile/ex/exothermie",
"icbmclassic:missile/ex/exothermic",
"icbmclassic:missile/ex/endothermic",
"icbmclassic:missile/ex/antigravitational",
"icbmclassic:missile/ex/ender",
Expand Down Expand Up @@ -63,7 +63,7 @@ def name_removals = [
"icbmclassic:explosives/smoke",
"icbmclassic:explosives/nuclear",
"icbmclassic:explosives/emp",
"icbmclassic:explosives/exothermie",
"icbmclassic:explosives/exothermic",
"icbmclassic:explosives/endothermic",
"icbmclassic:explosives/anti_grav",
"icbmclassic:explosives/ender",
Expand All @@ -84,12 +84,29 @@ def name_removals = [
"icbmclassic:concrete",
"icbmclassic:concrete.1",
"icbmclassic:concrete.2",
"icbmclassic:grenade:0",
"icbmclassic:launcher/support",
"icbmclassic:launcher/base",
"icbmclassic:launcher/screen",
"icbmclassic:launcher/connector",
"icbmclassic:bomblet/bomblet",
"icbmclassic:bomblet/condensed",
"icbmclassic:parachute",
"icbmclassic:balloon",
"icbmclassic:missile/special/missile.cluster",
"icbmclassic:spikes",
"icbmclassic:spikes.1",
"icbmclassic:spikes.2",
"icbmclassic:powder.poison",
"icbmclassic:saltpeter_ball",
]

for (item in name_removals) {
crafting.remove(item);
}

furnace.removeByInput(item('icbmclassic:saltpeter_ball'))

for (var i = 0; i < 8; i++) {
recipemap('weapons_factory').recipeBuilder()
.inputs([
Expand Down Expand Up @@ -389,58 +406,6 @@ mods.gregtech.assembler.recipeBuilder()
.EUt(30)
.buildAndRegister();

mods.gregtech.assembler.recipeBuilder()
.inputs([
ore('plateAluminium')*3,
ore('frameGtAluminium')*2,
ore('stickLongAluminium')*2,
ore('circuitHv')
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:launcherbase:1'))
.duration(400)
.EUt(60)
.buildAndRegister();

mods.gregtech.assembler.recipeBuilder()
.inputs([
ore('plateAluminium')*2,
ore('stickAluminium')*2,
ore('paneGlassColorless'),
ore('circuitHv')
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:launcherscreen:1'))
.duration(400)
.EUt(60)
.buildAndRegister();

mods.gregtech.assembler.recipeBuilder()
.inputs([
ore('plateStainlessSteel')*3,
ore('frameGtStainlessSteel')*2,
ore('stickLongStainlessSteel')*2,
ore('circuitEv')
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:launcherbase:2'))
.duration(400)
.EUt(260)
.buildAndRegister();

mods.gregtech.assembler.recipeBuilder()
.inputs([
ore('plateStainlessSteel')*2,
ore('stickStainlessSteel')*2,
ore('paneGlassColorless'),
ore('circuitEv')
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:launcherscreen:2'))
.duration(400)
.EUt(260)
.buildAndRegister();

mods.gregtech.assembler.recipeBuilder()
.inputs([
ore('frameGtSteel')*3,
Expand All @@ -453,30 +418,6 @@ mods.gregtech.assembler.recipeBuilder()
.EUt(30)
.buildAndRegister();

mods.gregtech.assembler.recipeBuilder()
.inputs([
ore('frameGtAluminium')*3,
ore('stickLongAluminium')*3,
metaitem('sensor.mv')
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:launcherframe:1'))
.duration(400)
.EUt(60)
.buildAndRegister();

mods.gregtech.assembler.recipeBuilder()
.inputs([
ore('frameGtStainlessSteel')*3,
ore('stickLongStainlessSteel')*3,
metaitem('sensor.hv')
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:launcherframe:2'))
.duration(400)
.EUt(260)
.buildAndRegister();

//Missiles
def solidfuels = [
ore('dustSugar'),
Expand Down Expand Up @@ -628,3 +569,123 @@ Globals.solders.each { key, val ->
}
}
}
//launcher connector
mods.gregtech.assembler.recipeBuilder()
.inputs([
ore('plateSteel')*6,
metaitem('plateWroughtIron')*8,
ore('circuitLv'),
metaitem('conveyor.module.lv'),
metaitem('cableGtSingleCopper')*3

])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:launcher_connector')*4)
.duration(400)
.EUt(30)
.buildAndRegister();
//empty bomblet
recipemap('large_weapons_factory').recipeBuilder()
.inputs([
ore('plateSteel')*8,
ore('circuitLv'),
ore('frameGtSteel')*2
])
.fluidInputs(fluid('tin') * 144)
.outputs(item('icbmclassic:empty_bomblet'))
.duration(300)
.EUt(30)
.buildAndRegister();
recipemap('large_weapons_factory').recipeBuilder()
.inputs([
ore('plateSteel')*8,
ore('circuitLv'),
ore('frameGtSteel')*2
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:empty_bomblet'))
.duration(300)
.EUt(30)
.buildAndRegister();
//filled bomblets
for (var i = 0; i < 15; i++) {
recipemap('large_weapons_factory').recipeBuilder()
.inputs([
item('icbmclassic:explosives', i),
item('icbmclassic:empty_bomblet')
])
.outputs(item('icbmclassic:explosive_bomblet', i))
.duration(300)
.EUt(30)
.buildAndRegister();
}
//empty payload parachute
mods.gregtech.assembler.recipeBuilder()
.inputs([
item('techguns:itemshared:60')*6,
item('minecraft:string')*4

])
.outputs(item('icbmclassic:parachute'))
.duration(200)
.EUt(30)
.buildAndRegister();
//payload baloon
mods.gregtech.assembler.recipeBuilder()
.inputs([
item('minecraft:carpet')*3,
item('minecraft:string')*2

])
.outputs(item('icbmclassic:balloon'))
.duration(50)
.EUt(30)
.buildAndRegister();
//missile module (empty missile)
recipemap('large_weapons_factory').recipeBuilder()
.inputs([
ore('stickAluminium')*4,
ore('ringAluminium')*2,
ore('plateAluminium')*2,
ore('foilAluminium')*16,
])
.fluidInputs(fluid('tin') * 144)
.outputs(item('icbmclassic:explosive_missile:' + 24))
.duration(300)
.EUt(30)
.buildAndRegister();
recipemap('large_weapons_factory').recipeBuilder()
.inputs([
ore('stickAluminium')*4,
ore('ringAluminium')*2,
ore('plateAluminium')*2,
ore('foilAluminium')*16,
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:explosive_missile:' + 24))
.duration(300)
.EUt(30)
.buildAndRegister();
//cluster missile
recipemap('large_weapons_factory').recipeBuilder()
.inputs([
ore('screwAluminium')*4,
metaitem('crate.aluminium'),
item('icbmclassic:explosive_missile:' + 24)
])
.fluidInputs(fluid('tin') * 144)
.outputs(item('icbmclassic:cluster_missile'))
.duration(400)
.EUt(30)
.buildAndRegister();
recipemap('large_weapons_factory').recipeBuilder()
.inputs([
ore('screwAluminium')*4,
metaitem('crate.aluminium'),
item('icbmclassic:explosive_missile:' + 24)
])
.fluidInputs(fluid('soldering_alloy') * 72)
.outputs(item('icbmclassic:cluster_missile'))
.duration(400)
.EUt(30)
.buildAndRegister();
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@
},
{
"projectID": 244451,
"fileID": 4406083,
"fileID": 5452674,
"required": true
},
{
Expand Down

0 comments on commit 5c5d2ab

Please sign in to comment.