aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gtPlusPlus/core')
-rw-r--r--src/main/java/gtPlusPlus/core/item/ModItems.java8
-rw-r--r--src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java6
-rw-r--r--src/main/java/gtPlusPlus/core/material/ELEMENT.java15
-rw-r--r--src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java20
-rw-r--r--src/main/java/gtPlusPlus/core/material/ORES.java3
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java34
-rw-r--r--src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java20
7 files changed, 70 insertions, 36 deletions
diff --git a/src/main/java/gtPlusPlus/core/item/ModItems.java b/src/main/java/gtPlusPlus/core/item/ModItems.java
index 47278c559d..fca4c5d3c6 100644
--- a/src/main/java/gtPlusPlus/core/item/ModItems.java
+++ b/src/main/java/gtPlusPlus/core/item/ModItems.java
@@ -14,6 +14,7 @@ import gtPlusPlus.core.common.compat.COMPAT_Baubles;
import gtPlusPlus.core.creative.AddToCreativeTab;
import gtPlusPlus.core.item.base.*;
import gtPlusPlus.core.item.base.BaseItemComponent.ComponentTypes;
+import gtPlusPlus.core.item.base.cell.BaseItemCell;
import gtPlusPlus.core.item.base.dusts.BaseItemDust;
import gtPlusPlus.core.item.base.foil.BaseItemFoil;
import gtPlusPlus.core.item.base.foods.BaseItemFood;
@@ -203,6 +204,8 @@ public final class ModItems {
public static Item dustIgnis;
public static Item dustTerra;
public static Item dustAqua;
+
+ public static Item cellHydrogenChlorideMix;
public static BaseEuItem metaItem2;
@@ -712,7 +715,10 @@ public final class ModItems {
dustAer = ItemUtils.generateSpecialUseDusts(ELEMENT.getInstance().AER, true)[0];
dustIgnis = ItemUtils.generateSpecialUseDusts(ELEMENT.getInstance().IGNIS, true)[0];
dustTerra = ItemUtils.generateSpecialUseDusts(ELEMENT.getInstance().TERRA, true)[0];
- dustAqua = ItemUtils.generateSpecialUseDusts(ELEMENT.getInstance().AQUA, true)[0];
+ dustAqua = ItemUtils.generateSpecialUseDusts(ELEMENT.getInstance().AQUA, true)[0];
+
+ ItemUtils.generateSpecialUseDusts(MISC_MATERIALS.WOODS_GLASS, false);
+ cellHydrogenChlorideMix = new BaseItemCell("hydrogenchloridemix", "Hydrogen Chloride Mix", MISC_MATERIALS.HYDROGEN_CHLORIDE.getRGB());
//Nuclear Fuel Dusts
dustLithiumCarbonate = ItemUtils.generateSpecialUseDusts("LithiumCarbonate", "Lithium Carbonate", "Li2CO3", Utils.rgbtoHexValue(240, 240, 240))[0]; //https://en.wikipedia.org/wiki/Lithium_carbonate
diff --git a/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java b/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java
index 688483b831..ad47adcf64 100644
--- a/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java
+++ b/src/main/java/gtPlusPlus/core/item/base/cell/BaseItemCell.java
@@ -12,6 +12,7 @@ import gtPlusPlus.core.util.minecraft.ItemUtils;
import ic2.core.Ic2Items;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidContainerRegistry;
+import net.minecraftforge.fluids.FluidStack;
public class BaseItemCell extends BaseItemComponent{
@@ -26,7 +27,10 @@ public class BaseItemCell extends BaseItemComponent{
public BaseItemCell(final String unlocalName, final String localName, final short[] RGBa) {
super(unlocalName, localName, RGBa);
this.fluidColour = RGBa;
- FluidContainerRegistry.registerFluidContainer(FluidUtils.getFluidStack(unlocalName.toLowerCase(), 0), ItemUtils.getSimpleStack(this), Ic2Items.cell.copy());
+ FluidStack aFluid = FluidUtils.getFluidStack(unlocalName.toLowerCase(), 1000);
+ if (aFluid != null) {
+ FluidContainerRegistry.registerFluidContainer(aFluid, ItemUtils.getSimpleStack(this), Ic2Items.cell.copy());
+ }
}
public BaseItemCell(final String unlocalName, final String localName, final short[] RGBa, final Fluid cellFluid) {
diff --git a/src/main/java/gtPlusPlus/core/material/ELEMENT.java b/src/main/java/gtPlusPlus/core/material/ELEMENT.java
index 54af01ef6e..01d3fd5330 100644
--- a/src/main/java/gtPlusPlus/core/material/ELEMENT.java
+++ b/src/main/java/gtPlusPlus/core/material/ELEMENT.java
@@ -236,13 +236,14 @@ public final class ELEMENT {
0,
false,
new MaterialStack[]{
- new MaterialStack(getInstance().OXYGEN, 30),
- new MaterialStack(getInstance().IRON, 20),
- new MaterialStack(getInstance().SILICONDIOXIDE, 20),
- new MaterialStack(getInstance().ALUMINIUMOXIDE, 10),
- new MaterialStack(getInstance().POTASSIUM, 10),
- new MaterialStack(getInstance().CALCIUM, 5),
- new MaterialStack(getInstance().SODIUM, 5)
+ new MaterialStack(getInstance().OXYGEN, 16),
+ new MaterialStack(getInstance().IRON, 10),
+ new MaterialStack(getInstance().SILICONDIOXIDE, 10),
+ new MaterialStack(getInstance().ALUMINIUMOXIDE, 6),
+ new MaterialStack(getInstance().POTASSIUM, 6),
+ new MaterialStack(getInstance().CALCIUM, 4),
+ new MaterialStack(getInstance().SODIUM, 4),
+ new MaterialStack(getInstance().YTTERBIUM, 2)
});//Not a GT Inherited Material
public static final Material RUNITE = new Material("Runite", MaterialState.SOLID, TextureSet.SET_FINE, new short[] {60, 200, 190}, 6750, 11550, 73, 87, true, "ยง", 0);//Not a GT Inherited Material
diff --git a/src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java b/src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java
index 19e8499f02..2740f49d71 100644
--- a/src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java
+++ b/src/main/java/gtPlusPlus/core/material/MISC_MATERIALS.java
@@ -114,6 +114,26 @@ public final class MISC_MATERIALS {
new MaterialStack(ELEMENT.getInstance().CARBON, 1),
new MaterialStack(ELEMENT.getInstance().OXYGEN, 2)
});
+
+ public static final Material WOODS_GLASS = new Material(
+ "Wood's Glass", //Material Name
+ MaterialState.SOLID, //State
+ TextureSets.GEM_A.get(), //Texture Set
+ new short[] {220, 60, 255}, //Material Colour
+ -1,
+ -1,
+ -1,
+ -1,
+ false,
+ "Si4Ba3Na2Ni",
+ 0,
+ false,
+ new MaterialStack[]{
+ new MaterialStack(ELEMENT.getInstance().SILICON, 40),
+ new MaterialStack(ELEMENT.getInstance().BARIUM, 30),
+ new MaterialStack(ELEMENT.getInstance().SODIUM, 20),
+ new MaterialStack(ELEMENT.getInstance().NICKEL, 10),
+ });
/*
diff --git a/src/main/java/gtPlusPlus/core/material/ORES.java b/src/main/java/gtPlusPlus/core/material/ORES.java
index 0186c23a07..82757b2ee6 100644
--- a/src/main/java/gtPlusPlus/core/material/ORES.java
+++ b/src/main/java/gtPlusPlus/core/material/ORES.java
@@ -486,10 +486,11 @@ public final class ORES {
-1, //Radiation
new MaterialStack[]{
new MaterialStack(ELEMENT.getInstance().CALCIUM, 1),
+ new MaterialStack(ELEMENT.getInstance().YTTERBIUM, 3),
new MaterialStack(ELEMENT.getInstance().GADOLINIUM, 2),
new MaterialStack(ELEMENT.getInstance().DYSPROSIUM, 2),
new MaterialStack(ELEMENT.getInstance().URANIUM235, 2),
- new MaterialStack(ELEMENT.getInstance().OXYGEN,32),
+ new MaterialStack(ELEMENT.getInstance().OXYGEN,29),
new MaterialStack(ELEMENT.getInstance().HYDROGEN, 24)
});
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
index 3d0e6aebfd..f8c923fc7a 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_GREGTECH.java
@@ -93,6 +93,7 @@ public class RECIPES_GREGTECH {
fluidheaterRecipes();
chemplantRecipes();
packagerRecipes();
+ alloySmelterRecipes();
/**
@@ -109,7 +110,17 @@ public class RECIPES_GREGTECH {
addFuels();
}
+ private static void alloySmelterRecipes() {
+
+ //Wood's Glass Laser Lens
+ GT_Values.RA.addAlloySmelterRecipe(
+ MISC_MATERIALS.WOODS_GLASS.getDust(5),
+ ItemList.Shape_Mold_Ball.get(0),
+ GregtechItemList.Laser_Lens_WoodsGlass.get(1),
+ 20 * 300,
+ MaterialUtils.getVoltageForTier(3));
+ }
private static void packagerRecipes() {
@@ -1122,29 +1133,6 @@ public class RECIPES_GREGTECH {
20 * 120,
480*4);
-
- //Wood's Glass Laser Lens
- CORE.RA.addBlastSmelterRecipe(
- new ItemStack[] {
- ItemUtils.getGregtechCircuit(5),
- ItemList.Shape_Mold_Ball.get(0),
- ELEMENT.getInstance().BARIUM.getDust(1),
- ELEMENT.getInstance().SODIUM.getDust(1),
- ELEMENT.getInstance().SILICON.getDust(2),
- ELEMENT.getInstance().NICKEL.getDust(1),
- ItemUtils.getItemStackOfAmountFromOreDict("dustGlass", 5)
- },
- FluidUtils.getUUM(1000),
- null,
- new ItemStack[] {
- GregtechItemList.Laser_Lens_WoodsGlass.get(1)
- },
- new int[] {10000},
- 20 * 300,
- (int) GT_Values.V[3]);
-
-
-
}
private static void fluidcannerRecipes() {
diff --git a/src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java b/src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java
index 864d0bcca8..860a87deae 100644
--- a/src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java
+++ b/src/main/java/gtPlusPlus/core/recipe/RECIPES_RareEarthProcessing.java
@@ -13,6 +13,7 @@ import gregtech.api.enums.GT_Values;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_OreDictUnificator;
+import gtPlusPlus.core.item.ModItems;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.material.ELEMENT;
import gtPlusPlus.core.material.MISC_MATERIALS;
@@ -118,12 +119,25 @@ public class RECIPES_RareEarthProcessing {
null,
new int[] {10000, 10000, 10000},
20 * 30,
- (int) GT_Values.V[2]);
+ 120);
// Generate Special Laser Recipe
+ CORE.RA.addMixerRecipe(
+ CI.getNumberedBioCircuit(2),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellChlorine", 1),
+ ItemUtils.getItemStackOfAmountFromOreDict("cellHydrogen", 1),
+ null,
+ null,
+ null,
+ ItemUtils.getSimpleStack(ModItems.cellHydrogenChlorideMix, 2),
+ null,
+ null,
+ null,
+ 20 * 10,
+ 480);
+
CORE.RA.addUvLaserRecipe(
- ELEMENT.getInstance().CHLORINE.getCell(2),
- ELEMENT.getInstance().HYDROGEN.getCell(2),
+ ItemUtils.getSimpleStack(ModItems.cellHydrogenChlorideMix, 4),
ItemUtils.getItemStackOfAmountFromOreDict("cellHydrogenChloride", 4),
20 * 30,
480);