Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Added smelting stone dust to stone recipe.
Browse files Browse the repository at this point in the history
This was annoying to have so much of it, just adds another purpose for
it.
  • Loading branch information
renevo committed Dec 7, 2013
1 parent 7cebdbb commit 0373d9c
Show file tree
Hide file tree
Showing 6 changed files with 686 additions and 208 deletions.
251 changes: 48 additions & 203 deletions .idea/workspace.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Fri, 06 Dec 2013 16:24:46 -0800
#Fri, 06 Dec 2013 17:20:05 -0800
release.minecraft.version=1.6.4
release.number=36
release.number=39
4 changes: 4 additions & 0 deletions src/common/burptech/BurpTechConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class BurpTechConfig
public Property enableNetherTechSolidFuels;
public Property enableNetherTechLiquidFuels;
public Property enableCreosoteToIndustrialcraftEnergy;
public Property enableStoneDustToStoneSmelting;

public Property blockIlluminatedCocoa;
public Property blockNetherCoal;
Expand Down Expand Up @@ -116,6 +117,9 @@ public static BurpTechConfig load(File configFolder)
result.enableCreosoteToIndustrialcraftEnergy = configuration.get(Constants.CONFIG_CATEGORY_INTEGRATION, "SemiFluid.Generator.Creosote.Enabled", true);
result.enableCreosoteToIndustrialcraftEnergy.comment = "Enables Creosote to be used in a Semi-Fluid Generator";

result.enableStoneDustToStoneSmelting = configuration.get(Constants.CONFIG_CATEGORY_INTEGRATION, "Smelting.StoneDust.Enabled", true);
result.enableStoneDustToStoneSmelting.comment = "Enables smelting Industrialcraft Stone Dust into Stone";

// Items
result.itemEnderRucksack = configuration.getItem("EnderRucksack", burptech.lib.Constants.ITEM_START + 0);
result.itemRucksack = configuration.getItem("Rucksack", burptech.lib.Constants.ITEM_START + 1);
Expand Down
10 changes: 10 additions & 0 deletions src/common/burptech/integration/IndustrialcraftIntegration.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,14 @@ public static boolean addSemiFlueGeneratorFuel(String fluidName, int amount, dou

return true;
}

public static ItemStack getItem(String itemName)
{
if (!Loader.isModLoaded("IC2"))
{
return null;
}

return ic2.api.item.Items.getItem(itemName).copy();
}
}
25 changes: 22 additions & 3 deletions src/common/burptech/item/crafting/RecipesIntegration.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

import burptech.BurpTechCore;
import burptech.integration.IndustrialcraftIntegration;
import burptech.integration.Integration;
import cpw.mods.fml.common.Loader;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;

Expand All @@ -11,10 +15,25 @@ public void postInitialization()
{
if (BurpTechCore.configuration.enableCreosoteToIndustrialcraftEnergy.getBoolean(true))
{
Fluid creosote = FluidRegistry.getFluid("creosote");
if (creosote != null)
if (Loader.isModLoaded("Railcraft") && Loader.isModLoaded("IC2"))
{
IndustrialcraftIntegration.addSemiFlueGeneratorFuel("creosote", 66, 10);
Fluid creosote = FluidRegistry.getFluid("creosote");
if (creosote != null)
{
IndustrialcraftIntegration.addSemiFlueGeneratorFuel("creosote", 66, 10);
BurpTechCore.log.info("Added Railcraft Creosote to Industrialcraft Semi-Fluid Generator");
}
}
}

if (BurpTechCore.configuration.enableStoneDustToStoneSmelting.getBoolean(true))
{
ItemStack stoneDust = IndustrialcraftIntegration.getItem("stoneDust");
if (stoneDust != null)
{
FurnaceRecipes.smelting().addSmelting(stoneDust.itemID, stoneDust.getItemDamage(), new ItemStack(net.minecraft.block.Block.stone), 0);
BurpTechCore.log.info("Added Smelting Recipe for IC2 Stone Dust to Stone");

}
}
}
Expand Down
Loading

0 comments on commit 0373d9c

Please sign in to comment.