mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-27 23:45:37 +00:00
Some new items, added TC tags to a bunch of stuff.
Adding source PDFs for items to repo.
This commit is contained in:
1 parent
e40ac6b1e3
commit
25024fc91f
15 files changed
+220
-19
No files matched your search
File renamed without changes.
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
#Build Number for ANT. Do not edit!
|
||||
#Sun Dec 30 19:33:53 PST 2012
|
||||
build.number=37
|
||||
#Tue Jan 01 04:03:48 PST 2013
|
||||
build.number=50
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<property name="forge.dir" value="${build.dir}/forge" />
|
||||
<property name="mcp.dir" value="${forge.dir}/mcp" />
|
||||
<property name="forestry.dir" value="ForestryApi-1.6.4" />
|
||||
<property name="forestry.dir" value="Forestry/forestry_common/core" />
|
||||
<property name="thaumcraft.dir" value="Thaumcraft" />
|
||||
<property name="extrabiomes.dir" value="ExtraBiomes" />
|
||||
|
||||
@@ -120,23 +120,24 @@
|
||||
<include name="**/thaumicbees/**" />
|
||||
<include name="**/forestry/api/**" />
|
||||
<include name="**/forestry/plugins/**" />
|
||||
|
||||
<exclude name="**/thaumcraft/**" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- Copy Forestry resources -->
|
||||
<!-- Copy ThaumicBees resources -->
|
||||
<copy todir="${classes.dir}/client">
|
||||
<fileset dir="${src.dir}/thaumicbees_res">
|
||||
<exclude name="build.xml"/>
|
||||
<exclude name="build.number"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<!-- Copy localizations -->
|
||||
<copy todir="${classes.dir}/client">
|
||||
<!-- Copy localizations (We have none yet.) -->
|
||||
<!--<copy todir="${classes.dir}/client">
|
||||
<fileset dir="${lang.dir}">
|
||||
<exclude name="README.md"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</copy>-->
|
||||
</target>
|
||||
|
||||
<!-- Package the jars -->
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 5.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -22,6 +22,7 @@ import thaumicbees.bees.genetics.BeeMutation;
|
||||
import thaumicbees.bees.genetics.BeeSpecies;
|
||||
import thaumicbees.item.ItemManager;
|
||||
import thaumicbees.item.ItemComb.CombType;
|
||||
import thaumicbees.item.ItemDrop.DropType;
|
||||
import thaumicbees.item.ItemMiscResources.ResourceType;
|
||||
import thaumicbees.main.ThaumicBees;
|
||||
|
||||
@@ -109,6 +110,7 @@ public class ThaumicBeesPlugin implements IPlugin
|
||||
0xd242df, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
true, hideSpecies, true, true);
|
||||
Allele.Arcane.addProduct(ItemManager.combs.getStackForType(CombType.OCCULT), 30);
|
||||
Allele.Arcane.addSpecialty(ItemManager.drops.getStackForType(DropType.ENCHANTED, 1), 5);
|
||||
Allele.Arcane.setGenome(BeeGenomeManager.getTemplateArcane());
|
||||
occult.addMemberSpecies(Allele.Arcane);
|
||||
breedingMgr.registerBeeTemplate(Allele.Arcane.getGenome());
|
||||
@@ -186,7 +188,7 @@ public class ThaumicBeesPlugin implements IPlugin
|
||||
Allele.Stark.setGenome(BeeGenomeManager.getTemplateStark());
|
||||
breedingMgr.registerBeeTemplate(Allele.Stark.getGenome());
|
||||
|
||||
IClassification magical = AlleleManager.alleleRegistry.createAndRegisterClassification(EnumClassLevel.GENUS, "", "");
|
||||
IClassification magical = AlleleManager.alleleRegistry.createAndRegisterClassification(EnumClassLevel.GENUS, "thaumis", "Thaumis");
|
||||
magical.setParent(familyBee);
|
||||
|
||||
Allele.Air = new BeeSpecies("Aura", "They move like the wind itself, making observers feel like slackers.|Apinomicon",
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
package thaumicbees.item;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import thaumicbees.main.CommonProxy;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemCapsule extends Item
|
||||
{
|
||||
public enum Type
|
||||
{
|
||||
MAGIC("Magic Capsule", 2000, 0),
|
||||
;
|
||||
public String name;
|
||||
public int capacity;
|
||||
public int iconIdx;
|
||||
|
||||
private Type(String n, int c, int idx)
|
||||
{
|
||||
this.name = n;
|
||||
this.capacity = c;
|
||||
this.iconIdx = idx;
|
||||
}
|
||||
}
|
||||
|
||||
public enum Liquids
|
||||
{ // Incidentally, Item meta is the liquid ID.
|
||||
EMPTY("", 16),
|
||||
WATER("water", 17),
|
||||
LAVA("lava", 18),
|
||||
BIOMASS("biomass", 19),
|
||||
BIOFUEL("biofuel", 20),
|
||||
OIL("oil", 21),
|
||||
FUEL("fuel", 22),
|
||||
SEEDOIL("seedoil", 23),
|
||||
HONEY("honey", 24),
|
||||
JUICE("juice", 25),
|
||||
MILK("milk", 26),
|
||||
;
|
||||
public String liquidId;
|
||||
public int iconIdx;
|
||||
|
||||
private Liquids(String l, int idx)
|
||||
{
|
||||
this.liquidId = l;
|
||||
this.iconIdx = idx;
|
||||
}
|
||||
}
|
||||
|
||||
private Type capsuleType;
|
||||
|
||||
public ItemCapsule(Type type, int itemId)
|
||||
{
|
||||
super(itemId);
|
||||
this.capsuleType = type;
|
||||
this.setTextureFile(CommonProxy.TCBEES_LIQUIDS_IMAGE);
|
||||
this.setCreativeTab(CreativeTabs.tabMaterials);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean requiresMultipleRenderPasses()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getIconFromDamageForRenderPass(int metadata, int pass)
|
||||
{
|
||||
int index = 0;
|
||||
if (pass == 1)
|
||||
{
|
||||
index = Liquids.values()[metadata].iconIdx;
|
||||
}
|
||||
else
|
||||
{
|
||||
index = capsuleType.iconIdx;
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderPasses(int metadata)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player)
|
||||
{
|
||||
return itemStack;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package thaumicbees.item;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import thaumicbees.item.ItemComb.CombType;
|
||||
import thaumicbees.item.ItemDrop.DropType;
|
||||
import thaumicbees.item.ItemMiscResources.ResourceType;
|
||||
import thaumicbees.item.ItemPropolis.PropolisType;
|
||||
import thaumicbees.item.ItemWax.WaxType;
|
||||
@@ -11,6 +12,8 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.Configuration;
|
||||
import net.minecraftforge.common.Property;
|
||||
import net.minecraftforge.liquids.LiquidStack;
|
||||
import forestry.api.apiculture.BeeManager;
|
||||
import forestry.api.core.BlockInterface;
|
||||
import forestry.api.core.ItemInterface;
|
||||
import forestry.api.recipes.*;
|
||||
|
||||
@@ -21,6 +24,19 @@ public class ItemManager
|
||||
public static ItemPropolis propolis;
|
||||
public static ItemDrop drops;
|
||||
public static ItemMiscResources miscResources;
|
||||
|
||||
//----- Liquid Capsules --------------------
|
||||
public static ItemCapsule magicCapsule;
|
||||
public static ItemCapsule magicCapsuleWater;
|
||||
public static ItemCapsule magicCapsuleLava;
|
||||
public static ItemCapsule magicCapsuleBiomass;
|
||||
public static ItemCapsule magicCapsuleBiofuel;
|
||||
public static ItemCapsule magicCapsuleOil;
|
||||
public static ItemCapsule magicCapsuleFuel;
|
||||
public static ItemCapsule magicCapsuleSeedOil;
|
||||
public static ItemCapsule magicCapsuleHoney;
|
||||
public static ItemCapsule magicCapsuleJuice;
|
||||
public static ItemCapsule magicCapsuleIce;
|
||||
|
||||
//----- Thaumcraft Items -------------------
|
||||
public static ItemStack quicksilver;
|
||||
@@ -88,7 +104,7 @@ public class ItemManager
|
||||
new int[] { 80, 20, 5 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(25, ItemManager.combs.getStackForType(CombType.STARK),
|
||||
new ItemStack[] {ItemInterface.getItem("beeswax"), ItemManager.wax.getStackForType(WaxType.MAGIC), ItemManager.propolis.getStackForType(PropolisType.STARK) },
|
||||
new int[] { 10, 95, 5 });
|
||||
new int[] { 10, 95, 15 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(25, ItemManager.combs.getStackForType(CombType.AIRY),
|
||||
new ItemStack[] {ItemManager.wax.getStackForType(WaxType.MAGIC), ItemManager.propolis.getStackForType(PropolisType.AIR) },
|
||||
new int[] { 100, 65 });
|
||||
@@ -103,25 +119,58 @@ public class ItemManager
|
||||
new int[] { 100, 65 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(25, ItemManager.propolis.getStackForType(PropolisType.STARK),
|
||||
new ItemStack[] {ItemManager.dullShard},
|
||||
new int[] { 25 });
|
||||
new int[] { 20 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(25, ItemManager.propolis.getStackForType(PropolisType.AIR),
|
||||
new ItemStack[] {ItemManager.airShard},
|
||||
new int[] { 25 });
|
||||
new int[] { 18 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(25, ItemManager.propolis.getStackForType(PropolisType.FIRE),
|
||||
new ItemStack[] {ItemManager.fireShard},
|
||||
new int[] { 25 });
|
||||
new int[] { 18 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(25, ItemManager.propolis.getStackForType(PropolisType.WATER),
|
||||
new ItemStack[] {ItemManager.waterShard},
|
||||
new int[] { 25 });
|
||||
new int[] { 18 });
|
||||
RecipeManagers.centrifugeManager.addRecipe(25, ItemManager.propolis.getStackForType(PropolisType.EARTH),
|
||||
new ItemStack[] {ItemManager.earthShard},
|
||||
new int[] { 25 });
|
||||
new int[] { 18 });
|
||||
|
||||
// Squeezer recipes
|
||||
RecipeManagers.squeezerManager.addRecipe(20, new ItemStack[] {ItemManager.propolis.getStackForType(PropolisType.FIRE) },
|
||||
new LiquidStack(Block.lavaStill, 250), ItemManager.fireShard, 15);
|
||||
RecipeManagers.squeezerManager.addRecipe(20, new ItemStack[] {ItemManager.propolis.getStackForType(PropolisType.WATER) },
|
||||
new LiquidStack(Block.waterStill, 1000), ItemManager.waterShard, 25);
|
||||
|
||||
// Carpenter recipes
|
||||
output = BlockInterface.getBlock("candle");
|
||||
output.stackSize = 24;
|
||||
RecipeManagers.carpenterManager.addRecipe(30, new LiquidStack(Block.waterStill, 600), null, output, new Object[] {
|
||||
" S ", "WWW", "WWW",
|
||||
'W', ItemManager.wax,
|
||||
'S', Item.silk });
|
||||
output = BlockInterface.getBlock("candle");
|
||||
output.stackSize = 6;
|
||||
ItemStack inputStack = ItemInterface.getItem("craftingMaterial");
|
||||
inputStack.setItemDamage(2); // Set to Silk Wisp
|
||||
RecipeManagers.carpenterManager.addRecipe(30, new LiquidStack(Block.waterStill, 600), null, output, new Object[] {
|
||||
"WSW",
|
||||
'W', ItemManager.wax,
|
||||
'S', inputStack });
|
||||
|
||||
output = ItemManager.miscResources.getStackForType(ResourceType.AROMATIC_LUMP, 2);
|
||||
RecipeManagers.carpenterManager.addRecipe(30, new LiquidStack(ItemInterface.getItem("liquidHoney").itemID, 1000), null, output, new Object[] {
|
||||
" P ", "JDJ", " P ",
|
||||
'P', ItemInterface.getItem("pollen"),
|
||||
'J', ItemInterface.getItem("royalJelly"),
|
||||
'D', ItemManager.drops.getStackForType(DropType.ENCHANTED)
|
||||
});
|
||||
RecipeManagers.carpenterManager.addRecipe(30, new LiquidStack(ItemInterface.getItem("liquidHoney").itemID, 1000), null, output, new Object[] {
|
||||
" J ", "PDP", " J ",
|
||||
'P', ItemInterface.getItem("pollen"),
|
||||
'J', ItemInterface.getItem("royalJelly"),
|
||||
'D', ItemManager.drops.getStackForType(DropType.ENCHANTED)
|
||||
});
|
||||
// Make Aromatic Lumps a swarmer inducer. Chance is /1000.
|
||||
BeeManager.inducers.put(output, 80);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,6 +16,7 @@ public class ItemMiscResources extends Item
|
||||
public enum ResourceType
|
||||
{
|
||||
KNOWLEDGE_FRAGMENT("Lore Fragment", 2),
|
||||
AROMATIC_LUMP("Aromatic Lump", 3),
|
||||
;
|
||||
|
||||
private ResourceType(String n, int i)
|
||||
@@ -30,7 +31,7 @@ public class ItemMiscResources extends Item
|
||||
public ItemMiscResources(int ID)
|
||||
{
|
||||
super(ID);
|
||||
this.setTextureFile(CommonProxy.TCBEES_ITEMSPNG);
|
||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
||||
this.setCreativeTab(CreativeTabs.tabMaterials);
|
||||
this.setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public class ItemWax extends Item
|
||||
public ItemWax(int itemID)
|
||||
{
|
||||
super(itemID);
|
||||
this.setTextureFile(CommonProxy.TCBEES_ITEMSPNG);
|
||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
||||
this.setCreativeTab(CreativeTabs.tabMisc);
|
||||
this.setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,8 @@ public class ClientProxy extends CommonProxy
|
||||
public void preloadTextures()
|
||||
{
|
||||
// Preload the TCBees items file
|
||||
MinecraftForgeClient.preloadTexture(TCBEES_ITEMSPNG);
|
||||
MinecraftForgeClient.preloadTexture(TCBEES_ITEMS_IMAGE);
|
||||
MinecraftForgeClient.preloadTexture(TCBEES_LIQUIDS_IMAGE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -8,12 +8,13 @@ public class CommonProxy
|
||||
{
|
||||
public static final String TCBEES_GFX = "/gfx/thaumicbees/";
|
||||
public static final String TCBEES_RESEARCH = "/research/thaumicbees/";
|
||||
public static final String TCBEES_ITEMS = TCBEES_GFX + "items/";
|
||||
public static final String TCBEES_ITEM_GFX = TCBEES_GFX + "items/";
|
||||
|
||||
public static String FORESTRY_GFX_ITEMS;
|
||||
public static String FORESTRY_GFX_BEEEFFECTS;
|
||||
|
||||
public static final String TCBEES_ITEMSPNG = TCBEES_ITEMS + "items.png";
|
||||
public static final String TCBEES_ITEMS_IMAGE = TCBEES_ITEM_GFX + "items.png";
|
||||
public static final String TCBEES_LIQUIDS_IMAGE = TCBEES_ITEM_GFX + "liquids.png";
|
||||
|
||||
public CommonProxy() { }
|
||||
|
||||
|
||||
@@ -112,5 +112,50 @@ public class ThaumcraftCompat
|
||||
// 5: "iceShard";
|
||||
tags = new ObjectTags().add(EnumTag.COLD, 1);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, 5, tags);
|
||||
|
||||
itemStack = ItemInterface.getItem("apatite");
|
||||
tags = new ObjectTags().add(EnumTag.CRYSTAL, 2);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
||||
|
||||
itemStack = ItemInterface.getItem("impregnatedCasing");
|
||||
tags = new ObjectTags().add(EnumTag.WOOD, 58).add(EnumTag.PLANT, 8);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
||||
|
||||
itemStack = ItemInterface.getItem("stickImpregnated");
|
||||
tags = new ObjectTags().add(EnumTag.WOOD, 8).add(EnumTag.PLANT, 2);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
||||
|
||||
itemStack = ItemInterface.getItem("peat");
|
||||
tags = new ObjectTags().add(EnumTag.POWER, 2).add(EnumTag.PLANT, 1).add(EnumTag.EARTH, 1);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
||||
|
||||
itemStack = ItemInterface.getItem("ash");
|
||||
tags = new ObjectTags().add(EnumTag.DESTRUCTION, 1).add(EnumTag.EXCHANGE, 1);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
||||
|
||||
itemStack = ItemInterface.getItem("honeyDrop");
|
||||
tags = new ObjectTags().add(EnumTag.EXCHANGE, 2).add(EnumTag.LIFE, 1);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
||||
|
||||
itemStack = ItemInterface.getItem("beeswax");
|
||||
tags = new ObjectTags().add(EnumTag.INSECT, 1).add(EnumTag.CONTROL, 1);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
|
||||
|
||||
itemStack = ItemInterface.getItem("beeComb");
|
||||
tags = new ObjectTags().add(EnumTag.INSECT, 2).add(EnumTag.TRAP, 2);
|
||||
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags); // ALL combs plox.
|
||||
|
||||
// BEES!
|
||||
itemStack = ItemInterface.getItem("beeDroneGE");
|
||||
tags = new ObjectTags().add(EnumTag.INSECT, 1).add(EnumTag.FLIGHT, 2);
|
||||
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, -1, tags); // All drones
|
||||
|
||||
tags = new ObjectTags(itemStack.itemID, -1).add(EnumTag.VALUABLE, 4);
|
||||
itemStack = ItemInterface.getItem("beePrincessGE");
|
||||
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, -1, tags); // All princesses.
|
||||
|
||||
tags = new ObjectTags().add(EnumTag.VALUABLE, 8).add(EnumTag.INSECT, 2).add(EnumTag.FLIGHT, 4);
|
||||
itemStack = ItemInterface.getItem("beeQueenGE");
|
||||
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, -1, tags); //All queens.
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user