mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-25 22:34:31 +00:00
Compare commits
54
Commits
release/2.9.x
..
mu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1fa6321ea3 | ||
|
|
3d90755aea | ||
|
|
15463a5a68 | ||
|
|
94e3293b8e | ||
|
|
8e26c43294 | ||
|
|
29e9ba0f3e | ||
|
|
df65e69082 | ||
|
|
d533c8517b | ||
|
|
61d5db0d97 | ||
|
|
206f12e280 | ||
|
|
1a6bc48f5b | ||
|
|
4dc3e55df8 | ||
|
|
3c2cd8a684 | ||
|
|
e729198076 | ||
|
|
ede553385c | ||
|
|
a800a3d52f | ||
|
|
face00e906 | ||
|
|
e5386a8af4 | ||
|
|
7ae25e7b58 | ||
|
|
a356edbdc5 | ||
|
|
7a274ccd05 | ||
|
|
93effd9f53 | ||
|
|
77c7510b84 | ||
|
|
ea649844e5 | ||
|
|
d132d1ea4e | ||
|
|
da2df31ddc | ||
|
|
bbe58a1a9c | ||
|
|
73db9945f4 | ||
|
|
03db73fafd | ||
|
|
d1553bc9db | ||
|
|
beea9db8b1 | ||
|
|
886b096fdf | ||
|
|
4eab9e7c37 | ||
|
|
0834d967af | ||
|
|
ae200e95f8 | ||
|
|
f1c46805f7 | ||
|
|
3bdf0a2482 | ||
|
|
6ebf8f7324 | ||
|
|
2340d451fb | ||
|
|
fed1619207 | ||
|
|
ea2d55f03e | ||
|
|
bf538a9768 | ||
|
|
3d07278a49 | ||
|
|
197ce2cd6f | ||
|
|
e34b504abb | ||
|
|
7fcd94f5a4 | ||
|
|
a02bd0a298 | ||
|
|
f98466d5b6 | ||
|
|
74e7d350bd | ||
|
|
4c07b29d68 | ||
|
|
cc3fdacb03 | ||
|
|
09b69e6726 | ||
|
|
4b07f7b34d | ||
|
|
0e82f262d0 |
No files matched your search
+2
-1
@@ -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.53.05:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.99.99-mu57:dev')
|
||||
compileOnly('com.ruling_0:MaterialLib:0.24.0-mu:dev')
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
// Add any additional repositories for your dependencies here
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
exclusiveContent {
|
||||
forRepository {
|
||||
maven {
|
||||
|
||||
@@ -12,15 +12,19 @@ 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.ItemList;
|
||||
import gregtech.api.enums.Materials;
|
||||
import gregtech.api.enums.OrePrefixes;
|
||||
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;
|
||||
@@ -28,11 +32,23 @@ 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);
|
||||
|
||||
|
||||
@@ -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(
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -143,7 +144,7 @@ public enum Solars {
|
||||
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],
|
||||
|
||||
Reference in new issue
Block a user