[EXPAND] [[messages]] messageTitle = "P2P Conversion Enhancements (#838)" messageBody = ''' [FEATURE] [QOL] [DETAILS] details = [ "Allows Shift-Scrolling to Cycle Between P2Ps", "Adds Conversion Assembler Recipes Between P2Ps", ] [DETAILS] ''' [[messages]] messageTitle = "Fix NuclearCraft Liquid Helium Active Cooler Recipe (#838)" messageBody = "[BUG]" [EXPAND]
23 lines
679 B
Groovy
23 lines
679 B
Groovy
import classes.postInit.Common
|
|
import com.cleanroommc.groovyscript.helper.ingredient.OreDictIngredient
|
|
|
|
import static gregtech.api.GTValues.*
|
|
|
|
// Create an OreDict for P2Ps
|
|
OreDictIngredient p2pOre = ore('ae2P2ps')
|
|
p2pOre.add(Common.meP2p)
|
|
p2pOre.add(Common.p2pVariants)
|
|
|
|
// Crafting Recipe: Shapeless, Any P2P (Ore Dict) -> ME P2P
|
|
crafting.addShapeless(Common.meP2p, [p2pOre])
|
|
|
|
// Assembler Recipes: Any P2P (Ore Dict) + Circuit -> Variant of P2P (Excluding ME)
|
|
for (int i : 0..Common.p2pVariants.size() - 1) {
|
|
mods.gregtech.assembler.recipeBuilder()
|
|
.inputs(p2pOre)
|
|
.circuitMeta(i + 1)
|
|
.outputs(Common.p2pVariants[i])
|
|
.duration(10).EUt(VA[LV])
|
|
.buildAndRegister()
|
|
}
|