Compare commits

..
2 Commits
11 changed files with 295 additions and 47 deletions

No files matched your search

+2 -2
View File
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sun Jan 06 16:13:04 PST 2013
build.number=57
#Fri Jan 11 02:54:19 PST 2013
build.number=68
+2 -1
View File
@@ -17,7 +17,7 @@
<property name="mc.version" value="1.4.7"/>
<property name="forge.version" value="6.6.0.491"/>
<property name="thaumicbees.version" value="1.0.701"/>
<property name="thaumicbees.version" value="1.1.702"/>
<!-- for local deployment only, not used by main -->
<property name="deploy.type" value="previews" />
@@ -32,6 +32,7 @@
<delete dir="${clientsrc.dir}/forestry" />
<delete dir="${clientsrc.dir}/thaumcraft" />
<delete dir="${clientsrc.dir}/thaumicbees" />
<delete dir="${classes.dir}" />
</target>
<target name="forgeclean">
+29 -7
View File
@@ -1,9 +1,31 @@
1.0.0-36 - Version for Forestry 1.6.5.x beta! Wooo!
*Retooling some bee genome stuff to take advantage of new genes
*Adding extra thaumcraft tags to some forestry items
*Bees now all show up correctly in the Beealyzer Slot V
1.1.702-67 - Replaced 1.1.702-62
Additional Magic Capsules, featuring ExtraBees liquids, and RailCraft Creosote & Steam. (Yes, steam capsules. It's magic. That's how. :P)
Tagged additional Forestry items with Thaumcraft aspects.
0.9.0-35
*Fixed problem with relative paths when reading Thaumcraft configs.
1.1.702-62
Added Magic Capsules!
Compatible with BuildCraft and Forestry liquids, they function almost the same way as refactory capsules, except that they can store 2 buckets' worth of liquid. As such, you cannot right-click with them to scoop up water or lava, but you can use them in bottlers, carpenters, Railcraft's Iron Tanks, Thermal Expansion's liquid transposers, and other things that support the Forge Liquid Dictionary. They can be useful for storing larger amounts of liquids in chests and things. I am also able to add other liquids to them in the future, and liquids from mods that are not present will not appear in the Creative inventory or the NEI listings.
0.9.0-34 : Initial Release.
1.0.701-56
Update to Forestry 1.7.0.1/1.7.0.2
Added all kinds of backpack integration for Thaumcraft, including a new Thaumaturge's Backpack and Woven variety. These will suck up shards, Thaumcraft resources such as quicksilver, amber, zombie brains, research fragments and other goodies. Other TC items such as marker blocks, warded stone, candles, logs, leaves and plants also can fall into Forestry's default backpacks as appropriate. (I may have missed some other obvious items.)
1.0.70-53
Update to Forestry 1.7.0.0
1.0.0-50
-Added Thaumcraft aspects to some Forestry items, notably combs and bees. (Finally, something to use those extra drones for!)
-Added another Swarmer inducer item - craftable via carpenter using liquid honey, Royal Jelly, Pollen and Enchanting Drops from Arcane bees. 8 times more effective than Royal Jelly alone!
-Added carpenter recipe for candles using magic wax. Same patterns as with beeswax.
1.0.0-48
-Support for Forestry 1.6.5.5+
-Extra alles for bee mutations!
-Thaumcraft aspects associated with some Forestry items!
1.0.0-35
-Bugfix version to account for launcher jars located outside of expected folder. Replaced 1.0.0-34
1.0.0-34
-Initial Release
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

