Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds crafting recipe for Infinite Spray Can #976

Merged
merged 9 commits into from
Sep 8, 2024
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Add your dependencies here

dependencies {
api("com.github.GTNewHorizons:GT5-Unofficial:5.09.49.76:dev")
api("com.github.GTNewHorizons:GT5-Unofficial:5.09.49.82:dev")
api("com.github.GTNewHorizons:Yamcl:0.6.0:dev")
api("com.github.GTNewHorizons:Baubles:1.0.4:dev")

Expand Down
43 changes: 43 additions & 0 deletions src/main/java/com/dreammaster/scripts/ScriptGregtech.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static gregtech.api.GregTechAPI.sBlockOres1;
import static gregtech.api.enums.Mods.AdvancedSolarPanel;
import static gregtech.api.enums.Mods.AppliedEnergistics2;
import static gregtech.api.enums.Mods.BiomesOPlenty;
import static gregtech.api.enums.Mods.BloodArsenal;
import static gregtech.api.enums.Mods.CropsPlusPlus;
Expand Down Expand Up @@ -51,6 +52,8 @@
import gregtech.api.util.GTOreDictUnificator;
import gregtech.api.util.GTUtility;
import tconstruct.library.TConstructRegistry;
import vexatos.tgregworks.reference.PartTypes;
import vexatos.tgregworks.util.TGregUtils;

public class ScriptGregtech implements IScriptLoader {

Expand Down Expand Up @@ -883,6 +886,46 @@ public void loadRecipes() {
'm',
ItemList.Cover_SolarPanel_ZPM.get(1L));

ExtremeCraftingManager.getInstance().addExtremeShapedOreRecipe(
ItemList.Spray_Color_Infinite.get(1L),
"---RR----",
"---PsR---",
"---RRR---",
"--rrrrr--",
"--If-AI--",
"--IF-AI--",
"--IWCcI--",
"--IbSEI--",
"---III---",
'I',
TGregUtils.newItemStack(Materials.Iridium, PartTypes.LargePlate, 1),
'R',
TGregUtils.newItemStack(Materials.Tungsten, PartTypes.LargePlate, 1),
'r',
TGregUtils.newItemStack(Materials.Palladium, PartTypes.LargePlate, 1),
'S',
getModItem(Minecraft.ID, "sand", 1, 0, missing),
'C',
getModItem(ThaumicBases.ID, "rainbowCactus", 1, 0, missing),
'E',
getModItem(AppliedEnergistics2.ID, "tile.BlockDenseEnergyCell", 1, 0, missing),
'W',
ItemList.AcceleratorIV.get(1L),
'F',
"fenceWood",
'f',
getModItem(OpenBlocks.ID, "fan", 1, 0, missing),
'c',
getModItem(AppliedEnergistics2.ID, "item.ItemMultiPart", 1, 36),
'A',
getModItem(AppliedEnergistics2.ID, "item.ItemMultiPart", 1, 300, missing),
's',
getModItem(AppliedEnergistics2.ID, "item.ItemMultiMaterial", 1, 57),
'P',
getModItem(AppliedEnergistics2.ID, "item.ItemMultiPart", 1, 320, missing),
'b',
ItemList.Battery_Buffer_3by3_IV.get(1L));

GTValues.RA.stdBuilder().itemInputs(getModItem(TinkerConstruct.ID, "strangeFood", 1, 0, missing))
.itemOutputs(GTOreDictUnificator.get(OrePrefixes.dust, Materials.RawRubber, 2L)).duration(15 * SECONDS)
.eut(2).addTo(extractorRecipes);
Expand Down