mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-25 22:44:33 +00:00
Some customization for the GTNH Pack
This commit is contained in:
1 parent
0b7ad3f383
commit
37cfdad294
7 files changed
+59
-39
No files matched your search
@@ -32,7 +32,7 @@ public class Config {
|
||||
public static boolean te = true;
|
||||
public static boolean numanuma = true;
|
||||
public static boolean metallurgy = true;
|
||||
public static boolean enderio = true;
|
||||
public static boolean darksteel = true;
|
||||
public static boolean forestry = true;
|
||||
public static boolean bees = false;
|
||||
public static boolean ee3 = true;
|
||||
@@ -46,6 +46,7 @@ public class Config {
|
||||
public static boolean lead = true;
|
||||
public static boolean steel = true;
|
||||
public static boolean nickel = true;
|
||||
public static boolean enderium = true;
|
||||
|
||||
public static int modifier = 0;
|
||||
public static int multiplier = 0;
|
||||
@@ -82,7 +83,6 @@ public class Config {
|
||||
te = conf.get("compatibility", "Thermal Expansion", true).getBoolean(true);
|
||||
numanuma = conf.get("compatibility", "Pneumaticraft", true).getBoolean(true);
|
||||
metallurgy = conf.get("compatibility", "Metallurgy", true).getBoolean(true);
|
||||
enderio = conf.get("compatibility", "EnderIO", true).getBoolean(true);
|
||||
forestry = conf.get("compatibility", "Forestry", true).getBoolean(true);
|
||||
bees = conf.get("compatibility", "Forestry Bees", false).getBoolean(false);
|
||||
ee3 = conf.get("compatibility", "Equivalent Exchange 3", true).getBoolean(true);
|
||||
@@ -97,6 +97,8 @@ public class Config {
|
||||
lead = conf.get("materials", "Lead", true).getBoolean(true);
|
||||
nickel = conf.get("materials", "Nickel/Ferrous", true).getBoolean(true);
|
||||
steel = conf.get("materials", "Steel", true).getBoolean(true);
|
||||
enderium = conf.get("materials", "Enderium", true).getBoolean(true);
|
||||
darksteel = conf.get("compatibility", "DarkSteel", true).getBoolean(true);
|
||||
|
||||
modifier = conf.get("balance!", "Cost Modifier", 0, "Added to the existing modifier to make prices more expensive or cheaper. Can be negative.").getInt(0);
|
||||
multiplier = conf.get("balance!", "Cost Multiplier", 0, "Added to the existing multiplier to make prices more expensive or cheaper. Can be negative.").getInt(0);
|
||||
|
||||
@@ -6,46 +6,46 @@ import fox.spiteful.avaritia.Config;
|
||||
public class Gregorizer {
|
||||
|
||||
public static int modifier = 0;
|
||||
public static int multiplier = 1;
|
||||
public static int multiplier = 0;
|
||||
|
||||
public static void balance(){
|
||||
if(Loader.isModLoaded("Thaumcraft"))
|
||||
modifier += 100;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("TConstruct") || Loader.isModLoaded("HydCraft"))
|
||||
modifier += 100;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("ThermalExpansion") || Loader.isModLoaded("TSteelworks") || Loader.isModLoaded("IC2") || Loader.isModLoaded("ThaumicTinkerer"))
|
||||
modifier += 300;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("technom"))
|
||||
modifier += 600;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("magicalcrops"))
|
||||
multiplier += 1;
|
||||
multiplier += 0;
|
||||
if(Loader.isModLoaded("AgriCraft"))
|
||||
multiplier += 1;
|
||||
multiplier += 0;
|
||||
if(Loader.isModLoaded("MineFactoryReloaded"))
|
||||
multiplier += 3;
|
||||
multiplier += 0;
|
||||
if(Loader.isModLoaded("BigReactors"))
|
||||
modifier += 100;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("EE3"))
|
||||
multiplier += 1;
|
||||
multiplier += 0;
|
||||
else if(Loader.isModLoaded("ProjectE"))
|
||||
multiplier += 3;
|
||||
multiplier += 0;
|
||||
if(Loader.isModLoaded("Botania"))
|
||||
modifier += 50;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("ExtraUtilities"))
|
||||
modifier += 500;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("appliedenergistics2"))
|
||||
modifier += 200;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("ImmersiveEngineering"))
|
||||
modifier += 300;
|
||||
modifier += 0;
|
||||
if(Loader.isModLoaded("Mekanism")) {
|
||||
modifier += 500;
|
||||
multiplier += 1;
|
||||
modifier += 0;
|
||||
multiplier += 0;
|
||||
}
|
||||
if(Loader.isModLoaded("Torcherino"))
|
||||
multiplier += 2;
|
||||
multiplier += 0;
|
||||
if(Loader.isModLoaded("DraconicEvolution")) {
|
||||
modifier += 300;
|
||||
multiplier += 1;
|
||||
modifier += 0;
|
||||
multiplier += 0;
|
||||
}
|
||||
|
||||
modifier = Math.max(modifier + Config.modifier, 0);
|
||||
|
||||
@@ -219,11 +219,11 @@ public class Grinder {
|
||||
'D', new ItemStack(Items.nether_star),
|
||||
'W', "logWood");
|
||||
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 0), 400, new ItemStack(Blocks.iron_block));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 1), 200, new ItemStack(Blocks.gold_block, 1));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 2), 400, new ItemStack(Blocks.lapis_block, 1));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 3), 500, new ItemStack(Blocks.redstone_block, 1));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 4), 300, new ItemStack(Blocks.quartz_block, 1));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 0), 7283, new ItemStack(Blocks.iron_block));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 1), 1215, new ItemStack(Blocks.gold_block, 1));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 2), 1215, new ItemStack(Blocks.lapis_block, 1));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 3), 7283, new ItemStack(Blocks.redstone_block, 1));
|
||||
CompressorManager.addRecipe(new ItemStack(LudicrousItems.singularity, 1, 4), 1215, new ItemStack(Blocks.quartz_block, 1));
|
||||
|
||||
if(Config.endStone)
|
||||
ExtremeCraftingManager.getInstance().addExtremeShapedOreRecipe(new ItemStack(LudicrousItems.endest_pearl),
|
||||
@@ -288,27 +288,28 @@ public class Grinder {
|
||||
}
|
||||
|
||||
if(Config.copper && !OreDictionary.getOres("blockCopper").isEmpty()){
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 5), 400, "blockCopper");
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 5), 3642, "blockCopper");
|
||||
catalyst.getInput().add(new ItemStack(LudicrousItems.singularity, 1, 5));
|
||||
}
|
||||
if(Config.tin && !OreDictionary.getOres("blockTin").isEmpty()){
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 6), 400, "blockTin");
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 6), 3642, "blockTin");
|
||||
catalyst.getInput().add(new ItemStack(LudicrousItems.singularity, 1, 6));
|
||||
}
|
||||
if(Config.lead && !OreDictionary.getOres("blockLead").isEmpty()){
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 7), 300, "blockLead");
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 7), 3642, "blockLead");
|
||||
catalyst.getInput().add(new ItemStack(LudicrousItems.singularity, 1, 7));
|
||||
}
|
||||
if(Config.silver && !OreDictionary.getOres("blockSilver").isEmpty()){
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 8), 300, "blockSilver");
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 8), 7283, "blockSilver");
|
||||
catalyst.getInput().add(new ItemStack(LudicrousItems.singularity, 1, 8));
|
||||
}
|
||||
if(Config.nickel && !OreDictionary.getOres("blockNickel").isEmpty()){
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 9), 400, "blockNickel");
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 9), 3642, "blockNickel");
|
||||
catalyst.getInput().add(new ItemStack(LudicrousItems.singularity, 1, 9));
|
||||
}
|
||||
if(Config.te && !OreDictionary.getOres("blockEnderium").isEmpty()){
|
||||
catalyst.getInput().add(OreDictionary.getOres("blockEnderium"));
|
||||
if(Config.enderium && !OreDictionary.getOres("blockEnderium").isEmpty()){
|
||||
CompressorManager.addOreRecipe(new ItemStack(LudicrousItems.singularity, 1, 10), 608, "blockEnderium");
|
||||
catalyst.getInput().add(new ItemStack(LudicrousItems.singularity, 1, 10));
|
||||
}
|
||||
if(Config.steel &&!OreDictionary.getOres("blockSteel").isEmpty()){
|
||||
catalyst.getInput().add(OreDictionary.getOres("blockSteel"));
|
||||
@@ -319,7 +320,7 @@ public class Grinder {
|
||||
if(Config.numanuma && !OreDictionary.getOres("blockIronCompressed").isEmpty()){
|
||||
catalyst.getInput().add(OreDictionary.getOres("blockIronCompressed"));
|
||||
}
|
||||
if(Config.enderio && !OreDictionary.getOres("blockDarkSteel").isEmpty()){
|
||||
if(Config.darksteel && !OreDictionary.getOres("blockDarkSteel").isEmpty()){
|
||||
catalyst.getInput().add(OreDictionary.getOres("blockDarkSteel"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,11 +17,11 @@ import java.util.List;
|
||||
public class ItemSingularity extends Item implements IHaloRenderItem {
|
||||
|
||||
public static final String[] types = new String[]{"iron", "gold", "lapis", "redstone", "quartz", "copper",
|
||||
"tin", "lead", "silver", "nickel"};
|
||||
"tin", "lead", "silver", "nickel", "enderium"};
|
||||
public static final int[] colors = new int[]{0xBFBFBF, 0xE8EF23, 0x5a82e2, 0xDF0000, 0xeeebe6, 0xE47200,
|
||||
0xA5C7DE, 0x444072, 0xF9F9F9, 0xDEE187};
|
||||
0xA5C7DE, 0x444072, 0xF9F9F9, 0xDEE187, 0x47736d};
|
||||
public static final int[] colors2 = new int[]{0x7F7F7F, 0xdba213, 0x224baf, 0x900000, 0x94867d, 0x89511A,
|
||||
0x9BA9B2, 0x3E3D4E, 0xD5D5D5, 0xC4C698};
|
||||
0x9BA9B2, 0x3E3D4E, 0xD5D5D5, 0xC4C698, 0x1a3732};
|
||||
public static IIcon background;
|
||||
public static IIcon foreground;
|
||||
|
||||
|
||||
Reference in new issue
Block a user