+1 -1
View File
@@ -5,7 +5,7 @@
"url": "http://www.minecraftforum.net/topic/1623692-thaumicbees-beekeeping-is-magic/",
"description": "Crossover mod for Forestry and Thaumcraft. Magic bees & more.",
"authors": [ "MysteriousAges" ],
"credits": "Thanks to Sengir for the Forestry help!",
"credits": "Thanks to Sengir and Azanor for awesome mods! Also thanks to Binnie and Florastar. (:",
"logoFile": "/gfx/thaumicbees/logo.png"
}
]
+181 -23
View File
@@ -1,13 +1,23 @@
package thaumicbees.item;
import java.util.List;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import forestry.api.recipes.RecipeManagers;
import thaumicbees.main.CommonProxy;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumMovingObjectType;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import net.minecraftforge.liquids.LiquidContainerData;
import net.minecraftforge.liquids.LiquidContainerRegistry;
import net.minecraftforge.liquids.LiquidDictionary;
import net.minecraftforge.liquids.LiquidStack;
public class ItemCapsule extends Item
{
@@ -27,30 +37,46 @@ public class ItemCapsule extends Item
}
}
public enum Liquids
public enum Liquid
{ // 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),
EMPTY("", "Empty", 16),
// Vanilla
WATER("water", "Water", 17),
LAVA("lava", "Lava", 18),
// Forestry
BIOMASS("biomass", "Biomass", 19),
BIOFUEL("biofuel", "Biofuel", 20),
// Buildcraft
OIL("Oil", "Oil", 21),
FUEL("Fuel", "Fuel", 22),
// More Forestry
SEEDOIL("seedoil", "Seed Oil", 23),
HONEY("honey", "Honey", 24),
JUICE("juice", "Juice", 25),
CRUSHEDICE("ice", "Crushed Ice", 26),
MILK("milk", "Milk", 27),
// ExtraBees liquids
ACID("acid", "Acid", 28),
POISON("poison", "Poison", 29),
LIQUIDNITROGEN("liquidNitrogen", "Liquid Nitrogen", 30),
DNA("liquidDNA", "Liquid DNA", 31),
// Railcraft
CREOSOTEOIL("Creosote Oil", "Creosote Oil", 32),
STEAM("Steam", "Steam", 33),
;
public String liquidId;
public String liquidID;
public String displayName;
public int iconIdx;
public boolean available = false;
private Liquids(String l, int idx)
private Liquid(String l, String display, int idx)
{
this.liquidId = l;
this.liquidID = l;
this.displayName = display;
this.iconIdx = idx;
}
}
private Type capsuleType;
public ItemCapsule(Type type, int itemId)
@@ -58,7 +84,72 @@ public class ItemCapsule extends Item
super(itemId);
this.capsuleType = type;
this.setTextureFile(CommonProxy.TCBEES_LIQUIDS_IMAGE);
this.setCreativeTab(CreativeTabs.tabMaterials);
this.setCreativeTab(CreativeTabs.tabMisc);
this.setHasSubtypes(true);
}
@Override
public String getItemDisplayName(ItemStack itemStack)
{
return Liquid.values()[itemStack.getItemDamage()].displayName + " " + this.capsuleType.name;
}
public ItemStack getCapsuleForLiquid(Liquid l)
{
return new ItemStack(this, 1, l.ordinal());
}
public void setUpLiquids()
{
ItemStack empty = new ItemStack(this, 1, 0);
ItemStack filled;
LiquidStack liquid = null;
for (Liquid l : Liquid.values())
{
switch (l)
{
case EMPTY:
liquid = null;
break;
case WATER:
liquid = new LiquidStack(Block.waterStill, this.capsuleType.capacity);
break;
case LAVA:
liquid = new LiquidStack(Block.lavaStill, this.capsuleType.capacity);
break;
default:
liquid = LiquidDictionary.getLiquid(l.liquidID, this.capsuleType.capacity);
break;
}
if (liquid != null)
{
filled = new ItemStack(this, 1, l.ordinal());
LiquidContainerRegistry.registerLiquid(new LiquidContainerData(liquid, filled, empty));
// Register with Squeezer/Bottler
RecipeManagers.bottlerManager.addRecipe(5, liquid, empty, filled);
RecipeManagers.squeezerManager.addRecipe(10, new ItemStack[] {filled} , liquid,
ItemManager.wax.getStackForType(ItemWax.WaxType.MAGIC), 20);
l.available = true;
}
}
// Empty will be set to unavailable. Obviously, it always is.
Liquid.EMPTY.available = true;
}
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(int par1, CreativeTabs tab, List itemList)
{
for (Liquid l : Liquid.values())
{
if (l.available)
{
itemList.add(new ItemStack(this, 1, l.ordinal()));
}
}
}
@Override
@@ -73,9 +164,9 @@ public class ItemCapsule extends Item
public int getIconFromDamageForRenderPass(int metadata, int pass)
{
int index = 0;
if (pass == 1)
if (pass == 0)
{
index = Liquids.values()[metadata].iconIdx;
index = Liquid.values()[metadata].iconIdx;
}
else
{
@@ -89,13 +180,80 @@ public class ItemCapsule extends Item
{
return 2;
}
@Override
/* @Override
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player)
{
MovingObjectPosition mop = this.getMovingObjectPositionFromPlayer(world, player, true);
if (mop != null && mop.typeOfHit == EnumMovingObjectType.TILE)
{
int i = mop.blockX;
int j = mop.blockY;
int k = mop.blockZ;
int targetedId = world.getBlockId(i, j, k);
int targetedMeta = world.getBlockMetadata(i, j, k);
// Check whether there is valid container for the liquid.
LiquidContainerData container = LiquidHelper.getEmptyContainer(itemStack, new LiquidStack(targetedId, 2, targetedMeta));
if (container != null)
{
// Search for a slot to stow a filled container in player's
// inventory
int slot = getMatchingItemSlot(player, container.filled);
if (slot >= 0)
{
if (player.inventory.getStackInSlot(slot) == null)
{
player.inventory.setInventorySlotContents(slot, container.filled.copy());
}
else
{
player.inventory.getStackInSlot(slot).stackSize++;
}
// Remove consumed empty container
itemStack.stackSize--;
// Notify player that his inventory has changed.
Proxies.net.inventoryChangeNotify(player);
}
}
}
return itemStack;
}
private int getMatchingItemSlot(EntityPlayer player, ItemStack itemStack)
{
int matchingSlot = -1;
int emptySlot = -1;
ItemStack[] inventory = player.inventory.mainInventory;
for (int i = 0; i < inventory.length; ++i)
{
// Check to see if this is an empty slot.
if (inventory[i] == null)
{
// Set our empty Slot counter if not already set.
if (emptySlot == -1)
{
emptySlot = i;
}
}
else
{
// See if contents of slot matches our target itemStack.
}
}
if (matchingSlot == -1)
{
matchingSlot = emptySlot;
}
return matchingSlot;
}*/
}
@@ -32,16 +32,6 @@ public class ItemManager
//----- 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 Item tcFilledJar;
@@ -70,6 +60,7 @@ public class ItemManager
ItemManager.drops = new ItemDrop(configFile.getItem("drop", itemIDBase++).getInt());
ItemManager.miscResources = new ItemMiscResources(configFile.getItem("miscResources", itemIDBase++).getInt());
// 0x8700C6 = purpleish.
BackpackDefinition def = new BackpackDefinition("thaumaturge", "Thaumaturge's Backpack", 0x8700C6);
ItemManager.thaumaturgeBackpackT1 =
BackpackManager.backpackInterface.addBackpack(configFile.getItem("thaumaturgePack1", itemIDBase++).getInt(),
@@ -77,11 +68,15 @@ public class ItemManager
ItemManager.thaumaturgeBackpackT2 =
BackpackManager.backpackInterface.addBackpack(configFile.getItem("thaumaturgePack2", itemIDBase++).getInt(),
def, EnumBackpackType.T2);
ItemManager.magicCapsule = new ItemCapsule(ItemCapsule.Type.MAGIC, configFile.getItem("magicCapsule", itemIDBase++).getInt());
}
public static void setupCrafting()
{
ItemStack inputStack; // Variable to hold forestry items
// Essentia bottles
ItemStack output = new ItemStack(tcEssentiaBottle);
output.stackSize = 8;
GameRegistry.addRecipe(output, new Object[]
@@ -99,6 +94,14 @@ public class ItemManager
'W', ItemManager.wax
});
// Magic capsules
output = new ItemStack(magicCapsule); output.stackSize = 4;
GameRegistry.addRecipe(output, new Object[]
{
"WWW",
'W', ItemManager.wax.getStackForType(ItemWax.WaxType.MAGIC)
});
output = new ItemStack(tcMiscResource, 1, ThaumcraftCompat.TCMiscResource.KNOWLEDGE_FRAGMENT.ordinal());
GameRegistry.addShapelessRecipe(output, new Object[]
{
@@ -208,5 +211,11 @@ public class ItemManager
BeeManager.inducers.put(output, 80);
}
public static void postInit()
{
// Forestry liquids aren't registered until PostInit, that's why we wait until now to register them.
ItemManager.magicCapsule.setUpLiquids();
}
}
@@ -66,7 +66,6 @@ public class ItemWax extends Item
@SideOnly(Side.CLIENT)
public void getSubItems(int id, CreativeTabs tabs, List list)
{
super.getSubItems(id, tabs, list);
for (WaxType type : WaxType.values())
{
list.add(this.getStackForType(type));
@@ -16,6 +16,7 @@ import thaumicbees.storage.BackpackDefinition;
import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.registry.GameRegistry;
import forestry.api.core.BlockInterface;
import forestry.api.core.ItemInterface;
import forestry.api.storage.BackpackManager;
@@ -142,6 +143,13 @@ public class ThaumcraftCompat
ThaumcraftApi.registerObjectTag(ItemManager.combs.itemID, ItemComb.CombType.WATERY.ordinal(), tags);
ThaumcraftApi.registerObjectTag(ItemManager.combs.itemID, ItemComb.CombType.EARTHY.ordinal(), tags);
// Tagging capsules.
tags = new ObjectTags().add(EnumTag.MAGIC, 2);
ThaumcraftApi.registerComplexObjectTag(ItemManager.magicCapsule.itemID, -1, tags);
tags = new ObjectTags().add(EnumTag.MAGIC, 2).add(EnumTag.VOID, 2);
ThaumcraftApi.registerObjectTag(ItemManager.magicCapsule.itemID, 0, tags);
// Tag some Forestry stuff.
ItemStack itemStack = ItemInterface.getItem("craftingMaterial");
tags = new ObjectTags().add(EnumTag.ELDRITCH, 1).add(EnumTag.DESTRUCTION, 1);
@@ -182,7 +190,40 @@ public class ThaumcraftCompat
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("beeswax");
tags = new ObjectTags().add(EnumTag.INSECT, 1).add(EnumTag.CONTROL, 1);
tags = new ObjectTags().add(EnumTag.INSECT, 1).add(EnumTag.CONTROL, 2);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("refractoryWax");
tags = new ObjectTags().add(EnumTag.FIRE, 3);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("phosphor");
tags = new ObjectTags().add(EnumTag.FIRE, 2).add(EnumTag.DESTRUCTION, 1);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("waxCapsule");
tags = new ObjectTags().add(EnumTag.CONTROL, 1).add(EnumTag.VOID, 1);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("waxCapsuleWater");
tags = new ObjectTags().add(EnumTag.CONTROL, 1).add(EnumTag.VOID, 1).add(EnumTag.WATER, 4);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("refractoryEmpty");
tags = new ObjectTags().add(EnumTag.FIRE, 1).add(EnumTag.CONTROL, 1).add(EnumTag.VOID, 1);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("refractoryWater");
tags = new ObjectTags().add(EnumTag.FIRE, 1).add(EnumTag.VOID, 1).add(EnumTag.WATER, 4);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("refractoryLava");
tags = new ObjectTags().add(EnumTag.VOID, 1).add(EnumTag.FIRE, 7).add(EnumTag.WATER, 1).add(EnumTag.ROCK, 2);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("canEmpty");
tags = new ObjectTags().add(EnumTag.METAL, 1).add(EnumTag.VOID, 1);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("canWater");
tags = new ObjectTags().add(EnumTag.METAL, 1).add(EnumTag.VOID, 1).add(EnumTag.WATER, 4);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("canLava");
tags = new ObjectTags().add(EnumTag.METAL, 1).add(EnumTag.VOID, 1).add(EnumTag.FIRE, 6).add(EnumTag.WATER, 1).add(EnumTag.ROCK, 2);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("beeComb");
@@ -196,6 +237,21 @@ public class ThaumcraftCompat
itemStack = ItemManager.combs.getStackForType(CombType.STARK);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
// Forestry's wood
itemStack = BlockInterface.getBlock("log1");
tags = new ObjectTags().add(EnumTag.WOOD, 8);
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, -1, tags);
itemStack = BlockInterface.getBlock("log2"); // Same tags
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, -1, tags);
itemStack = BlockInterface.getBlock("log3"); // Same tags.
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, -1, tags);
itemStack = BlockInterface.getBlock("log4"); // Still same tags.
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, -1, tags);
itemStack = ItemInterface.getItem("sapling");
tags = new ObjectTags().add(EnumTag.PLANT, 4).add(EnumTag.WOOD, 2);
ThaumcraftApi.registerComplexObjectTag(itemStack.itemID, -1, tags);
// BEES!
itemStack = ItemInterface.getItem("beeDroneGE");
tags = new ObjectTags().add(EnumTag.INSECT, 1).add(EnumTag.FLIGHT, 2);
@@ -84,6 +84,9 @@ public class ThaumicBees
@Mod.PostInit
public void postInit(FMLPostInitializationEvent event)
{
// Item Manager has a couple tasks left to it at this point...
ItemManager.postInit();
// Forestry has init'd by this point.
MinecraftForge.EVENT_BUS.register(this);
}
@@ -9,6 +9,6 @@ public class VersionInfo
public static final String Logo = "/gfx/thaumicbees/logo.png";
public static final String Depends = "required-after:Forestry@[1.7.0.1,);required-after:Thaumcraft@[3.0.1c,)";
public static final String Depends = "required-after:Forestry@[1.7.0.2,);required-after:Thaumcraft@[3.0.1c,)";
}