mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-26 06:53:04 +00:00
Holy shit, all the research!
Also, some new stuff. @_@
This commit is contained in:
1 parent
4b802d4727
commit
f05c12b2ee
13 files changed
+511
-244
No files matched your search
@@ -168,18 +168,18 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
|
||||
BeeClassification.TRANSMUTING, 0xDBB24C, 0xDBA4A4, EnumTemperature.HOT, EnumHumidity.ARID, false, false),
|
||||
|
||||
// --------- Thaumcraft Bees ---------------------------------------------------------------------------------------
|
||||
TC_CHAOS("TCStark", "torridae", // Stark
|
||||
BeeClassification.THAUMIC, 0xCCCCCC, 0x999999, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||
TC_AIR("TCAir", "aether", // Aura
|
||||
TC_AIR("TCAir", "aether",
|
||||
BeeClassification.THAUMIC, 0xD9D636, 0x999999, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
|
||||
TC_FIRE("TCFire", "praefervidus", // Ignis
|
||||
TC_FIRE("TCFire", "praefervidus",
|
||||
BeeClassification.THAUMIC, 0xE50B0B, 0x999999, EnumTemperature.HOT, EnumHumidity.ARID, true, true),
|
||||
TC_WATER("TCWater", "umidus", // Aqua
|
||||
TC_WATER("TCWater", "umidus",
|
||||
BeeClassification.THAUMIC, 0x36CFD9, 0x999999, EnumTemperature.NORMAL, EnumHumidity.DAMP, true, true),
|
||||
TC_EARTH("TCEarth", "sordida", // Solum
|
||||
TC_EARTH("TCEarth", "sordida",
|
||||
BeeClassification.THAUMIC, 0x005100, 0x999999, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
|
||||
TC_ORDER("TCMagic", "azanorius", //Praecantatio
|
||||
TC_ORDER("TCOrder", "ordinatus",
|
||||
BeeClassification.THAUMIC, 0xaa32fc, 0x999999, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
|
||||
TC_CHAOS("TCChaos", "tenebrarum",
|
||||
BeeClassification.THAUMIC, 0xCCCCCC, 0x999999, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||
|
||||
TC_VIS("TCVis", "arcanus saecula",
|
||||
BeeClassification.THAUMIC, 0x004c99, 0x675ED1, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
|
||||
@@ -400,20 +400,17 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
|
||||
.setGenome(BeeGenomeManager.getTemplateEthereal())
|
||||
.register();
|
||||
|
||||
WINDY.addProduct(Config.combs.getStackForType(CombType.AIRY), 10)
|
||||
.addSpecialty(new ItemStack(Item.feather), 5)
|
||||
WINDY.addProduct(Config.combs.getStackForType(CombType.AIRY), 25)
|
||||
.setGenome(BeeGenomeManager.getTemplateWindy())
|
||||
.register();
|
||||
FIREY.addProduct(Config.combs.getStackForType(CombType.FIREY), 10)
|
||||
.addSpecialty(new ItemStack(Item.blazePowder), 5)
|
||||
FIREY.addProduct(Config.combs.getStackForType(CombType.FIREY), 25)
|
||||
.setGenome(BeeGenomeManager.getTemplateFirey())
|
||||
.register();
|
||||
EARTHY.addProduct(Config.combs.getStackForType(CombType.EARTHY), 10)
|
||||
.addSpecialty(new ItemStack(Item.clay), 9)
|
||||
EARTHY.addProduct(Config.combs.getStackForType(CombType.EARTHY), 25)
|
||||
.setGenome(BeeGenomeManager.getTemplateEarthy())
|
||||
.register();
|
||||
WATERY.addProduct(Config.combs.getStackForType(CombType.WATERY), 10)
|
||||
.addSpecialty(new ItemStack(Block.ice), 4)
|
||||
WATERY.addProduct(Config.combs.getStackForType(CombType.WATERY), 25)
|
||||
.addSpecialty(new ItemStack(Block.ice), 2)
|
||||
.setGenome(BeeGenomeManager.getTemplateWatery())
|
||||
.register();
|
||||
|
||||
@@ -584,22 +581,23 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
|
||||
.register();
|
||||
|
||||
MUTABLE.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.PARCHED.ordinal()), 30)
|
||||
.addProduct(Config.combs.getStackForType(CombType.TRANSMUTED), 10)
|
||||
.setGenome(BeeGenomeManager.getTemplateMutable())
|
||||
.register();
|
||||
TRANSMUTING.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.PARCHED.ordinal()), 10)
|
||||
.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SILKY.ordinal()), 10)
|
||||
.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SIMMERING.ordinal()), 10)
|
||||
.addProduct(Config.combs.getStackForType(CombType.TRANSMUTED), 30)
|
||||
.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SILKY.ordinal()), 5)
|
||||
.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SIMMERING.ordinal()), 5)
|
||||
.setGenome(BeeGenomeManager.getTemplateTransmuting())
|
||||
.register();
|
||||
CRUMBLING.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.POWDERY.ordinal()), 20)
|
||||
.addProduct(new ItemStack(Config.fBeeComb, 1 , ForestryHelper.Comb.COCOA.ordinal()), 20)
|
||||
CRUMBLING.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.PARCHED.ordinal()), 10)
|
||||
.addProduct(Config.combs.getStackForType(CombType.TRANSMUTED), 30)
|
||||
.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.POWDERY.ordinal()), 10)
|
||||
.addProduct(new ItemStack(Config.fBeeComb, 1 , ForestryHelper.Comb.COCOA.ordinal()), 15)
|
||||
.setGenome(BeeGenomeManager.getTemplateCrumbling())
|
||||
.register();
|
||||
|
||||
|
||||
TC_CHAOS.addProduct(Config.combs.getStackForType(CombType.CHAOS), 20)
|
||||
.setGenome(BeeGenomeManager.getTemplateTCStark())
|
||||
.register();
|
||||
TC_AIR.addProduct(Config.combs.getStackForType(CombType.AIRY), 20)
|
||||
.setGenome(BeeGenomeManager.getTemplateTCAir())
|
||||
.register();
|
||||
@@ -612,9 +610,12 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
|
||||
TC_EARTH.addProduct(Config.combs.getStackForType(CombType.EARTHY), 20)
|
||||
.setGenome(BeeGenomeManager.getTemplateTCEarth())
|
||||
.register();
|
||||
TC_ORDER.addProduct(Config.combs.getStackForType(CombType.ORDER), 20)
|
||||
TC_ORDER.addProduct(Config.combs.getStackForType(CombType.TC_ORDER), 20)
|
||||
.setGenome(BeeGenomeManager.getTemplateTCMagic())
|
||||
.register();
|
||||
TC_CHAOS.addProduct(Config.combs.getStackForType(CombType.TC_CHAOS), 20)
|
||||
.setGenome(BeeGenomeManager.getTemplateTCStark())
|
||||
.register();
|
||||
|
||||
TC_VIS.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 10)
|
||||
.setGenome(BeeGenomeManager.getTemplateTCVis())
|
||||
|
||||
@@ -7,50 +7,60 @@ public enum CombType
|
||||
{
|
||||
MUNDANE("mundane", true),
|
||||
MOLTEN("molten", true),
|
||||
FORGOTTEN("forgotten", false),
|
||||
OCCULT("occult", true),
|
||||
OTHERWORLDLY("otherworldly", true),
|
||||
|
||||
TRANSMUTED("transmuted", true),
|
||||
PAPERY("paper", true),
|
||||
SOUL("soul", true),
|
||||
FURTIVE("furtive", true),
|
||||
INTELLECT("aware", false),
|
||||
TEMPORAL("time", false),
|
||||
FORGOTTEN("forgotten", false),
|
||||
|
||||
AIRY("air", false),
|
||||
FIREY("fire", false),
|
||||
WATERY("water", false),
|
||||
EARTHY("earth", false),
|
||||
ORDER("order", false),
|
||||
CHAOS("chaos", false),
|
||||
|
||||
TC_AIR("TCair", true),
|
||||
TC_FIRE("TCfire", true),
|
||||
TC_WATER("TCwater", true),
|
||||
TC_EARTH("TCearth", true),
|
||||
TC_ORDER("TCorder", true),
|
||||
TC_CHAOS("TCchaos", true),
|
||||
|
||||
AM_ESSENCE("essence", false),
|
||||
AM_POTENT("potent", false),
|
||||
;
|
||||
|
||||
private static int[][] colours =
|
||||
new int[][] { {0xFF9859, 0xFFC58E},
|
||||
{0xcc3333, 0x1E160E},
|
||||
{0x9872FF, 0x2D2D2D},
|
||||
{0x3EE0D8, 0x3A3820},
|
||||
{0xE5425D, 0x323291},
|
||||
|
||||
{0xBCA664, 0x35332E},
|
||||
{0x7F7171, 0x876D53},
|
||||
{0xcda6cd, 0x545454},
|
||||
{0x0092e9, 0x618fff},
|
||||
{0x2F9381, 0x773C31},
|
||||
|
||||
{0xffff7e, 0x606308},
|
||||
{0xff3C01, 0x5B0D10},
|
||||
{0x0090ff, 0x102F6B},
|
||||
{0x00a000, 0x043004},
|
||||
{0xDDDDFF, 0x9D9DB5},
|
||||
{0x555577, 0x2D2D56},
|
||||
|
||||
{0xCC8604, 0x41046F},
|
||||
{0xCCCC04, 0x41046F},
|
||||
};
|
||||
private static int[][] colours = new int[][] {
|
||||
{0xFF9859, 0xFFC58E},
|
||||
{0xcc3333, 0x1E160E},
|
||||
{0x9872FF, 0x2D2D2D},
|
||||
{0x3EE0D8, 0x3A3820},
|
||||
{0xE5425D, 0x323291},
|
||||
|
||||
{0xBCA664, 0x35332E},
|
||||
{0x7F7171, 0x876D53},
|
||||
{0xcda6cd, 0x545454},
|
||||
{0x0092e9, 0x618fff},
|
||||
{0x2F9381, 0x773C31},
|
||||
|
||||
{0xffff7e, 0x606308},
|
||||
{0xff3C01, 0x5B0D10},
|
||||
{0x0090ff, 0x102F6B},
|
||||
{0x00a000, 0x043004},
|
||||
|
||||
{0xFFDF14, 0x707019},
|
||||
{0xE21802, 0x3F0E12},
|
||||
{0x00B6FF, 0x0F373D},
|
||||
{0x28D328, 0x333004},
|
||||
{0xDDDDFF, 0x9D9DB5},
|
||||
{0x555577, 0x2D2D56},
|
||||
|
||||
{0xCC8604, 0x41046F},
|
||||
{0xCCCC04, 0x41046F},
|
||||
};
|
||||
|
||||
private CombType(String pName, boolean show)
|
||||
{
|
||||
@@ -59,6 +69,11 @@ public enum CombType
|
||||
this.showInList = show;
|
||||
}
|
||||
|
||||
public void setHidden()
|
||||
{
|
||||
this.showInList = false;
|
||||
}
|
||||
|
||||
private String name;
|
||||
public boolean showInList;
|
||||
|
||||
@@ -68,7 +83,7 @@ public enum CombType
|
||||
}
|
||||
|
||||
public int[] getColours()
|
||||
{
|
||||
{
|
||||
return colours[this.ordinal()];
|
||||
}
|
||||
}
|
||||
@@ -7,10 +7,10 @@ public enum HiveFrameType
|
||||
MAGIC("Magic", 240, 1f, 1f, 1f, 2f),
|
||||
RESILIENT("Resilient", 800, 1f, 1f, 1f, 2f),
|
||||
GENTLE("Gentle", 200, 1f, 0.7f, 1.5f, 1.4f),
|
||||
METABOLIC("Metabolic", 120, 1f, 1.8f, 1f, 1.2f),
|
||||
NECROTIC("Necrotic", 290, 1f, 1f, 0.3f, 0.75f),
|
||||
METABOLIC("Metabolic", 130, 1f, 1.8f, 1f, 1.2f),
|
||||
NECROTIC("Necrotic", 280, 1f, 1f, 0.3f, 0.75f),
|
||||
TEMPORAL("Temporal", 300, 1f, 1f, 2.5f, 1f),
|
||||
OBLIVION("Oblivion", 60, 1f, 1f, 0.0001f, 0f),
|
||||
OBLIVION("Oblivion", 50, 1f, 1f, 0.0001f, 0f),
|
||||
;
|
||||
|
||||
private HiveFrameType(String name, int damage,
|
||||
|
||||
@@ -33,9 +33,9 @@ public enum NuggetType
|
||||
return this.targetIngot;
|
||||
}
|
||||
|
||||
public void setActive(boolean b)
|
||||
public void setInactive()
|
||||
{
|
||||
this.active = b;
|
||||
this.active = false;
|
||||
}
|
||||
|
||||
public boolean isActive()
|
||||
|
||||
@@ -5,13 +5,14 @@ import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
|
||||
public enum PropolisType
|
||||
{
|
||||
UNSTABLE("unstable", 0xEFB492),
|
||||
|
||||
AIR("air", 0xA19E10),
|
||||
FIRE("fire", 0x95132F),
|
||||
WATER("water", 0x1054A1),
|
||||
EARTH("earth", 0x00a000),
|
||||
ORDER("dull", 0xDDDDFF),
|
||||
CHAOS("magic", 0x555577),
|
||||
UNSTABLE("unstable", 0xEFB492),
|
||||
;
|
||||
|
||||
private PropolisType(String pName, int overlayColour)
|
||||
|
||||
@@ -12,17 +12,17 @@ public enum ResourceType
|
||||
SKULL_FRAGMENT("skullFragment", true),
|
||||
DRAGON_DUST("dragonDust", true),
|
||||
DRAGON_CHUNK("dragonChunk", true),
|
||||
ESSENCE_FALSE_LIFE("essenceFalseLife", true),
|
||||
ESSENCE_SHALLOW_GRAVE("essenceShallowGrave", true),
|
||||
ESSENCE_LOST_TIME("essenceLostTime", true),
|
||||
ESSENCE_EVERLASTING_DURABILITY("essenceEverlastingDurability", true),
|
||||
ESSENCE_UNENDING_DISREGARD("essenceUnendingDisregard", true),
|
||||
z_1("", false),
|
||||
z_2("", false),
|
||||
z_3("", false),
|
||||
z_4("", false),
|
||||
z_5("", false),
|
||||
DIMENSIONAL_SINGULARITY("dimensionalSingularity", false),
|
||||
ESSENCE_FALSE_LIFE("essenceLife", true),//
|
||||
ESSENCE_SHALLOW_GRAVE("essenceDeath", true),//
|
||||
ESSENCE_LOST_TIME("essenceTime", true),
|
||||
ESSENCE_EVERLASTING_DURABILITY("essenceDurability", true),//
|
||||
ESSENCE_SCORNFUL_OBLIVION("essenceOblivion", true),
|
||||
ESSENCE_FICKLE_PERMANENCE("essenceMutable", true),//
|
||||
z_2("lump", false), // Using lump for the name to avoid missing texture warnings.
|
||||
z_3("lump", false),
|
||||
z_4("lump", false),
|
||||
z_5("lump", false),
|
||||
DIMENSIONAL_SINGULARITY("dimensionalSingularity", true),
|
||||
TC_DUST_AIR("TCairDust", true),
|
||||
TC_DUST_WATER("TCwaterDust", true),
|
||||
TC_DUST_FIRE("TCfireDust", true),
|
||||
|
||||
@@ -94,6 +94,14 @@ public class CraftingManager
|
||||
'D', Block.dirt,
|
||||
'w', Config.wax.getStackForType(WaxType.SOUL)
|
||||
});
|
||||
|
||||
output = new ItemStack(Config.hiveFrameMagic);
|
||||
input = ItemInterface.getItem("frameUntreated");
|
||||
GameRegistry.addRecipe(output, new Object[] {
|
||||
"www", "wfw", "www",
|
||||
'w', Config.wax.getStackForType(WaxType.MAGIC),
|
||||
'f', input
|
||||
});
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(Config.hiveFrameTemporal), new Object[] {
|
||||
"sPs", "PfP", "sPs",
|
||||
@@ -142,13 +150,13 @@ public class CraftingManager
|
||||
"gwg", "wiw", "gwg",
|
||||
'g', Block.glass,
|
||||
'w', "waxMagical",
|
||||
'i', Item.ingotIron
|
||||
'i', Block.blockIron
|
||||
}));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(Config.miscResources.getStackForType(ResourceType.ESSENCE_EVERLASTING_DURABILITY), new Object[] {
|
||||
"wgw", "gig", "wgw",
|
||||
'g', Block.glass,
|
||||
'w', "waxMagical",
|
||||
'i', Item.ingotIron
|
||||
'i', Block.blockIron
|
||||
}));
|
||||
|
||||
GameRegistry.addRecipe(Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE), new Object[] {
|
||||
@@ -190,7 +198,15 @@ public class CraftingManager
|
||||
'c', Item.pocketSundial
|
||||
});
|
||||
|
||||
GameRegistry.addRecipe(Config.miscResources.getStackForType(ResourceType.ESSENCE_UNENDING_DISREGARD), new Object[] {
|
||||
GameRegistry.addRecipe(Config.miscResources.getStackForType(ResourceType.ESSENCE_FICKLE_PERMANENCE), new Object[] {
|
||||
"wew", "gcg", "wew",
|
||||
'w', Config.wax.getStackForType(WaxType.SOUL),
|
||||
'c', Item.magmaCream,
|
||||
'e', Item.egg,
|
||||
'g', Block.glowStone
|
||||
});
|
||||
|
||||
GameRegistry.addRecipe(Config.miscResources.getStackForType(ResourceType.ESSENCE_SCORNFUL_OBLIVION), new Object[] {
|
||||
"gst", "sEs", "tsg",
|
||||
'g', Config.miscResources.getStackForType(ResourceType.ESSENCE_SHALLOW_GRAVE),
|
||||
't', Config.miscResources.getStackForType(ResourceType.ESSENCE_LOST_TIME),
|
||||
@@ -198,87 +214,78 @@ public class CraftingManager
|
||||
'E', Block.dragonEgg,
|
||||
});
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameMagic, 2), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_EVERLASTING_DURABILITY),
|
||||
ItemInterface.getItem("frameUntreated"),
|
||||
ItemInterface.getItem("frameUntreated")
|
||||
});
|
||||
|
||||
input = new ItemStack(Config.hiveFrameMagic);
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameResilient), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_EVERLASTING_DURABILITY),
|
||||
ItemInterface.getItem("frameImpregnated"),
|
||||
Item.ingotIron, Item.ingotIron,
|
||||
Item.ingotIron, Item.ingotIron
|
||||
input
|
||||
});
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameGentle), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE),
|
||||
ItemInterface.getItem("frameUntreated")
|
||||
});
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameMetabolic), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE),
|
||||
ItemInterface.getItem("frameImpregnated"),
|
||||
Item.magmaCream
|
||||
input
|
||||
});
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameNecrotic), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_SHALLOW_GRAVE),
|
||||
ItemInterface.getItem("frameUntreated"),
|
||||
Item.rottenFlesh, Item.rottenFlesh,
|
||||
Item.rottenFlesh, Item.rottenFlesh
|
||||
input, Item.rottenFlesh, Item.rottenFlesh, Item.rottenFlesh, Item.rottenFlesh
|
||||
});
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameMetabolic), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_FICKLE_PERMANENCE),
|
||||
input
|
||||
});
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameTemporal), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_LOST_TIME),
|
||||
ItemInterface.getItem("frameImpregnated"),
|
||||
Config.pollen.getStackForType(PollenType.PHASED)
|
||||
input, Config.pollen.getStackForType(PollenType.PHASED)
|
||||
});
|
||||
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameOblivion), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_UNENDING_DISREGARD),
|
||||
ItemInterface.getItem("frameProven")
|
||||
});
|
||||
if (!ThaumcraftHelper.isActive())
|
||||
{
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Config.hiveFrameOblivion), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_SCORNFUL_OBLIVION),
|
||||
ItemInterface.getItem("frameProven")
|
||||
});
|
||||
}
|
||||
|
||||
if (OreDictionary.getOres("ingotCopper").size() <= 0)
|
||||
{
|
||||
NuggetType.COPPER.setActive(false);
|
||||
NuggetType.COPPER.setInactive();
|
||||
}
|
||||
if (OreDictionary.getOres("ingotTin").size() <= 0)
|
||||
{
|
||||
NuggetType.TIN.setActive(false);
|
||||
}
|
||||
if (OreDictionary.getOres("ingotSilver").size() <= 0)
|
||||
{
|
||||
NuggetType.SILVER.setActive(false);
|
||||
}
|
||||
if (OreDictionary.getOres("ingotLead").size() <= 0)
|
||||
{
|
||||
NuggetType.LEAD.setActive(false);
|
||||
}
|
||||
|
||||
if (NuggetType.COPPER.isActive())
|
||||
else
|
||||
{
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(OreDictionary.getOres("ingotCopper").get(0), new Object[] {
|
||||
"xxx", "xxx", "xxx",
|
||||
'x', "nuggetCopper"
|
||||
}));
|
||||
}
|
||||
if (NuggetType.TIN.isActive())
|
||||
if (OreDictionary.getOres("ingotTin").size() <= 0)
|
||||
{
|
||||
NuggetType.TIN.setInactive();
|
||||
}
|
||||
else
|
||||
{
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(OreDictionary.getOres("ingotTin").get(0), new Object[] {
|
||||
"xxx", "xxx", "xxx",
|
||||
'x', "nuggetTin"
|
||||
}));
|
||||
}
|
||||
if (NuggetType.SILVER.isActive())
|
||||
if (OreDictionary.getOres("ingotSilver").size() <= 0)
|
||||
{
|
||||
NuggetType.SILVER.setInactive();
|
||||
}
|
||||
else
|
||||
{
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(OreDictionary.getOres("ingotSilver").get(0), new Object[] {
|
||||
"xxx", "xxx", "xxx",
|
||||
'x', "nuggetSilver"
|
||||
}));
|
||||
}
|
||||
if (NuggetType.LEAD.isActive())
|
||||
if (OreDictionary.getOres("ingotLead").size() <= 0)
|
||||
{
|
||||
NuggetType.LEAD.setInactive();
|
||||
}
|
||||
else
|
||||
{
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(OreDictionary.getOres("ingotLead").get(0), new Object[] {
|
||||
"xxx", "xxx", "xxx",
|
||||
@@ -354,10 +361,10 @@ public class CraftingManager
|
||||
'W', Config.wax
|
||||
});*/
|
||||
|
||||
input = Config.miscResources.getStackForType(ResourceType.LORE_FRAGMENT);
|
||||
output = new ItemStack(Config.tcMiscResource, 1, ThaumcraftHelper.MiscResource.KNOWLEDGE_FRAGMENT.ordinal());
|
||||
GameRegistry.addRecipe(output, new Object[] {
|
||||
"FF", "FF",
|
||||
'F', Config.miscResources.getStackForType(ResourceType.LORE_FRAGMENT)
|
||||
GameRegistry.addShapelessRecipe(output, new Object[] {
|
||||
input, input, input, input
|
||||
});
|
||||
|
||||
// T1 Thaumaturge's backpack
|
||||
@@ -437,54 +444,69 @@ public class CraftingManager
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.TEMPORAL),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.pollen.getStackForType(PollenType.PHASED), new ItemStack(Config.fHoneydew, 1)},
|
||||
new int[] {100, 5, 60});
|
||||
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.AIRY),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.propolis.getStackForType(PropolisType.AIR) },
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.feather) },
|
||||
new int[] { 100, 60 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.FIREY),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.propolis.getStackForType(PropolisType.FIRE) },
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.blazePowder) },
|
||||
new int[] { 100, 60 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.WATERY),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.propolis.getStackForType(PropolisType.WATER) },
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.dyePowder) },
|
||||
new int[] { 100, 60 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.EARTHY),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.propolis.getStackForType(PropolisType.EARTH) },
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.clay) },
|
||||
new int[] { 100, 60 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.ORDER),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.propolis.getStackForType(PropolisType.ORDER) },
|
||||
new int[] { 100, 60 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.CHAOS),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.propolis.getStackForType(PropolisType.CHAOS) },
|
||||
new int[] { 100, 60 });
|
||||
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.AM_POTENT),
|
||||
new ItemStack[] {ItemInterface.getItem("beeswax"), ItemInterface.getItem("refractoryWax"), ItemInterface.getItem("honeydew") },
|
||||
new int[] { 50, 50, 65 } );
|
||||
|
||||
if (ThaumcraftHelper.isActive())
|
||||
{
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.TC_AIR),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.feather), Config.propolis.getStackForType(PropolisType.AIR) },
|
||||
new int[] { 100, 60, 80 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.TC_FIRE),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.blazePowder), Config.propolis.getStackForType(PropolisType.FIRE) },
|
||||
new int[] { 100, 60, 80 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.TC_WATER),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.dyePowder), Config.propolis.getStackForType(PropolisType.WATER) },
|
||||
new int[] { 100, 60, 80 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.TC_EARTH),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Item.clay), Config.propolis.getStackForType(PropolisType.EARTH) },
|
||||
new int[] { 100, 60, 80 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.TC_ORDER),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.propolis.getStackForType(PropolisType.ORDER) },
|
||||
new int[] { 100, 80 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.TC_CHAOS),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), Config.propolis.getStackForType(PropolisType.CHAOS) },
|
||||
new int[] { 100, 80 });
|
||||
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.AIR),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_AIR) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.FIRE),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_FIRE) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.WATER),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_WATER) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.EARTH),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_EARTH) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.ORDER),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_ORDER) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.CHAOS),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_CHAOS) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.AIR),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_AIR) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.FIRE),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_FIRE) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.WATER),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_WATER) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.EARTH),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_EARTH) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.ORDER),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_ORDER) },
|
||||
new int[] { 100, 65 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(8, Config.propolis.getStackForType(PropolisType.CHAOS),
|
||||
new ItemStack[] {propolis, Config.miscResources.getStackForType(ResourceType.TC_DUST_CHAOS) },
|
||||
new int[] { 100, 65 } );
|
||||
}
|
||||
|
||||
if (ArsMagicaHelper.isActive())
|
||||
{
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.AM_ESSENCE),
|
||||
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Config.amItemResource), new ItemStack(Config.amItemResource) },
|
||||
new int[] { 85, 10, 2 } );
|
||||
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.AM_POTENT),
|
||||
new ItemStack[] {ItemInterface.getItem("beeswax"), ItemInterface.getItem("refractoryWax"), ItemInterface.getItem("honeydew") },
|
||||
new int[] { 50, 50, 65 } );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -525,14 +547,6 @@ public class CraftingManager
|
||||
'J', ItemInterface.getItem("royalJelly"),
|
||||
'D', Config.drops.getStackForType(DropType.ENCHANTED)
|
||||
});
|
||||
|
||||
output = new ItemStack(Config.hiveFrameMagic);
|
||||
input = ItemInterface.getItem("frameUntreated");
|
||||
GameRegistry.addRecipe(output, new Object[] {
|
||||
"www", "wfw", "www",
|
||||
'w', Config.wax.getStackForType(WaxType.MAGIC),
|
||||
'f', input
|
||||
});
|
||||
|
||||
if (ThaumcraftHelper.isActive())
|
||||
{
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package magicbees.main.utils.compat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import magicbees.item.types.PollenType;
|
||||
import magicbees.item.types.PropolisType;
|
||||
import magicbees.item.types.ResourceType;
|
||||
@@ -11,16 +13,20 @@ import magicbees.main.utils.LocalizationManager;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.item.crafting.ShapelessRecipes;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.crafting.IArcaneRecipe;
|
||||
import thaumcraft.api.crafting.RecipeCrucible;
|
||||
import thaumcraft.api.research.ResearchCategories;
|
||||
import thaumcraft.api.research.ResearchItem;
|
||||
import thaumcraft.api.research.ResearchPage;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import forestry.api.core.ItemInterface;
|
||||
|
||||
public class ThaumcraftHelper
|
||||
{
|
||||
@@ -220,9 +226,6 @@ public class ThaumcraftHelper
|
||||
}
|
||||
}
|
||||
|
||||
private static IArcaneRecipe thaumScoop;
|
||||
private static IArcaneRecipe thaumGrafter;
|
||||
|
||||
private static void setupCrafting()
|
||||
{
|
||||
ItemStack input, output;
|
||||
@@ -253,56 +256,219 @@ public class ThaumcraftHelper
|
||||
|
||||
thaumScoop = ThaumcraftApi.addArcaneCraftingRecipe("MB_Scoop", new ItemStack(Config.thaumiumScoop),
|
||||
new AspectList().add(Aspect.ORDER, 2), new Object[] {
|
||||
"sWs", "sTs", " T ",
|
||||
's', Item.stick,
|
||||
'W', Block.cloth,
|
||||
'T', new ItemStack(Config.tcMiscResource, 1, MiscResource.THAUMIUM.ordinal())
|
||||
"sWs", "sTs", " T ",
|
||||
's', Item.stick,
|
||||
'W', Block.cloth,
|
||||
'T', new ItemStack(Config.tcMiscResource, 1, MiscResource.THAUMIUM.ordinal())
|
||||
});
|
||||
|
||||
thaumGrafter = ThaumcraftApi.addArcaneCraftingRecipe("MB_Grafter", new ItemStack(Config.thaumiumGrafter),
|
||||
new AspectList().add(Aspect.ORDER, 5), new Object[] {
|
||||
" T", " s ", "s ",
|
||||
's', Item.stick,
|
||||
'T', new ItemStack(Config.tcMiscResource, 1, MiscResource.THAUMIUM.ordinal())
|
||||
" T", " s ", "s ",
|
||||
's', Item.stick,
|
||||
'T', new ItemStack(Config.tcMiscResource, 1, MiscResource.THAUMIUM.ordinal())
|
||||
});
|
||||
|
||||
frameMagic = ThaumcraftApi.addArcaneCraftingRecipe("MB_FrameMagic", new ItemStack(Config.hiveFrameMagic),
|
||||
new AspectList().add(Aspect.ORDER, 5).add(Aspect.AIR, 2).add(Aspect.EARTH, 2), new Object[] {
|
||||
"sss", "sCs", "sss",
|
||||
's', Item.stick,
|
||||
'C', new ItemStack(Config.tcMiscResource, 1, MiscResource.ENCHANTED_FABRIC.ordinal())
|
||||
});
|
||||
|
||||
frameOblivion = ThaumcraftApi.addShapelessArcaneCraftingRecipe("MB_EssenceOblivion", new ItemStack(Config.hiveFrameOblivion),
|
||||
new AspectList().add(Aspect.ORDER, 10).add(Aspect.ENTROPY, 5), new Object[] {
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_SCORNFUL_OBLIVION),
|
||||
ItemInterface.getItem("frameProven")
|
||||
});
|
||||
|
||||
essenceLife = ThaumcraftApi.addCrucibleRecipe("MB_EssenceLife", Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE),
|
||||
new ItemStack(Block.plantRed), new AspectList().add(Aspect.EXCHANGE, 4).add(Aspect.PLANT, 4));
|
||||
|
||||
essenceDeath = ThaumcraftApi.addCrucibleRecipe("MB_EssenceDeath", Config.miscResources.getStackForType(ResourceType.ESSENCE_SHALLOW_GRAVE),
|
||||
new ItemStack(Item.rottenFlesh), new AspectList().add(Aspect.DEATH, 4).add(Aspect.ENTROPY, 4));
|
||||
|
||||
essenceArmor = ThaumcraftApi.addCrucibleRecipe("MB_EssenceArmor", Config.miscResources.getStackForType(ResourceType.ESSENCE_EVERLASTING_DURABILITY),
|
||||
new ItemStack(Item.leather), new AspectList().add(Aspect.ARMOR, 4).add(Aspect.MAGIC, 2));
|
||||
|
||||
output = Config.miscResources.getStackForType(ResourceType.ESSENCE_FICKLE_PERMANENCE);
|
||||
essenceUnstableA = ThaumcraftApi.addCrucibleRecipe("MB_EssenceUnstable", output,
|
||||
Config.propolis.getStackForType(PropolisType.UNSTABLE), new AspectList().add(Aspect.ENTROPY, 2).add(Aspect.EXCHANGE, 1));
|
||||
|
||||
essenceUnstableB = ThaumcraftApi.addCrucibleRecipe("MB_EssenceUnstable", output,
|
||||
new ItemStack(Block.netherrack), new AspectList().add(Aspect.ENTROPY, 8).add(Aspect.EXCHANGE, 5));
|
||||
|
||||
essenceTime = ThaumcraftApi.addCrucibleRecipe("MB_EssenceTime", Config.miscResources.getStackForType(ResourceType.ESSENCE_LOST_TIME),
|
||||
new ItemStack(Item.pocketSundial), new AspectList().add(Aspect.ORDER, 10).add(Aspect.VOID, 10).add(Aspect.TRAP, 4));
|
||||
|
||||
singularity = ThaumcraftApi.addCrucibleRecipe("MB_DimensionalSingularity", Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY, 3),
|
||||
new ItemStack(Block.dragonEgg), new AspectList().add(Aspect.ELDRITCH, 10).add(Aspect.EXCHANGE, 10));
|
||||
|
||||
essenceOblivion = ThaumcraftApi.addCrucibleRecipe("MB_EssenceOblivion", Config.miscResources.getStackForType(ResourceType.ESSENCE_SCORNFUL_OBLIVION),
|
||||
Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY), new AspectList().add(Aspect.DARKNESS, 5).add(Aspect.ELDRITCH, 5).add(Aspect.HUNGER, 15).add(Aspect.VOID, 10));
|
||||
}
|
||||
|
||||
private static Object frameMagic;
|
||||
private static Object frameOblivion;
|
||||
private static Object thaumScoop;
|
||||
private static Object thaumGrafter;
|
||||
private static Object singularity;
|
||||
private static Object essenceLife;
|
||||
private static Object essenceDeath;
|
||||
private static Object essenceArmor;
|
||||
private static Object essenceUnstableA;
|
||||
private static Object essenceUnstableB;
|
||||
private static Object essenceTime;
|
||||
private static Object essenceOblivion;
|
||||
|
||||
private static void setupResearch()
|
||||
{
|
||||
ResearchCategories.registerCategory("MAGICBEES", new ResourceLocation("magicbees", CommonProxy.ITEM_TEXTURE + "beeInfusion.png"), new ResourceLocation("thaumcraft", "textures/gui/gui_researchback.png"));
|
||||
|
||||
ResearchItem startNode = new ResearchItem("MB_Root", "MAGICBEES", new AspectList(),
|
||||
ArrayList<Object> list;
|
||||
ItemStack input;
|
||||
IRecipe recipe;
|
||||
String category = "MAGICBEES";
|
||||
ResearchCategories.registerCategory(category, new ResourceLocation(CommonProxy.DOMAIN, CommonProxy.ITEM_TEXTURE + "beeInfusion.png"),
|
||||
new ResourceLocation("thaumcraft", "textures/gui/gui_researchback.png"));
|
||||
|
||||
ResearchItem rootNodeR = new ResearchItem("MB_Root", category, new AspectList(),
|
||||
0, 0, 0,
|
||||
Config.miscResources.getStackForType(ResourceType.RESEARCH_BEEINFUSION))
|
||||
.setAutoUnlock()
|
||||
.setPages(new ResearchPage[] { new ResearchPage(getResearchPage("MB_Root.1")) })
|
||||
Config.miscResources.getStackForType(ResourceType.RESEARCH_BEEINFUSION))
|
||||
.setRound().setStub().setAutoUnlock()
|
||||
.setPages(getResearchPage("MB_Root.1"), getResearchPage("MB_Root.2") )
|
||||
.registerResearchItem();
|
||||
|
||||
ResearchItem thaumiumScoop = new ResearchItem("MB_Scoop", "MAGICBEES", new AspectList().add(Aspect.TOOL, 1),
|
||||
2, -2, 1,
|
||||
new ItemStack(Config.thaumiumScoop))
|
||||
.setPages(new ResearchPage[] { new ResearchPage(getResearchPage("MB_Scoop.1")), new ResearchPage(thaumScoop) })
|
||||
list = new ArrayList<Object>(4);
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.LORE_FRAGMENT));
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.LORE_FRAGMENT));
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.LORE_FRAGMENT));
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.LORE_FRAGMENT));
|
||||
recipe = new ShapelessRecipes(new ItemStack(Config.tcMiscResource, 1, MiscResource.KNOWLEDGE_FRAGMENT.ordinal()), list);
|
||||
|
||||
ResearchItem researchFragment = new ResearchItem("MB_LoreFragment", category, new AspectList(),
|
||||
0, -3, 0,
|
||||
Config.miscResources.getStackForType(ResourceType.LORE_FRAGMENT))
|
||||
.setPages(getResearchPage("MB_LoreFragment.1"), new ResearchPage(recipe))
|
||||
.setParents("MB_Root")
|
||||
.setStub().setAutoUnlock().setRound()
|
||||
.registerResearchItem();
|
||||
|
||||
ResearchItem thaumiumScoopR = new ResearchItem("MB_Scoop", category, new AspectList().add(Aspect.TOOL, 1),
|
||||
-2, -3, 1,
|
||||
new ItemStack(Config.thaumiumScoop))
|
||||
.setPages(getResearchPage("MB_Scoop.1"), new ResearchPage((IArcaneRecipe)thaumScoop) )
|
||||
.setParentsHidden("THAUMIUM")
|
||||
.registerResearchItem();
|
||||
|
||||
ResearchItem thaumiumGrafter = new ResearchItem("MB_Grafter", "MAGICBEES", new AspectList().add(Aspect.TOOL, 2).add(Aspect.TREE, 1).add(Aspect.GREED, 1),
|
||||
4, -3, 4,
|
||||
new ItemStack(Config.thaumiumGrafter))
|
||||
.setPages(new ResearchPage[] { new ResearchPage(getResearchPage("MB_Grafter.1")), new ResearchPage(thaumGrafter) })
|
||||
ResearchItem thaumiumGrafterR = new ResearchItem("MB_Grafter", category, new AspectList().add(Aspect.TOOL, 2).add(Aspect.TREE, 1).add(Aspect.GREED, 1),
|
||||
-2, -1, 4,
|
||||
new ItemStack(Config.thaumiumGrafter))
|
||||
.setPages(getResearchPage("MB_Grafter.1"), new ResearchPage((IArcaneRecipe)thaumGrafter) )
|
||||
.setParents("MB_Scoop")
|
||||
.registerResearchItem();
|
||||
|
||||
ResearchItem frameMagicR = new ResearchItem("MB_FrameMagic", category, new AspectList().add(Aspect.TOOL, 2).add(Aspect.ARMOR, 1),
|
||||
-2, 1, 2,
|
||||
new ItemStack(Config.hiveFrameMagic))
|
||||
.setPages(getResearchPage("MB_FrameMagic"), new ResearchPage((IArcaneRecipe)frameMagic) )
|
||||
.registerResearchItem();
|
||||
|
||||
input = new ItemStack(Config.hiveFrameMagic);
|
||||
list = new ArrayList<Object>(2);
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE));
|
||||
list.add(input);
|
||||
recipe = new ShapelessRecipes(new ItemStack(Config.hiveFrameGentle), list);
|
||||
|
||||
ResearchItem essenceFalseLifeR = new ResearchItem("MB_EssenceLife", category, new AspectList().add(Aspect.LIFE, 2).add(Aspect.MAGIC, 1),
|
||||
2, -1, 2,
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE))
|
||||
.setPages(getResearchPage("MB_EssenceLife.1"), new ResearchPage((RecipeCrucible)essenceLife), new ResearchPage(recipe) )
|
||||
.setParentsHidden("CRUCIBLE")
|
||||
.registerResearchItem();
|
||||
|
||||
list = new ArrayList<Object>(2);
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.ESSENCE_EVERLASTING_DURABILITY));
|
||||
list.add(input);
|
||||
recipe = new ShapelessRecipes(new ItemStack(Config.hiveFrameResilient), list);
|
||||
|
||||
ResearchItem essenceDurabilityR = new ResearchItem("MB_EssenceArmor", category, new AspectList().add(Aspect.ARMOR, 1),
|
||||
5, 0, 3,
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_EVERLASTING_DURABILITY))
|
||||
.setPages(getResearchPage("MB_EssenceArmor.1"), new ResearchPage((RecipeCrucible)essenceArmor), new ResearchPage(recipe) )
|
||||
.setParents("MB_EssenceLife")
|
||||
.registerResearchItem();
|
||||
|
||||
list = new ArrayList<Object>(2);
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.ESSENCE_FICKLE_PERMANENCE));
|
||||
list.add(input);
|
||||
recipe = new ShapelessRecipes(new ItemStack(Config.hiveFrameMetabolic), list);
|
||||
|
||||
ResearchItem essenceUnstableR = new ResearchItem("MB_EssenceUnstable", category, new AspectList().add(Aspect.ENTROPY, 2).add(Aspect.ORDER, 1),
|
||||
3, 1, 4,
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_FICKLE_PERMANENCE))
|
||||
.setPages(getResearchPage("MB_EssenceUnstable.1"), new ResearchPage((RecipeCrucible)essenceUnstableA),
|
||||
new ResearchPage((RecipeCrucible)essenceUnstableB), new ResearchPage(recipe) )
|
||||
.setParents("MB_EssenceLife")
|
||||
.setConcealed()
|
||||
.registerResearchItem();
|
||||
|
||||
list = new ArrayList<Object>(2);
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.ESSENCE_SHALLOW_GRAVE));
|
||||
list.add(input);
|
||||
recipe = new ShapelessRecipes(new ItemStack(Config.hiveFrameNecrotic), list);
|
||||
|
||||
ResearchItem essenceShallowGraveR = new ResearchItem("MB_EssenceDeath", category, new AspectList().add(Aspect.DEATH, 2).add(Aspect.MAGIC, 1),
|
||||
2, 3, 2,
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_SHALLOW_GRAVE))
|
||||
.setPages(getResearchPage("MB_EssenceDeath.1"), new ResearchPage((RecipeCrucible)essenceDeath), new ResearchPage(recipe) )
|
||||
.setParents("MB_EssenceUnstable")
|
||||
.setConcealed()
|
||||
.registerResearchItem();
|
||||
|
||||
list = new ArrayList<Object>(2);
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.ESSENCE_LOST_TIME));
|
||||
list.add(input);
|
||||
recipe = new ShapelessRecipes(new ItemStack(Config.hiveFrameTemporal), list);
|
||||
|
||||
ResearchItem essenceTimeR = new ResearchItem("MB_EssenceTime", category, new AspectList().add(Aspect.TRAP, 2).add(Aspect.VOID, 1),
|
||||
0, 2, 5,
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_LOST_TIME))
|
||||
.setPages(getResearchPage("MB_EssenceTime.1"), new ResearchPage((RecipeCrucible)essenceTime), new ResearchPage(recipe) )
|
||||
.setParents("MB_EssenceUnstable")
|
||||
.setConcealed()
|
||||
.registerResearchItem();
|
||||
|
||||
ResearchItem singularityR = new ResearchItem("MB_DimensionalSingularity", category, new AspectList().add(Aspect.ELDRITCH, 2).add(Aspect.VOID, 1),
|
||||
-1, 4, 5,
|
||||
Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY))
|
||||
.setPages(getResearchPage("MB_DimensionalSingularity.1"), new ResearchPage((RecipeCrucible)singularity) )
|
||||
.setParents("MB_FrameMagic", "MB_EssenceTime", "MB_EssenceDeath")
|
||||
.setConcealed()
|
||||
.setSpecial()
|
||||
.registerResearchItem();
|
||||
|
||||
list = new ArrayList<Object>(2);
|
||||
list.add(Config.miscResources.getStackForType(ResourceType.ESSENCE_SCORNFUL_OBLIVION));
|
||||
list.add(forestry.api.core.ItemInterface.getItem("frameProven"));
|
||||
recipe = new ShapelessRecipes(new ItemStack(Config.hiveFrameOblivion), list);
|
||||
|
||||
ResearchItem essenceOblivionR = new ResearchItem("MB_EssenceOblivion", category, new AspectList().add(Aspect.VOID, 2).add(Aspect.HUNGER, 1),
|
||||
-3, 3, 5,
|
||||
Config.miscResources.getStackForType(ResourceType.ESSENCE_SCORNFUL_OBLIVION))
|
||||
.setPages(getResearchPage("MB_EssenceOblivion.1"), new ResearchPage((RecipeCrucible)essenceOblivion), new ResearchPage(recipe) )
|
||||
.setParents("MB_DimensionalSingularity")
|
||||
.setConcealed()
|
||||
.registerResearchItem();
|
||||
}
|
||||
|
||||
private static String getResearchPage(String ident)
|
||||
private static ResearchPage getResearchPage(String ident)
|
||||
{
|
||||
// Helps get around all the stupid XML Doctype restrictions.
|
||||
return LocalizationManager.getLocalizedString("tc.research_page." + ident)
|
||||
return new ResearchPage(LocalizationManager.getLocalizedString("tc.research_page." + ident)
|
||||
.replaceAll("##lineBreak##", "<BR>")
|
||||
.replaceAll("##horizontalRule##", "<LINE>")
|
||||
.replaceAll("##img##", "<IMG>")
|
||||
.replaceAll("##/img##", "</IMG>");
|
||||
.replaceAll("##/img##", "</IMG>"));
|
||||
}
|
||||
|
||||
private static void setupItemAspects()
|
||||
@@ -400,14 +566,15 @@ public class ThaumcraftHelper
|
||||
list = new AspectList().add(Aspect.SLIME, 1);
|
||||
item = forestry.api.core.ItemInterface.getItem("propolis");
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, ForestryHelper.Propolis.NORMAL.ordinal(), list);
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, ForestryHelper.Propolis.SILKY.ordinal(), list.copy().add(Aspect.SLIME, 1));
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, ForestryHelper.Propolis.PULSATING.ordinal(), list.copy().add(Aspect.ELDRITCH, 1));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.AIR.ordinal(), list.copy().add(Aspect.AIR, 1));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.WATER.ordinal(), list.copy().add(Aspect.WATER, 1));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.FIRE.ordinal(), list.copy().add(Aspect.FIRE, 1));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.EARTH.ordinal(), list.copy().add(Aspect.EARTH, 1));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.ORDER.ordinal(), list.copy().add(Aspect.ORDER, 1));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.CHAOS.ordinal(), list.copy().add(Aspect.ENTROPY, 1));
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, ForestryHelper.Propolis.SILKY.ordinal(), list.copy().add(Aspect.SLIME, 2));
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, ForestryHelper.Propolis.PULSATING.ordinal(), list.copy().add(Aspect.ELDRITCH, 2));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.UNSTABLE.ordinal(), list.copy().add(Aspect.ENTROPY, 1).add(Aspect.EXCHANGE, 1));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.AIR.ordinal(), list.copy().add(Aspect.AIR, 2));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.WATER.ordinal(), list.copy().add(Aspect.WATER, 2));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.FIRE.ordinal(), list.copy().add(Aspect.FIRE, 2));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.EARTH.ordinal(), list.copy().add(Aspect.EARTH, 2));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.ORDER.ordinal(), list.copy().add(Aspect.ORDER, 2));
|
||||
ThaumcraftApi.registerObjectTag(Config.propolis.itemID, PropolisType.CHAOS.ordinal(), list.copy().add(Aspect.ENTROPY, 2));
|
||||
|
||||
list = new AspectList().add(Aspect.PLANT, 2);
|
||||
item = forestry.api.core.ItemInterface.getItem("pollen");
|
||||
@@ -438,5 +605,17 @@ public class ThaumcraftHelper
|
||||
list = new AspectList().add(Aspect.FIRE, 1).add(Aspect.TRAP, 2);
|
||||
item = forestry.api.core.ItemInterface.getItem("phosphor");
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, item.getItemDamage(), list);
|
||||
|
||||
item = Config.miscResources.getStackForType(ResourceType.ESSENCE_FALSE_LIFE);
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, item.getItemDamage(), new AspectList().add(Aspect.LIFE, 6));
|
||||
|
||||
item = Config.miscResources.getStackForType(ResourceType.ESSENCE_SHALLOW_GRAVE);
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, item.getItemDamage(), new AspectList().add(Aspect.DEATH, 6));
|
||||
|
||||
item = Config.miscResources.getStackForType(ResourceType.ESSENCE_EVERLASTING_DURABILITY);
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, item.getItemDamage(), new AspectList().add(Aspect.ARMOR, 6));
|
||||
|
||||
item = Config.miscResources.getStackForType(ResourceType.ESSENCE_LOST_TIME);
|
||||
ThaumcraftApi.registerObjectTag(item.itemID, item.getItemDamage(), new AspectList().add(Aspect.VOID, 6));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user