mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
7 files changed
+45
-15
No files matched your search
+2
-2
@@ -4,5 +4,5 @@ FMP_version=1.2.0.347
|
||||
CCLIB_version=1.1.3.141
|
||||
NEI_version=1.0.5.120
|
||||
CCC_version=1.0.7.48
|
||||
mod_version=9.10.22
|
||||
alt_version=9, 10, 22
|
||||
mod_version=9.10.23
|
||||
alt_version=9, 10, 23
|
||||
@@ -114,6 +114,7 @@ public class MekanismRenderer
|
||||
GasRegistry.getGas("sulfuricAcid").setIcon(event.map.registerIcon("mekanism:liquid/LiquidSulfuricAcid"));
|
||||
GasRegistry.getGas("hydrogenChloride").setIcon(event.map.registerIcon("mekanism:liquid/LiquidHydrogenChloride"));
|
||||
GasRegistry.getGas("liquidOsmium").setIcon(event.map.registerIcon("mekanism:liquid/LiquidOsmium"));
|
||||
GasRegistry.getGas("liquidPlatinum").setIcon(event.map.registerIcon("mekanism:liquid/LiquidOsmium"));
|
||||
GasRegistry.getGas("liquidStone").setIcon(event.map.registerIcon("mekanism:liquid/LiquidStone"));
|
||||
GasRegistry.getGas("ethene").setIcon(event.map.registerIcon("mekanism:liquid/LiquidEthene"));
|
||||
GasRegistry.getGas("brine").setIcon(event.map.registerIcon("mekanism:liquid/LiquidBrine"));
|
||||
|
||||
@@ -1156,12 +1156,15 @@ public class Mekanism
|
||||
//T4 Processing Recipes
|
||||
for(Gas gas : GasRegistry.getRegisteredGasses())
|
||||
{
|
||||
if(gas instanceof OreGas && !((OreGas)gas).isClean())
|
||||
{
|
||||
OreGas oreGas = (OreGas)gas;
|
||||
if(gas instanceof OreGas && !((OreGas)gas).isClean()) {
|
||||
OreGas oreGas = (OreGas) gas;
|
||||
|
||||
RecipeHandler.addChemicalWasherRecipe(new GasStack(oreGas, 1), new GasStack(oreGas.getCleanGas(), 1));
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(oreGas.getCleanGas(), 200), new ItemStack(MekanismItems.Crystal, 1, Resource.getFromName(oreGas.getName()).ordinal()));
|
||||
if (Resource.getFromName(oreGas.getName()) != null) {
|
||||
if (Resource.getFromName(oreGas.getName()) == Resource.OSMIUM && (!general.OreDictOsmium && general.OreDictPlatinum)) continue;
|
||||
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(oreGas.getCleanGas(), 200), new ItemStack(MekanismItems.Crystal, 1, Resource.getFromName(oreGas.getName()).ordinal()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1420,6 +1423,7 @@ public class Mekanism
|
||||
GasRegistry.register(new Gas("sulfuricAcid")).registerFluid();
|
||||
GasRegistry.register(new Gas("hydrogenChloride")).registerFluid();
|
||||
GasRegistry.register(new Gas("liquidOsmium").setVisible(false));
|
||||
GasRegistry.register(new Gas("liquidPlatinum").setVisible(false));
|
||||
GasRegistry.register(new Gas("liquidStone").setVisible(false));
|
||||
GasRegistry.register(new Gas("ethene").registerFluid());
|
||||
GasRegistry.register(new Gas("sodium").registerFluid());
|
||||
@@ -1443,6 +1447,8 @@ public class Mekanism
|
||||
OreGas clean = (OreGas)GasRegistry.register(new OreGas("clean" + name, "oregas." + name.toLowerCase()).setVisible(false));
|
||||
GasRegistry.register(new OreGas(name.toLowerCase(), "oregas." + name.toLowerCase()).setCleanGas(clean).setVisible(false));
|
||||
}
|
||||
OreGas clean = (OreGas) GasRegistry.register(new OreGas("cleanPlatinum", "oregas.Platinum").setVisible(false));
|
||||
GasRegistry.register(new OreGas("platinum", "oregas." + "platinum").setCleanGas(clean).setVisible(false));
|
||||
|
||||
Mekanism.proxy.preInit();
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ import java.util.List;
|
||||
import mekanism.api.MekanismConfig;
|
||||
import mekanism.api.gas.GasRegistry;
|
||||
import mekanism.api.gas.GasStack;
|
||||
import mekanism.api.gas.OreGas;
|
||||
import mekanism.api.infuse.InfuseObject;
|
||||
import mekanism.api.infuse.InfuseRegistry;
|
||||
import mekanism.api.recipe.RecipeHelper;
|
||||
@@ -121,6 +122,12 @@ public final class OreDictManager
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
if (MekanismConfig.general.OreDictPlatinum) {
|
||||
for (ItemStack ore : OreDictionary.getOres("orePlatinum")) {
|
||||
RecipeHandler.addChemicalDissolutionChamberRecipe(StackUtils.size(ore, 1), new GasStack(GasRegistry.getGas("platinum"), 1000));
|
||||
}
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(clean, 200), new ItemStack(MekanismItems.Crystal, 1, 2));
|
||||
}
|
||||
if (MekanismConfig.general.OreDictOsmium || MekanismConfig.general.OreDictPlatinum) {
|
||||
for (String s : osmiumcompat) {
|
||||
if (MekanismConfig.recipes.enableOsmiumBlock) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package mekanism.common.recipe.machines;
|
||||
|
||||
import mekanism.api.MekanismConfig;
|
||||
import mekanism.common.recipe.inputs.AdvancedMachineInput;
|
||||
import mekanism.common.recipe.outputs.ItemStackOutput;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -13,7 +14,7 @@ public class OsmiumCompressorRecipe extends AdvancedMachineRecipe<OsmiumCompress
|
||||
|
||||
public OsmiumCompressorRecipe(ItemStack input, ItemStack output)
|
||||
{
|
||||
super(input, "liquidOsmium", output);
|
||||
super(input, (MekanismConfig.general.OreDictPlatinum && !MekanismConfig.general.OreDictOsmium) ? "liquidPlatinum" : "liquidOsmium", output);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -2,6 +2,7 @@ package mekanism.common.tile;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import mekanism.api.MekanismConfig;
|
||||
import mekanism.api.MekanismConfig.usage;
|
||||
import mekanism.api.gas.Gas;
|
||||
import mekanism.api.gas.GasRegistry;
|
||||
@@ -30,22 +31,33 @@ public class TileEntityOsmiumCompressor extends TileEntityAdvancedElectricMachin
|
||||
public GasStack getItemGas(ItemStack itemstack)
|
||||
{
|
||||
int amount = 0;
|
||||
boolean replaceWithPlat = MekanismConfig.general.OreDictPlatinum && !MekanismConfig.general.OreDictOsmium;
|
||||
|
||||
if (replaceWithPlat) {
|
||||
for (ItemStack ore : OreDictionary.getOres("ingotPlatinum")) {
|
||||
if (ore.isItemEqual(itemstack)) {
|
||||
return new GasStack(GasRegistry.getGas("liquidPlatinum"), 200);
|
||||
}
|
||||
}
|
||||
|
||||
for(ItemStack ore : OreDictionary.getOres("ingotOsmium"))
|
||||
{
|
||||
if(ore.isItemEqual(itemstack))
|
||||
{
|
||||
for (ItemStack ore : OreDictionary.getOres("blockPlatinum")) {
|
||||
if (ore.isItemEqual(itemstack)) {
|
||||
return new GasStack(GasRegistry.getGas("liquidPlatinum"), 1800);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (ItemStack ore : OreDictionary.getOres("ingotOsmium")) {
|
||||
if (ore.isItemEqual(itemstack)) {
|
||||
return new GasStack(GasRegistry.getGas("liquidOsmium"), 200);
|
||||
}
|
||||
}
|
||||
|
||||
for(ItemStack ore : OreDictionary.getOres("blockOsmium"))
|
||||
{
|
||||
if(ore.isItemEqual(itemstack))
|
||||
{
|
||||
for (ItemStack ore : OreDictionary.getOres("blockOsmium")) {
|
||||
if (ore.isItemEqual(itemstack)) {
|
||||
return new GasStack(GasRegistry.getGas("liquidOsmium"), 1800);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -298,6 +298,7 @@ gas.sulfurTrioxideGas=Sulfur Trioxide
|
||||
gas.sulfuricAcid=Sulfuric Acid
|
||||
gas.hydrogenChloride=Hydrogen Chloride
|
||||
gas.liquidOsmium=Liquid Osmium
|
||||
gas.liquidPlatinum=Liquid Platinum
|
||||
gas.liquidStone=Liquid Stone
|
||||
gas.ethene=Ethylene
|
||||
gas.sodium=Sodium
|
||||
@@ -314,6 +315,7 @@ gas.molasse=Molasse
|
||||
gas.iron=Iron Slurry
|
||||
gas.gold=Gold Slurry
|
||||
gas.osmium=Osmium Slurry
|
||||
gas.platinum=Platinum Slurry
|
||||
gas.copper=Copper Slurry
|
||||
gas.tin=Tin Slurry
|
||||
gas.silver=Silver Slurry
|
||||
@@ -323,6 +325,7 @@ gas.lead=Lead Slurry
|
||||
gas.cleanIron=Clean Iron Slurry
|
||||
gas.cleanGold=Clean Gold Slurry
|
||||
gas.cleanOsmium=Clean Osmium Slurry
|
||||
gas.cleanPlatinum=Clean Platinum Slurry
|
||||
gas.cleanCopper=Clean Copper Slurry
|
||||
gas.cleanTin=Clean Tin Slurry
|
||||
gas.cleanSilver=Clean Silver Slurry
|
||||
|
||||
Reference in new issue
Block a user