diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 22254f55..3f14a7fa 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -16,6 +16,7 @@ Changes - Updated implementation of RF API to correctly handle IEnergyReceivers that are not IEnergyHandlers - SAG Mill no longer produces dusts for metals that are not available - Corrected Experience Obelisk tooltip +- Improved recipe support for Thermal Foundation/Expansion in the SAG Mill and Alloy Smelter Bugs - #1268 Capacitor bank not honoring input redstone settings diff --git a/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml b/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml index 08c4b9d7..d625de27 100644 --- a/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml +++ b/resources/assets/enderio/config/AlloySmelterRecipes_Core.xml @@ -60,280 +60,347 @@ To write the contents of the ore dictionary to config/oreDictionaryRegistery.txt --> - + - + - - - + + + - + - + - - - - + + + + - + - + - - - + + + - + - + - + - + - + - - + + - + - + - - + + - + - + - + - + - + - + - - - + + + - + - + - - - + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - + - + - + - + - + - + - + - + - - + + - - - - + + + + - + - + - - - - + + + + - + - + - - + + - + - + - - - + + + - + - - - - - - - - + + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/assets/enderio/config/SAGMillRecipes_Core.xml b/resources/assets/enderio/config/SAGMillRecipes_Core.xml index 607a88a9..1e1b8535 100644 --- a/resources/assets/enderio/config/SAGMillRecipes_Core.xml +++ b/resources/assets/enderio/config/SAGMillRecipes_Core.xml @@ -181,7 +181,8 @@ addOreDictionaryTooltips=true - + + @@ -301,6 +302,7 @@ addOreDictionaryTooltips=true + @@ -321,6 +323,7 @@ addOreDictionaryTooltips=true + @@ -339,7 +342,7 @@ addOreDictionaryTooltips=true - + @@ -707,12 +710,12 @@ addOreDictionaryTooltips=true - + - + - + diff --git a/resources/assets/enderio/lang/en_US.lang b/resources/assets/enderio/lang/en_US.lang index 224c50f8..fa10c6ac 100644 --- a/resources/assets/enderio/lang/en_US.lang +++ b/resources/assets/enderio/lang/en_US.lang @@ -184,6 +184,7 @@ enderio.powderGold.name=Gold Powder enderio.powderCopper.name=Copper Powder enderio.powderTin.name=Tin Powder enderio.powderEnder.name=Ender Pearl Powder +enderio.ingotEnderiumBase.name=Enderium Base //Capacitors enderio.itemBasicCapacitor.name=Capacitor diff --git a/resources/assets/enderio/textures/items/ingotEnderiumBase.png b/resources/assets/enderio/textures/items/ingotEnderiumBase.png new file mode 100644 index 00000000..f7d1a70a Binary files /dev/null and b/resources/assets/enderio/textures/items/ingotEnderiumBase.png differ diff --git a/src/main/java/crazypants/enderio/EnderIO.java b/src/main/java/crazypants/enderio/EnderIO.java index db352eba..8170514a 100644 --- a/src/main/java/crazypants/enderio/EnderIO.java +++ b/src/main/java/crazypants/enderio/EnderIO.java @@ -570,12 +570,14 @@ public class EnderIO { @EventHandler public void postInit(FMLPostInitializationEvent event) { - //This must be loaded before parsing the recipes so we get the preferred outputs - OreDictionaryPreferences.loadConfig(); - //Regsiter the enchants Enchantments.getInstance(); + MaterialRecipes.registerDependantOresInDictionary(); + + //This must be loaded before parsing the recipes so we get the preferred outputs + OreDictionaryPreferences.loadConfig(); + MaterialRecipes.addOreDictionaryRecipes(); MachineRecipes.addOreDictionaryRecipes(); ItemRecipes.addOreDictionaryRecipes(); diff --git a/src/main/java/crazypants/enderio/material/MaterialRecipes.java b/src/main/java/crazypants/enderio/material/MaterialRecipes.java index 4a49f094..494a151b 100644 --- a/src/main/java/crazypants/enderio/material/MaterialRecipes.java +++ b/src/main/java/crazypants/enderio/material/MaterialRecipes.java @@ -2,11 +2,6 @@ package crazypants.enderio.material; import java.util.ArrayList; -import static crazypants.util.OreDictionaryHelper.INGOT_TIN; -import static crazypants.util.OreDictionaryHelper.hasCopper; -import static crazypants.util.OreDictionaryHelper.hasEnderPearlDust; -import static crazypants.util.OreDictionaryHelper.hasTin; - import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; @@ -20,15 +15,15 @@ import crazypants.enderio.config.Config; import crazypants.util.OreDictionaryHelper; import static crazypants.enderio.EnderIO.itemBasicCapacitor; +import static crazypants.util.OreDictionaryHelper.INGOT_TIN; +import static crazypants.util.OreDictionaryHelper.hasCopper; +import static crazypants.util.OreDictionaryHelper.hasEnderPearlDust; +import static crazypants.util.OreDictionaryHelper.hasTin; + public class MaterialRecipes { - public static void registerOresInDictionary() { - //Ore Dictionary Registeration - OreDictionary.registerOre("dustCoal", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.POWDER_COAL.ordinal())); - OreDictionary.registerOre("dustIron", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.POWDER_IRON.ordinal())); - OreDictionary.registerOre("dustGold", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.POWDER_GOLD.ordinal())); - + public static void registerDependantOresInDictionary() { if(hasCopper()) { OreDictionary.registerOre("dustCopper", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.POWDER_COPPER.ordinal())); } @@ -38,6 +33,18 @@ public class MaterialRecipes { if(hasEnderPearlDust()) { OreDictionary.registerOre("dustEnderPearl", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.POWDER_ENDER.ordinal())); } + //Enderium Base + if(OreDictionaryHelper.hasEnderium()) { + OreDictionary.registerOre("ingotEnderiumBase", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.INGOT_ENDERIUM_BASE.ordinal())); + } + } + + public static void registerOresInDictionary() { + //Ore Dictionary Registeration + OreDictionary.registerOre("dustCoal", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.POWDER_COAL.ordinal())); + OreDictionary.registerOre("dustIron", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.POWDER_IRON.ordinal())); + OreDictionary.registerOre("dustGold", new ItemStack(EnderIO.itemPowderIngot, 1, PowderIngot.POWDER_GOLD.ordinal())); + OreDictionary.registerOre("gearStone", new ItemStack(EnderIO.itemMachinePart, 1, MachinePart.BASIC_GEAR.ordinal())); OreDictionary.registerOre("itemSilicon", new ItemStack(EnderIO.itemMaterial, 1, Material.SILICON.ordinal())); diff --git a/src/main/java/crazypants/enderio/material/PowderIngot.java b/src/main/java/crazypants/enderio/material/PowderIngot.java index b03a0577..d4111b43 100644 --- a/src/main/java/crazypants/enderio/material/PowderIngot.java +++ b/src/main/java/crazypants/enderio/material/PowderIngot.java @@ -2,6 +2,7 @@ package crazypants.enderio.material; import static crazypants.util.OreDictionaryHelper.DUST_ENDERPEARL; import static crazypants.util.OreDictionaryHelper.INGOT_COPPER; +import static crazypants.util.OreDictionaryHelper.INGOT_ENDERIUM; import static crazypants.util.OreDictionaryHelper.INGOT_TIN; import static crazypants.util.OreDictionaryHelper.isRegistered; @@ -13,7 +14,8 @@ public enum PowderIngot { POWDER_GOLD("powderGold", null), POWDER_COPPER("powderCopper", INGOT_COPPER), POWDER_TIN("powderTin", INGOT_TIN), - POWDER_ENDER("powderEnder", DUST_ENDERPEARL); + POWDER_ENDER("powderEnder", DUST_ENDERPEARL), + INGOT_ENDERIUM_BASE("ingotEnderiumBase", INGOT_ENDERIUM); // POWDER_LEAD("powderLead", "Lead Powder", "powderLead"), // POWDER_SILVER("powderSilver", "Silver Powder", "powderSilver"), // POWDER_BRONZE("powderBronze", "Bronze Powder", "powderBronze"), diff --git a/src/main/java/crazypants/util/OreDictionaryHelper.java b/src/main/java/crazypants/util/OreDictionaryHelper.java index 5a92e786..c140345b 100644 --- a/src/main/java/crazypants/util/OreDictionaryHelper.java +++ b/src/main/java/crazypants/util/OreDictionaryHelper.java @@ -10,6 +10,7 @@ public final class OreDictionaryHelper { public static final String INGOT_COPPER = "ingotCopper"; public static final String INGOT_TIN = "ingotTin"; public static final String DUST_ENDERPEARL = "dustEnderPearl"; + public static final String INGOT_ENDERIUM = "ingotEnderium"; public static boolean isRegistered(String name) { if(!getOres(name).isEmpty()) { @@ -37,4 +38,8 @@ public final class OreDictionaryHelper { private OreDictionaryHelper() { } + public static boolean hasEnderium() { + return isRegistered(INGOT_ENDERIUM); + } + }