From 783a04331007e383ce8cfbe39c4adaef0bd83910 Mon Sep 17 00:00:00 2001 From: mDiyo Date: Sun, 8 Dec 2013 19:03:59 -0800 Subject: [PATCH] All hostile mobs drop miniature red hearts, empty canisters can be crafted with tin ingots --- src/tconstruct/TConstruct.java | 2 +- src/tconstruct/common/TContent.java | 3 ++- src/tconstruct/util/TEventHandler.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tconstruct/TConstruct.java b/src/tconstruct/TConstruct.java index 892fb7d5..198b3d10 100644 --- a/src/tconstruct/TConstruct.java +++ b/src/tconstruct/TConstruct.java @@ -32,7 +32,7 @@ import tconstruct.worldgen.village.*; * @author mDiyo */ -@Mod(modid = "TConstruct", name = "TConstruct", version = "1.6.X_1.5.1.3", dependencies = "required-after:Forge@[8.9,);after:ForgeMultipart;after:MineFactoryReloaded;after:NotEnoughItems;after:Waila;after:ThermalExpansion") +@Mod(modid = "TConstruct", name = "TConstruct", version = "1.6.X_1.5.2.1", dependencies = "required-after:Forge@[8.9,);after:ForgeMultipart;after:MineFactoryReloaded;after:NotEnoughItems;after:Waila;after:ThermalExpansion") @NetworkMod(serverSideRequired = false, clientSideRequired = true, channels = { "TConstruct" }, packetHandler = tconstruct.util.network.TPacketHandler.class) public class TConstruct { diff --git a/src/tconstruct/common/TContent.java b/src/tconstruct/common/TContent.java index 823edeb1..4d00d23b 100644 --- a/src/tconstruct/common/TContent.java +++ b/src/tconstruct/common/TContent.java @@ -765,7 +765,7 @@ public class TContent implements IFuelHandler bloodChannel = new ConveyorBase(PHConstruct.bloodChannel, Material.water, "liquid_cow").setHardness(0.3f).setStepSound(slimeStep).setUnlocalizedName("blood.channel"); GameRegistry.registerBlock(bloodChannel, "blood.channel"); - TConstructRegistry.drawbridgeState[slimeChannel.blockID] = 1; + TConstructRegistry.drawbridgeState[bloodChannel.blockID] = 1; slimePad = new SlimePad(PHConstruct.slimePad, Material.cloth).setStepSound(slimeStep).setHardness(0.3f).setUnlocalizedName("slime.pad"); GameRegistry.registerBlock(slimePad, "slime.pad"); @@ -1375,6 +1375,7 @@ public class TContent implements IFuelHandler GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(heartCanister, 1, 0), "##", "##", '#', "ingotAluminum")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(heartCanister, 1, 0), "##", "##", '#', "ingotAluminium")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(heartCanister, 1, 0), "##", "##", '#', "ingotNaturalAluminum")); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(heartCanister, 1, 0), "##", "##", '#', "ingotTin")); GameRegistry.addRecipe(new ItemStack(diamondApple), " d ", "d#d", " d ", 'd', new ItemStack(Item.diamond), '#', new ItemStack(Item.appleRed)); GameRegistry.addShapelessRecipe(new ItemStack(heartCanister, 1, 2), new ItemStack(diamondApple), new ItemStack(materials, 1, 8), new ItemStack(heartCanister, 1, 0), new ItemStack( heartCanister, 1, 1)); diff --git a/src/tconstruct/util/TEventHandler.java b/src/tconstruct/util/TEventHandler.java index 2a76b4e7..e0feab50 100644 --- a/src/tconstruct/util/TEventHandler.java +++ b/src/tconstruct/util/TEventHandler.java @@ -276,7 +276,7 @@ public class TEventHandler } } - if (random.nextInt(500) == 0 && event.entityLiving instanceof IMob && event.entityLiving.dimension == 0) + if (random.nextInt(500) == 0 && event.entityLiving instanceof IMob) { ItemStack dropStack = new ItemStack(TContent.heartCanister, 1, 1); EntityItem entityitem = new EntityItem(event.entityLiving.worldObj, event.entityLiving.posX, event.entityLiving.posY, event.entityLiving.posZ, dropStack);