Integer Limit 3652f9a8c0
Fix Missing DME Sim Chamber Recipes (#848)
[BUG]

[IGNORE]
checks = { compareBefore = "1.7-beta-5" }
[IGNORE]
2024-08-01 20:16:24 +10:00

76 lines
2.7 KiB
Groovy
Executable File

import com.nomiceu.nomilabs.groovy.ChangeRecipeBuilder
import com.nomiceu.nomilabs.util.LabsModeHelper
import gregtech.api.recipes.RecipeBuilder
import gregtech.api.recipes.ingredients.GTRecipeInput
import gregtech.api.recipes.recipeproperties.TemperatureProperty
import net.minecraftforge.fluids.FluidStack
// Lumium
mods.gregtech.alloy_blast_smelter.changeByOutput(null, [fluid('molten.lumium')])
.forEach { ChangeRecipeBuilder builder ->
builder.builder { RecipeBuilder recipe ->
recipe.inputs(item('extendedcrafting:material', 7) * 2, ore('clathrateGlowstone')) // Luminessence
.fluidInputs(fluid('mana') * 1000)
}.changeCircuitMeta { meta -> meta + 2 }
.copyProperties(TemperatureProperty.instance)
.replaceAndRegister()
}
// Signalum
mods.gregtech.alloy_blast_smelter.changeByOutput(null, [fluid('molten.signalum')])
.forEach { ChangeRecipeBuilder builder ->
builder.builder { RecipeBuilder recipe ->
recipe.inputs(ore('clathrateRedstone'))
.fluidInputs(fluid('mana') * 1000)
}.changeCircuitMeta { meta -> meta + 1 }
.copyProperties(TemperatureProperty.instance)
.replaceAndRegister()
}
// Enderium
mods.gregtech.alloy_blast_smelter.changeByOutput(null, [fluid('molten.enderium')])
.forEach { ChangeRecipeBuilder builder ->
builder.builder { RecipeBuilder recipe ->
recipe.inputs(ore('clathrateEnder'))
.fluidInputs(fluid('mana') * 1000)
}.changeCircuitMeta { meta -> meta + 1 }
.copyProperties(TemperatureProperty.instance)
.replaceAndRegister()
}
// Fluxed Electrum
mods.gregtech.alloy_blast_smelter.changeByOutput(null, [fluid('electrum_flux')])
.forEach { ChangeRecipeBuilder builder ->
builder.builder {RecipeBuilder recipe ->
recipe.inputs(ore('dustMana'))
}.changeCircuitMeta { meta -> meta + 1 }
.copyProperties(TemperatureProperty.instance)
.replaceAndRegister()
}
if (LabsModeHelper.normal) {
// Red Alloy (Increases Output)
mods.gregtech.alloy_blast_smelter.changeByOutput(null, [fluid('red_alloy')])
.forEach { ChangeRecipeBuilder builder ->
builder.clearCircuitMeta()
.changeEachFluidOutput { FluidStack fluid ->
fluid.amount *= 2
return fluid
}
.builder { RecipeBuilder recipe ->
recipe.clearInputs()
.inputs(ore('dustCopper') * 2, item('minecraft:redstone') * 3)
.circuitMeta(2)
}.replaceAndRegister()
}
// Red Alloy has DISABLE DECOMPOSITION flag, so we need to replace it ourselves
mods.gregtech.centrifuge.changeByInput([metaitem('dustRedAlloy')], null)
.changeEachInput { GTRecipeInput input ->
return input.copyWithAmount(2)
}.builder { RecipeBuilder recipe ->
recipe.clearOutputs()
.outputs(item('minecraft:redstone') * 3, metaitem('dustCopper') * 2)
}.replaceAndRegister()
}