2024-08-01 08:17:48 +10:00
|
|
|
import com.nomiceu.nomilabs.groovy.ChangeRecipeBuilder
|
2024-03-24 23:45:47 +11:00
|
|
|
import com.nomiceu.nomilabs.util.LabsModeHelper
|
2024-08-01 08:17:48 +10:00
|
|
|
import gregtech.api.recipes.RecipeBuilder
|
|
|
|
import gregtech.api.recipes.ingredients.GTRecipeInput
|
|
|
|
import gregtech.api.recipes.recipeproperties.TemperatureProperty
|
2024-08-16 21:41:48 +10:00
|
|
|
|
|
|
|
import static gregtech.api.GTValues.*
|
2024-08-01 08:17:48 +10:00
|
|
|
|
|
|
|
// 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 }
|
2024-08-16 21:41:48 +10:00
|
|
|
.changeEachFluidOutput { fluid -> fluid * (L * 4) }
|
2024-08-01 08:17:48 +10:00
|
|
|
.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 }
|
2024-08-16 21:41:48 +10:00
|
|
|
.changeEachFluidOutput { fluid -> fluid * (L * 4) }
|
2024-08-01 08:17:48 +10:00
|
|
|
.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 }
|
2024-08-16 21:41:48 +10:00
|
|
|
.changeEachFluidOutput { fluid -> fluid * (L * 4) }
|
2024-08-01 08:17:48 +10:00
|
|
|
.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 }
|
2024-08-16 21:41:48 +10:00
|
|
|
.changeEachFluidOutput { fluid -> fluid * (L * 9) }
|
2024-08-01 08:17:48 +10:00
|
|
|
.copyProperties(TemperatureProperty.instance)
|
|
|
|
.replaceAndRegister()
|
|
|
|
}
|
2024-03-24 23:45:47 +11:00
|
|
|
|
|
|
|
if (LabsModeHelper.normal) {
|
2024-08-01 08:17:48 +10:00
|
|
|
// Red Alloy (Increases Output)
|
|
|
|
mods.gregtech.alloy_blast_smelter.changeByOutput(null, [fluid('red_alloy')])
|
|
|
|
.forEach { ChangeRecipeBuilder builder ->
|
|
|
|
builder.clearCircuitMeta()
|
2024-08-16 21:41:48 +10:00
|
|
|
.changeEachFluidOutput { fluid -> fluid * (L * 2) }
|
2024-08-01 08:17:48 +10:00
|
|
|
.builder { RecipeBuilder recipe ->
|
|
|
|
recipe.clearInputs()
|
|
|
|
.inputs(ore('dustCopper') * 2, item('minecraft:redstone') * 3)
|
|
|
|
.circuitMeta(2)
|
|
|
|
}.replaceAndRegister()
|
|
|
|
}
|
2024-05-19 07:22:30 +01:00
|
|
|
|
|
|
|
// Red Alloy has DISABLE DECOMPOSITION flag, so we need to replace it ourselves
|
2024-08-01 08:17:48 +10:00
|
|
|
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()
|
2024-03-24 23:45:47 +11:00
|
|
|
}
|