Implement #5054(Coal Gasification) (#5547)

* Implement Coal Gasification in the Main File

* Implement Coal Gasification in the OreDict Manager

* Remove the Coal Block Gasification Recipe

as it gets moved to the OreDictManager for more compatibility.

* Add some more Coal Gasification compat
This commit is contained in:
ToMe25 authored and Xander committed 2019-07-06 17:06:57 +08:00
1 parent f34ecd4836
commit b85a908b29
2 files changed
+30 -2

No files matched your search

+3 -1
View File
@@ -544,6 +544,8 @@ public class Mekanism {
new GasStack(MekanismFluids.Oxygen, 10), new ItemStack(MekanismItems.Polyethene), new GasStack(MekanismFluids.Oxygen, 5), 1000, 60);
RecipeHandler.addPRCRecipe(new ItemStack(MekanismItems.Substrate), new FluidStack(FluidRegistry.WATER, 200), new GasStack(MekanismFluids.Ethene, 100),
new ItemStack(MekanismItems.Substrate, 8), new GasStack(MekanismFluids.Oxygen, 10), 200, 400);
RecipeHandler.addPRCRecipe(new ItemStack(Items.COAL, 1, OreDictionary.WILDCARD_VALUE), new FluidStack(FluidRegistry.WATER, 100), new GasStack(MekanismFluids.Oxygen, 100),
new ItemStack(MekanismItems.OtherDust, 1, 3), new GasStack(MekanismFluids.Hydrogen, 100), 0, 100);
}
//Solar Neutron Activator Recipes
@@ -1034,4 +1036,4 @@ public class Mekanism {
MekFakePlayer.releaseInstance(event.getWorld());
}
}
}
}
@@ -32,6 +32,8 @@ import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.util.NonNullList;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Optional.Method;
import net.minecraftforge.fml.common.eventhandler.EventPriority;
@@ -392,6 +394,30 @@ public final class OreDictManager {
RecipeHandler.addCrusherRecipe(new ItemStack(ore.getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(MekanismItems.BioFuel, 2));
}
}
for (ItemStack coal : OreDictionary.getOres("blockCoal", false)) {
RecipeHandler.addPRCRecipe(coal, new FluidStack(FluidRegistry.WATER, 1000), new GasStack(MekanismFluids.Oxygen, 1000),
new ItemStack(MekanismItems.OtherDust, 9, 3), new GasStack(MekanismFluids.Hydrogen, 1000), 0, 900);
}
for (ItemStack coal : OreDictionary.getOres("blockCharcoal", false)) {
RecipeHandler.addPRCRecipe(coal, new FluidStack(FluidRegistry.WATER, 1000), new GasStack(MekanismFluids.Oxygen, 1000),
new ItemStack(MekanismItems.OtherDust, 9, 3), new GasStack(MekanismFluids.Hydrogen, 1000), 0, 900);
}
for (ItemStack coal : OreDictionary.getOres("dustCoal", false)) {
RecipeHandler.addPRCRecipe(coal, new FluidStack(FluidRegistry.WATER, 100), new GasStack(MekanismFluids.Oxygen, 100),
new ItemStack(MekanismItems.OtherDust, 1, 3), new GasStack(MekanismFluids.Hydrogen, 100), 0, 100);
}
for (ItemStack coal : OreDictionary.getOres("dustCharcoal", false)) {
RecipeHandler.addPRCRecipe(coal, new FluidStack(FluidRegistry.WATER, 100), new GasStack(MekanismFluids.Oxygen, 100),
new ItemStack(MekanismItems.OtherDust, 1, 3), new GasStack(MekanismFluids.Hydrogen, 100), 0, 100);
}
for (ItemStack sulfur : OreDictionary.getOres("sulphur", false)) {
RecipeHandler.addEnrichmentChamberRecipe(sulfur, new ItemStack(Items.GUNPOWDER));
}
}
@Method(modid = MekanismHooks.IC2_MOD_ID)
@@ -497,4 +523,4 @@ public final class OreDictManager {
}
}
}
}
}