Compare commits

...
61 Commits
Author SHA1 Message Date
Ruling-0 1fa6321ea3 Merge remote-tracking branch 'origin/master' into mu 2026-11-21 15:47:03 -06:00
OrderedSet86andUltraProdigy 3d90755aea Remove inert EMTDungeonChestGenerator (#123)
Co-authored-by: UltraProdigy <[email protected]>
2026-11-10 07:52:43 +00:00
UltraProdigy 15463a5a68 ci: run build and test on release branches 2026-11-09 00:56:57 -05:00
Discreater 94e3293b8e Fix wrong keys in lang file (#126) 2026-11-07 14:58:35 -05:00
Ruling-0 8e26c43294 Bump GT5-Unofficial to 5.99.99-mu57 2026-10-12 16:22:53 -05:00
Ruling-0 29e9ba0f3e Bump GT5-Unofficial to 5.99.99-mu56 2026-10-12 15:04:18 -05:00
Ruling-0 df65e69082 Bump GT5-Unofficial to 5.99.99-mu54 2026-10-12 11:35:32 -05:00
Ruling-0 d533c8517b Bump MaterialLib to 0.24.0-mu and GT5-Unofficial to 5.99.99-mu53 2026-10-11 18:25:17 -05:00
Ruling-0 61d5db0d97 Bump GT5-Unofficial to 5.99.99-mu52 2026-10-10 00:56:00 -05:00
Ruling-0 206f12e280 Bump GT5-Unofficial to 5.99.99-mu51 2026-10-09 22:46:11 -05:00
Ruling-0 1a6bc48f5b Bump GT5-Unofficial to 5.99.99-mu50 2026-10-09 21:19:27 -05:00
Ruling-0 4dc3e55df8 Bump MaterialLib to 0.21.0-mu 2026-10-09 21:16:29 -05:00
Ruling-0 3c2cd8a684 Bump GT5-Unofficial to 5.99.99-mu49 2026-10-09 19:06:51 -05:00
Ruling-0 e729198076 Bump MaterialLib to 0.20.0-mu 2026-10-09 19:02:31 -05:00
Ruling-0 ede553385c Bump GT5-Unofficial to 5.99.99-mu41 and MaterialLib to 0.19.0-mu 2026-10-06 14:57:03 -05:00
Ruling-0 a800a3d52f Bump GT5-Unofficial to 5.99.99-mu36 2026-10-05 13:30:15 -05:00
Ruling-0 face00e906 Bump MaterialLib to 0.18.0-mu 2026-10-04 12:34:44 -05:00
Ruling-0 e5386a8af4 Bump MaterialLib to 0.17.0-mu 2026-10-04 12:15:45 -05:00
Ruling-0 7ae25e7b58 Bump MaterialLib to 0.16.0-mu 2026-10-04 02:48:15 -05:00
Ruling-0 a356edbdc5 Bump MaterialLib to 0.15.0-mu 2026-09-30 13:01:46 -05:00
Ruling-0 7a274ccd05 Bump GT5-Unofficial to 5.99.99-mu32 2026-09-30 11:48:50 -05:00
Ruling-0 93effd9f53 Bump GT5-Unofficial to 5.99.99-mu31 2026-09-30 11:07:04 -05:00
Ruling-0 77c7510b84 Bump MaterialLib to 0.14.0-mu 2026-09-30 11:03:26 -05:00
Ruling-0 ea649844e5 Bump GT5-Unofficial to 5.99.99-mu30 2026-09-30 09:26:47 -05:00
Ruling-0 d132d1ea4e Bump GT5-Unofficial to 5.99.99-mu27 2026-09-29 23:08:31 -05:00
Ruling-0 da2df31ddc Bump GT5-Unofficial to 5.99.99-mu26 2026-09-29 22:26:19 -05:00
Ruling-0 bbe58a1a9c Bump GT5-Unofficial to 5.99.99-mu25 and MaterialLib to 0.13.0-mu 2026-09-29 16:57:11 -05:00
Ruling-0 73db9945f4 Bump GT5-Unofficial to 5.99.99-mu24 2026-09-29 11:04:42 -05:00
Ruling-0 03db73fafd Bump GT5-Unofficial to 5.99.99-mu23 2026-09-29 10:42:34 -05:00
Ruling-0 d1553bc9db Bump GT5-Unofficial to 5.99.99-mu22 2026-09-29 08:40:03 -05:00
Ruling-0 beea9db8b1 Bump MaterialLib to 0.12.0-mu 2026-09-29 07:22:33 -05:00
Ruling-0 886b096fdf Bump GT5-Unofficial to 5.99.99-mu21 2026-09-28 22:04:46 -05:00
Ruling-0 4eab9e7c37 Bump GT5-Unofficial to 5.99.99-mu20 2026-09-28 15:46:31 -05:00
Ruling-0 0834d967af Bump GT5-Unofficial to 5.99.99-mu19 2026-09-28 15:27:53 -05:00
Ruling-0 ae200e95f8 Bump GT5-Unofficial to 5.99.99-mu18 2026-09-28 14:12:01 -05:00
Ruling-0 f1c46805f7 Bump GT5-Unofficial to 5.99.99-mu17 2026-09-28 13:28:47 -05:00
Ruling-0 3bdf0a2482 Bump GT5-Unofficial to 5.99.99-mu16 2026-09-28 11:43:43 -05:00
Ruling-0 6ebf8f7324 Bump GT5-Unofficial to 5.99.99-mu15 2026-09-28 07:56:02 -05:00
Ruling-0 2340d451fb Bump GT5-Unofficial to 5.99.99-mu14 2026-09-27 20:38:04 -05:00
Ruling-0 fed1619207 Bump GT5-Unofficial to 5.99.99-mu13 2026-09-27 19:04:16 -05:00
Ruling-0 ea2d55f03e Bump GT5-Unofficial to 5.99.99-mu12 2026-09-27 16:44:21 -05:00
Ruling-0 bf538a9768 Use the MaterialLib thaumium plate in recipes under GregTech 2026-09-27 15:22:55 -05:00
Ruling-0 3d07278a49 Output GregTech ores and crushed ores from UU-Matter infusions 2026-09-26 14:25:08 -05:00
Ruling-0 197ce2cd6f Bump MaterialLib to 0.11.0-mu 2026-09-22 09:53:43 -05:00
Ruling-0 e34b504abb Bump GT5-Unofficial to 5.99.99-mu11 2026-09-22 09:53:42 -05:00
Ruling-0 7fcd94f5a4 Bump GT5-Unofficial to 5.99.99-mu10 2026-09-20 11:39:55 -05:00
Ruling-0 a02bd0a298 Bump GT5-Unofficial to 5.99.99-mu9 2026-09-17 16:30:55 -05:00
Ruling-0 f98466d5b6 Bump GT5-Unofficial to 5.99.99-mu8 2026-09-16 16:03:26 -05:00
Ruling-0 74e7d350bd Bump GT5-Unofficial to 5.99.99-mu7 2026-09-15 16:51:15 -05:00
Ruling-0 4c07b29d68 Bump GT5-Unofficial to 5.99.99-mu6 2026-09-09 12:58:09 -05:00
Ruling-0 cc3fdacb03 Bump GT5-Unofficial to 5.99.99-mu5 and MaterialLib to 0.10.0-mu 2026-08-29 22:50:17 -05:00
Ruling-0 09b69e6726 Bump GT5-Unofficial to 5.99.99-mu4 2026-08-18 02:43:17 -05:00
Ruling-0 4b07f7b34d Bump MaterialLib to 0.9.0-mu 2026-08-18 00:30:29 -05:00
Ruling-0 0e82f262d0 Migrate to the unified material system 2026-08-18 00:30:29 -05:00
boubou19 9ac1008c31 Cache enum .values() (#122) 2026-08-10 21:03:16 +02:00
LazyFlesh f1985199d8 Deprecate ic2 glass (#118) 2026-06-22 23:34:43 +02:00
LazyFlesh fd897dd854 deprecate ic2 bounce pad (#121) 2026-06-22 22:54:45 +02:00
LazyFlesh b15d4db81e move aspect registry after a isModLoaded check for gt5 (#120) 2026-06-22 00:17:50 +02:00
LazyFlesh 49554c94bb Deprecate ic2 iron fence (#119) 2026-06-21 23:31:38 +02:00
Martin Robertz 11d073ea29 Update GT5-Unofficial dependency version 2026-06-21 23:06:03 +02:00
FourIsTheNumber a6748c68de Remove spacesuit from nano armor (#117) 2026-06-03 11:51:04 +02:00
21 changed files with 173 additions and 93 deletions

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@ name: Build and test
on:
pull_request:
branches: [ master, main ]
branches: [ master, main, release/** ]
push:
branches: [ master, main ]
branches: [ master, main, release/** ]
jobs:
build-and-test:
+2 -1
View File
@@ -11,5 +11,6 @@ dependencies {
api('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.331:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.99.99-mu57:dev')
compileOnly('com.ruling_0:MaterialLib:0.24.0-mu:dev')
}
+10 -10
View File
@@ -1,12 +1,12 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/46949723aaa20c7b64d7ecfed7207034/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/d6690dfd71c4c91e08577437b5b2beb0/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/3cd7045fca9a72cd9bc7d14a385e594c/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/552c7bffe0370c66410a51c55985b511/redirect
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/cf726b4a1c84b50457225f9bba6d7650/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/cf726b4a1c84b50457225f9bba6d7650/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c2dd35c9d0aaf0ba6ad0791320f99dfc/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/e5810bd7fd1f8a586644409d395a7e55/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/cf726b4a1c84b50457225f9bba6d7650/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/fa1e318c287360478e3c83a9a3ef1007/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/7b3c4877c0749019e6805bb61e421497/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/d76df094a9cbbabd3b08251f9e61444a/redirect
toolchainVersion=25
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
+1
View File
@@ -1,6 +1,7 @@
// Add any additional repositories for your dependencies here
repositories {
mavenLocal()
exclusiveContent {
forRepository {
maven {
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.21'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.26'
}
@@ -1,28 +1,85 @@
package emt.gthandler.common.loader;
import static emt.command.CommandOutputs.mkbook;
import static emt.util.EMTRandomHelper.getChargedItem;
import static gregtech.api.recipe.RecipeMaps.assemblerRecipes;
import static gregtech.api.util.GTRecipeBuilder.SECONDS;
import static thaumcraft.api.ThaumcraftApi.addInfusionCraftingRecipe;
import static thaumcraft.api.ThaumcraftApi.registerObjectTag;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import com.ruling_0.materiallib.api.Material;
import com.ruling_0.materiallib.api.MaterialLibAPI;
import emt.init.EMTItems;
import emt.init.EMTRecipes;
import emt.util.EMTCraftingAspects;
import gregtech.api.enums.Circuits;
import gregtech.api.enums.GTValues;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.StoneType;
import gregtech.api.enums.TierEU;
import gregtech.api.util.GTOreDictUnificator;
import gregtech.api.enums.materials.OreShapes;
import gregtech.api.enums.materials.Shapes;
import ic2.api.item.IC2Items;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.common.config.ConfigItems;
public class EMT_GT_Loader {
public static ItemStack stoneOre(Material material, int amount) {
return MaterialLibAPI.getStack(material, OreShapes.ore, OreShapes.variantOf(StoneType.Stone.name()), amount);
}
public static ItemStack crushedOre(Material material, int amount) {
return MaterialLibAPI.getStack(material, Shapes.crushed, amount);
}
public static ItemStack plate(Material material, int amount) {
return MaterialLibAPI.getStack(material, Shapes.plate, amount);
}
public static void runlate() {
GTValues.RA.stdBuilder()
.itemInputs(
new ItemStack(Items.book),
GTOreDictUnificator.get(OrePrefixes.circuit, Materials.LV, 1L),
Circuits.LV.get(1),
new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE))
.itemOutputs(mkbook()).duration(6 * SECONDS).eut(TierEU.RECIPE_MV / 2).addTo(assemblerRecipes);
registerObjectTag(ItemList.ReinforcedGlass.get(1L), new AspectList().add(Aspect.METAL, 2).add(Aspect.COLD, 2));
registerObjectTag(
ItemList.FenceIron.get(1L),
new AspectList().add(Aspect.ENERGY, 1).add(Aspect.METAL, 2).add(Aspect.WEATHER, 1));
registerObjectTag(ItemList.PadBouncy.get(1L), new AspectList().add(Aspect.AIR, 5));
registerObjectTag(ItemList.PadSticky.get(1L), new AspectList().add(Aspect.TRAP, 5).add(Aspect.SLIME, 2));
EMTRecipes.shieldFocus = addInfusionCraftingRecipe(
"Shield Focus",
new ItemStack(EMTItems.shieldFocus),
4,
EMTCraftingAspects.shieldFocusCrafting,
new ItemStack(ConfigItems.itemFocusPortableHole, 1),
new ItemStack[] { ItemList.Block_ReinforcedConcrete.get(1L), ItemList.ReinforcedGlass.get(1L),
ItemList.Block_ReinforcedConcrete.get(1L), ItemList.ReinforcedGlass.get(1L),
new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian),
new ItemStack(Blocks.obsidian) });
EMTRecipes.rockbreakerDrill = addInfusionCraftingRecipe(
"Drill of the Rockbreaker",
getChargedItem(EMTItems.rockbreakerDrill, 10),
6,
EMTCraftingAspects.rockbreakerDrillCrafting,
new ItemStack(EMTItems.thaumiumDrill, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack[] { new ItemStack(Items.flint_and_steel), new ItemStack(Items.fire_charge),
new ItemStack(ConfigItems.itemPickElemental), new ItemStack(ConfigItems.itemShovelElemental),
new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE),
ItemList.Block_ReinforcedConcrete.get(1L), IC2Items.getItem("iridiumPlate"),
IC2Items.getItem("overclockerUpgrade") });
}
}
-7
View File
@@ -47,13 +47,6 @@ public class EMTBlocks {
}
public static void addAspects() {
registerObjectTag(IC2Items.getItem("rubberTrampoline"), new AspectList().add(Aspect.AIR, 5));
registerObjectTag(
IC2Items.getItem("ironFence"),
new AspectList().add(Aspect.ENERGY, 1).add(Aspect.METAL, 2).add(Aspect.WEATHER, 1));
registerObjectTag(
IC2Items.getItem("reinforcedGlass"),
new AspectList().add(Aspect.METAL, 2).add(Aspect.COLD, 2));
registerObjectTag(IC2Items.getItem("scaffold"), new AspectList().add(Aspect.TREE, 4));
registerObjectTag(IC2Items.getItem("ironScaffold"), new AspectList().add(Aspect.METAL, 4));
registerObjectTag(
+39 -30
View File
@@ -15,9 +15,11 @@ import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.GameRegistry;
import emt.EMT;
import emt.gthandler.common.loader.EMT_GT_Loader;
import emt.util.EMTConfigHandler;
import emt.util.EMTCraftingAspects;
import emt.util.EMTResearchAspects;
import gregtech.api.enums.materials.Materials;
import ic2.api.item.IC2Items;
import ic2.api.recipe.IRecipeInput;
import ic2.api.recipe.RecipeInputItemStack;
@@ -129,6 +131,12 @@ public class EMTRecipes {
public static CrucibleRecipe uuMCrystal;
public static IRecipe thaumiumPlate;
/// The thaumium plate EMT's recipes consume: MaterialLib's under GregTech compatibility, else EMT's own.
private static ItemStack thaumiumPlate() {
return Registry.enableGTCompat ? EMT_GT_Loader.plate(Materials.Thaumium, 1)
: new ItemStack(EMTItems.itemEMTItems, 1, 5);
}
private static void registerShapedRecipes() {
/** Crafting Recipes **/
@@ -303,8 +311,8 @@ public class EMTRecipes {
new ItemStack(Items.iron_ingot),
new ItemStack[] { uuMCell, uuMCell, uuMCell });
ItemStack ironOre = new ItemStack(Blocks.iron_ore).copy();
ironOre.stackSize = 16;
ItemStack ironOre = Registry.enableGTCompat ? EMT_GT_Loader.stoneOre(Materials.Iron, 16)
: new ItemStack(Blocks.iron_ore, 16);
stoneBricksToIronOre = addInfusionCraftingRecipe(
"UU-Matter Infusion",
ironOre,
@@ -316,8 +324,8 @@ public class EMTRecipes {
/**
* ItemStack copperOre = Items.getItem("copperOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
**/
ItemStack copperOre = IC2Items.getItem("crushedCopperOre").copy();
copperOre.stackSize = 32;
ItemStack copperOre = Registry.enableGTCompat ? EMT_GT_Loader.crushedOre(Materials.Copper, 32)
: withSize(IC2Items.getItem("crushedCopperOre"), 32);
arcaneStoneToCopperOre = addInfusionCraftingRecipe(
"UU-Matter Infusion",
copperOre,
@@ -329,8 +337,8 @@ public class EMTRecipes {
/**
* ItemStack tinOre = Items.getItem("tinOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
**/
ItemStack tinOre = IC2Items.getItem("crushedTinOre").copy();
tinOre.stackSize = 32;
ItemStack tinOre = Registry.enableGTCompat ? EMT_GT_Loader.crushedOre(Materials.Tin, 32)
: withSize(IC2Items.getItem("crushedTinOre"), 32);
arcaneStoneBricksToTinOre = addInfusionCraftingRecipe(
"UU-Matter Infusion",
tinOre,
@@ -342,8 +350,8 @@ public class EMTRecipes {
/**
* ItemStack leadOre = Items.getItem("leadOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
**/
ItemStack leadOre = IC2Items.getItem("crushedLeadOre").copy();
leadOre.stackSize = 32;
ItemStack leadOre = Registry.enableGTCompat ? EMT_GT_Loader.crushedOre(Materials.Lead, 32)
: withSize(IC2Items.getItem("crushedLeadOre"), 32);
amberBlockToLeadOre = addInfusionCraftingRecipe(
"UU-Matter Infusion",
leadOre,
@@ -352,8 +360,8 @@ public class EMTRecipes {
new ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 0),
new ItemStack[] { uuMCell, uuMCell });
ItemStack uraniumOre = IC2Items.getItem("uraniumOre").copy();
uraniumOre.stackSize = 8;
ItemStack uraniumOre = Registry.enableGTCompat ? EMT_GT_Loader.stoneOre(Materials.Uranium, 8)
: withSize(IC2Items.getItem("uraniumOre"), 8);
amberBricksToUraniumOre = addInfusionCraftingRecipe(
"UU-Matter Infusion",
uraniumOre,
@@ -431,9 +439,8 @@ public class EMTRecipes {
5,
EMTCraftingAspects.thaumiumDrillCrafting,
new ItemStack(IC2Items.getItem("diamondDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE),
new ItemStack[] { new ItemStack(Items.diamond), new ItemStack(Items.diamond),
new ItemStack(EMTItems.itemEMTItems, 1, 5), new ItemStack(EMTItems.itemEMTItems, 1, 5),
new ItemStack(EMTItems.itemEMTItems, 1, 5), IC2Items.getItem("denseplateiron") });
new ItemStack[] { new ItemStack(Items.diamond), new ItemStack(Items.diamond), thaumiumPlate(),
thaumiumPlate(), thaumiumPlate(), IC2Items.getItem("denseplateiron") });
thaumiumChainsaw = addInfusionCraftingRecipe(
"Thaumium Chainsaw",
@@ -441,9 +448,8 @@ public class EMTRecipes {
5,
EMTCraftingAspects.thaumiumChainsawCrafting,
new ItemStack(EMTItems.diamondChainsaw, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack[] { new ItemStack(Items.diamond), new ItemStack(Items.diamond),
new ItemStack(EMTItems.itemEMTItems, 1, 5), new ItemStack(EMTItems.itemEMTItems, 1, 5),
new ItemStack(EMTItems.itemEMTItems, 1, 5), IC2Items.getItem("denseplateiron") });
new ItemStack[] { new ItemStack(Items.diamond), new ItemStack(Items.diamond), thaumiumPlate(),
thaumiumPlate(), thaumiumPlate(), IC2Items.getItem("denseplateiron") });
thaumicQuantumHelmet = addInfusionCraftingRecipe(
"Quantum Goggles of Revealing",
@@ -453,8 +459,8 @@ public class EMTRecipes {
new ItemStack(EMTItems.nanoThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack[] { new ItemStack(Items.diamond), new ItemStack(Items.milk_bucket),
new ItemStack(IC2Items.getItem("quantumHelmet").getItem(), 1, OreDictionary.WILDCARD_VALUE),
new ItemStack(EMTItems.itemEMTItems, 1, 5), new ItemStack(EMTItems.itemEMTItems, 1, 5),
IC2Items.getItem("iridiumPlate"), IC2Items.getItem("advancedCircuit") });
thaumiumPlate(), thaumiumPlate(), IC2Items.getItem("iridiumPlate"),
IC2Items.getItem("advancedCircuit") });
thaumicNanoHelmet = addInfusionCraftingRecipe(
"Nanosuit Goggles of Revealing",
@@ -464,8 +470,8 @@ public class EMTRecipes {
new ItemStack(EMTItems.electricGoggles, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack[] { new ItemStack(Items.diamond), new ItemStack(Items.gold_ingot),
new ItemStack(IC2Items.getItem("nanoHelmet").getItem(), 1, OreDictionary.WILDCARD_VALUE),
new ItemStack(EMTItems.itemEMTItems, 1, 5), new ItemStack(EMTItems.itemEMTItems, 1, 5),
IC2Items.getItem("carbonPlate"), IC2Items.getItem("electronicCircuit") });
thaumiumPlate(), thaumiumPlate(), IC2Items.getItem("carbonPlate"),
IC2Items.getItem("electronicCircuit") });
thaumiumOmnitool = addInfusionCraftingRecipe(
"Thaumium Omnitool",
@@ -474,8 +480,7 @@ public class EMTRecipes {
EMTCraftingAspects.thaumiumOmnitoolCrafting,
new ItemStack(EMTItems.thaumiumChainsaw, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack[] { new ItemStack(EMTItems.thaumiumDrill, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack(EMTItems.itemEMTItems, 1, 5), new ItemStack(EMTItems.itemEMTItems, 1, 5),
new ItemStack(EMTItems.itemEMTItems, 1, 5), IC2Items.getItem("carbonPlate"),
thaumiumPlate(), thaumiumPlate(), thaumiumPlate(), IC2Items.getItem("carbonPlate"),
IC2Items.getItem("plateobsidian") });
diamondOmnitoolToThaumium = addInfusionCraftingRecipe(
@@ -501,7 +506,7 @@ public class EMTRecipes {
new ItemStack(Items.arrow), new ItemStack(Items.gunpowder),
new ItemStack(Items.firework_charge), new ItemStack(ConfigItems.itemResource, 1, 1) });
shieldFocus = addInfusionCraftingRecipe(
if (!Registry.enableGTCompat) shieldFocus = addInfusionCraftingRecipe(
"Shield Focus",
new ItemStack(EMTItems.shieldFocus),
4,
@@ -547,7 +552,7 @@ public class EMTRecipes {
new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE),
IC2Items.getItem("iridiumPlate"), IC2Items.getItem("overclockerUpgrade") });
rockbreakerDrill = addInfusionCraftingRecipe(
if (!Registry.enableGTCompat) rockbreakerDrill = addInfusionCraftingRecipe(
"Drill of the Rockbreaker",
getChargedItem(EMTItems.rockbreakerDrill, 10),
6,
@@ -647,8 +652,7 @@ public class EMTRecipes {
new ItemStack[] { IC2Items.getItem("electroFurnace"),
new ItemStack(ConfigBlocks.blockMetalDevice, 1, 9), new ItemStack(Blocks.end_stone),
new ItemStack(Blocks.end_stone), new ItemStack(Blocks.iron_block),
new ItemStack(Blocks.iron_block), new ItemStack(EMTItems.itemEMTItems, 1, 5),
new ItemStack(EMTItems.itemEMTItems, 1, 5) });
new ItemStack(Blocks.iron_block), thaumiumPlate(), thaumiumPlate() });
if (Registry.enableGTCompat) {
tripleCompressedSolar = addInfusionCraftingRecipe(
@@ -681,9 +685,8 @@ public class EMTRecipes {
4,
EMTCraftingAspects.chargeFocus,
new ItemStack(IC2Items.getItem("advBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE),
new ItemStack[] { IC2Items.getItem("generator"), IC2Items.getItem("batBox"),
new ItemStack(EMTItems.itemEMTItems, 1, 5), new ItemStack(EMTItems.itemEMTItems, 1, 5),
new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack[] { IC2Items.getItem("generator"), IC2Items.getItem("batBox"), thaumiumPlate(),
thaumiumPlate(), new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE),
new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE) });
wandChargeFocus = addInfusionCraftingRecipe(
@@ -894,7 +897,7 @@ public class EMTRecipes {
'X',
new ItemStack(EMTItems.itemEMTItems, 1, 13),
'Y',
new ItemStack(EMTItems.itemEMTItems, 1, 5),
thaumiumPlate(),
'Z',
IC2Items.getItem("plateiron"));
@@ -1196,4 +1199,10 @@ public class EMTRecipes {
new ItemStack(ConfigItems.itemResource, 1, 3));
}
}
private static ItemStack withSize(ItemStack stack, int size) {
ItemStack copy = stack.copy();
copy.stackSize = size;
return copy;
}
}
@@ -59,6 +59,6 @@ public class ItemNanoBootsTraveller extends ItemElectricBootsTraveller implement
@Override
@Optional.Method(modid = "gregtech_nh")
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
return true;
return Hazard.STANDARD_HAZARDS.contains(hazard);
}
}
@@ -58,6 +58,6 @@ public class ItemNanoGoggles extends ItemElectricGoggles implements IHazardProte
@Override
@Optional.Method(modid = "gregtech_nh")
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
return true;
return Hazard.STANDARD_HAZARDS.contains(hazard);
}
}
@@ -187,6 +187,6 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing
@Override
@Optional.Method(modid = "gregtech_nh")
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
return true;
return Hazard.STANDARD_HAZARDS.contains(hazard);
}
}
+11 -8
View File
@@ -17,8 +17,9 @@ import emt.init.EMTBlocks;
import emt.item.block.ItemBlockSolars;
import emt.util.EMTConfigHandler;
import gregtech.api.enums.GTValues;
import gregtech.api.enums.Materials;
import gregtech.api.enums.TierEU;
import gregtech.api.enums.materials.Materials;
import gregtech.api.material.MaterialUtils;
import thaumcraft.api.aspects.Aspect;
// Solar Factory
@@ -111,6 +112,8 @@ public enum Solars {
Octuple_Compressed_Ignis(EMTConfigHandler.octupleCompressedSolarOutput, FIRE, 4, 2,
"Octuple_Compressed_Ignis_Solar"),;
public static final Solars[] VALUES = values();
private static final LinkedHashMap<Long, Solars> cachemap = new LinkedHashMap<>();
final int instance, meta;
final Aspect aspect;
@@ -131,17 +134,17 @@ public enum Solars {
@Nullable
private static Solars getBaseSolar(double output) {
for (Solars s : Solars.values()) {
for (Solars s : Solars.VALUES) {
if (s.output == output && s.aspect == null) return s;
}
return null;
}
public static void registerReverseRecipes() {
for (Solars s : Solars.values()) {
for (Solars s : Solars.VALUES) {
if (s.aspect != null) {
GTValues.RA.stdBuilder().itemInputs(new ItemStack(EMTBlocks.solars[s.instance], 1, s.meta))
.fluidInputs(Materials.Chlorine.getGas(1000))
.fluidInputs(MaterialUtils.gas(Materials.Chlorine, 1000))
.itemOutputs(
new ItemStack(
EMTBlocks.solars[getBaseSolar(s.output).instance],
@@ -153,14 +156,14 @@ public enum Solars {
}
public static void populateCache() {
for (Solars s : Solars.values()) {
for (Solars s : Solars.VALUES) {
cachemap.put(s.id, s);
}
}
public static int getCountOfInstances() {
int ret = 0;
for (Solars s : Solars.values()) {
for (Solars s : Solars.VALUES) {
ret = Math.max(s.instance, ret);
}
return ret + 1;
@@ -168,7 +171,7 @@ public enum Solars {
public static int getCountOfMetas(int instance) {
int ret = 0;
for (Solars s : Solars.values()) {
for (Solars s : Solars.VALUES) {
if (s.instance == instance) {
ret = Math.max(s.meta, ret);
}
@@ -200,7 +203,7 @@ public enum Solars {
final long id = (long) instance << 4 | meta;
Solars cached = cachemap.get(id);
if (cached != null) return cached;
for (Solars s : Solars.values()) {
for (Solars s : Solars.VALUES) {
cachemap.put(s.id, s);
if (s.id == id) return s;
}
+15 -5
View File
@@ -20,6 +20,10 @@ public class EMTConfigHandler {
public static final String RESEARCH = "Research";
public static final String VALUES = "Numeric Values";
public static final String OUTPUTS = "Essentia Generator Outputs";
private static final String IGNORED_UNDER_GTNH = "Ignored when GTNH (dreamcraft) is installed: "
+ "dungeon loot is controlled by config/TooMuchLoot/loot/dungeonChest.xml in GTNH.";
public static Configuration config;
public static int etherealProcessorBaseSpeed;
public static int etherealProcessorBonus;
@@ -187,19 +191,25 @@ public class EMTConfigHandler {
"Disable smoke effect for boots",
false,
"This effect only appears when the player isn't on the ground").getBoolean(smoke);
oneRingSpawn = config
.get(RANDOM, "Disable One Ring in dungeon chests", true, "There is a recipe to get this item.")
.getBoolean(oneRingSpawn);
oneRingSpawn = config.get(
RANDOM,
"Disable One Ring in dungeon chests",
true,
"There is a recipe to get this item. " + IGNORED_UNDER_GTNH).getBoolean(oneRingSpawn);
chanceTaintedMjolnir = config.get(
RANDOM,
"Tainted Mjolnir spawning change",
25,
"If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
"If you have a lot of mods adding dungeon loot, you should definetely increase this. "
+ IGNORED_UNDER_GTNH)
.getInt();
chanceOneRing = config.get(
RANDOM,
"One Ring spawning chance",
15,
"If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
"If you have a lot of mods adding dungeon loot, you should definetely increase this. "
+ IGNORED_UNDER_GTNH)
.getInt();
removeAmberAndCinnabarMacerating = config
.get(
RANDOM,
@@ -4,11 +4,17 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.WeightedRandomChestContent;
import net.minecraftforge.common.ChestGenHooks;
import cpw.mods.fml.common.Loader;
import emt.init.EMTItems;
public class EMTDungeonChestGenerator {
public static void generateLoot() {
// GTNH replaces the whole dungeonChest table from config/TooMuchLoot/loot/dungeonChest.xml at
// FMLServerStartingEvent, which discards everything registered here. Edit that file instead.
if (Loader.isModLoaded("dreamcraft")) {
return;
}
if (!EMTConfigHandler.thorHammerResearch) {
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
new WeightedRandomChestContent(
@@ -132,11 +132,11 @@ tile.EMT.solar.fire.name=Feuer Infundierte Verdichte Solarzelle
tile.EMT.solar.doublefire.name=Feuer Infundierte Doppelt Verdichte Solarzelle
tile.EMT.solar.triplefire.name=Feuer Infundierte Dreifach Verdichte Solarzelle
tile.EMT.solar.air.name=Luft Infundierte Verdichte Solarzelle
tile.EMT.solar2.doubleair.name=Luft Infundierte Doppelt Verdichte Solarzelle
tile.EMT.solar2.tripleair.name=Luft Infundierte Dreifach Verdichte Solarzelle
tile.EMT.solar2.earth.name=Erde Infundierte Verdichte Solarzelle
tile.EMT.solar2.doubleearth.name=Erde Infundierte Doppelt Verdichte Solarzelle
tile.EMT.solar2.tripleearth.name=Erde Infundierte Dreifach Verdichte Solarzelle
tile.EMT.solar.doubleair.name=Luft Infundierte Doppelt Verdichte Solarzelle
tile.EMT.solar.tripleair.name=Luft Infundierte Dreifach Verdichte Solarzelle
tile.EMT.solar.earth.name=Erde Infundierte Verdichte Solarzelle
tile.EMT.solar.doubleearth.name=Erde Infundierte Doppelt Verdichte Solarzelle
tile.EMT.solar.tripleearth.name=Erde Infundierte Dreifach Verdichte Solarzelle
#=============Thaumonomicon Texts=============
@@ -174,16 +174,16 @@ tile.EMT.Sextuple_Compressed_Ignis_Solar.name=Sextuple Compressed Ignis Solar
tile.EMT.Septuple_Compressed_Ignis_Solar.name=Septuple Compressed Ignis Solar
tile.EMT.Octuple_Compressed_Ignis_Solar.name=Octuple Compressed Ignis Solar
tile.EMT.solar.air.name=Air Infused Compressed Solar Panel
tile.EMT.solar2.doubleair.name=Air Infused Double Compressed Solar Panel
tile.EMT.solar2.tripleair.name=Air Infused Triple Compressed Solar Panel
tile.EMT.solar.doubleair.name=Air Infused Double Compressed Solar Panel
tile.EMT.solar.tripleair.name=Air Infused Triple Compressed Solar Panel
tile.EMT.Quadruple_Compressed_Aer_Solar.name=Quadruple Compressed Aer Solar
tile.EMT.Quintuple_Compressed_Aer_Solar.name=Quintuple Compressed Aer Solar
tile.EMT.Sextuple_Compressed_Aer_Solar.name=Sextuple Compressed Aer Solar
tile.EMT.Septuple_Compressed_Aer_Solar.name=Septuple Compressed Aer Solar
tile.EMT.Octuple_Compressed_Aer_Solar.name=Octuple Compressed Aer Solar
tile.EMT.solar2.earth.name=Earth Infused Compressed Solar Panel
tile.EMT.solar2.doubleearth.name=Earth Infused Double Compressed Solar Panel
tile.EMT.solar2.tripleearth.name=Earth Infused Triple Compressed Solar Panel
tile.EMT.solar.earth.name=Earth Infused Compressed Solar Panel
tile.EMT.solar.doubleearth.name=Earth Infused Double Compressed Solar Panel
tile.EMT.solar.tripleearth.name=Earth Infused Triple Compressed Solar Panel
tile.EMT.Quadruple_Compressed_Terra_Solar.name=Quadruple Compressed Terra Solar
tile.EMT.Quintuple_Compressed_Terra_Solar.name=Quintuple Compressed Terra Solar
tile.EMT.Sextuple_Compressed_Terra_Solar.name=Sextuple Compressed Terra Solar
@@ -160,16 +160,16 @@ tile.EMT.Sextuple_Compressed_Ignis_Solar.name=Наполненная огнём,
tile.EMT.Septuple_Compressed_Ignis_Solar.name=Наполненная огнём, семикратно сжатая солнечная панель
tile.EMT.Octuple_Compressed_Ignis_Solar.name=Наполненная огнём, восьмикратная сжатая солнечная панель
tile.EMT.solar.air.name=Наполненная воздухом, сжатая солнечная панель
tile.EMT.solar2.doubleair.name=Наполненная воздухом, дважды сжатая солнечная панель
tile.EMT.solar2.tripleair.name=Наполненная воздухом, трижды сжатая солнечная панель
tile.EMT.solar.doubleair.name=Наполненная воздухом, дважды сжатая солнечная панель
tile.EMT.solar.tripleair.name=Наполненная воздухом, трижды сжатая солнечная панель
tile.EMT.Quadruple_Compressed_Aer_Solar.name=Наполненная воздухом, четырежды сжатая солнечная панель
tile.EMT.Quintuple_Compressed_Aer_Solar.name=Наполненная воздухом, пятикратно сжатая солнечная панель
tile.EMT.Sextuple_Compressed_Aer_Solar.name=Наполненная воздухом, шестикратно сжатая солнечная панель
tile.EMT.Septuple_Compressed_Aer_Solar.name=Наполненная воздухом, семикратно сжатая солнечная панель
tile.EMT.Octuple_Compressed_Aer_Solar.name=Наполненная воздухом, восьмикратная сжатая солнечная панель
tile.EMT.solar2.earth.name=Наполненная землёй, сжатая солнечная панель
tile.EMT.solar2.doubleearth.name=Наполненная землёй, дважды сжатая солнечная панель
tile.EMT.solar2.tripleearth.name=Наполненная землёй, трижды сжатая солнечная панель
tile.EMT.solar.earth.name=Наполненная землёй, сжатая солнечная панель
tile.EMT.solar.doubleearth.name=Наполненная землёй, дважды сжатая солнечная панель
tile.EMT.solar.tripleearth.name=Наполненная землёй, трижды сжатая солнечная панель
tile.EMT.Quadruple_Compressed_Terra_Solar.name=Наполненная землёй, четырежды сжатая солнечная панель
tile.EMT.Quintuple_Compressed_Terra_Solar.name=Наполненная землёй, пятикратно сжатая солнечная панель
tile.EMT.Sextuple_Compressed_Terra_Solar.name=Наполненная землёй, шестикратно сжатая солнечная панель
@@ -160,16 +160,16 @@ tile.EMT.Sextuple_Compressed_Ignis_Solar.name=火注魔太阳能(6级)
tile.EMT.Septuple_Compressed_Ignis_Solar.name=火注魔太阳能(7级)
tile.EMT.Octuple_Compressed_Ignis_Solar.name=火注魔太阳能(8级)
tile.EMT.solar.air.name=风注魔太阳能(1级)
tile.EMT.solar2.doubleair.name=风注魔太阳能(2级)
tile.EMT.solar2.tripleair.name=风注魔太阳能(3级)
tile.EMT.solar.doubleair.name=风注魔太阳能(2级)
tile.EMT.solar.tripleair.name=风注魔太阳能(3级)
tile.EMT.Quadruple_Compressed_Aer_Solar.name=风注魔太阳能(4级)
tile.EMT.Quintuple_Compressed_Aer_Solar.name=风注魔太阳能(5级)
tile.EMT.Sextuple_Compressed_Aer_Solar.name=风注魔太阳能(6级)
tile.EMT.Septuple_Compressed_Aer_Solar.name=风注魔太阳能(7级)
tile.EMT.Octuple_Compressed_Aer_Solar.name=风注魔太阳能(8级)
tile.EMT.solar2.earth.name=地注魔太阳能(1级)
tile.EMT.solar2.doubleearth.name=地注魔太阳能(2级)
tile.EMT.solar2.tripleearth.name=地注魔太阳能(3级)
tile.EMT.solar.earth.name=地注魔太阳能(1级)
tile.EMT.solar.doubleearth.name=地注魔太阳能(2级)
tile.EMT.solar.tripleearth.name=地注魔太阳能(3级)
tile.EMT.Quadruple_Compressed_Terra_Solar.name=地注魔太阳能(4级)
tile.EMT.Quintuple_Compressed_Terra_Solar.name=地注魔太阳能(5级)
tile.EMT.Sextuple_Compressed_Terra_Solar.name=地注魔太阳能(6级)