aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.properties2
-rw-r--r--src/main/java/com/github/bartimaeusnek/ASM/BWCorePlugin.java10
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java10
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/configs/ConfigHandler.java74
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/items/SimpleSubItemClass.java2
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java4
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/RecipeLoader.java29
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_THTR.java332
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_Diode.java16
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/system/material/WerkstoffLoader.java10
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java14
-rw-r--r--src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/GalacticraftProxy.java10
-rw-r--r--src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/planets/ross128/world/oregen/BW_WorldGenRoss128.java4
-rw-r--r--src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/solarsystems/Ross128SolarSystem.java9
-rw-r--r--src/main/resources/assets/bartworks/lang/en_US.lang7
-rw-r--r--src/main/resources/assets/bartworks/textures/items/BISOPellet.pngbin0 -> 253 bytes
-rw-r--r--src/main/resources/assets/bartworks/textures/items/BISOPelletBall.pngbin0 -> 305 bytes
-rw-r--r--src/main/resources/assets/bartworks/textures/items/BISOPelletCompound.pngbin0 -> 269 bytes
-rw-r--r--src/main/resources/assets/bartworks/textures/items/TRISOPellet.pngbin0 -> 257 bytes
-rw-r--r--src/main/resources/assets/bartworks/textures/items/TRISOPelletBall.pngbin0 -> 305 bytes
-rw-r--r--src/main/resources/assets/bartworks/textures/items/TRISOPelletCompound.pngbin0 -> 244 bytes
21 files changed, 456 insertions, 77 deletions
diff --git a/build.properties b/build.properties
index 22690fd078..ae7c150099 100644
--- a/build.properties
+++ b/build.properties
@@ -23,7 +23,7 @@
mc_version=1.7.10
majorUpdate=0
minorUpdate=4
-buildNumber=7
+buildNumber=8
APIVersion=6
ic2.version=2.2.828-experimental
gregtech.version=5.09.32.36
diff --git a/src/main/java/com/github/bartimaeusnek/ASM/BWCorePlugin.java b/src/main/java/com/github/bartimaeusnek/ASM/BWCorePlugin.java
index 018690d312..2093b6a092 100644
--- a/src/main/java/com/github/bartimaeusnek/ASM/BWCorePlugin.java
+++ b/src/main/java/com/github/bartimaeusnek/ASM/BWCorePlugin.java
@@ -22,6 +22,7 @@
package com.github.bartimaeusnek.ASM;
+import com.github.bartimaeusnek.bartworks.common.configs.ConfigHandler;
import cpw.mods.fml.relauncher.FMLInjectionData;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
import net.minecraftforge.common.config.Configuration;
@@ -44,13 +45,8 @@ public class BWCorePlugin implements IFMLLoadingPlugin {
if (minecraftDir != null)
return;//get called twice, once for IFMLCallHook
minecraftDir = (File) FMLInjectionData.data()[6];
-
- Configuration asmconfighandler = new Configuration(new File(new File(minecraftDir, "config"), "bartworks.cfg"));
- for (int i = 0; i < BWCoreTransformer.CLASSESBEEINGTRANSFORMED.length; i++) {
- BWCoreTransformer.shouldTransform[i] = asmconfighandler.get("ASM fixes", BWCoreTransformer.DESCRIPTIONFORCONFIG[i] + " in class: " + BWCoreTransformer.CLASSESBEEINGTRANSFORMED[i], true).getBoolean(true);
- }
- if (asmconfighandler.hasChanged())
- asmconfighandler.save();
+ //do all the configuration already now...
+ new ConfigHandler(new Configuration(new File(new File(minecraftDir, "config"), "bartworks.cfg")));
}
@Override
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java b/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java
index 2156adb295..99ac6fda7e 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java
@@ -35,6 +35,7 @@ import com.github.bartimaeusnek.bartworks.common.loaders.BioLabLoader;
import com.github.bartimaeusnek.bartworks.common.loaders.GTNHBlocks;
import com.github.bartimaeusnek.bartworks.common.loaders.LoaderRegistry;
import com.github.bartimaeusnek.bartworks.common.net.BW_Network;
+import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_THTR;
import com.github.bartimaeusnek.bartworks.system.log.DebugLog;
import com.github.bartimaeusnek.bartworks.system.material.ThreadedLoader;
import com.github.bartimaeusnek.bartworks.system.material.Werkstoff;
@@ -72,11 +73,9 @@ public final class MainMod {
public static final CreativeTabs BIO_TAB = new BioTab("BioTab");
public static final CreativeTabs BWT = new bartworksTab("bartworks");
public static final IGuiHandler GH = new GuiHandler();
- public static boolean GTNH = false;
@Mod.Instance(MOD_ID)
public static MainMod instance;
- public static ConfigHandler CHandler;
public static BW_Network BW_Network_instance = new BW_Network();
@Mod.EventHandler
@@ -88,9 +87,9 @@ public final class MainMod {
}
if (Loader.isModLoaded("dreamcraft")) {
- GTNH = true;
+ ConfigHandler.GTNH = true;
}
- CHandler = new ConfigHandler(preinit);
+ ConfigHandler.GTNH = ConfigHandler.ezmode != ConfigHandler.GTNH;
if (ConfigHandler.debugLog) {
try {
new DebugLog(preinit);
@@ -98,7 +97,7 @@ public final class MainMod {
e.printStackTrace();
}
}
- if (GTNH)
+ if (ConfigHandler.GTNH)
LOGGER.info("GTNH-Detected . . . ACTIVATE HARDMODE.");
if (ConfigHandler.BioLab) {
@@ -124,6 +123,7 @@ public final class MainMod {
else
WerkstoffLoader.INSTANCE.runInit();
}
+
}
@Mod.EventHandler
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/configs/ConfigHandler.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/configs/ConfigHandler.java
index 186f12c4e6..3f27a5adcf 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/configs/ConfigHandler.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/configs/ConfigHandler.java
@@ -23,60 +23,66 @@
package com.github.bartimaeusnek.bartworks.common.configs;
-import com.github.bartimaeusnek.bartworks.MainMod;
-import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+import com.github.bartimaeusnek.ASM.BWCoreTransformer;
import gregtech.api.enums.GT_Values;
import net.minecraftforge.common.config.Configuration;
-import javax.annotation.Nonnull;
-import java.io.File;
-
public class ConfigHandler {
private static final int IDU = GT_Values.VN.length * 8 + 1;
public static int IDOffset = 12600;
- public static boolean teslastaff = false;
+ public static boolean teslastaff;
public static long energyPerCell = 1000000L;
public static boolean newStuff = true;
public static boolean BioLab = true;
public static Configuration c;
- public static boolean DEHPDirectSteam = false;
+ public static boolean DEHPDirectSteam;
public static int megaMachinesMax = 256;
public static int mbWaterperSec = 150;
- private static boolean ezmode = false;
- public static boolean debugLog = false;
- public static boolean experimentalThreadedLoader = false;
+ public static int ross128ID = -64;
+ public static boolean Ross128Enabled = true;
+ public static boolean debugLog;
+ public static boolean experimentalThreadedLoader;
+ public static boolean GTNH;
+ public static boolean ezmode;
- public ConfigHandler(@Nonnull FMLPreInitializationEvent e) {
- c = new Configuration(new File(e.getModConfigurationDirectory().toString() + "/" + MainMod.MOD_ID + ".cfg"));
+ public ConfigHandler(Configuration C) {
+ ConfigHandler.c = C;
- IDOffset = c.get("System", "ID Offset", 12600, "ID Offset for this mod. This Mod uses " + IDU + " IDs. DO NOT CHANGE IF YOU DONT KNOW WHAT THIS IS").getInt(12600);
- energyPerCell = c.get("Multiblocks", "energyPerLESUCell", 1000000, "This will set Up the Energy per LESU Cell", 1000000, Integer.MAX_VALUE).getInt(1000000);
- ezmode = c.get("System", "Mode switch", false, "If GTNH is Loaded, this will enable easy recipes, if not, it will enable harder recipes.").getBoolean(false);
- MainMod.GTNH = ezmode ? !MainMod.GTNH : MainMod.GTNH;
- teslastaff = c.get("System", "Enable Teslastaff", false, "Enables the Teslastaff, an Item used to destroy Electric Armors").getBoolean(false);
- newStuff = !c.get("System", "Disable non-original-GT-stuff", false, "This switch disables my new content, that is not part of the GT2 compat").getBoolean(false);
- BioLab = !c.get("System", "Disable BioLab", false, "This switch disables the BioLab, BioVat etc. If you use GT5.08 or equivalent, this needs to be turned off!").getBoolean(false);
- DEHPDirectSteam = c.get("Multiblocks", "DEHP Direct Steam Mode", false, "This switch enables the Direct Steam Mode of the DEHP. If enabled it will take in Waterand output steam. If disabled it will Input IC2Coolant and output hot coolant").getBoolean(false);
- megaMachinesMax = c.get("Multiblocks", "Mega Machines Maximum Recipes per Operation", 256, "This changes the Maximum Recipes per Operation to the specified Valure").getInt(256);
- mbWaterperSec = c.get("Singleblocks", "mL Water per Sec for the StirlingPump", 150).getInt(150);
+ ConfigHandler.IDOffset = ConfigHandler.c.get("System", "ID Offset", 12600, "ID Offset for this mod. This Mod uses " + ConfigHandler.IDU + " IDs. DO NOT CHANGE IF YOU DONT KNOW WHAT THIS IS").getInt(12600);
+ ConfigHandler.energyPerCell = ConfigHandler.c.get("Multiblocks", "energyPerLESUCell", 1000000, "This will set Up the Energy per LESU Cell", 1000000, Integer.MAX_VALUE).getInt(1000000);
+ ConfigHandler.ezmode = ConfigHandler.c.get("System", "Mode switch", false, "If GTNH is Loaded, this will enable easy recipes, if not, it will enable harder recipes.").getBoolean(false);
+ ConfigHandler.teslastaff = ConfigHandler.c.get("System", "Enable Teslastaff", false, "Enables the Teslastaff, an Item used to destroy Electric Armors").getBoolean(false);
+ ConfigHandler.newStuff = !ConfigHandler.c.get("System", "Disable non-original-GT-stuff", false, "This switch disables my new content, that is not part of the GT2 compat").getBoolean(false);
+ ConfigHandler.BioLab = !ConfigHandler.c.get("System", "Disable BioLab", false, "This switch disables the BioLab, BioVat etc. If you use GT5.08 or equivalent, this needs to be turned off!").getBoolean(false);
+ ConfigHandler.DEHPDirectSteam = ConfigHandler.c.get("Multiblocks", "DEHP Direct Steam Mode", false, "This switch enables the Direct Steam Mode of the DEHP. If enabled it will take in Waterand output steam. If disabled it will Input IC2Coolant and output hot coolant").getBoolean(false);
+ ConfigHandler.megaMachinesMax = ConfigHandler.c.get("Multiblocks", "Mega Machines Maximum Recipes per Operation", 256, "This changes the Maximum Recipes per Operation to the specified Valure").getInt(256);
+ ConfigHandler.mbWaterperSec = ConfigHandler.c.get("Singleblocks", "mL Water per Sec for the StirlingPump", 150).getInt(150);
if (ConfigHandler.IDOffset == 0) {
ConfigHandler.IDOffset = 12600;
- c.get("System", "ID Offset", 12600, "ID Offset for this mod. This Mod uses " + IDU + " IDs. DO NOT CHANGE IF YOU DONT KNOW WHAT THIS IS").set(12600);
+ ConfigHandler.c.get("System", "ID Offset", 12600, "ID Offset for this mod. This Mod uses " + ConfigHandler.IDU + " IDs. DO NOT CHANGE IF YOU DONT KNOW WHAT THIS IS").set(12600);
+ }
+ ConfigHandler.debugLog = ConfigHandler.c.get("System", "Enable Debug Log", false, "Enables or Disables the debug log.").getBoolean(false);
+ ConfigHandler.experimentalThreadedLoader = ConfigHandler.c.get("System", "Enable Experimental Threaded Material Loader", false, "Enables or Disables the Experimental Threaded Material Loader.").getBoolean(false);
+
+ for (int i = 0; i < BWCoreTransformer.CLASSESBEEINGTRANSFORMED.length; i++) {
+ BWCoreTransformer.shouldTransform[i] = ConfigHandler.c.get("ASM fixes", BWCoreTransformer.DESCRIPTIONFORCONFIG[i] + " in class: " + BWCoreTransformer.CLASSESBEEINGTRANSFORMED[i], true).getBoolean(true);
}
- debugLog=c.get("System","Enable Debug Log",false,"Enables or Disables the debug log.").getBoolean(false);
- experimentalThreadedLoader =c.get("System","Enable Experimental Threaded Material Loader",false,"Enables or Disables the Experimental Threaded Material Loader.").getBoolean(false);
- if (c.hasChanged())
- c.save();
+ ConfigHandler.ross128ID = ConfigHandler.c.get("CrossMod Interactions", "DimID - Ross128b", -64, "The Dim ID for Ross128b").getInt(-64);
+ ConfigHandler.Ross128Enabled = ConfigHandler.c.get("CrossMod Interactions", "Galacticraft - Activate Ross128 System", true, "If the Ross128 System should be activated").getBoolean(true);
+
+ ConfigHandler.setUpComments();
+
+ if (ConfigHandler.c.hasChanged())
+ ConfigHandler.c.save();
}
- public static void setUpComments(){
- c.addCustomCategoryComment("ASM fixes","Disable ASM fixes here.");
- c.addCustomCategoryComment("Multiblocks","Multliblock Options can be set here.");
- c.addCustomCategoryComment("Singleblocks","Singleblock Options can be set here.");
- c.addCustomCategoryComment("System","Different System Settings can be set here.");
- c.addCustomCategoryComment("CrossMod Interactions","CrossMod Interaction Settings can be set here. For Underground Fluid settings change the Gregtech.cfg!");
- c.save();
+ public static void setUpComments() {
+ ConfigHandler.c.addCustomCategoryComment("ASM fixes", "Disable ASM fixes here.");
+ ConfigHandler.c.addCustomCategoryComment("Multiblocks", "Multliblock Options can be set here.");
+ ConfigHandler.c.addCustomCategoryComment("Singleblocks", "Singleblock Options can be set here.");
+ ConfigHandler.c.addCustomCategoryComment("System", "Different System Settings can be set here.");
+ ConfigHandler.c.addCustomCategoryComment("CrossMod Interactions", "CrossMod Interaction Settings can be set here. For Underground Fluid settings change the Gregtech.cfg!");
}
}
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/items/SimpleSubItemClass.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/items/SimpleSubItemClass.java
index f5abfeecf7..8c6d810869 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/items/SimpleSubItemClass.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/items/SimpleSubItemClass.java
@@ -41,7 +41,7 @@ public class SimpleSubItemClass extends Item {
protected IIcon[] itemIcon;
String[] tex;
- public SimpleSubItemClass(String[] tex) {
+ public SimpleSubItemClass(String... tex) {
this.tex = tex;
this.hasSubtypes = true;
this.setCreativeTab(MainMod.BWT);
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java
index 20911d4361..ca12a39636 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java
@@ -33,6 +33,7 @@ import com.github.bartimaeusnek.bartworks.common.tileentities.classic.BW_TileEnt
import com.github.bartimaeusnek.bartworks.common.tileentities.classic.BW_TileEntity_HeatedWaterPump;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_DEHP;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_ElectricImplosionCompressor;
+import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_THTR;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.mega.GT_TileEntity_MegaBlastFurnace;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.mega.GT_TileEntity_MegaVacuumFreezer;
import com.github.bartimaeusnek.bartworks.common.tileentities.tiered.GT_MetaTileEntity_AcidGenerator;
@@ -130,10 +131,13 @@ public class ItemRegistry {
public static ItemStack[] energyDistributor = new ItemStack[GT_Values.VN.length];
public static ItemStack[] acidGens = new ItemStack[3];
public static ItemStack[] megaMachines = new ItemStack[2];
+ public static ItemStack thtr;
public static void run() {
if (newStuff) {
+ thtr=new GT_TileEntity_THTR(ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 5,"THTR","Thorium High Temperature Reactor").getStackForm(1L);
+ GT_TileEntity_THTR.THTRMaterials.registeraTHR_Materials();
GameRegistry.registerBlock(ItemRegistry.bw_glasses[0], BW_ItemBlocks.class, "BW_GlasBlocks");
GameRegistry.registerBlock(ItemRegistry.bw_fake_glasses, "BW_FakeGlasBlock");
GT_OreDictUnificator.add(OrePrefixes.block, Materials.BorosilicateGlass, new ItemStack(ItemRegistry.bw_glasses[0], 1, 0));
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/RecipeLoader.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/RecipeLoader.java
index eef7b29c49..9c958e25fa 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/RecipeLoader.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/RecipeLoader.java
@@ -22,10 +22,10 @@
package com.github.bartimaeusnek.bartworks.common.loaders;
-import com.github.bartimaeusnek.bartworks.MainMod;
import com.github.bartimaeusnek.bartworks.common.configs.ConfigHandler;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_LESU;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_ManualTrafo;
+import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_THTR;
import com.github.bartimaeusnek.bartworks.common.tileentities.multis.GT_TileEntity_Windmill;
import com.github.bartimaeusnek.bartworks.util.BW_Util;
import gregtech.api.GregTech_API;
@@ -51,7 +51,7 @@ public class RecipeLoader implements Runnable {
@Override
public void run() {
- if (MainMod.GTNH) {
+ if (ConfigHandler.GTNH) {
/*
* GTNH "hardmode" Recipes
*/
@@ -96,11 +96,11 @@ public class RecipeLoader implements Runnable {
"CDC",
"SBS",
"CFC",
- 'C', GT_OreDictUnificator.get(OrePrefixes.circuit, MainMod.GTNH ? Materials.Advanced : Materials.Basic, 1L),
+ 'C', GT_OreDictUnificator.get(OrePrefixes.circuit, ConfigHandler.GTNH ? Materials.Advanced : Materials.Basic, 1L),
'D', ItemList.Cover_Screen.get(1L),
- 'S', GT_OreDictUnificator.get(OrePrefixes.cableGt12, MainMod.GTNH ? Materials.Platinum : Materials.AnnealedCopper, 1L),
+ 'S', GT_OreDictUnificator.get(OrePrefixes.cableGt12, ConfigHandler.GTNH ? Materials.Platinum : Materials.AnnealedCopper, 1L),
'B', new ItemStack(ItemRegistry.BW_BLOCKS[1]),
- 'F', MainMod.GTNH ? ItemList.Field_Generator_HV.get(1L) : ItemList.Field_Generator_LV.get(1L)
+ 'F', ConfigHandler.GTNH ? ItemList.Field_Generator_HV.get(1L) : ItemList.Field_Generator_LV.get(1L)
});
GT_ModHandler.addCraftingRecipe(
@@ -111,7 +111,7 @@ public class RecipeLoader implements Runnable {
"PLP",
"CPC",
'C', GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L),
- 'P', GT_OreDictUnificator.get(MainMod.GTNH ? OrePrefixes.plateDouble : OrePrefixes.plate, Materials.Aluminium, 1L),
+ 'P', GT_OreDictUnificator.get(ConfigHandler.GTNH ? OrePrefixes.plateDouble : OrePrefixes.plate, Materials.Aluminium, 1L),
'L', new ItemStack(Items.lava_bucket)
});
@@ -123,7 +123,7 @@ public class RecipeLoader implements Runnable {
"PLP",
"CPC",
'C', GT_OreDictUnificator.get(OrePrefixes.circuit, Materials.Advanced, 1L),
- 'P', GT_OreDictUnificator.get(MainMod.GTNH ? OrePrefixes.plateDouble : OrePrefixes.plate, MainMod.GTNH ? Materials.Steel : Materials.Iron, 1L),
+ 'P', GT_OreDictUnificator.get(ConfigHandler.GTNH ? OrePrefixes.plateDouble : OrePrefixes.plate, ConfigHandler.GTNH ? Materials.Steel : Materials.Iron, 1L),
'L', new ItemStack(Items.lava_bucket)
});
@@ -219,7 +219,7 @@ public class RecipeLoader implements Runnable {
}
);
- if (!MainMod.GTNH)
+ if (!ConfigHandler.GTNH)
GT_ModHandler.addCraftingRecipe(
ItemRegistry.dehp,
BITSD,
@@ -727,6 +727,19 @@ public class RecipeLoader implements Runnable {
'G', GT_OreDictUnificator.get(OrePrefixes.gearGt, Materials.Iron, 1L),
}
);
+ GT_TileEntity_THTR.THTRMaterials.registerTHR_Recipes();
+ GT_ModHandler.addCraftingRecipe(
+ ItemRegistry.thtr,
+ RecipeLoader.BITSD,
+ new Object[]{
+ "BZB",
+ "BRB",
+ "BZB",
+ 'B',new ItemStack(GregTech_API.sBlockCasings3,1,12),
+ 'R',GT_ModHandler.getModItem("IC2","blockGenerator",1,5),
+ 'Z',"circuitUltimate"
+ }
+ );
}
}
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_THTR.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_THTR.java
new file mode 100644
index 0000000000..b21e97aead
--- /dev/null
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_THTR.java
@@ -0,0 +1,332 @@
+/*
+ * Copyright (c) 2019 bartimaeusnek
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+package com.github.bartimaeusnek.bartworks.common.tileentities.multis;
+
+import com.github.bartimaeusnek.bartworks.common.items.SimpleSubItemClass;
+import com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader;
+import com.github.bartimaeusnek.bartworks.util.BW_Util;
+import com.github.bartimaeusnek.bartworks.util.ChatColorHelper;
+import cpw.mods.fml.common.registry.GameRegistry;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.enums.Textures;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.objects.XSTR;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.StatCollector;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidRegistry;
+import net.minecraftforge.fluids.FluidStack;
+
+import java.util.Arrays;
+
+public class GT_TileEntity_THTR extends GT_MetaTileEntity_MultiBlockBase {
+
+ private static final int BASECASINGINDEX = 44;
+ private static final int HELIUM_NEEDED = 730000;
+ private int HeliumSupply;
+ private int BISOPeletSupply;
+ private int TRISOPeletSupply;
+
+ public GT_TileEntity_THTR(int aID, String aName, String aNameRegional) {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_TileEntity_THTR(String aName) {
+ super(aName);
+ }
+
+ @Override
+ public boolean isCorrectMachinePart(ItemStack itemStack) {
+ return true;
+ }
+
+ @Override
+ public void loadNBTData(NBTTagCompound aNBT) {
+ super.loadNBTData(aNBT);
+ HeliumSupply=aNBT.getInteger("HeliumSupply");
+ BISOPeletSupply=aNBT.getInteger("BISOPeletSupply");
+ TRISOPeletSupply=aNBT.getInteger("TRISOPeletSupply");
+ }
+
+ @Override
+ public void saveNBTData(NBTTagCompound aNBT) {
+ super.saveNBTData(aNBT);
+ aNBT.setInteger("HeliumSupply",HeliumSupply);
+ aNBT.setInteger("BISOPeletSupply",BISOPeletSupply);
+ aNBT.setInteger("TRISOPeletSupply",TRISOPeletSupply);
+ }
+
+ @Override
+ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
+ super.onPostTick(aBaseMetaTileEntity, aTick);
+ if (aBaseMetaTileEntity.isServerSide()){
+ if (HeliumSupply < HELIUM_NEEDED){
+ for (FluidStack fluidStack : this.getStoredFluids()){
+ if (fluidStack.isFluidEqual(Materials.Helium.getGas(1000))) {
+ while (HeliumSupply < HELIUM_NEEDED && fluidStack.amount > 0) {
+ HeliumSupply++;
+ fluidStack.amount--;
+ }
+ }
+ }
+ }
+ for (ItemStack itemStack : this.getStoredInputs()) {
+ if (GT_Utility.areStacksEqual(itemStack, new ItemStack(GT_TileEntity_THTR.THTRMaterials.aTHTR_Materials, 1, 3))) {
+ if (BISOPeletSupply + TRISOPeletSupply < 675000) {
+ while (BISOPeletSupply + TRISOPeletSupply < 675000 && itemStack.stackSize > 0) {
+ itemStack.stackSize--;
+ TRISOPeletSupply++;
+ }
+ this.updateSlots();
+ }
+ } else if (GT_Utility.areStacksEqual(itemStack, new ItemStack(GT_TileEntity_THTR.THTRMaterials.aTHTR_Materials, 1, 1))) {
+ if (BISOPeletSupply + TRISOPeletSupply < 675000) {
+ while (BISOPeletSupply + TRISOPeletSupply < 675000 && itemStack.stackSize > 0) {
+ itemStack.stackSize--;
+ BISOPeletSupply++;
+
+ }
+ this.updateSlots();
+ }
+ }
+ }
+ }
+ }
+
+ @Override
+ public boolean checkRecipe(ItemStack controllerStack) {
+
+ if (!(HeliumSupply >= HELIUM_NEEDED && BISOPeletSupply + TRISOPeletSupply >= 100000))
+ return false;
+
+ if (new XSTR().nextBoolean()) {
+ if (this.BISOPeletSupply > 0)
+ --this.BISOPeletSupply;
+ else
+ --this.TRISOPeletSupply;
+ } else {
+ if (this.TRISOPeletSupply > 0)
+ --this.TRISOPeletSupply;
+ else
+ --this.BISOPeletSupply;
+ }
+
+ this.updateSlots();
+ if (this.mOutputFluids == null || this.mOutputFluids[0] == null)
+ this.mOutputFluids = new FluidStack[]{FluidRegistry.getFluidStack("ic2hotcoolant",0)};
+ //this.mOutputFluids[0].amount+=toProduce;
+ this.mEUt=0;
+ this.mMaxProgresstime=648000;
+
+
+ return true;
+ }
+
+ @Override
+ public boolean onRunningTick(ItemStack aStack) {
+ long accessibleCoolant = 0;
+ long toProduce=0;
+ for (FluidStack fluidStack : this.getStoredFluids()) {
+ if (fluidStack.isFluidEqual(FluidRegistry.getFluidStack("ic2coolant",1))) {
+ accessibleCoolant+=fluidStack.amount;
+ }
+ }
+
+ toProduce = (long) ((0.03471*(float)this.TRISOPeletSupply + 0.0267*(float)this.BISOPeletSupply));
+
+ if (toProduce > accessibleCoolant) {
+// new ExplosionIC2(
+// this.getBaseMetaTileEntity().getWorld(),
+// null,
+// this.getBaseMetaTileEntity().getXCoord(),
+// this.getBaseMetaTileEntity().getYCoord(),
+// this.getBaseMetaTileEntity().getZCoord(),
+// 50f,
+// 0.01f,
+// ExplosionIC2.Type.Nuclear
+// ).doExplosion();
+ return false;
+ }
+
+ accessibleCoolant=toProduce;
+
+ for (FluidStack fluidStack : this.getStoredFluids()) {
+ if (fluidStack.isFluidEqual(FluidRegistry.getFluidStack("ic2coolant",1))) {
+ if (accessibleCoolant >= fluidStack.amount) {
+ accessibleCoolant -= fluidStack.amount;
+ fluidStack.amount=0;
+ } else if (accessibleCoolant > 0) {
+ fluidStack.amount-=accessibleCoolant;
+ accessibleCoolant=0;
+ }
+ }
+ }
+ this.mOutputFluids[0].amount+=toProduce;
+ return true;
+ }
+
+ @Override
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack itemStack) {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX * 4;
+ int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ * 4;
+ for (int x = -4; x <= 4; x++) {
+ for (int z = -4; z <= 4; z++) {
+ for (int y = 0; y < 12; y++) {
+ if (y == 0 || y == 11) {
+ if (
+ !((Math.abs(z) == 3 && Math.abs(x) == 4)) &&
+ !((Math.abs(z) == 4 && Math.abs(x) == 3)) &&
+ !((Math.abs(x) == Math.abs(z) && Math.abs(x) == 4))
+ ) {
+ if (x + xDir == 0 && y == 0 && z + zDir == 0)
+ continue;
+ if (!(aBaseMetaTileEntity.getBlockOffset(xDir + x, y, zDir + z) == GregTech_API.sBlockCasings3 && aBaseMetaTileEntity.getMetaIDOffset(xDir + x, y, zDir + z) == 12)) {
+ if (
+ (
+ !(this.addInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + x, y, zDir + z), BASECASINGINDEX) && y == 11) &&
+ !(this.addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + x, y, zDir + z), BASECASINGINDEX) && y == 0)) &&
+ !this.addMaintenanceToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + x, y, zDir + z), BASECASINGINDEX)
+ ) {
+ return false;
+ }
+ }
+ }
+ }
+ else if (!((Math.abs(x) == 4 && Math.abs(z) == 4) || (Math.abs(x) == 3 && Math.abs(z) == 3)) && !(Math.abs(x) < 3 || Math.abs(z) < 3) && !((Math.abs(x) == Math.abs(z) && Math.abs(x) == 3) || Math.abs(x) == 4 || Math.abs(z) == 4)) {
+ if (!(aBaseMetaTileEntity.getBlockOffset(xDir + x, y, zDir + z) == GregTech_API.sBlockCasings3 && aBaseMetaTileEntity.getMetaIDOffset(xDir + x, y, zDir + z) == 12)) {
+ if (
+ !this.addMaintenanceToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + x, y, zDir + z), BASECASINGINDEX))
+ {
+ return false;
+ }
+ }
+ }
+ }
+ }
+
+ }
+
+ if (this.mMaintenanceHatches.size() != 1)
+ return false;
+
+ return true;
+ }
+
+ @Override
+ public int getMaxEfficiency(ItemStack itemStack) {
+ return 10000;
+ }
+
+ @Override
+ public int getPollutionPerTick(ItemStack itemStack) {
+ return 0;
+ }
+
+ @Override
+ public int getDamageToComponent(ItemStack itemStack) {
+ return 0;
+ }
+
+ @Override
+ public boolean explodesOnComponentBreak(ItemStack itemStack) {
+ return false;
+ }
+
+ @Override
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity iGregTechTileEntity) {
+ return new GT_TileEntity_THTR(this.mName);
+ }
+
+
+ @Override
+ public String[] getInfoData() {
+ return new String[]{
+ "Progress:", this.mProgresstime / 20 + "secs", this.mMaxProgresstime / 20 + "secs",
+ "BISO-Pebbles:", this.BISOPeletSupply + "pcs.",
+ "TRISO-Pebbles:", this.TRISOPeletSupply + "pcs.",
+ "Helium-Level:", this.HeliumSupply+"L / "+HELIUM_NEEDED+"L",
+ "Coolant/sec:", this.BISOPeletSupply+this.TRISOPeletSupply >= 100000 ? (long) ((0.03471*(float)this.TRISOPeletSupply + 0.0267*(float)this.BISOPeletSupply))+"L/t" : "0L/t",
+ "Problems:", String.valueOf(this.getIdealStatus() - this.getRepairStatus())
+ };
+ }
+
+ @Override
+ public String[] getDescription() {
+ String[] dsc = StatCollector.translateToLocal("tooltip.tile.htr.0.name").split(";");
+ String[] mDescription = new String[dsc.length + 1];
+ for (int i = 0; i < dsc.length; i++) {
+ mDescription[i] = dsc[i];
+ mDescription[dsc.length] = StatCollector.translateToLocal("tooltip.bw.1.name") + ChatColorHelper.DARKGREEN + " BartWorks";
+ }
+ return mDescription;
+ }
+
+ @Override
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) {
+ return aSide == aFacing ? new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[BASECASINGINDEX], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_HEAT_EXCHANGER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_HEAT_EXCHANGER)} : new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[BASECASINGINDEX]};
+ }
+
+
+ public static class THTRMaterials{
+ static final SimpleSubItemClass aTHTR_Materials = new SimpleSubItemClass("BISOPelletCompound","BISOPellet","TRISOPelletCompound","TRISOPellet","BISOPelletBall","TRISOPelletBall");
+ public static void registeraTHR_Materials(){
+ GameRegistry.registerItem(GT_TileEntity_THTR.THTRMaterials.aTHTR_Materials,"bw.THTRMaterials");
+ }
+
+ public static void registerTHR_Recipes(){
+ GT_Values.RA.addAssemblerRecipe(new ItemStack[]{
+ GT_OreDictUnificator.get(OrePrefixes.plateDense,Materials.Lead,6),
+ GT_OreDictUnificator.get(OrePrefixes.frameGt,Materials.TungstenSteel,1)
+ },
+ Materials.Concrete.getMolten(1296),
+ new ItemStack(GregTech_API.sBlockCasings3,1,12),
+ 40,
+ BW_Util.getMachineVoltageFromTier(5)
+ );
+ GT_Values.RA.addMixerRecipe(WerkstoffLoader.Thorium232.get(OrePrefixes.dust,10),Materials.Uranium235.getDust(1),GT_Utility.getIntegratedCircuit(1),null,null,null,new ItemStack(aTHTR_Materials),400,30);
+ GT_Values.RA.addFormingPressRecipe(new ItemStack(aTHTR_Materials),Materials.Graphite.getDust(64),new ItemStack(aTHTR_Materials,1,4),40,30);
+ ItemStack[] pellets = new ItemStack[6];
+ Arrays.fill(pellets,new ItemStack(aTHTR_Materials,64,1));
+ GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.addRecipe(false,new ItemStack[]{new ItemStack(aTHTR_Materials,1,4),GT_Utility.getIntegratedCircuit(17)},pellets,null,null,null,null,24000,30,0);
+ GT_Values.RA.addFormingPressRecipe(new ItemStack(aTHTR_Materials,1,4),Materials.Silicon.getDust(64),new ItemStack(aTHTR_Materials,1,2),40,30);
+ GT_Values.RA.addFormingPressRecipe(new ItemStack(aTHTR_Materials,1,2),Materials.Graphite.getDust(64),new ItemStack(aTHTR_Materials,1,5),40,30);
+ pellets = new ItemStack[6];
+ Arrays.fill(pellets,new ItemStack(aTHTR_Materials,64,3));
+ GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.addRecipe(false,new ItemStack[]{new ItemStack(aTHTR_Materials,1,5),GT_Utility.getIntegratedCircuit(17)},pellets,null,null,null,null,48000,30,0);
+ }
+
+ }
+
+
+}
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_Diode.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_Diode.java
index e3a1da3966..909d84bb31 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_Diode.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_Diode.java
@@ -64,11 +64,17 @@ public class GT_MetaTileEntity_Diode extends GT_MetaTileEntity_BasicHull {
if (this.getBaseMetaTileEntity().getWorld().isRemote)
return;
-
- --aAmps;
- if (aAmps < 0)
- aAmps = maxAmps;
- GT_Utility.sendChatToPlayer(aPlayer, "Max Amps: " + aAmps);
+ if (!aPlayer.isSneaking()) {
+ --aAmps;
+ if (aAmps < 0)
+ aAmps = maxAmps;
+ GT_Utility.sendChatToPlayer(aPlayer, "Max Amps: " + aAmps);
+ }else{
+ ++aAmps;
+ if (aAmps > maxAmps)
+ aAmps = 0;
+ GT_Utility.sendChatToPlayer(aPlayer, "Max Amps: " + aAmps);
+ }
}
@Override
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/WerkstoffLoader.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/WerkstoffLoader.java
index 1a805cd8d0..824435461d 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/WerkstoffLoader.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/WerkstoffLoader.java
@@ -446,6 +446,16 @@ public class WerkstoffLoader implements Runnable {
new Pair<ISubTagContainer, Integer>(Materials.Hydrogen, 2)
);
+ public static final Werkstoff Thorium232 = new Werkstoff(
+ new short[]{0,64,0,0},
+ "Thorium 232",
+ "Th232",
+ new Werkstoff.Stats().setRadioactive(true),
+ Werkstoff.Types.ELEMENT,
+ new Werkstoff.GenerationFeatures().disable().onlyDust(),
+ 30,
+ TextureSet.SET_METALLIC
+ );
public static HashMap<OrePrefixes, BW_MetaGenerated_Items> items = new HashMap<>();
public static Block BWOres;
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java
index 29300cdbbe..667d44342e 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/processingLoaders/AdditionalRecipes.java
@@ -41,6 +41,20 @@ public class AdditionalRecipes implements Runnable {
GT_Values.RA.addChemicalRecipe(Materials.Yttrium.getDust(2), GT_Utility.getIntegratedCircuit(11),Materials.Oxygen.getGas(3000),null, WerkstoffLoader.YttriumOxide.get(dust),64, BW_Util.getMachineVoltageFromTier(4));
GT_Recipe.GT_Recipe_Map.sBlastRecipes.addRecipe(false, new ItemStack[]{WerkstoffLoader.Zirconium.get(dust,10), WerkstoffLoader.YttriumOxide.get(dust)}, new ItemStack[]{WerkstoffLoader.YttriumOxide.get(dust), WerkstoffLoader.Zirconia.get(gemFlawed, 40)}, (Object) null, (int[]) null, new FluidStack[]{Materials.Oxygen.getGas(20000)}, null, 14400, BW_Util.getMachineVoltageFromTier(4), 2953);
GT_Values.RA.addBlastRecipe(WerkstoffLoader.YttriumOxide.get(dustSmall,2),WerkstoffLoader.Thorianit.get(dustSmall,2),Materials.Glass.getMolten(144),null,new ItemStack(ItemRegistry.bw_glasses[0],1,12),null,800,BW_Util.getMachineVoltageFromTier(5),3663);
+ GT_Values.RA.addSifterRecipe(WerkstoffLoader.Thorianit.get(crushedPurified),
+ new ItemStack[]{
+ WerkstoffLoader.Thorianit.get(dust),
+ WerkstoffLoader.Thorianit.get(dust),
+ WerkstoffLoader.Thorianit.get(dust),
+ Materials.Thorium.getDust(1),
+ Materials.Thorium.getDust(1),
+ WerkstoffLoader.Thorium232.get(dust),
+ }, new int[]{7000,1300,700,600,300,100},
+ 400,
+ BW_Util.getMachineVoltageFromTier(5)
+ );
+ GT_Values.RA.addChemicalRecipe(WerkstoffLoader.Thorianit.get(dust),Materials.Aluminium.getDust(1),Materials.Thorium.getDust(1),1000);
+ GT_Values.RA.addChemicalRecipe(WerkstoffLoader.Thorianit.get(dust),Materials.Magnesium.getDust(1),Materials.Thorium.getDust(1),1000);
}
}
diff --git a/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/GalacticraftProxy.java b/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/GalacticraftProxy.java
index 505350d401..c93a698902 100644
--- a/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/GalacticraftProxy.java
+++ b/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/GalacticraftProxy.java
@@ -22,6 +22,7 @@
package com.github.bartimaeusnek.crossmod.galacticraft;
+import com.github.bartimaeusnek.bartworks.common.configs.ConfigHandler;
import com.github.bartimaeusnek.crossmod.galacticraft.solarsystems.Ross128SolarSystem;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
@@ -62,13 +63,6 @@ public class GalacticraftProxy {
init_undergroundFluidsRoss128();
if (GalacticraftProxy.gtConf.hasChanged())
GalacticraftProxy.gtConf.save();
-
- Configuration c = new Configuration(new File(e.getModConfigurationDirectory(), "bartworks.cfg"));
- Ross128SolarSystem.ross128ID = c.get("CrossMod Interactions", "DimID - Ross128b", -64, "The Dim ID for Ross128b").getInt(-64);
- Ross128SolarSystem.enabled = c.get("CrossMod Interactions", "Galacticraft - Activate Ross128 System", true, "If the Ross128 System should be activated").getBoolean(true);
- if (c.hasChanged())
- c.save();
-
init_OresRoss128();
}
@@ -90,7 +84,7 @@ public class GalacticraftProxy {
}
private static void commonInit(FMLInitializationEvent e) {
- if (Ross128SolarSystem.enabled)
+ if (ConfigHandler.Ross128Enabled)
Ross128SolarSystem.init();
}
}
diff --git a/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/planets/ross128/world/oregen/BW_WorldGenRoss128.java b/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/planets/ross128/world/oregen/BW_WorldGenRoss128.java
index d01e782acf..46a5fd07e2 100644
--- a/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/planets/ross128/world/oregen/BW_WorldGenRoss128.java
+++ b/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/planets/ross128/world/oregen/BW_WorldGenRoss128.java
@@ -22,8 +22,8 @@
package com.github.bartimaeusnek.crossmod.galacticraft.planets.ross128.world.oregen;
+import com.github.bartimaeusnek.bartworks.common.configs.ConfigHandler;
import com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader;
-import com.github.bartimaeusnek.crossmod.galacticraft.solarsystems.Ross128SolarSystem;
import gregtech.api.enums.Materials;
import gregtech.api.interfaces.ISubTagContainer;
import net.minecraft.util.StatCollector;
@@ -63,7 +63,7 @@ public class BW_WorldGenRoss128 extends BW_OreLayer {
@Override
public boolean isGenerationAllowed(World aWorld, int aDimensionType, int aAllowedDimensionType) {
- return aWorld.provider.dimensionId == Ross128SolarSystem.ross128ID;
+ return aWorld.provider.dimensionId == ConfigHandler.ross128ID;
}
}
diff --git a/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/solarsystems/Ross128SolarSystem.java b/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/solarsystems/Ross128SolarSystem.java
index e7d539f969..ba2ac7c185 100644
--- a/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/solarsystems/Ross128SolarSystem.java
+++ b/src/main/java/com/github/bartimaeusnek/crossmod/galacticraft/solarsystems/Ross128SolarSystem.java
@@ -22,6 +22,7 @@
package com.github.bartimaeusnek.crossmod.galacticraft.solarsystems;
+import com.github.bartimaeusnek.bartworks.common.configs.ConfigHandler;
import com.github.bartimaeusnek.crossmod.BartWorksCrossmod;
import com.github.bartimaeusnek.crossmod.galacticraft.UniversalTeleportType;
import com.github.bartimaeusnek.crossmod.galacticraft.planets.ross128.world.worldprovider.WorldProviderRoss128b;
@@ -36,15 +37,11 @@ import java.util.Arrays;
public class Ross128SolarSystem {
- public static boolean enabled = true;
-
public static SolarSystem Ross128System;
public static Star Ross128;
public static Planet Ross128b;
public static Moon Ross128ba;
- // public static Block Ross128bBlocks;
-// public static BlockMetaPair Ross128bStone,Ross128bDirt,Ross128bGrass;
- public static int ross128ID = -64;
+
private Ross128SolarSystem() {
}
@@ -65,7 +62,7 @@ public class Ross128SolarSystem {
Ross128SolarSystem.Ross128b.setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.75F, 1.75F));
Ross128SolarSystem.Ross128b.setRelativeOrbitTime(0.65F);
Ross128SolarSystem.Ross128b.atmosphere.addAll(Arrays.asList(IAtmosphericGas.OXYGEN, IAtmosphericGas.NITROGEN, IAtmosphericGas.ARGON));
- Ross128SolarSystem.Ross128b.setDimensionInfo(Ross128SolarSystem.ross128ID, WorldProviderRoss128b.class);
+ Ross128SolarSystem.Ross128b.setDimensionInfo(ConfigHandler.ross128ID, WorldProviderRoss128b.class);
Ross128SolarSystem.Ross128b.setTierRequired(Loader.isModLoaded("galaxyspace") ? 4 : Loader.isModLoaded("GalacticraftMars") ? 3 : -1);
Ross128SolarSystem.Ross128ba = new Moon("Ross128ba").setParentPlanet(Ross128SolarSystem.Ross128b);
diff --git a/src/main/resources/assets/bartworks/lang/en_US.lang b/src/main/resources/assets/bartworks/lang/en_US.lang
index d7976f0caa..e2df35928f 100644
--- a/src/main/resources/assets/bartworks/lang/en_US.lang
+++ b/src/main/resources/assets/bartworks/lang/en_US.lang
@@ -144,6 +144,13 @@ tile.radiohatch.name=Radio Hatch
tile.bw.windmill.name=Windmill
tile.manutrafo.name=Manual Trafo
+tooltip.tile.htr.0.name=Controller Block for the Thorium High Temperature Reactor;Size(WxHxD): 9x12x9 (Hollow);Corners and the 2 touching blocks are air;Once build, Helium is inserted into the Fluid Input Hatch until it doesnt accept any more;1+ Output Hatch (Any Bottom casing);1+ Input Hatch (Any Top casing);1+ Input Bus (Any Top casing);1x Maintenance Hatch (Any casing);Raidation Proof Casings for the Rest;Needs a constant supply of coolant or will shut down;Needs at least 100k Fuel pebbles to start operation (can hold up to 675k pebbles);Consumes 1 Fuel Pellet per Operation;TRISO pebbles provide 30% more Energy;Each pebble increases the amount of converted coolant;One Operation takes 27 Ingame Days
+item.TRISOPellet.name=TRISO pebble
+item.TRISOPelletBall.name=TRISO pebble ball
+item.BISOPelletBall.name=BISO pebble ball
+item.BISOPellet.name=BRISO pebble
+item.TRISOPelletCompound.name=TRISO pebble compund
+item.BISOPelletCompound.name=BISO pebble compund
itemGroup.bartworksMetaMaterials=BartWorks' Meta Materials
planet.Ross128b=Ross128b
diff --git a/src/main/resources/assets/bartworks/textures/items/BISOPellet.png b/src/main/resources/assets/bartworks/textures/items/BISOPellet.png
new file mode 100644
index 0000000000..4fb39c473b
--- /dev/null
+++ b/src/main/resources/assets/bartworks/textures/items/BISOPellet.png
Binary files differ
diff --git a/src/main/resources/assets/bartworks/textures/items/BISOPelletBall.png b/src/main/resources/assets/bartworks/textures/items/BISOPelletBall.png
new file mode 100644
index 0000000000..ea113e3f22
--- /dev/null
+++ b/src/main/resources/assets/bartworks/textures/items/BISOPelletBall.png
Binary files differ
diff --git a/src/main/resources/assets/bartworks/textures/items/BISOPelletCompound.png b/src/main/resources/assets/bartworks/textures/items/BISOPelletCompound.png
new file mode 100644
index 0000000000..029d895f31
--- /dev/null
+++ b/src/main/resources/assets/bartworks/textures/items/BISOPelletCompound.png
Binary files differ
diff --git a/src/main/resources/assets/bartworks/textures/items/TRISOPellet.png b/src/main/resources/assets/bartworks/textures/items/TRISOPellet.png
new file mode 100644
index 0000000000..26109fc979
--- /dev/null
+++ b/src/main/resources/assets/bartworks/textures/items/TRISOPellet.png
Binary files differ
diff --git a/src/main/resources/assets/bartworks/textures/items/TRISOPelletBall.png b/src/main/resources/assets/bartworks/textures/items/TRISOPelletBall.png
new file mode 100644
index 0000000000..0aea0500cf
--- /dev/null
+++ b/src/main/resources/assets/bartworks/textures/items/TRISOPelletBall.png
Binary files differ
diff --git a/src/main/resources/assets/bartworks/textures/items/TRISOPelletCompound.png b/src/main/resources/assets/bartworks/textures/items/TRISOPelletCompound.png
new file mode 100644
index 0000000000..6b2835d100
--- /dev/null
+++ b/src/main/resources/assets/bartworks/textures/items/TRISOPelletCompound.png
Binary files differ