diff --git a/mods/tinker/resources/lang/en_US.xml b/mods/tinker/resources/lang/en_US.xml
index d5ad141d..8f3f795d 100644
--- a/mods/tinker/resources/lang/en_US.xml
+++ b/mods/tinker/resources/lang/en_US.xml
@@ -74,6 +74,8 @@
Aluminum Oreberry
Silver Oreberry
+ Spawn
+
Paper Stack
Slime Crystal
Seared Brick
@@ -165,15 +167,18 @@
Liquid Damascus Steel
Liquid Angmallen
+ Jeweled Apple
Gelatinous Slime
Empty Canister
- Heart Container
+ Miniature Red Heart
+ Heart Canister
Casting Table
Seared Faucet
Casting Basin
Blue Slime
+ King Slime
Nitro Creeper
Blue Slime
Nitro Creeper
diff --git a/mods/tinker/tconstruct/TConstruct.java b/mods/tinker/tconstruct/TConstruct.java
index 163b919d..8c54ae97 100644
--- a/mods/tinker/tconstruct/TConstruct.java
+++ b/mods/tinker/tconstruct/TConstruct.java
@@ -37,7 +37,7 @@ import cpw.mods.fml.common.registry.VillagerRegistry;
* @dependencies: IC2 API
*/
-@Mod(modid = "TConstruct", name = "TConstruct", version = "1.5.1_1.3.dev.43", dependencies = "required-after:Forge@[7.7.1.675,)")
+@Mod(modid = "TConstruct", name = "TConstruct", version = "1.5.1_1.3.dev.48", dependencies = "required-after:Forge@[7.7.1.675,)")
@NetworkMod(serverSideRequired = false, clientSideRequired = true, channels = { "TConstruct" }, packetHandler = mods.tinker.tconstruct.util.network.TPacketHandler.class)
public class TConstruct
{
diff --git a/mods/tinker/tconstruct/blocks/logic/RedwireLogic.java b/mods/tinker/tconstruct/blocks/logic/RedwireLogic.java
index 2d76d6c1..0825849d 100644
--- a/mods/tinker/tconstruct/blocks/logic/RedwireLogic.java
+++ b/mods/tinker/tconstruct/blocks/logic/RedwireLogic.java
@@ -1,9 +1,73 @@
package mods.tinker.tconstruct.blocks.logic;
+import mods.tinker.tconstruct.library.util.CoordTuple;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.network.INetworkManager;
+import net.minecraft.network.packet.Packet;
+import net.minecraft.network.packet.Packet132TileEntityData;
import net.minecraft.tileentity.TileEntity;
public class RedwireLogic extends TileEntity
{
byte facesUsed;
byte type;
+ byte distanceTravelled;
+ byte maxDistance;
+
+ public void readCustomNBT (NBTTagCompound tags)
+ {
+ /*hasMaster = tags.getBoolean("HasMaster");
+ if (hasMaster)
+ {
+ int xCenter = tags.getInteger("xCenter");
+ int yCenter = tags.getInteger("yCenter");
+ int zCenter = tags.getInteger("zCenter");
+ master = new CoordTuple(xCenter, yCenter, zCenter);
+ masterID = tags.getShort("MasterID");
+ masterMeat = tags.getByte("masterMeat");
+ }*/
+ }
+
+ public void writeCustomNBT (NBTTagCompound tags)
+ {
+ /*tags.setBoolean("HasMaster", hasMaster);
+ if (hasMaster)
+ {
+ tags.setInteger("xCenter", master.x);
+ tags.setInteger("yCenter", master.y);
+ tags.setInteger("zCenter", master.z);
+ tags.setShort("MasterID", masterID);
+ tags.setByte("masterMeat", masterMeat);
+ }*/
+ }
+
+ @Override
+ public void readFromNBT (NBTTagCompound tags)
+ {
+ super.readFromNBT(tags);
+ readCustomNBT(tags);
+ }
+
+ @Override
+ public void writeToNBT (NBTTagCompound tags)
+ {
+ super.writeToNBT(tags);
+ writeCustomNBT(tags);
+ }
+
+ /* Packets */
+ @Override
+ public Packet getDescriptionPacket ()
+ {
+ NBTTagCompound tag = new NBTTagCompound();
+ writeCustomNBT(tag);
+ return new Packet132TileEntityData(xCoord, yCoord, zCoord, 1, tag);
+ }
+
+ @Override
+ public void onDataPacket (INetworkManager net, Packet132TileEntityData packet)
+ {
+ readCustomNBT(packet.customParam1);
+ worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
+ }
}
diff --git a/mods/tinker/tconstruct/blocks/traps/Punji.java b/mods/tinker/tconstruct/blocks/traps/Punji.java
new file mode 100644
index 00000000..60b889cc
--- /dev/null
+++ b/mods/tinker/tconstruct/blocks/traps/Punji.java
@@ -0,0 +1,22 @@
+package mods.tinker.tconstruct.blocks.traps;
+
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.entity.Entity;
+import net.minecraft.world.World;
+
+public class Punji extends Block
+{
+
+ public Punji(int id)
+ {
+ super(id, Material.circuits);
+ }
+
+ @Override
+ public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity)
+ {
+ entity.fallDistance *= 2.0F;
+ }
+
+}
diff --git a/mods/tinker/tconstruct/client/TClientEvents.java b/mods/tinker/tconstruct/client/TClientEvents.java
index f57557b1..990b5c96 100644
--- a/mods/tinker/tconstruct/client/TClientEvents.java
+++ b/mods/tinker/tconstruct/client/TClientEvents.java
@@ -3,25 +3,25 @@ package mods.tinker.tconstruct.client;
import mods.tinker.tconstruct.TConstruct;
import mods.tinker.tconstruct.client.armor.WingModel;
import mods.tinker.tconstruct.common.TContent;
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.model.ModelBiped;
-import net.minecraft.client.renderer.entity.RenderPlayer;
+import net.minecraft.client.renderer.Tessellator;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
-import net.minecraftforge.client.event.RenderPlayerEvent;
+import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.client.event.TextureStitchEvent;
import net.minecraftforge.client.event.sound.SoundLoadEvent;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.liquids.LiquidStack;
-
-import org.lwjgl.opengl.GL11;
-import org.lwjgl.opengl.GL12;
-
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class TClientEvents
{
+ Minecraft mc = Minecraft.getMinecraft();
+ EntityPlayer player;
/* Sounds */
@ForgeSubscribe
public void onSound (SoundLoadEvent event)
@@ -50,6 +50,58 @@ public class TClientEvents
canon.setRenderingIcon(TContent.liquidMetalStill.getIcon(0, i));
}
}
+
+ /* Health */
+ @ForgeSubscribe
+ public void renderHealthbar (RenderGameOverlayEvent.Post event)
+ {
+ if (event.type == RenderGameOverlayEvent.ElementType.HEALTH)
+ {
+ if (player == null)
+ player = mc.thePlayer;
+
+ ScaledResolution scaledresolution = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHeight);
+ int scaledWidth = scaledresolution.getScaledWidth();
+ int scaledHeight = scaledresolution.getScaledHeight();
+ int xBasePos = scaledWidth / 2 - 91;
+ int yBasePos = scaledHeight - 39;
+ this.mc.renderEngine.bindTexture("/mods/tinker/textures/gui/newhearts.png");
+
+ int hp = player.getHealth();
+ for (int iter = 0; iter < hp / 20; iter++)
+ {
+ int renderHearts = (hp - 20*(iter+1)) / 2;
+ if (renderHearts > 10)
+ renderHearts = 10;
+ for (int i = 0; i < renderHearts; i++)
+ {
+ this.drawTexturedModalRect(xBasePos + 8*i, yBasePos, 0 + 18*iter, 0, 8, 8);
+ }
+ if (hp % 2 == 1 && renderHearts < 10)
+ {
+ this.drawTexturedModalRect(xBasePos + 8*renderHearts, yBasePos, 9 + 18*iter, 0, 8, 8);
+ }
+ }
+
+ this.mc.renderEngine.bindTexture("/gui/icons.png");
+ }
+ }
+
+
+
+ public void drawTexturedModalRect(int par1, int par2, int par3, int par4, int par5, int par6)
+ {
+ float f = 0.00390625F;
+ float f1 = 0.00390625F;
+ Tessellator tessellator = Tessellator.instance;
+ tessellator.startDrawingQuads();
+ tessellator.addVertexWithUV((double)(par1 + 0), (double)(par2 + par6), (double)this.zLevel, (double)((float)(par3 + 0) * f), (double)((float)(par4 + par6) * f1));
+ tessellator.addVertexWithUV((double)(par1 + par5), (double)(par2 + par6), (double)this.zLevel, (double)((float)(par3 + par5) * f), (double)((float)(par4 + par6) * f1));
+ tessellator.addVertexWithUV((double)(par1 + par5), (double)(par2 + 0), (double)this.zLevel, (double)((float)(par3 + par5) * f), (double)((float)(par4 + 0) * f1));
+ tessellator.addVertexWithUV((double)(par1 + 0), (double)(par2 + 0), (double)this.zLevel, (double)((float)(par3 + 0) * f), (double)((float)(par4 + 0) * f1));
+ tessellator.draw();
+ }
+ double zLevel = 0;
/* Armor */
ModelBiped model = new ModelBiped(5f);
diff --git a/mods/tinker/tconstruct/client/TProxyClient.java b/mods/tinker/tconstruct/client/TProxyClient.java
index a41b6981..3d89be1e 100644
--- a/mods/tinker/tconstruct/client/TProxyClient.java
+++ b/mods/tinker/tconstruct/client/TProxyClient.java
@@ -521,7 +521,7 @@ public class TProxyClient extends TProxyCommon
new int[] { 7, 0, 13 }, new int[] { 3, 3, 13 } //Chisel
};
- static String[] toolNames = { "Repair and Modification", "Pickaxe", "Shovel", "Axe",
+ static String[] toolNames = { "Repair and Modification", "Pickaxe", "Shovel", "Hatchet",
//"Lumber Axe",
//"Ice Axe",
"Mattock", "Broadsword", "Longsword", "Rapier", "Dagger", "Frying Pan", "Battlesign", "Chisel" };
diff --git a/mods/tinker/tconstruct/client/entity/CrystalModel.java b/mods/tinker/tconstruct/client/entity/CrystalModel.java
index 3ce753e2..4759b2f0 100644
--- a/mods/tinker/tconstruct/client/entity/CrystalModel.java
+++ b/mods/tinker/tconstruct/client/entity/CrystalModel.java
@@ -21,11 +21,11 @@ public class CrystalModel extends ModelBase
body.setRotationPoint(0F, 0F, 0F);
setRotation(body, 0, 0.7853982F, 0);
top = new ModelRendererTurbo(this, 0, 0, 32, 32);
- top.addCone(0, 0, 0, 2.8F, 4, 4, 0, ModelRendererTurbo.MR_BOTTOM, 4, 4);
+ top.addCone(0, 0, 0, 2.8F, 4, 4, 0, ModelRendererTurbo.MR_BOTTOM, 4, 8);
top.setRotationPoint(0F, -4F, 0F);
setRotation(top, 0F, 0F, 0F);
bottom = new ModelRendererTurbo(this, 0, 18, 32, 32);
- top.addCone(0, 10, 0, 2.8F, 4, 4, 0, ModelRendererTurbo.MR_TOP, 4, 4);
+ top.addCone(0, 10, 0, 2.8F, 4, 4, 0, ModelRendererTurbo.MR_TOP, 4, 8);
bottom.setRotationPoint(0F, 6F, 0F);
//setRotation(bottom, 0F, 0F, 0F);
}
diff --git a/mods/tinker/tconstruct/client/entity/SlimeRender.java b/mods/tinker/tconstruct/client/entity/SlimeRender.java
index 3b8c3fba..b39b00be 100644
--- a/mods/tinker/tconstruct/client/entity/SlimeRender.java
+++ b/mods/tinker/tconstruct/client/entity/SlimeRender.java
@@ -4,6 +4,8 @@ import mods.tinker.tconstruct.entity.BlueSlime;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.EntityLiving;
+import net.minecraft.entity.boss.BossStatus;
+import net.minecraft.entity.boss.IBossDisplayData;
import org.lwjgl.opengl.GL11;
@@ -21,6 +23,18 @@ public class SlimeRender extends RenderLiving
this.scaleAmount = par2ModelBase;
}
+ public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
+ {
+ super.doRenderLiving(par1EntityLiving, par2, par4, par6, par8, par9);
+ renderBossHealth((BlueSlime) par1EntityLiving);
+ }
+
+ public void renderBossHealth(BlueSlime slime)
+ {
+ if (slime.getSlimeSize() >= 8)
+ BossStatus.func_82824_a(slime, true);
+ }
+
/**
* Determines whether Slime Render should pass or not.
*/
diff --git a/mods/tinker/tconstruct/common/TContent.java b/mods/tinker/tconstruct/common/TContent.java
index 84474542..1ffd2a28 100644
--- a/mods/tinker/tconstruct/common/TContent.java
+++ b/mods/tinker/tconstruct/common/TContent.java
@@ -1,22 +1,102 @@
package mods.tinker.tconstruct.common;
-import mods.tinker.tconstruct.*;
-import mods.tinker.tconstruct.blocks.*;
-import mods.tinker.tconstruct.blocks.logic.*;
-import mods.tinker.tconstruct.entity.*;
-import mods.tinker.tconstruct.entity.projectile.*;
-import mods.tinker.tconstruct.items.*;
-import mods.tinker.tconstruct.items.blocks.*;
-import mods.tinker.tconstruct.items.tools.*;
-import mods.tinker.tconstruct.items.armor.*;
-import mods.tinker.tconstruct.library.*;
+import mods.tinker.tconstruct.TConstruct;
+import mods.tinker.tconstruct.blocks.EquipBlock;
+import mods.tinker.tconstruct.blocks.GravelOre;
+import mods.tinker.tconstruct.blocks.LavaTankBlock;
+import mods.tinker.tconstruct.blocks.LiquidMetalFlowing;
+import mods.tinker.tconstruct.blocks.LiquidMetalStill;
+import mods.tinker.tconstruct.blocks.MetalOre;
+import mods.tinker.tconstruct.blocks.MultiBrick;
+import mods.tinker.tconstruct.blocks.OreberryBush;
+import mods.tinker.tconstruct.blocks.SearedBlock;
+import mods.tinker.tconstruct.blocks.SmelteryBlock;
+import mods.tinker.tconstruct.blocks.SpeedBlock;
+import mods.tinker.tconstruct.blocks.StoneTorch;
+import mods.tinker.tconstruct.blocks.TConstructBlock;
+import mods.tinker.tconstruct.blocks.TMetalBlock;
+import mods.tinker.tconstruct.blocks.ToolStationBlock;
+import mods.tinker.tconstruct.blocks.logic.CastingBasinLogic;
+import mods.tinker.tconstruct.blocks.logic.CastingTableLogic;
+import mods.tinker.tconstruct.blocks.logic.FaucetLogic;
+import mods.tinker.tconstruct.blocks.logic.FrypanLogic;
+import mods.tinker.tconstruct.blocks.logic.LavaTankLogic;
+import mods.tinker.tconstruct.blocks.logic.LiquidTextureLogic;
+import mods.tinker.tconstruct.blocks.logic.MultiServantLogic;
+import mods.tinker.tconstruct.blocks.logic.PartCrafterLogic;
+import mods.tinker.tconstruct.blocks.logic.PatternChestLogic;
+import mods.tinker.tconstruct.blocks.logic.PatternShaperLogic;
+import mods.tinker.tconstruct.blocks.logic.SmelteryDrainLogic;
+import mods.tinker.tconstruct.blocks.logic.SmelteryLogic;
+import mods.tinker.tconstruct.blocks.logic.ToolStationLogic;
+import mods.tinker.tconstruct.entity.BlueSlime;
+import mods.tinker.tconstruct.entity.Crystal;
+import mods.tinker.tconstruct.entity.FancyEntityItem;
+import mods.tinker.tconstruct.entity.NitroCreeper;
+import mods.tinker.tconstruct.entity.projectile.DaggerEntity;
+import mods.tinker.tconstruct.items.CraftingItem;
+import mods.tinker.tconstruct.items.DiamondApple;
+import mods.tinker.tconstruct.items.FilledBucket;
+import mods.tinker.tconstruct.items.HeartCanister;
+import mods.tinker.tconstruct.items.Manual;
+import mods.tinker.tconstruct.items.MaterialItem;
+import mods.tinker.tconstruct.items.MetalPattern;
+import mods.tinker.tconstruct.items.OreBerries;
+import mods.tinker.tconstruct.items.Pattern;
+import mods.tinker.tconstruct.items.StrangeFood;
+import mods.tinker.tconstruct.items.TitleIcon;
+import mods.tinker.tconstruct.items.ToolPart;
+import mods.tinker.tconstruct.items.ToolShard;
+import mods.tinker.tconstruct.items.armor.TArmorBase;
+import mods.tinker.tconstruct.items.blocks.CraftedSoilItemBlock;
+import mods.tinker.tconstruct.items.blocks.GravelOreItem;
+import mods.tinker.tconstruct.items.blocks.LavaTankItemBlock;
+import mods.tinker.tconstruct.items.blocks.LiquidItemBlock;
+import mods.tinker.tconstruct.items.blocks.MetalItemBlock;
+import mods.tinker.tconstruct.items.blocks.MetalOreItemBlock;
+import mods.tinker.tconstruct.items.blocks.MultiBrickItem;
+import mods.tinker.tconstruct.items.blocks.OreberryBushItem;
+import mods.tinker.tconstruct.items.blocks.OreberryBushSecondItem;
+import mods.tinker.tconstruct.items.blocks.SearedTableItemBlock;
+import mods.tinker.tconstruct.items.blocks.SmelteryItemBlock;
+import mods.tinker.tconstruct.items.blocks.SpeedBlockItem;
+import mods.tinker.tconstruct.items.blocks.ToolStationItemBlock;
+import mods.tinker.tconstruct.items.tools.BattleSign;
+import mods.tinker.tconstruct.items.tools.Broadsword;
+import mods.tinker.tconstruct.items.tools.Chisel;
+import mods.tinker.tconstruct.items.tools.Dagger;
+import mods.tinker.tconstruct.items.tools.FryingPan;
+import mods.tinker.tconstruct.items.tools.Hatchet;
+import mods.tinker.tconstruct.items.tools.Longsword;
+import mods.tinker.tconstruct.items.tools.Mattock;
+import mods.tinker.tconstruct.items.tools.Pickaxe;
+import mods.tinker.tconstruct.items.tools.PotionLauncher;
+import mods.tinker.tconstruct.items.tools.Rapier;
+import mods.tinker.tconstruct.items.tools.Shovel;
+import mods.tinker.tconstruct.library.TConstructRegistry;
import mods.tinker.tconstruct.library.client.TConstructClientRegistry;
-import mods.tinker.tconstruct.library.crafting.*;
-import mods.tinker.tconstruct.library.tools.*;
-import mods.tinker.tconstruct.library.util.*;
-import mods.tinker.tconstruct.modifiers.*;
-import mods.tinker.tconstruct.util.*;
-
+import mods.tinker.tconstruct.library.crafting.Detailing;
+import mods.tinker.tconstruct.library.crafting.LiquidCasting;
+import mods.tinker.tconstruct.library.crafting.PatternBuilder;
+import mods.tinker.tconstruct.library.crafting.Smeltery;
+import mods.tinker.tconstruct.library.crafting.ToolBuilder;
+import mods.tinker.tconstruct.library.tools.ToolCore;
+import mods.tinker.tconstruct.library.util.IPattern;
+import mods.tinker.tconstruct.modifiers.ModAttack;
+import mods.tinker.tconstruct.modifiers.ModAutoSmelt;
+import mods.tinker.tconstruct.modifiers.ModBlaze;
+import mods.tinker.tconstruct.modifiers.ModButtertouch;
+import mods.tinker.tconstruct.modifiers.ModDurability;
+import mods.tinker.tconstruct.modifiers.ModElectric;
+import mods.tinker.tconstruct.modifiers.ModExtraModifier;
+import mods.tinker.tconstruct.modifiers.ModInteger;
+import mods.tinker.tconstruct.modifiers.ModLapis;
+import mods.tinker.tconstruct.modifiers.ModRedstone;
+import mods.tinker.tconstruct.modifiers.ModRepair;
+import mods.tinker.tconstruct.modifiers.TActiveOmniMod;
+import mods.tinker.tconstruct.util.PHConstruct;
+import mods.tinker.tconstruct.util.RecipeRemover;
+import mods.tinker.tconstruct.worldgen.OverworldProvider;
import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
@@ -26,8 +106,11 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.WeightedRandomChestContent;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.BiomeDictionary;
+import net.minecraftforge.common.ChestGenHooks;
+import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.liquids.LiquidContainerData;
import net.minecraftforge.liquids.LiquidContainerRegistry;
@@ -43,909 +126,968 @@ import cpw.mods.fml.common.registry.GameRegistry;
public class TContent implements IFuelHandler
{
- //Patterns and other materials
- public static Item blankPattern;
- public static Item materials;
- public static Item toolRod;
- public static Item toolShard;
- public static Item woodPattern;
- public static Item metalPattern;
-
- public static Item manualBook;
- public static Item buckets;
- public static Item titleIcon;
-
- public static Item strangeFood;
- //public static Item stonePattern;
- //public static Item netherPattern;
-
- //Tools
- public static ToolCore pickaxe;
- public static ToolCore shovel;
- public static ToolCore axe;
- public static ToolCore broadsword;
- public static ToolCore longsword;
- public static ToolCore rapier;
- public static ToolCore dagger;
-
- public static ToolCore frypan;
- public static ToolCore battlesign;
- public static ToolCore chisel;
- //public static ToolCore longbow;
-
- public static ToolCore mattock;
- public static ToolCore lumberaxe;
-
- public static Item potionLauncher;
-
- //Tool parts
- public static Item pickaxeHead;
- public static Item shovelHead;
- public static Item axeHead;
- public static Item binding;
-
- public static Item swordBlade;
- public static Item wideGuard;
- public static Item handGuard;
- public static Item crossbar;
- public static Item knifeBlade;
-
- public static Item frypanHead;
- public static Item signHead;
- public static Item chiselHead;
-
- public static Item lumberHead;
-
- //Crafting blocks
- public static Block toolStationWood;
- public static Block heldItemBlock;
- public static Block craftedSoil;
-
- public static Block smeltery;
- public static Block lavaTank;
- public static Block searedBlock;
- public static Block metalBlock;
-
- //Decoration
- public static Block stoneTorch;
- public static Block multiBrick;
-
- //Traps
- public static Block landmine;
-
- //InfiBlocks
- public static Block speedBlock;
-
- //Liquids
- public static Block liquidMetalFlowing;
- public static Block liquidMetalStill;
- public static Material liquidMetal;
-
- //Ores
- public static Block oreSlag;
- public static Block oreGravel;
- public static OreberryBush oreBerry;
- public static OreberryBush oreBerrySecond;
- public static Item oreBerries;
-
- //Tool modifiers
- public static ModElectric modE;
- public static ModLapis modL;
-
- //Golems
- /*public static Block glowSapling;
- public static Block glowLeaves;
- public static Block glowLog;*/
-
- public static Block redstoneBallRepeater;
- public static Item redstoneBallRepeaterItem;
-
- public static Block golemCore;
- public static Block golemPedestal;
- public static Block golemHead;
-
- public static Item golemWand;
- public static Item golemRecharger;
- public static Item corestone;
- public static Item notebook;
- public static Item note;
-
- //Wearaables
- public static Item heavyHelmet;
- public static Item heavyChestplate;
- public static Item heavyPants;
- public static Item heavyBoots;
-
- public static Item heartContainer;
-
- public TContent()
- {
- registerBlocks();
- registerItems();
- registerMaterials();
- addCraftingRecipes();
- setupToolTabs();
- }
-
- public void createEntities ()
- {
- EntityRegistry.registerModEntity(FancyEntityItem.class, "Fancy Item", 0, TConstruct.instance, 32, 5, true);
- EntityRegistry.registerModEntity(DaggerEntity.class, "Dagger", 1, TConstruct.instance, 32, 5, true);
- EntityRegistry.registerModEntity(SlimeClone.class, "SlimeClone", 2, TConstruct.instance, 32, 5, true);
- //EntityRegistry.registerModEntity(LaunchedPotion.class, "Launched Potion", 1, TConstruct.instance, 32, 3, true);
- //EntityRegistry.registerModEntity(CartEntity.class, "Small Wagon", 1, TConstruct.instance, 32, 5, true);
- //EntityRegistry.registerModEntity(Crystal.class, "Crystal", 2, TConstruct.instance, 32, 5, true);
-
- //EntityRegistry.registerModEntity(Skyla.class, "Skyla", 10, TConstruct.instance, 32, 5, true);
- EntityRegistry.registerModEntity(NitroCreeper.class, "UnstableCreeper", 11, TConstruct.instance, 64, 5, true);
- EntityRegistry.registerModEntity(BlueSlime.class, "EdibleSlime", 12, TConstruct.instance, 64, 5, true);
- //EntityRegistry.registerModEntity(MetalSlime.class, "MetalSlime", 13, TConstruct.instance, 64, 5, true);
-
- BiomeGenBase[] plains = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.PLAINS);
- BiomeGenBase[] mountain = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.MOUNTAIN);
- BiomeGenBase[] hills = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.HILLS);
- BiomeGenBase[] swamp = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.SWAMP);
- BiomeGenBase[] desert = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.DESERT);
- BiomeGenBase[] frozen = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.FROZEN);
- BiomeGenBase[] jungle = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.JUNGLE);
- BiomeGenBase[] wasteland = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.WASTELAND);
-
- BiomeGenBase[] nether = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.NETHER);
-
- if (PHConstruct.redCreeper)
- {
- EntityRegistry.addSpawn(NitroCreeper.class, PHConstruct.redCreeperWeight, 4, 6, EnumCreatureType.monster, nether);
- }
- if (PHConstruct.blueSlime)
- {
- EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, plains);
- EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, mountain);
- EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, hills);
- EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, swamp);
- EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, desert);
- EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, frozen);
- EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, jungle);
- EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, wasteland);
- }
- //EntityRegistry.addSpawn(MetalSlime.class, 1, 4, 4, EnumCreatureType.monster, overworldBiomes);
- }
-
- void registerBlocks ()
- {
- //Tool Station
- toolStationWood = new ToolStationBlock(PHConstruct.woodCrafter, Material.wood).setUnlocalizedName("ToolStation");
- GameRegistry.registerBlock(toolStationWood, ToolStationItemBlock.class, "ToolStationBlock");
- GameRegistry.registerTileEntity(ToolStationLogic.class, "ToolStation");
- GameRegistry.registerTileEntity(PartCrafterLogic.class, "PartCrafter");
- GameRegistry.registerTileEntity(PatternChestLogic.class, "PatternHolder");
- GameRegistry.registerTileEntity(PatternShaperLogic.class, "PatternShaper");
-
- heldItemBlock = new EquipBlock(PHConstruct.heldItemBlock, Material.wood).setUnlocalizedName("Frypan");
- GameRegistry.registerBlock(heldItemBlock, "HeldItemBlock");
- GameRegistry.registerTileEntity(FrypanLogic.class, "FrypanLogic");
-
- String[] soilTypes = new String[] { "slimesand", "grout", "slimesandblue" };
- craftedSoil = new TConstructBlock(PHConstruct.craftedSoil, Material.sand, 3.0F, soilTypes).setUnlocalizedName("TConstruct.Soil");
- craftedSoil.stepSound = Block.soundGravelFootstep;
- GameRegistry.registerBlock(craftedSoil, CraftedSoilItemBlock.class, "CraftedSoil");
-
- String[] metalTypes = new String[] { "compressed_cobalt", "compressed_ardite", "compressed_manyullyn", "compressed_copper", "compressed_bronze", "compressed_tin", "compressed_aluminum",
- "compressed_alubrass", "compressed_alumite", "compressed_steel" };
- metalBlock = new TMetalBlock(PHConstruct.metalBlock, Material.iron, 10.0F, metalTypes).setUnlocalizedName("tconstruct.metalblock");
- metalBlock.stepSound = Block.soundMetalFootstep;
- GameRegistry.registerBlock(metalBlock, MetalItemBlock.class, "MetalBlock");
-
- //Smeltery
- smeltery = new SmelteryBlock(PHConstruct.smeltery).setUnlocalizedName("Smeltery");
- GameRegistry.registerBlock(smeltery, SmelteryItemBlock.class, "Smeltery");
- GameRegistry.registerTileEntity(SmelteryLogic.class, "TConstruct.Smeltery");
- GameRegistry.registerTileEntity(SmelteryDrainLogic.class, "TConstruct.SmelteryDrain");
- GameRegistry.registerTileEntity(MultiServantLogic.class, "TConstruct.Servants");
-
- lavaTank = new LavaTankBlock(PHConstruct.lavaTank).setUnlocalizedName("LavaTank");
- lavaTank.setStepSound(Block.soundGlassFootstep);
- GameRegistry.registerBlock(lavaTank, LavaTankItemBlock.class, "LavaTank");
- GameRegistry.registerTileEntity(LavaTankLogic.class, "TConstruct.LavaTank");
-
- searedBlock = new SearedBlock(PHConstruct.searedTable).setUnlocalizedName("SearedBlock");
- GameRegistry.registerBlock(searedBlock, SearedTableItemBlock.class, "SearedBlock");
- GameRegistry.registerTileEntity(CastingTableLogic.class, "CastingTable");
- GameRegistry.registerTileEntity(FaucetLogic.class, "Faucet");
- GameRegistry.registerTileEntity(CastingBasinLogic.class, "CastingBasin");
-
- //Traps
- /*landmine = new Landmine(PHConstruct.landmine, 0, EnumMobType.mobs, Material.cactus).setUnlocalizedName("landmine");
- GameRegistry.registerBlock(landmine, "landmine");*/
-
- //Liquids
- liquidMetal = new MaterialLiquid(MapColor.tntColor);
- liquidMetalFlowing = new LiquidMetalFlowing(PHConstruct.metalFlowing).setUnlocalizedName("liquid.metalFlow");
- liquidMetalStill = new LiquidMetalStill(PHConstruct.metalStill).setUnlocalizedName("liquid.metalStill");
- GameRegistry.registerBlock(liquidMetalFlowing, LiquidItemBlock.class, "metalFlow");
- GameRegistry.registerBlock(liquidMetalStill, LiquidItemBlock.class, "metalStill");
- GameRegistry.registerTileEntity(LiquidTextureLogic.class, "LiquidTexture");
-
- //Decoration
- stoneTorch = new StoneTorch(PHConstruct.stoneTorch).setUnlocalizedName("decoration.stonetorch");
- GameRegistry.registerBlock(stoneTorch, "decoration.stonetorch");
-
- multiBrick = new MultiBrick(PHConstruct.multiBrick).setUnlocalizedName("Decoration.Brick");
- GameRegistry.registerBlock(multiBrick, MultiBrickItem.class, "decoration.multibrick");
-
- //Ores
- String[] berryOres = new String[] { "berry_iron", "berry_gold", "berry_copper", "berry_tin", "berry_iron_ripe", "berry_gold_ripe", "berry_copper_ripe", "berry_tin_ripe" };
- oreBerry = (OreberryBush) new OreberryBush(PHConstruct.oreBerry, berryOres, 0, 4, new String[] { "oreIron", "oreGold", "oreCopper", "oreTin" }).setUnlocalizedName("ore.berries.one");
- GameRegistry.registerBlock(oreBerry, OreberryBushItem.class, "ore.berries.one");
- String[] berryOresTwo = new String[] { "berry_aluminum", "berry_silver", "", "", "berry_aluminum_ripe", "berry_silver_ripe", "", "" };
- oreBerrySecond = (OreberryBush) new OreberryBush(PHConstruct.oreBerrySecond, berryOresTwo, 4, 2, new String[] { "oreAluminum", "oreSilver" }).setUnlocalizedName("ore.berries.two");
- GameRegistry.registerBlock(oreBerrySecond, OreberryBushSecondItem.class, "ore.berries.two");
-
- String[] oreTypes = new String[] { "nether_slag", "nether_cobalt", "nether_ardite", "ore_copper", "ore_tin", "ore_aluminum", "ore_slag" };
- oreSlag = new MetalOre(PHConstruct.oreSlag, Material.iron, 10.0F, oreTypes).setUnlocalizedName("tconstruct.stoneore");
- GameRegistry.registerBlock(oreSlag, MetalOreItemBlock.class, "SearedBrick");
- MinecraftForge.setBlockHarvestLevel(oreSlag, 1, "pickaxe", 4);
- MinecraftForge.setBlockHarvestLevel(oreSlag, 2, "pickaxe", 4);
- MinecraftForge.setBlockHarvestLevel(oreSlag, 3, "pickaxe", 1);
- MinecraftForge.setBlockHarvestLevel(oreSlag, 4, "pickaxe", 1);
- MinecraftForge.setBlockHarvestLevel(oreSlag, 5, "pickaxe", 1);
-
- oreGravel = new GravelOre(PHConstruct.oreGravel).setUnlocalizedName("GravelOre").setUnlocalizedName("tconstruct.gravelore");
- GameRegistry.registerBlock(oreGravel, GravelOreItem.class, "GravelOre");
-
- MinecraftForge.setBlockHarvestLevel(oreGravel, 0, "shovel", 1);
- MinecraftForge.setBlockHarvestLevel(oreGravel, 1, "shovel", 2);
- MinecraftForge.setBlockHarvestLevel(oreGravel, 2, "shovel", 1);
- MinecraftForge.setBlockHarvestLevel(oreGravel, 3, "shovel", 1);
- MinecraftForge.setBlockHarvestLevel(oreGravel, 4, "shovel", 1);
- MinecraftForge.setBlockHarvestLevel(oreGravel, 5, "shovel", 4);
-
- speedBlock = new SpeedBlock(PHConstruct.speedBlock).setUnlocalizedName("SpeedBlock");
- GameRegistry.registerBlock(speedBlock, SpeedBlockItem.class, "SpeedBlock");
-
- /*redstoneBallRepeater = new RedstoneBallRepeater(PHConstruct.redstoneBallRepeater, false).setUnlocalizedName("decoration.redstoneballrepeater");
- GameRegistry.registerBlock(redstoneBallRepeater, "decoration.redstoneballrepeater");
- Item.itemsList[PHConstruct.redstoneBallRepeater] = null;
- redstoneBallRepeaterItem = new RedstoneBallRepeaterItem(PHConstruct.redstoneBallRepeater-256).setUnlocalizedName("decoration.redstoneballrepeater");*/
-
- //Golems
- /*golemCore = new GolemCoreBlock(PHConstruct.golemCore).setUnlocalizedName("golemcore");
- GameRegistry.registerBlock(golemCore, "Golem Core");
- GameRegistry.registerTileEntity(GolemCoreLogic.class, "TConstruct.GolemCore");
-
- golemHead = new GolemHeadBlock(PHConstruct.golemHead).setUnlocalizedName("golemhead");
- GameRegistry.registerBlock(golemHead, "Golem Head");*/
-
- /*golemPedestal = new GolemPedestalBlock(PHConstruct.golemPedestal).setUnlocalizedName("golempedestal");
- GameRegistry.registerBlock(golemPedestal, "Golem Pedestal");
- GameRegistry.registerTileEntity(GolemPedestalLogic.class, "TConstruct.GolemPedestal");*/
- }
-
- void registerItems ()
- {
- titleIcon = new TitleIcon(PHConstruct.uselessItem).setUnlocalizedName("tconstruct.titleicon");
- String[] blanks = new String[] { "blank_pattern", "blank_cast" };
- blankPattern = new CraftingItem(PHConstruct.blankPattern, blanks, blanks, "materials/").setUnlocalizedName("tconstruct.Pattern");
-
- materials = new MaterialItem(PHConstruct.materials).setUnlocalizedName("tconstruct.Materials");
- toolRod = new ToolPart(PHConstruct.toolRod, "ToolRod", "_rod").setUnlocalizedName("tconstruct.ToolRod");
- TConstructRegistry.toolRod = toolRod;
- toolShard = new ToolShard(PHConstruct.toolShard, "ToolShard", "_chunk").setUnlocalizedName("tconstruct.ToolShard");
- woodPattern = new Pattern(PHConstruct.woodPattern, "WoodPattern", "pattern_", "materials/").setUnlocalizedName("tconstruct.Pattern");
- metalPattern = new MetalPattern(PHConstruct.metalPattern, "MetalPattern", "cast_", "materials/").setUnlocalizedName("tconstruct.MetalPattern");
- //netherPattern = new Pattern(PHTools.netherPattern, 128, patternTexture).setUnlocalizedName("tconstruct.Pattern");
-
- manualBook = new Manual(PHConstruct.manual);
- buckets = new FilledBucket(PHConstruct.buckets);
-
- pickaxe = new Pickaxe(PHConstruct.pickaxe);
- shovel = new Shovel(PHConstruct.shovel);
- axe = new Hatchet(PHConstruct.axe);
- broadsword = new Broadsword(PHConstruct.broadsword);
- longsword = new Longsword(PHConstruct.longsword);
- rapier = new Rapier(PHConstruct.rapier);
- dagger = new Dagger(PHConstruct.dagger);
-
- frypan = new FryingPan(PHConstruct.frypan);
- battlesign = new BattleSign(PHConstruct.battlesign);
- mattock = new Mattock(PHConstruct.mattock);
- //lumberaxe = new LumberAxe(PHConstruct.lumberaxe, lumberaxeTexture);
- chisel = new Chisel(PHConstruct.chisel);
- potionLauncher = new PotionLauncher(PHConstruct.potionLauncher).setUnlocalizedName("tconstruct.PotionLauncher");
-
- pickaxeHead = new ToolPart(PHConstruct.pickaxeHead, "PickaxeHead", "_pickaxe_head").setUnlocalizedName("tconstruct.PickaxeHead");
- shovelHead = new ToolPart(PHConstruct.shovelHead, "ShovelHead", "_shovel_head").setUnlocalizedName("tconstruct.ShovelHead");
- axeHead = new ToolPart(PHConstruct.axeHead, "AxeHead", "_axe_head").setUnlocalizedName("tconstruct.AxeHead");
- binding = new ToolPart(PHConstruct.binding, "Binding", "_binding").setUnlocalizedName("tconstruct.Binding");
-
- swordBlade = new ToolPart(PHConstruct.swordBlade, "SwordBlade", "_sword_blade").setUnlocalizedName("tconstruct.SwordBlade");
- wideGuard = new ToolPart(PHConstruct.largeGuard, "LargeGuard", "_large_guard").setUnlocalizedName("tconstruct.LargeGuard");
- handGuard = new ToolPart(PHConstruct.medGuard, "MediumGuard", "_medium_guard").setUnlocalizedName("tconstruct.MediumGuard");
- crossbar = new ToolPart(PHConstruct.crossbar, "Crossbar", "_crossbar").setUnlocalizedName("tconstruct.Crossbar");
- knifeBlade = new ToolPart(PHConstruct.knifeBlade, "KnifeBlade", "_knife_blade").setUnlocalizedName("tconstruct.KnifeBlade");
-
- frypanHead = new ToolPart(PHConstruct.frypanHead, "FrypanHead", "_frypan_head").setUnlocalizedName("tconstruct.FrypanHead");
- signHead = new ToolPart(PHConstruct.signHead, "SignHead", "_battlesign_head").setUnlocalizedName("tconstruct.SignHead");
- chiselHead = new ToolPart(PHConstruct.chiselHead, "ChiselHead", "_chisel_head").setUnlocalizedName("tconstruct.ChiselHead");
-
- strangeFood = new StrangeFood(PHConstruct.slimefood).setUnlocalizedName("tconstruct.strangefood");
- oreBerries = new OreBerries(PHConstruct.oreChunks).setUnlocalizedName("oreberry");
- //lumberHead = new ToolPart(PHConstruct.lumberHead, 0, broadheads).setUnlocalizedName("tconstruct.LumberHead");
-
- //Wearables
- //heavyHelmet = new TArmorBase(PHConstruct.heavyHelmet, 0).setUnlocalizedName("tconstruct.HeavyHelmet");
- //heartContainer = new HeartContainer(PHConstruct.heartContainer).setUnlocalizedName("tconstruct.canister");
-
- //Vanilla stack sizes
- Item.doorWood.setMaxStackSize(16);
- Item.doorIron.setMaxStackSize(16);
- Item.snowball.setMaxStackSize(64);
- Item.boat.setMaxStackSize(16);
- Item.minecartEmpty.setMaxStackSize(3);
- Item.minecartCrate.setMaxStackSize(3);
- Item.minecartPowered.setMaxStackSize(3);
- Block.torchWood.setTickRandomly(false);
- }
-
- void registerMaterials ()
- {
- TConstructRegistry.addToolMaterial(0, "Wood", 1, 0, 59, 200, 0, 1.0F, 0, 0f, "\u00A7e", "");
- TConstructRegistry.addToolMaterial(1, "Stone", 1, 1, 131, 400, 1, 0.5F, 0, 1f, "", "Stonebound");
- TConstructRegistry.addToolMaterial(2, "Iron", 1, 2, 250, 600, 2, 1.3F, 1, 0f, "\u00A7f", "");
- TConstructRegistry.addToolMaterial(3, "Flint", 1, 1, 171, 525, 2, 0.7F, 0, 1f, "\u00A78", "Stonebound");
- TConstructRegistry.addToolMaterial(4, "Cactus", 1, 1, 150, 500, 2, 1.0F, 0, -1f, "\u00A72", "Spiny");
- TConstructRegistry.addToolMaterial(5, "Bone", 1, 1, 200, 400, 1, 1.0F, 0, 0f, "\u00A7e", "");
- TConstructRegistry.addToolMaterial(6, "Obsidian", 1, 3, 89, 700, 2, 0.8F, 3, 0f, "\u00A7d", "");
- TConstructRegistry.addToolMaterial(7, "Netherrack", 1, 2, 131, 400, 1, 1.2F, 0, 1f, "\u00A74", "Stonebound");
- TConstructRegistry.addToolMaterial(8, "Slime", 1, 3, 1500, 150, 0, 2.0F, 0, 0f, "\u00A7a", "");
- TConstructRegistry.addToolMaterial(9, "Paper", 1, 0, 30, 200, 0, 0.3F, 0, 0f, "\u00A7f", "Writable");
- TConstructRegistry.addToolMaterial(10, "Cobalt", 2, 4, 800, 1100, 3, 1.75F, 2, 0f, "\u00A73", "");
- TConstructRegistry.addToolMaterial(11, "Ardite", 2, 4, 600, 800, 3, 2.0F, 0, 3f, "\u00A74", "Stonebound");
- TConstructRegistry.addToolMaterial(12, "Manyullyn", 2, 5, 1200, 900, 4, 2.5F, 0, 0f, "\u00A75", "");
- TConstructRegistry.addToolMaterial(13, "Copper", 1, 1, 180, 500, 2, 1.15F, 0, 0f, "\u00A7c", "");
- TConstructRegistry.addToolMaterial(14, "Bronze", 1, 2, 350, 700, 2, 1.3F, 1, 0f, "\u00A76", "");
- TConstructRegistry.addToolMaterial(15, "Alumite", 2, 4, 550, 800, 3, 1.3F, 2, 0f, "\u00A7d", "");
- TConstructRegistry.addToolMaterial(16, "Steel", 2, 4, 750, 800, 3, 1.3F, 2, 0f);
- TConstructRegistry.addToolMaterial(17, "BlueSlime", 1, 1, 500, 150, 0, 1.5F, 0, 0f, "\u00A7b", "");
-
- //Thaumcraft
- TConstructRegistry.addToolMaterial(21, "Thaumium", 2, 2, 250, 600, 2, 1.3F, 1, 0f);
-
- /*//Metallurgy
- TConstructRegistry.addToolMaterial(22, "Heptazion", 2, 2, 300, 800, 1, 1.0F, 0, 0f);
- TConstructRegistry.addToolMaterial(23, "Damascus Steel", 2, 3, 500, 600, 2, 1.35F, 1, 0f);
- TConstructRegistry.addToolMaterial(24, "Angmallen", 2, 2, 300, 800, 2, 0.8F, 0, 0f);
-
- TConstructRegistry.addToolMaterial(25, "Promethium", 1, 1, 200, 400, 1, 1.0F, 0, 0.5f);
- TConstructRegistry.addToolMaterial(26, "Deep Iron", 1, 2, 250, 600, 2, 1.3F, 1, 0f);
- TConstructRegistry.addToolMaterial(27, "Oureclase", 2, 3, 750, 800, 2, 1.2F, 0, 0f);
- TConstructRegistry.addToolMaterial(28, "Aredrite", 2, 3, 1000, 400, 2, 1.5F, 0, 1.0f);
- TConstructRegistry.addToolMaterial(29, "Astral Silver", 1, 4, 35, 1200, 1, 0.5F, 0, 0f);
- TConstructRegistry.addToolMaterial(30, "Carmot", 1, 4, 50, 1200, 1, 0.5F, 0, 0f);
- TConstructRegistry.addToolMaterial(31, "Mithril", 2, 4, 1000, 900, 3, 1.25F, 3, 0f);
- TConstructRegistry.addToolMaterial(32, "Orichalcum", 2, 5, 1350, 900, 3, 1.25F, 0, 0f);
- TConstructRegistry.addToolMaterial(33, "Adamantine", 3, 6, 1550, 1000, 4, 1.5F, 1, 0f);
- TConstructRegistry.addToolMaterial(34, "Atlarus", 3, 6, 1750, 1000, 4, 1.6F, 2, 0f);
-
- TConstructRegistry.addToolMaterial(35, "Black Steel", 2, 2, 500, 800, 2, 1.3F, 2, 0f);
- TConstructRegistry.addToolMaterial(36, "Quicksilver", 2, 4, 1100, 1400, 3, 1.0F, 1, 0f);
- TConstructRegistry.addToolMaterial(37, "Haderoth", 2, 4, 1250, 1200, 3, 1.0F, 2, 0f);
- TConstructRegistry.addToolMaterial(38, "Celenegil", 3, 5, 1600, 1400, 3, 1.0F, 2, 0f);
- TConstructRegistry.addToolMaterial(39, "Tartarite", 3, 7, 3000, 1400, 5, 1.6667F, 4, 0f);*/
-
- PatternBuilder pb = PatternBuilder.instance;
- if (PHConstruct.enableTWood)
- pb.registerFullMaterial(Block.planks, 2, "Wood", new ItemStack(Item.stick, 2), new ItemStack(Item.stick), 0);
- else
- pb.registerMaterialSet("Wood", new ItemStack(Item.stick, 2), new ItemStack(Item.stick), 0);
- if (PHConstruct.enableTStone)
- {
- pb.registerFullMaterial(Block.stone, 2, "Stone", new ItemStack(TContent.toolShard, 1, 1), new ItemStack(TContent.toolRod, 1, 1), 1);
- pb.registerMaterial(Block.cobblestone, 2, "Stone");
- }
- //else
- //pb.registerMaterialSet("Stone", new ItemStack(TContent.toolShard, 1, 1), new ItemStack(TContent.toolRod, 1, 1), 1);
- pb.registerFullMaterial(Item.ingotIron, 2, "Iron", new ItemStack(TContent.toolShard, 1, 2), new ItemStack(TContent.toolRod, 1, 2), 2);
- pb.registerFullMaterial(Item.flint, 2, "Flint", new ItemStack(TContent.toolShard, 1, 3), new ItemStack(TContent.toolRod, 1, 3), 3);
- if (PHConstruct.enableTCactus)
- pb.registerFullMaterial(Block.cactus, 2, "Cactus", new ItemStack(TContent.toolShard, 1, 4), new ItemStack(TContent.toolRod, 1, 4), 4);
- else
- pb.registerMaterialSet("Cactus", new ItemStack(TContent.toolShard, 1, 4), new ItemStack(TContent.toolRod, 1, 4), 4);
- if (PHConstruct.enableTBone)
- pb.registerFullMaterial(Item.bone, 2, "Bone", new ItemStack(Item.dyePowder, 1, 15), new ItemStack(Item.bone), 5);
- else
- pb.registerMaterialSet("Bone", new ItemStack(Item.dyePowder, 1, 15), new ItemStack(Item.bone), 5);
- pb.registerFullMaterial(Block.obsidian, 2, "Obsidian", new ItemStack(TContent.toolShard, 1, 6), new ItemStack(TContent.toolRod, 1, 6), 6);
- pb.registerMaterial(new ItemStack(materials, 1, 18), 2, "Obsidian");
- pb.registerFullMaterial(Block.netherrack, 2, "Netherrack", new ItemStack(TContent.toolShard, 1, 7), new ItemStack(TContent.toolRod, 1, 7), 7);
- pb.registerFullMaterial(new ItemStack(materials, 1, 1), 2, "Slime", new ItemStack(toolShard, 1, 8), new ItemStack(toolRod, 1, 8), 8);
- pb.registerFullMaterial(new ItemStack(materials, 1, 0), 2, "Paper", new ItemStack(Item.paper, 2), new ItemStack(toolRod, 1, 9), 9);
- pb.registerMaterialSet("Cobalt", new ItemStack(toolShard, 1, 10), new ItemStack(toolRod, 1, 10), 10);
- pb.registerMaterialSet("Ardite", new ItemStack(toolShard, 1, 11), new ItemStack(toolRod, 1, 11), 11);
- pb.registerMaterialSet("Manyullyn", new ItemStack(toolShard, 1, 12), new ItemStack(toolRod, 1, 12), 12);
- pb.registerMaterialSet("Copper", new ItemStack(toolShard, 1, 13), new ItemStack(toolRod, 1, 13), 13);
- pb.registerMaterialSet("Bronze", new ItemStack(toolShard, 1, 14), new ItemStack(toolRod, 1, 14), 14);
- pb.registerMaterialSet("Alumite", new ItemStack(toolShard, 1, 15), new ItemStack(toolRod, 1, 15), 15);
- pb.registerMaterialSet("Steel", new ItemStack(toolShard, 1, 16), new ItemStack(toolRod, 1, 16), 16);
- pb.registerFullMaterial(new ItemStack(materials, 1, 17), 2, "BlueSlime", new ItemStack(toolShard, 1, 17), new ItemStack(toolRod, 1, 17), 17);
-
- pb.addToolPattern((IPattern) woodPattern);
- }
-
- public static Item[] patternOutputs;
- public static LiquidStack[] liquids;
-
- void addCraftingRecipes ()
- {
- /* Tools */
- patternOutputs = new Item[] { toolRod, pickaxeHead, shovelHead, axeHead, swordBlade, wideGuard, handGuard, crossbar, binding, frypanHead, signHead, knifeBlade, chiselHead };
-
- ToolBuilder tb = ToolBuilder.instance;
- tb.addToolRecipe(pickaxe, pickaxeHead, binding);
- tb.addToolRecipe(broadsword, swordBlade, wideGuard);
- tb.addToolRecipe(axe, axeHead);
- tb.addToolRecipe(shovel, shovelHead);
- tb.addToolRecipe(longsword, swordBlade, handGuard);
- tb.addToolRecipe(rapier, swordBlade, crossbar);
- tb.addToolRecipe(frypan, frypanHead);
- tb.addToolRecipe(battlesign, signHead);
- tb.addToolRecipe(mattock, axeHead, shovelHead);
- tb.addToolRecipe(dagger, knifeBlade, crossbar);
- tb.addToolRecipe(chisel, chiselHead);
- //tb.addToolRecipe(longbow, toolRod, toolRod);
- //tb.addToolRecipe(lumberaxe, lumberHead);
-
- ItemStack diamond = new ItemStack(Item.diamond);
- tb.registerToolMod(new ModRepair());
- tb.registerToolMod(new ModDurability(new ItemStack[] { diamond }, 0, 500, 0f, 3, "Diamond", "\u00a7bDurability +500", "\u00a7b"));
- tb.registerToolMod(new ModDurability(new ItemStack[] { new ItemStack(Item.emerald) }, 1, 0, 0.5f, 2, "Emerald", "\u00a72Durability +50%", "\u00a72"));
-
- modE = new ModElectric();
- tb.registerToolMod(modE);
-
- ItemStack redstoneItem = new ItemStack(Item.redstone);
- ItemStack redstoneBlock = new ItemStack(Block.blockRedstone);
- tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneItem }, 2, 1));
- tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneItem, redstoneItem }, 2, 2));
- tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneBlock }, 2, 9));
- tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneItem, redstoneBlock }, 2, 10));
- tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneBlock, redstoneBlock }, 2, 18));
-
- ItemStack lapisItem = new ItemStack(Item.dyePowder, 1, 4);
- ItemStack lapisBlock = new ItemStack(Block.blockLapis);
- modL = new ModLapis(new ItemStack[] { lapisItem }, 10, 1);
- tb.registerToolMod(modL);
- tb.registerToolMod(new ModLapis(new ItemStack[] { lapisItem, lapisItem }, 10, 2));
- tb.registerToolMod(new ModLapis(new ItemStack[] { lapisBlock }, 10, 9));
- tb.registerToolMod(new ModLapis(new ItemStack[] { lapisItem, lapisBlock }, 10, 10));
- tb.registerToolMod(new ModLapis(new ItemStack[] { lapisBlock, lapisBlock }, 10, 18));
-
- tb.registerToolMod(new ModInteger(new ItemStack[] { new ItemStack(materials, 1, 6) }, 4, "Moss", 3, "\u00a72", "Auto-Repair"));
- ItemStack blazePowder = new ItemStack(Item.blazePowder);
- tb.registerToolMod(new ModBlaze(new ItemStack[] { blazePowder }, 7, 1));
- tb.registerToolMod(new ModBlaze(new ItemStack[] { blazePowder, blazePowder }, 7, 2));
- tb.registerToolMod(new ModAutoSmelt(new ItemStack[] { new ItemStack(materials, 1, 7) }, 6, "Lava", "\u00a74", "Auto-Smelt"));
- tb.registerToolMod(new ModInteger(new ItemStack[] { new ItemStack(materials, 1, 8) }, 8, "Necrotic", 1, "\u00a78", "Life Steal"));
-
- ItemStack quartzItem = new ItemStack(Item.netherQuartz);
- ItemStack quartzBlock = new ItemStack(Block.blockNetherQuartz, 1, Short.MAX_VALUE);
- tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzItem }, 11, 1));
- tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzItem, quartzItem }, 11, 2));
- tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzBlock }, 11, 4));
- tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzItem, quartzBlock }, 11, 5));
- tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzBlock, quartzBlock }, 11, 8));
-
- tb.registerToolMod(new ModExtraModifier(new ItemStack[] { diamond, new ItemStack(Block.blockGold) }, "Tier1Free"));
- tb.registerToolMod(new ModExtraModifier(new ItemStack[] { new ItemStack(Item.netherStar) }, "Tier2Free"));
-
- ItemStack silkyJewel = new ItemStack(materials, 1, 26);
- tb.registerToolMod(new ModButtertouch(new ItemStack[] {silkyJewel}, 12));
-
- TConstructRegistry.registerActiveToolMod(new TActiveOmniMod());
-
- /* Smeltery */
- ItemStack ingotcast = new ItemStack(metalPattern, 1, 0);
-
- LiquidCasting tableCasting = TConstructRegistry.instance.getTableCasting();
- //Blank
- tableCasting.addCastingRecipe(new ItemStack(blankPattern, 1, 1), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 8), 80);
- tableCasting.addCastingRecipe(new ItemStack(blankPattern, 1, 1), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 1), 80);
-
- //Ingots
- tableCasting.addCastingRecipe(new ItemStack(Item.ingotIron), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 0), ingotcast, 80); //Iron
- tableCasting.addCastingRecipe(new ItemStack(Item.ingotGold), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 1), ingotcast, 80); //gold
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 9), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 2), ingotcast, 80); //copper
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 10), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 3), ingotcast, 80); //tin
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 11), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 4), ingotcast, 80); //aluminum
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 3), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 5), ingotcast, 80); //cobalt
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 4), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 6), ingotcast, 80); //ardite
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 13), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 7), ingotcast, 80); //bronze
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 14), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 8), ingotcast, 80); //albrass
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 5), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 9), ingotcast, 80); //manyullyn
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 15), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 10), ingotcast, 80); //alumite
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 18), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 11), ingotcast, 80); //obsidian
- tableCasting.addCastingRecipe(new ItemStack(materials, 1, 16), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 12), ingotcast, 80); //steel
-
- //Buckets
- ItemStack bucket = new ItemStack(Item.bucketEmpty);
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 0), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 0), bucket, true, 10); //Iron
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 1), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 1), bucket, true, 10); //gold
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 2), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 2), bucket, true, 10); //copper
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 3), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 3), bucket, true, 10); //tin
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 4), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 4), bucket, true, 10); //aluminum
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 5), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 5), bucket, true, 10); //cobalt
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 6), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 6), bucket, true, 10); //ardite
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 7), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 7), bucket, true, 10); //bronze
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 8), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 8), bucket, true, 10); //albrass
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 9), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 9), bucket, true, 10); //manyullyn
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 10), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 10), bucket, true, 10); //alumite
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 11), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 11), bucket, true, 10);// obsidian
- tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 12), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 12), bucket, true, 10); //steel
-
- liquids = new LiquidStack[] { new LiquidStack(liquidMetalStill.blockID, 1, 0), new LiquidStack(liquidMetalStill.blockID, 1, 2), new LiquidStack(liquidMetalStill.blockID, 1, 5),
- new LiquidStack(liquidMetalStill.blockID, 1, 6), new LiquidStack(liquidMetalStill.blockID, 1, 9), new LiquidStack(liquidMetalStill.blockID, 1, 7),
- new LiquidStack(liquidMetalStill.blockID, 1, 10), new LiquidStack(liquidMetalStill.blockID, 1, 11), new LiquidStack(liquidMetalStill.blockID, 1, 12) };
- int[] liquidDamage = new int[] { 2, 13, 10, 11, 12, 14, 15, 6, 16 };
-
- for (int iter = 0; iter < patternOutputs.length; iter++)
- {
- ItemStack cast = new ItemStack(metalPattern, 1, iter + 1);
- for (int iterTwo = 0; iterTwo < liquids.length; iterTwo++)
- {
- tableCasting.addCastingRecipe(new ItemStack(patternOutputs[iter], 1, liquidDamage[iterTwo]), new LiquidStack(liquids[iterTwo].itemID, ((IPattern) metalPattern).getPatternCost(iter)
- * TConstruct.ingotLiquidValue / 2, liquids[iterTwo].itemMeta), cast, 50);
- }
- }
-
- LiquidCasting basinCasting = TConstructRegistry.getBasinCasting();
- basinCasting.addCastingRecipe(new ItemStack(Block.blockIron), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 0), null, true, 100); //Iron
- basinCasting.addCastingRecipe(new ItemStack(Block.blockGold), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 1), null, true, 100); //gold
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 3), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 2), null, true, 100); //copper
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 5), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 3), null, true, 100); //tin
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 6), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 4), null, true, 100); //aluminum
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 0), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 5), null, true, 100); //cobalt
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 1), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 6), null, true, 100); //ardite
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 4), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 7), null, true, 100); //bronze
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 7), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 8), null, true, 100); //albrass
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 2), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 9), null, true, 100); //manyullyn
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 8), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 10), null, true, 100); //alumite
- basinCasting.addCastingRecipe(new ItemStack(Block.obsidian), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 11), null, true, 100);// obsidian
- basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 9), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 12), null, true, 100); //steel
-
- basinCasting.addCastingRecipe(new ItemStack(speedBlock, 1, 0), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 3), new ItemStack(Block.gravel), true, 100); //brownstone
-
- //Ore
- Smeltery.addMelting(Block.oreIron, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 0));
- Smeltery.addMelting(Block.oreGold, 0, 400, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 1));
- Smeltery.addMelting(oreGravel, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 0));
- //Smeltery.addMelting(oreGravel, 1, 400, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 1));
-
- //Items
- Smeltery.addMelting(new ItemStack(Item.ingotIron, 4), Block.blockIron.blockID, 0, 500, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 0));
- Smeltery.addMelting(new ItemStack(Item.ingotGold, 4), Block.blockGold.blockID, 0, 300, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 1));
- Smeltery.addMelting(new ItemStack(Item.goldNugget, 4), Block.blockGold.blockID, 0, 150, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 1));
-
- Smeltery.addMelting(new ItemStack(Item.bucketEmpty), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 3, 0));
- Smeltery.addMelting(new ItemStack(Item.minecartEmpty), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 5, 0));
- Smeltery.addMelting(new ItemStack(materials, 1, 18), Block.obsidian.blockID, 0, 750, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 11));//obsidian
-
- //Blocks
- Smeltery.addMelting(Block.blockIron, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 0));
- Smeltery.addMelting(Block.blockGold, 0, 400, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 1));
- Smeltery.addMelting(Block.obsidian, 0, 800, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 11));
- Smeltery.addMelting(Block.ice, 0, 75, new LiquidStack(Block.waterStill.blockID, 1000, 0));
-
- //Alloys
- Smeltery.addAlloyMixing(new LiquidStack(liquidMetalStill.blockID, 2, 7), new LiquidStack(liquidMetalStill.blockID, 3, 2), new LiquidStack(liquidMetalStill.blockID, 1, 3)); //Bronze
- Smeltery.addAlloyMixing(new LiquidStack(liquidMetalStill.blockID, 2, 8), new LiquidStack(liquidMetalStill.blockID, 3, 4), new LiquidStack(liquidMetalStill.blockID, 1, 2)); //Aluminum Brass
- Smeltery.addAlloyMixing(new LiquidStack(liquidMetalStill.blockID, 1, 9), new LiquidStack(liquidMetalStill.blockID, 2, 5), new LiquidStack(liquidMetalStill.blockID, 2, 6)); //Manyullyn
- Smeltery.addAlloyMixing(new LiquidStack(liquidMetalStill.blockID, 3, 10), new LiquidStack(liquidMetalStill.blockID, 5, 4), new LiquidStack(liquidMetalStill.blockID, 2, 0), new LiquidStack(
- liquidMetalStill.blockID, 2, 11)); //Alumite
-
- //Oreberries
- Smeltery.addMelting(new ItemStack(oreBerries, 4, 0), Block.blockIron.blockID, 0, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 0)); //Iron
- Smeltery.addMelting(new ItemStack(oreBerries, 4, 1), Block.blockGold.blockID, 0, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 1)); //Gold
- Smeltery.addMelting(new ItemStack(oreBerries, 4, 2), metalBlock.blockID, 3, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 2)); //Copper
- Smeltery.addMelting(new ItemStack(oreBerries, 4, 3), metalBlock.blockID, 5, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 3)); //Tin
- Smeltery.addMelting(new ItemStack(oreBerries, 4, 4), metalBlock.blockID, 6, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 4)); //Aluminum
-
- //Vanilla Armor
- Smeltery.addMelting(new ItemStack(Item.helmetIron, 1, 0), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 5, 0));
- Smeltery.addMelting(new ItemStack(Item.plateIron, 1, 0), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 8, 0));
- Smeltery.addMelting(new ItemStack(Item.legsIron, 1, 0), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 7, 0));
- Smeltery.addMelting(new ItemStack(Item.bootsIron, 1, 0), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 4, 0));
-
- Smeltery.addMelting(new ItemStack(Item.helmetGold, 1, 0), Block.blockGold.blockID, 0, 350, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 5, 1));
- Smeltery.addMelting(new ItemStack(Item.plateGold, 1, 0), Block.blockGold.blockID, 0, 350, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 8, 1));
- Smeltery.addMelting(new ItemStack(Item.legsGold, 1, 0), Block.blockGold.blockID, 0, 350, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 7, 1));
- Smeltery.addMelting(new ItemStack(Item.bootsGold, 1, 0), Block.blockGold.blockID, 0, 350, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 4, 1));
-
- Smeltery.addMelting(new ItemStack(Item.helmetChain, 1, 0), this.metalBlock.blockID, 9, 700, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 12));
- Smeltery.addMelting(new ItemStack(Item.plateChain, 1, 0), this.metalBlock.blockID, 9, 700, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 12));
- Smeltery.addMelting(new ItemStack(Item.legsChain, 1, 0), this.metalBlock.blockID, 9, 700, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 12));
- Smeltery.addMelting(new ItemStack(Item.bootsChain, 1, 0), this.metalBlock.blockID, 9, 700, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 12));
-
- /* Detailing */
- Detailing chiseling = TConstructRegistry.getChiselDetailing();
- chiseling.addDetailing(Block.stone, 0, Block.stoneBrick, 0, chisel);
- chiseling.addDetailing(speedBlock, 0, speedBlock, 1, chisel);
- chiseling.addDetailing(speedBlock, 2, speedBlock, 3, chisel);
- chiseling.addDetailing(speedBlock, 3, speedBlock, 4, chisel);
- chiseling.addDetailing(speedBlock, 4, speedBlock, 5, chisel);
- chiseling.addDetailing(speedBlock, 5, speedBlock, 6, chisel);
-
- chiseling.addDetailing(Block.obsidian, 0, multiBrick, 0, chisel);
- chiseling.addDetailing(Block.sandStone, 0, Block.sandStone, 2, chisel);
- chiseling.addDetailing(Block.sandStone, 2, Block.sandStone, 1, chisel);
- chiseling.addDetailing(Block.sandStone, 1, multiBrick, 1, chisel);
- //chiseling.addDetailing(Block.netherrack, 0, multiBrick, 2, chisel);
- //chiseling.addDetailing(Block.stone_refined, 0, multiBrick, 3, chisel);
- chiseling.addDetailing(Item.ingotIron, 0, multiBrick, 4, chisel);
- chiseling.addDetailing(Item.ingotGold, 0, multiBrick, 5, chisel);
- chiseling.addDetailing(Item.dyePowder, 4, multiBrick, 6, chisel);
- chiseling.addDetailing(Item.diamond, 0, multiBrick, 7, chisel);
- chiseling.addDetailing(Item.redstone, 0, multiBrick, 8, chisel);
- chiseling.addDetailing(Item.bone, 0, multiBrick, 9, chisel);
- chiseling.addDetailing(Item.slimeBall, 0, multiBrick, 10, chisel);
- chiseling.addDetailing(strangeFood, 0, multiBrick, 11, chisel);
- chiseling.addDetailing(Block.whiteStone, 0, multiBrick, 12, chisel);
- chiseling.addDetailing(materials, 18, multiBrick, 13, chisel);
-
- /*static String blockTextures[] = { "brick_obsidian", "brick_sandstone", "brick_netherrack", "brick_stone_refined", "brick_iron", "brick_gold", "brick_lapis", "brick_diamond",
- "brick_redstone", "brick_slime", "brick_bone" };*/
-
- /* Crafting */
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 0), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', Block.workbench);
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 1), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.wood, 1, 0));
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 2), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.wood, 1, 1));
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 3), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.wood, 1, 2));
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 4), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.wood, 1, 3));
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 5), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', Block.chest);
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 10), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.planks, 1, 0));
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 11), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.planks, 1, 1));
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 12), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.planks, 1, 2));
- GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 13), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.planks, 1, 3));
- GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(toolStationWood, 1, 1), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', "logWood"));
- GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(toolStationWood, 1, 10), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', "plankWood"));
-
- GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blankPattern, 1, 0), "ps", "sp", 'p', "plankWood", 's', Item.stick));
- GameRegistry.addRecipe(new ItemStack(manualBook), "wp", 'w', new ItemStack(blankPattern, 1, 0), 'p', Item.paper);
- GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 2, 0), new ItemStack(manualBook, 1, 0), Item.book);
- GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 1, 1), new ItemStack(manualBook, 1, 0));
- GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 2, 1), new ItemStack(manualBook, 1, 1), Item.book);
- GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 1, 2), new ItemStack(manualBook, 1, 1));
- GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 2, 2), new ItemStack(manualBook, 1, 2), Item.book);
-
- GameRegistry.addRecipe(new ItemStack(materials, 1, 0), "pp", "pp", 'p', Item.paper); //Paper stack
- OreDictionary.registerOre("mossystone", new ItemStack(Block.stoneBrick, 1, 1));
- OreDictionary.registerOre("mossystone", new ItemStack(Block.cobblestoneMossy));
- GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(materials, 1, 6), "ppp", "ppp", "ppp", 'p', "mossystone")); //Moss ball
- GameRegistry.addRecipe(new ItemStack(materials, 1, 6), "ppp", "ppp", "ppp", 'p', new ItemStack(Block.stoneBrick, 1, 1)); //Moss ball
- GameRegistry.addRecipe(new ItemStack(materials, 1, 7), "xcx", "cbc", "xcx", 'b', Item.bucketLava, 'c', Item.fireballCharge, 'x', Item.blazeRod); //Auto-smelt
- GameRegistry.addRecipe(new ItemStack(materials, 1, 7), "xcx", "cbc", "xcx", 'b', Item.bucketLava, 'x', Item.fireballCharge, 'c', Item.blazeRod); //Auto-smelt
- //GameRegistry.addShapelessRecipe(new ItemStack(materials, 1, 8), Item.bone, Item.rottenFlesh, Item.chickenRaw, Item.beefRaw, Item.porkRaw, Item.fishRaw); //Necrotic bone
- GameRegistry.addShapelessRecipe(new ItemStack(craftedSoil, 1, 0), Item.slimeBall, Item.slimeBall, Item.slimeBall, Item.slimeBall, Block.sand, Block.dirt); //Slimy sand
- GameRegistry.addShapelessRecipe(new ItemStack(craftedSoil, 1, 2), strangeFood, strangeFood, strangeFood, strangeFood, Block.sand, Block.dirt); //Slimy sand
- GameRegistry.addShapelessRecipe(new ItemStack(craftedSoil, 2, 1), Item.clay, Block.sand, Block.gravel); //Grout
- GameRegistry.addShapelessRecipe(new ItemStack(craftedSoil, 8, 1), Block.blockClay, Block.sand, Block.gravel, Block.sand, Block.gravel, Block.sand, Block.gravel, Block.sand, Block.gravel); //Grout
-
- FurnaceRecipes.smelting().addSmelting(craftedSoil.blockID, 0, new ItemStack(materials, 1, 1), 2f); //Slime
- FurnaceRecipes.smelting().addSmelting(craftedSoil.blockID, 1, new ItemStack(materials, 1, 2), 2f); //Seared brick item
- FurnaceRecipes.smelting().addSmelting(craftedSoil.blockID, 2, new ItemStack(materials, 1, 17), 2f); //Blue Slime
- //GameRegistry.addRecipe(new ItemStack(oreSlag, 1, 0), "pp", "pp", 'p', new ItemStack(materials, 1, 2)); //Seared brick block
-
- GameRegistry.addRecipe(new ItemStack(materials, 1, 25), "sss", "sns", "sss", 'n', new ItemStack(materials, 1, 24), 's', new ItemStack(Item.silk)); //Silky Cloth
- GameRegistry.addRecipe(new ItemStack(materials, 1, 25), "sss", "sns", "sss", 'n', new ItemStack(Item.goldNugget), 's', new ItemStack(Item.silk));
- GameRegistry.addRecipe(new ItemStack(materials, 1, 26), " c ", "cec", " c ", 'c', new ItemStack(materials, 1, 25), 'e', new ItemStack(Item.emerald)); //Silky Jewel
-
- //FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 1, new ItemStack(materials, 1, 3), 3f);
- //FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 2, new ItemStack(materials, 1, 4), 3f);
- FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 3, new ItemStack(materials, 1, 9), 0.5f);
- FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 4, new ItemStack(materials, 1, 10), 0.5f);
- FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 5, new ItemStack(materials, 1, 12), 0.5f);
-
- FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 0, new ItemStack(materials, 1, 19), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 1, new ItemStack(Item.goldNugget), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 2, new ItemStack(materials, 1, 20), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 3, new ItemStack(materials, 1, 21), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 4, new ItemStack(materials, 1, 22), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 5, new ItemStack(materials, 1, 23), 0.2f);
-
- FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 0, new ItemStack(Item.ingotIron), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 1, new ItemStack(Item.ingotGold), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 2, new ItemStack(materials, 1, 9), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 3, new ItemStack(materials, 1, 10), 0.2f);
- FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 4, new ItemStack(materials, 1, 12), 0.2f);
-
- FurnaceRecipes.smelting().addSmelting(speedBlock.blockID, 0, new ItemStack(speedBlock, 1, 2), 0.2f);
-
- //Metal conversion
- GameRegistry.addRecipe(new ItemStack(materials, 9, 9), "m", 'm', new ItemStack(metalBlock, 1, 3)); //Copper
- GameRegistry.addRecipe(new ItemStack(materials, 9, 10), "m", 'm', new ItemStack(metalBlock, 1, 5)); //Tin
- GameRegistry.addRecipe(new ItemStack(materials, 9, 12), "m", 'm', new ItemStack(metalBlock, 1, 6)); //Aluminum
- GameRegistry.addRecipe(new ItemStack(materials, 9, 13), "m", 'm', new ItemStack(metalBlock, 1, 4)); //Bronze
- GameRegistry.addRecipe(new ItemStack(materials, 9, 14), "m", 'm', new ItemStack(metalBlock, 1, 7)); //AluBrass
- GameRegistry.addRecipe(new ItemStack(materials, 9, 3), "m", 'm', new ItemStack(metalBlock, 1, 0)); //Cobalt
- GameRegistry.addRecipe(new ItemStack(materials, 9, 4), "m", 'm', new ItemStack(metalBlock, 1, 1)); //Ardite
- GameRegistry.addRecipe(new ItemStack(materials, 9, 5), "m", 'm', new ItemStack(metalBlock, 1, 2)); //Manyullyn
- GameRegistry.addRecipe(new ItemStack(materials, 9, 15), "m", 'm', new ItemStack(metalBlock, 1, 8)); //Alumite
- GameRegistry.addRecipe(new ItemStack(materials, 9, 16), "m", 'm', new ItemStack(metalBlock, 1, 9)); //Steel
-
- GameRegistry.addRecipe(new ItemStack(Item.ingotIron), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 19)); //Iron
- GameRegistry.addRecipe(new ItemStack(materials, 1, 9), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 20)); //Copper
- GameRegistry.addRecipe(new ItemStack(materials, 1, 10), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 21)); //Tin
- GameRegistry.addRecipe(new ItemStack(materials, 1, 12), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 22)); //Aluminum
- GameRegistry.addRecipe(new ItemStack(materials, 1, 14), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 24)); //Aluminum Brass
-
- GameRegistry.addRecipe(new ItemStack(materials, 9, 24), "m", 'm', new ItemStack(materials, 1, 14)); //Aluminum Brass Nugget
-
- /*OreDictionary.registerOre("ingotAluminumBrass", new ItemStack(materials, 1, 14));
- OreDictionary.registerOre("nuggetAluminumBrass", new ItemStack(materials, 1, 24));*/
-
- //Smeltery
- ItemStack searedBrick = new ItemStack(materials, 1, 2);
- GameRegistry.addRecipe(new ItemStack(smeltery, 1, 0), "bbb", "b b", "bbb", 'b', searedBrick); //Controller
- GameRegistry.addRecipe(new ItemStack(smeltery, 1, 1), "b b", "b b", "b b", 'b', searedBrick); //Drain
- GameRegistry.addRecipe(new ItemStack(smeltery, 1, 2), "bb", "bb", 'b', searedBrick); //Bricks
-
- GameRegistry.addRecipe(new ItemStack(lavaTank, 1, 0), "bbb", "bgb", "bbb", 'b', searedBrick, 'g', Block.glass); //Tank
- GameRegistry.addRecipe(new ItemStack(lavaTank, 1, 1), "bgb", "ggg", "bgb", 'b', searedBrick, 'g', Block.glass); //Glass
- GameRegistry.addRecipe(new ItemStack(lavaTank, 1, 2), "bgb", "bgb", "bgb", 'b', searedBrick, 'g', Block.glass); //Window
-
- GameRegistry.addRecipe(new ItemStack(searedBlock, 1, 0), "bbb", "b b", "b b", 'b', searedBrick); //Table
- GameRegistry.addRecipe(new ItemStack(searedBlock, 1, 1), "b b", " b ", 'b', searedBrick); //Faucet
- GameRegistry.addRecipe(new ItemStack(searedBlock, 1, 2), "b b", "b b", "bbb", 'b', searedBrick); //Basin
-
- GameRegistry.addRecipe(new ItemStack(stoneTorch, 4), "p", "w", 'p', new ItemStack(Item.coal, 1, Short.MAX_VALUE), 'w', new ItemStack(toolRod, 1, 1));
- GameRegistry.addRecipe(new ItemStack(toolRod, 4, 1), "c", "c", 'c', new ItemStack(Block.stone));
- GameRegistry.addRecipe(new ItemStack(toolRod, 2, 1), "c", "c", 'c', new ItemStack(Block.cobblestone));
-
- ItemStack aluBrass = new ItemStack(materials, 1, 14);
- GameRegistry.addRecipe(new ItemStack(Item.pocketSundial), " i ", "iri", " i ", 'i', aluBrass, 'r', new ItemStack(Item.redstone));
- GameRegistry.addRecipe(new ItemStack(Block.pressurePlateGold), "ii", 'i', aluBrass);
- }
-
- void setupToolTabs ()
- {
- TConstructRegistry.materialTab.init(new ItemStack(titleIcon));
- TConstructRegistry.blockTab.init(new ItemStack(toolStationWood));
- ItemStack tool = new ItemStack(longsword, 1, 0);
-
- NBTTagCompound compound = new NBTTagCompound();
- compound.setCompoundTag("InfiTool", new NBTTagCompound());
- compound.getCompoundTag("InfiTool").setInteger("RenderHead", 2);
- compound.getCompoundTag("InfiTool").setInteger("RenderHandle", 0);
- compound.getCompoundTag("InfiTool").setInteger("RenderAccessory", 10);
- tool.setTagCompound(compound);
-
- //TConstruct.
- TConstructRegistry.toolTab.init(tool);
- }
-
- public static LiquidStack[] liquidIcons = new LiquidStack[0];
- public static String[] liquidNames;
-
- public void oreRegistry ()
- {
- OreDictionary.registerOre("oreCobalt", new ItemStack(oreSlag, 1, 1));
- OreDictionary.registerOre("oreArdite", new ItemStack(oreSlag, 1, 2));
- OreDictionary.registerOre("oreCopper", new ItemStack(oreSlag, 1, 3));
- OreDictionary.registerOre("oreTin", new ItemStack(oreSlag, 1, 4));
- OreDictionary.registerOre("oreNaturalAluminum", new ItemStack(oreSlag, 1, 5));
-
- OreDictionary.registerOre("oreIron", new ItemStack(oreGravel, 1, 0));
- //OreDictionary.registerOre("oreGold", new ItemStack(oreGravel, 1, 1));
- OreDictionary.registerOre("oreCobalt", new ItemStack(oreGravel, 1, 5));
- OreDictionary.registerOre("oreCopper", new ItemStack(oreGravel, 1, 2));
- OreDictionary.registerOre("oreTin", new ItemStack(oreGravel, 1, 3));
- OreDictionary.registerOre("oreNaturalAluminum", new ItemStack(oreGravel, 1, 4));
-
- OreDictionary.registerOre("ingotCobalt", new ItemStack(materials, 1, 3));
- OreDictionary.registerOre("ingotArdite", new ItemStack(materials, 1, 4));
- OreDictionary.registerOre("ingotManyullyn", new ItemStack(materials, 1, 5));
- OreDictionary.registerOre("ingotCopper", new ItemStack(materials, 1, 9));
- OreDictionary.registerOre("ingotTin", new ItemStack(materials, 1, 10));
- OreDictionary.registerOre("ingotNaturalAluminum", new ItemStack(materials, 1, 11));
- OreDictionary.registerOre("naturalAluminum", new ItemStack(materials, 1, 12));
- OreDictionary.registerOre("ingotBronze", new ItemStack(materials, 1, 13));
- OreDictionary.registerOre("ingotAluminumBrass", new ItemStack(materials, 1, 14));
- OreDictionary.registerOre("ingotAlumite", new ItemStack(materials, 1, 15));
- OreDictionary.registerOre("ingotSteel", new ItemStack(materials, 1, 16));
-
- OreDictionary.registerOre("blockCobalt", new ItemStack(metalBlock, 1, 0));
- OreDictionary.registerOre("blockArdite", new ItemStack(metalBlock, 1, 1));
- OreDictionary.registerOre("blockManyullyn", new ItemStack(metalBlock, 1, 2));
- OreDictionary.registerOre("blockCopper", new ItemStack(metalBlock, 1, 3));
- OreDictionary.registerOre("blockBronze", new ItemStack(metalBlock, 1, 4));
- OreDictionary.registerOre("blockTin", new ItemStack(metalBlock, 1, 5));
- OreDictionary.registerOre("blockNaturalAluminum", new ItemStack(metalBlock, 1, 6));
- OreDictionary.registerOre("blockAluminumBrass", new ItemStack(metalBlock, 1, 7));
- OreDictionary.registerOre("blockAlumite", new ItemStack(metalBlock, 1, 8));
- OreDictionary.registerOre("blockSteel", new ItemStack(metalBlock, 1, 9));
-
- OreDictionary.registerOre("nuggetIron", new ItemStack(materials, 1, 19));
- OreDictionary.registerOre("nuggetCopper", new ItemStack(materials, 1, 20));
- OreDictionary.registerOre("nuggetTin", new ItemStack(materials, 1, 21));
- OreDictionary.registerOre("nuggetNaturalAluminum", new ItemStack(materials, 1, 22));
- OreDictionary.registerOre("nuggetSilver", new ItemStack(materials, 1, 23));
- OreDictionary.registerOre("nuggetAluminumBrass", new ItemStack(materials, 1, 24));
-
- String[] names = new String[] { "Iron", "Gold", "Copper", "Tin", "Aluminum", "Cobalt", "Ardite", "Bronze", "Brass", "Manyullyn", "Alumite", "Obsidian", "Steel" };
- liquidIcons = new LiquidStack[names.length];
- liquidNames = new String[names.length];
- for (int iter = 0; iter < names.length; iter++)
- {
- LiquidStack liquidstack = new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, iter);
- String name = "Molten " + names[iter];
- liquidIcons[iter] = liquidstack;
- liquidNames[iter] = name;
- LiquidDictionary.getOrCreateLiquid(name, liquidstack);
- LiquidContainerRegistry.registerLiquid(new LiquidContainerData(liquidstack, new ItemStack(buckets, 1, iter), new ItemStack(Item.bucketEmpty)));
- }
-
- //Vanilla stuff
- OreDictionary.registerOre("slimeball", new ItemStack(Item.slimeBall));
- OreDictionary.registerOre("slimeball", new ItemStack(strangeFood, 1, 0));
- RecipeRemover.removeShapedRecipe(new ItemStack(Block.pistonStickyBase));
- RecipeRemover.removeShapedRecipe(new ItemStack(Item.magmaCream));
- GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.pistonStickyBase), "slimeball", Block.pistonBase));
- GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.magmaCream), "slimeball", Item.blazePowder));
- }
-
- public void intermodCommunication()
- {
- FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerry, 1, 12));
- FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerry, 1, 13));
- FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerry, 1, 14));
- FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerry, 1, 15));
- FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerrySecond, 1, 12));
- FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerrySecond, 1, 13));
- }
-
- public void modIntegration ()
- {
- ItemStack ironpick = ToolBuilder.instance.buildTool(new ItemStack(TContent.pickaxeHead, 1, 6), new ItemStack(TContent.toolRod, 1, 2), new ItemStack(TContent.binding, 1, 6), "");
- /* IC2 */
- ItemStack reBattery = ic2.api.item.Items.getItem("reBattery");
- if (reBattery != null)
- modE.batteries.add(reBattery);
- ItemStack chargedReBattery = ic2.api.item.Items.getItem("chargedReBattery");
- if (chargedReBattery != null)
- {
- modE.batteries.add(chargedReBattery);
- }
- ItemStack electronicCircuit = ic2.api.item.Items.getItem("electronicCircuit");
- if (electronicCircuit != null)
- modE.circuits.add(electronicCircuit);
-
- if (chargedReBattery != null && electronicCircuit != null)
- TConstructClientRegistry.registerManualModifier("electricmod", ironpick.copy(), chargedReBattery, electronicCircuit);
-
- /* Thaumcraft */
- //Object obj = getItem("itemResource", "thaumcraft.common.Config");
- }
-
- public static Object getItem (String name, String classPackage)
- {
- try
- {
- Class c = Class.forName(classPackage);
- Object ret = c.getField(name);
- if (ret != null && (ret instanceof ItemStack || ret instanceof Item))
- return ret;
- return null;
- }
- catch (Exception e)
- {
- System.out.println("[TConstruct] Could not find item for " + name);
- return null;
- }
- }
-
- @Override
- public int getBurnTime (ItemStack fuel)
- {
- if (fuel.itemID == materials.itemID && fuel.getItemDamage() == 7)
- return 26400;
- return 0;
- }
+ //Patterns and other materials
+ public static Item blankPattern;
+ public static Item materials;
+ public static Item toolRod;
+ public static Item toolShard;
+ public static Item woodPattern;
+ public static Item metalPattern;
+
+ public static Item manualBook;
+ public static Item buckets;
+ public static Item titleIcon;
+
+ public static Item strangeFood;
+ public static Item diamondApple;
+ //public static Item stonePattern;
+ //public static Item netherPattern;
+
+ //Tools
+ public static ToolCore pickaxe;
+ public static ToolCore shovel;
+ public static ToolCore axe;
+ public static ToolCore broadsword;
+ public static ToolCore longsword;
+ public static ToolCore rapier;
+ public static ToolCore dagger;
+
+ public static ToolCore frypan;
+ public static ToolCore battlesign;
+ public static ToolCore chisel;
+ //public static ToolCore longbow;
+
+ public static ToolCore mattock;
+ public static ToolCore lumberaxe;
+
+ public static Item potionLauncher;
+
+ //Tool parts
+ public static Item pickaxeHead;
+ public static Item shovelHead;
+ public static Item axeHead;
+ public static Item binding;
+
+ public static Item swordBlade;
+ public static Item wideGuard;
+ public static Item handGuard;
+ public static Item crossbar;
+ public static Item knifeBlade;
+
+ public static Item frypanHead;
+ public static Item signHead;
+ public static Item chiselHead;
+
+ public static Item lumberHead;
+
+ //Crafting blocks
+ public static Block toolStationWood;
+ public static Block heldItemBlock;
+ public static Block craftedSoil;
+
+ public static Block smeltery;
+ public static Block lavaTank;
+ public static Block searedBlock;
+ public static Block metalBlock;
+
+ //Decoration
+ public static Block stoneTorch;
+ public static Block multiBrick;
+
+ //Traps
+ public static Block landmine;
+
+ //InfiBlocks
+ public static Block speedBlock;
+
+ //Liquids
+ public static Block liquidMetalFlowing;
+ public static Block liquidMetalStill;
+ public static Material liquidMetal;
+
+ //Ores
+ public static Block oreSlag;
+ public static Block oreGravel;
+ public static OreberryBush oreBerry;
+ public static OreberryBush oreBerrySecond;
+ public static Item oreBerries;
+
+ //Tool modifiers
+ public static ModElectric modE;
+ public static ModLapis modL;
+
+ //Golems
+ /*public static Block glowSapling;
+ public static Block glowLeaves;
+ public static Block glowLog;*/
+
+ public static Block redstoneBallRepeater;
+ public static Item redstoneBallRepeaterItem;
+
+ public static Block golemCore;
+ public static Block golemPedestal;
+ public static Block golemHead;
+
+ public static Item golemWand;
+ public static Item golemRecharger;
+ public static Item corestone;
+ public static Item notebook;
+ public static Item note;
+
+ //Wearaables
+ public static Item heavyHelmet;
+ public static Item heavyChestplate;
+ public static Item heavyPants;
+ public static Item heavyBoots;
+
+ public static Item heartCanister;
+
+ //Chest hooks
+ public static ChestGenHooks tinkerHouseChest;
+ public static ChestGenHooks tinkerHousePatterns;
+
+ public TContent()
+ {
+ registerBlocks();
+ registerItems();
+ registerMaterials();
+ addCraftingRecipes();
+ setupToolTabs();
+ addLoot();
+ }
+
+ public void createEntities ()
+ {
+ EntityRegistry.registerModEntity(FancyEntityItem.class, "Fancy Item", 0, TConstruct.instance, 32, 5, true);
+ EntityRegistry.registerModEntity(DaggerEntity.class, "Dagger", 1, TConstruct.instance, 32, 5, true);
+ EntityRegistry.registerModEntity(Crystal.class, "Crystal", 2, TConstruct.instance, 32, 5, true);
+ //EntityRegistry.registerModEntity(SlimeClone.class, "SlimeClone", 2, TConstruct.instance, 32, 5, true);
+ //EntityRegistry.registerModEntity(LaunchedPotion.class, "Launched Potion", 1, TConstruct.instance, 32, 3, true);
+ //EntityRegistry.registerModEntity(CartEntity.class, "Small Wagon", 1, TConstruct.instance, 32, 5, true);
+
+ //EntityRegistry.registerModEntity(Skyla.class, "Skyla", 10, TConstruct.instance, 32, 5, true);
+ EntityRegistry.registerModEntity(NitroCreeper.class, "UnstableCreeper", 11, TConstruct.instance, 64, 5, true);
+ EntityRegistry.registerModEntity(BlueSlime.class, "EdibleSlime", 12, TConstruct.instance, 64, 5, true);
+ //EntityRegistry.registerModEntity(MetalSlime.class, "MetalSlime", 13, TConstruct.instance, 64, 5, true);
+
+ BiomeGenBase[] plains = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.PLAINS);
+ BiomeGenBase[] mountain = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.MOUNTAIN);
+ BiomeGenBase[] hills = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.HILLS);
+ BiomeGenBase[] swamp = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.SWAMP);
+ BiomeGenBase[] desert = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.DESERT);
+ BiomeGenBase[] frozen = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.FROZEN);
+ BiomeGenBase[] jungle = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.JUNGLE);
+ BiomeGenBase[] wasteland = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.WASTELAND);
+
+ BiomeGenBase[] nether = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.NETHER);
+
+ if (PHConstruct.superfunWorld)
+ {
+ EntityRegistry.addSpawn(NitroCreeper.class, 1000, 100, 100, EnumCreatureType.monster, plains);
+ EntityRegistry.addSpawn(NitroCreeper.class, 1000, 100, 100, EnumCreatureType.monster, mountain);
+ EntityRegistry.addSpawn(NitroCreeper.class, 1000, 100, 100, EnumCreatureType.monster, hills);
+ EntityRegistry.addSpawn(NitroCreeper.class, 1000, 100, 100, EnumCreatureType.monster, swamp);
+ EntityRegistry.addSpawn(NitroCreeper.class, 1000, 100, 100, EnumCreatureType.monster, desert);
+ EntityRegistry.addSpawn(NitroCreeper.class, 1000, 100, 100, EnumCreatureType.monster, frozen);
+ EntityRegistry.addSpawn(NitroCreeper.class, 1000, 100, 100, EnumCreatureType.monster, jungle);
+ EntityRegistry.addSpawn(NitroCreeper.class, 1000, 100, 100, EnumCreatureType.monster, wasteland);
+ DimensionManager.unregisterProviderType(0);
+ DimensionManager.registerProviderType(0, OverworldProvider.class, true);
+ }
+
+ if (PHConstruct.redCreeper)
+ {
+ EntityRegistry.addSpawn(NitroCreeper.class, PHConstruct.redCreeperWeight, 4, 6, EnumCreatureType.monster, nether);
+ }
+ if (PHConstruct.blueSlime)
+ {
+ EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, plains);
+ EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, mountain);
+ EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, hills);
+ EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, swamp);
+ EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, desert);
+ EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, frozen);
+ EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, jungle);
+ EntityRegistry.addSpawn(BlueSlime.class, PHConstruct.blueSlimeWeight, 4, 4, EnumCreatureType.monster, wasteland);
+ }
+ //EntityRegistry.addSpawn(MetalSlime.class, 1, 4, 4, EnumCreatureType.monster, overworldBiomes);
+ }
+
+ void registerBlocks ()
+ {
+ //Tool Station
+ toolStationWood = new ToolStationBlock(PHConstruct.woodCrafter, Material.wood).setUnlocalizedName("ToolStation");
+ GameRegistry.registerBlock(toolStationWood, ToolStationItemBlock.class, "ToolStationBlock");
+ GameRegistry.registerTileEntity(ToolStationLogic.class, "ToolStation");
+ GameRegistry.registerTileEntity(PartCrafterLogic.class, "PartCrafter");
+ GameRegistry.registerTileEntity(PatternChestLogic.class, "PatternHolder");
+ GameRegistry.registerTileEntity(PatternShaperLogic.class, "PatternShaper");
+
+ heldItemBlock = new EquipBlock(PHConstruct.heldItemBlock, Material.wood).setUnlocalizedName("Frypan");
+ GameRegistry.registerBlock(heldItemBlock, "HeldItemBlock");
+ GameRegistry.registerTileEntity(FrypanLogic.class, "FrypanLogic");
+
+ String[] soilTypes = new String[] { "slimesand", "grout", "slimesandblue" };
+ craftedSoil = new TConstructBlock(PHConstruct.craftedSoil, Material.sand, 3.0F, soilTypes).setUnlocalizedName("TConstruct.Soil");
+ craftedSoil.stepSound = Block.soundGravelFootstep;
+ GameRegistry.registerBlock(craftedSoil, CraftedSoilItemBlock.class, "CraftedSoil");
+
+ String[] metalTypes = new String[] { "compressed_cobalt", "compressed_ardite", "compressed_manyullyn", "compressed_copper", "compressed_bronze", "compressed_tin", "compressed_aluminum",
+ "compressed_alubrass", "compressed_alumite", "compressed_steel" };
+ metalBlock = new TMetalBlock(PHConstruct.metalBlock, Material.iron, 10.0F, metalTypes).setUnlocalizedName("tconstruct.metalblock");
+ metalBlock.stepSound = Block.soundMetalFootstep;
+ GameRegistry.registerBlock(metalBlock, MetalItemBlock.class, "MetalBlock");
+
+ //Smeltery
+ smeltery = new SmelteryBlock(PHConstruct.smeltery).setUnlocalizedName("Smeltery");
+ GameRegistry.registerBlock(smeltery, SmelteryItemBlock.class, "Smeltery");
+ GameRegistry.registerTileEntity(SmelteryLogic.class, "TConstruct.Smeltery");
+ GameRegistry.registerTileEntity(SmelteryDrainLogic.class, "TConstruct.SmelteryDrain");
+ GameRegistry.registerTileEntity(MultiServantLogic.class, "TConstruct.Servants");
+
+ lavaTank = new LavaTankBlock(PHConstruct.lavaTank).setUnlocalizedName("LavaTank");
+ lavaTank.setStepSound(Block.soundGlassFootstep);
+ GameRegistry.registerBlock(lavaTank, LavaTankItemBlock.class, "LavaTank");
+ GameRegistry.registerTileEntity(LavaTankLogic.class, "TConstruct.LavaTank");
+
+ searedBlock = new SearedBlock(PHConstruct.searedTable).setUnlocalizedName("SearedBlock");
+ GameRegistry.registerBlock(searedBlock, SearedTableItemBlock.class, "SearedBlock");
+ GameRegistry.registerTileEntity(CastingTableLogic.class, "CastingTable");
+ GameRegistry.registerTileEntity(FaucetLogic.class, "Faucet");
+ GameRegistry.registerTileEntity(CastingBasinLogic.class, "CastingBasin");
+
+ //Traps
+ /*landmine = new Landmine(PHConstruct.landmine, 0, EnumMobType.mobs, Material.cactus).setUnlocalizedName("landmine");
+ GameRegistry.registerBlock(landmine, "landmine");*/
+
+ //Liquids
+ liquidMetal = new MaterialLiquid(MapColor.tntColor);
+ liquidMetalFlowing = new LiquidMetalFlowing(PHConstruct.metalFlowing).setUnlocalizedName("liquid.metalFlow");
+ liquidMetalStill = new LiquidMetalStill(PHConstruct.metalStill).setUnlocalizedName("liquid.metalStill");
+ GameRegistry.registerBlock(liquidMetalFlowing, LiquidItemBlock.class, "metalFlow");
+ GameRegistry.registerBlock(liquidMetalStill, LiquidItemBlock.class, "metalStill");
+ GameRegistry.registerTileEntity(LiquidTextureLogic.class, "LiquidTexture");
+
+ //Decoration
+ stoneTorch = new StoneTorch(PHConstruct.stoneTorch).setUnlocalizedName("decoration.stonetorch");
+ GameRegistry.registerBlock(stoneTorch, "decoration.stonetorch");
+
+ multiBrick = new MultiBrick(PHConstruct.multiBrick).setUnlocalizedName("Decoration.Brick");
+ GameRegistry.registerBlock(multiBrick, MultiBrickItem.class, "decoration.multibrick");
+
+ //Ores
+ String[] berryOres = new String[] { "berry_iron", "berry_gold", "berry_copper", "berry_tin", "berry_iron_ripe", "berry_gold_ripe", "berry_copper_ripe", "berry_tin_ripe" };
+ oreBerry = (OreberryBush) new OreberryBush(PHConstruct.oreBerry, berryOres, 0, 4, new String[] { "oreIron", "oreGold", "oreCopper", "oreTin" }).setUnlocalizedName("ore.berries.one");
+ GameRegistry.registerBlock(oreBerry, OreberryBushItem.class, "ore.berries.one");
+ String[] berryOresTwo = new String[] { "berry_aluminum", "berry_silver", "", "", "berry_aluminum_ripe", "berry_silver_ripe", "", "" };
+ oreBerrySecond = (OreberryBush) new OreberryBush(PHConstruct.oreBerrySecond, berryOresTwo, 4, 2, new String[] { "oreAluminum", "oreSilver" }).setUnlocalizedName("ore.berries.two");
+ GameRegistry.registerBlock(oreBerrySecond, OreberryBushSecondItem.class, "ore.berries.two");
+
+ String[] oreTypes = new String[] { "nether_slag", "nether_cobalt", "nether_ardite", "ore_copper", "ore_tin", "ore_aluminum", "ore_slag" };
+ oreSlag = new MetalOre(PHConstruct.oreSlag, Material.iron, 10.0F, oreTypes).setUnlocalizedName("tconstruct.stoneore");
+ GameRegistry.registerBlock(oreSlag, MetalOreItemBlock.class, "SearedBrick");
+ MinecraftForge.setBlockHarvestLevel(oreSlag, 1, "pickaxe", 4);
+ MinecraftForge.setBlockHarvestLevel(oreSlag, 2, "pickaxe", 4);
+ MinecraftForge.setBlockHarvestLevel(oreSlag, 3, "pickaxe", 1);
+ MinecraftForge.setBlockHarvestLevel(oreSlag, 4, "pickaxe", 1);
+ MinecraftForge.setBlockHarvestLevel(oreSlag, 5, "pickaxe", 1);
+
+ oreGravel = new GravelOre(PHConstruct.oreGravel).setUnlocalizedName("GravelOre").setUnlocalizedName("tconstruct.gravelore");
+ GameRegistry.registerBlock(oreGravel, GravelOreItem.class, "GravelOre");
+
+ MinecraftForge.setBlockHarvestLevel(oreGravel, 0, "shovel", 1);
+ MinecraftForge.setBlockHarvestLevel(oreGravel, 1, "shovel", 2);
+ MinecraftForge.setBlockHarvestLevel(oreGravel, 2, "shovel", 1);
+ MinecraftForge.setBlockHarvestLevel(oreGravel, 3, "shovel", 1);
+ MinecraftForge.setBlockHarvestLevel(oreGravel, 4, "shovel", 1);
+ MinecraftForge.setBlockHarvestLevel(oreGravel, 5, "shovel", 4);
+
+ speedBlock = new SpeedBlock(PHConstruct.speedBlock).setUnlocalizedName("SpeedBlock");
+ GameRegistry.registerBlock(speedBlock, SpeedBlockItem.class, "SpeedBlock");
+
+ /*redstoneBallRepeater = new RedstoneBallRepeater(PHConstruct.redstoneBallRepeater, false).setUnlocalizedName("decoration.redstoneballrepeater");
+ GameRegistry.registerBlock(redstoneBallRepeater, "decoration.redstoneballrepeater");
+ Item.itemsList[PHConstruct.redstoneBallRepeater] = null;
+ redstoneBallRepeaterItem = new RedstoneBallRepeaterItem(PHConstruct.redstoneBallRepeater-256).setUnlocalizedName("decoration.redstoneballrepeater");*/
+
+ //Golems
+ /*golemCore = new GolemCoreBlock(PHConstruct.golemCore).setUnlocalizedName("golemcore");
+ GameRegistry.registerBlock(golemCore, "Golem Core");
+ GameRegistry.registerTileEntity(GolemCoreLogic.class, "TConstruct.GolemCore");
+
+ golemHead = new GolemHeadBlock(PHConstruct.golemHead).setUnlocalizedName("golemhead");
+ GameRegistry.registerBlock(golemHead, "Golem Head");*/
+
+ /*golemPedestal = new GolemPedestalBlock(PHConstruct.golemPedestal).setUnlocalizedName("golempedestal");
+ GameRegistry.registerBlock(golemPedestal, "Golem Pedestal");
+ GameRegistry.registerTileEntity(GolemPedestalLogic.class, "TConstruct.GolemPedestal");*/
+ }
+
+ void registerItems ()
+ {
+ titleIcon = new TitleIcon(PHConstruct.uselessItem).setUnlocalizedName("tconstruct.titleicon");
+ String[] blanks = new String[] { "blank_pattern", "blank_cast" };
+ blankPattern = new CraftingItem(PHConstruct.blankPattern, blanks, blanks, "materials/").setUnlocalizedName("tconstruct.Pattern");
+
+ materials = new MaterialItem(PHConstruct.materials).setUnlocalizedName("tconstruct.Materials");
+ toolRod = new ToolPart(PHConstruct.toolRod, "ToolRod", "_rod").setUnlocalizedName("tconstruct.ToolRod");
+ TConstructRegistry.toolRod = toolRod;
+ toolShard = new ToolShard(PHConstruct.toolShard, "ToolShard", "_chunk").setUnlocalizedName("tconstruct.ToolShard");
+ woodPattern = new Pattern(PHConstruct.woodPattern, "WoodPattern", "pattern_", "materials/").setUnlocalizedName("tconstruct.Pattern");
+ metalPattern = new MetalPattern(PHConstruct.metalPattern, "MetalPattern", "cast_", "materials/").setUnlocalizedName("tconstruct.MetalPattern");
+ //netherPattern = new Pattern(PHTools.netherPattern, 128, patternTexture).setUnlocalizedName("tconstruct.Pattern");
+
+ manualBook = new Manual(PHConstruct.manual);
+ buckets = new FilledBucket(PHConstruct.buckets);
+
+ pickaxe = new Pickaxe(PHConstruct.pickaxe);
+ shovel = new Shovel(PHConstruct.shovel);
+ axe = new Hatchet(PHConstruct.axe);
+ broadsword = new Broadsword(PHConstruct.broadsword);
+ longsword = new Longsword(PHConstruct.longsword);
+ rapier = new Rapier(PHConstruct.rapier);
+ dagger = new Dagger(PHConstruct.dagger);
+
+ frypan = new FryingPan(PHConstruct.frypan);
+ battlesign = new BattleSign(PHConstruct.battlesign);
+ mattock = new Mattock(PHConstruct.mattock);
+ //lumberaxe = new LumberAxe(PHConstruct.lumberaxe, lumberaxeTexture);
+ chisel = new Chisel(PHConstruct.chisel);
+ potionLauncher = new PotionLauncher(PHConstruct.potionLauncher).setUnlocalizedName("tconstruct.PotionLauncher");
+
+ pickaxeHead = new ToolPart(PHConstruct.pickaxeHead, "PickaxeHead", "_pickaxe_head").setUnlocalizedName("tconstruct.PickaxeHead");
+ shovelHead = new ToolPart(PHConstruct.shovelHead, "ShovelHead", "_shovel_head").setUnlocalizedName("tconstruct.ShovelHead");
+ axeHead = new ToolPart(PHConstruct.axeHead, "AxeHead", "_axe_head").setUnlocalizedName("tconstruct.AxeHead");
+ binding = new ToolPart(PHConstruct.binding, "Binding", "_binding").setUnlocalizedName("tconstruct.Binding");
+
+ swordBlade = new ToolPart(PHConstruct.swordBlade, "SwordBlade", "_sword_blade").setUnlocalizedName("tconstruct.SwordBlade");
+ wideGuard = new ToolPart(PHConstruct.largeGuard, "LargeGuard", "_large_guard").setUnlocalizedName("tconstruct.LargeGuard");
+ handGuard = new ToolPart(PHConstruct.medGuard, "MediumGuard", "_medium_guard").setUnlocalizedName("tconstruct.MediumGuard");
+ crossbar = new ToolPart(PHConstruct.crossbar, "Crossbar", "_crossbar").setUnlocalizedName("tconstruct.Crossbar");
+ knifeBlade = new ToolPart(PHConstruct.knifeBlade, "KnifeBlade", "_knife_blade").setUnlocalizedName("tconstruct.KnifeBlade");
+
+ frypanHead = new ToolPart(PHConstruct.frypanHead, "FrypanHead", "_frypan_head").setUnlocalizedName("tconstruct.FrypanHead");
+ signHead = new ToolPart(PHConstruct.signHead, "SignHead", "_battlesign_head").setUnlocalizedName("tconstruct.SignHead");
+ chiselHead = new ToolPart(PHConstruct.chiselHead, "ChiselHead", "_chisel_head").setUnlocalizedName("tconstruct.ChiselHead");
+
+ diamondApple = new DiamondApple(PHConstruct.diamondApple).setUnlocalizedName("tconstruct.apple.diamond");
+ strangeFood = new StrangeFood(PHConstruct.slimefood).setUnlocalizedName("tconstruct.strangefood");
+ oreBerries = new OreBerries(PHConstruct.oreChunks).setUnlocalizedName("oreberry");
+ //lumberHead = new ToolPart(PHConstruct.lumberHead, 0, broadheads).setUnlocalizedName("tconstruct.LumberHead");
+
+ //Wearables
+ //heavyHelmet = new TArmorBase(PHConstruct.heavyHelmet, 0).setUnlocalizedName("tconstruct.HeavyHelmet");
+ heartCanister = new HeartCanister(PHConstruct.heartCanister).setUnlocalizedName("tconstruct.canister");
+ heavyBoots = new TArmorBase(PHConstruct.heavyBoots, 3).setUnlocalizedName("tconstruct.HeavyBoots");
+ /*public static Item heavyHelmet;
+ public static Item heavyChestplate;
+ public static Item heavyPants;
+ public static Item heavyBoots;*/
+
+ //Vanilla stack sizes
+ Item.doorWood.setMaxStackSize(16);
+ Item.doorIron.setMaxStackSize(16);
+ Item.snowball.setMaxStackSize(64);
+ Item.boat.setMaxStackSize(16);
+ Item.minecartEmpty.setMaxStackSize(3);
+ Item.minecartCrate.setMaxStackSize(3);
+ Item.minecartPowered.setMaxStackSize(3);
+ Block.torchWood.setTickRandomly(false);
+ }
+
+ void registerMaterials ()
+ {
+ TConstructRegistry.addToolMaterial(0, "Wood", 1, 0, 59, 200, 0, 1.0F, 0, 0f, "\u00A7e", "");
+ TConstructRegistry.addToolMaterial(1, "Stone", 1, 1, 131, 400, 1, 0.5F, 0, 1f, "", "Stonebound");
+ TConstructRegistry.addToolMaterial(2, "Iron", 1, 2, 250, 600, 2, 1.3F, 1, 0f, "\u00A7f", "");
+ TConstructRegistry.addToolMaterial(3, "Flint", 1, 1, 171, 525, 2, 0.7F, 0, 1f, "\u00A78", "Stonebound");
+ TConstructRegistry.addToolMaterial(4, "Cactus", 1, 1, 150, 500, 2, 1.0F, 0, -1f, "\u00A72", "Spiny");
+ TConstructRegistry.addToolMaterial(5, "Bone", 1, 1, 200, 400, 1, 1.0F, 0, 0f, "\u00A7e", "");
+ TConstructRegistry.addToolMaterial(6, "Obsidian", 1, 3, 89, 700, 2, 0.8F, 3, 0f, "\u00A7d", "");
+ TConstructRegistry.addToolMaterial(7, "Netherrack", 1, 2, 131, 400, 1, 1.2F, 0, 1f, "\u00A74", "Stonebound");
+ TConstructRegistry.addToolMaterial(8, "Slime", 1, 3, 1500, 150, 0, 2.0F, 0, 0f, "\u00A7a", "");
+ TConstructRegistry.addToolMaterial(9, "Paper", 1, 0, 30, 200, 0, 0.3F, 0, 0f, "\u00A7f", "Writable");
+ TConstructRegistry.addToolMaterial(10, "Cobalt", 2, 4, 800, 1100, 3, 1.75F, 2, 0f, "\u00A73", "");
+ TConstructRegistry.addToolMaterial(11, "Ardite", 2, 4, 600, 800, 3, 2.0F, 0, 3f, "\u00A74", "Stonebound");
+ TConstructRegistry.addToolMaterial(12, "Manyullyn", 2, 5, 1200, 900, 4, 2.5F, 0, 0f, "\u00A75", "");
+ TConstructRegistry.addToolMaterial(13, "Copper", 1, 1, 180, 500, 2, 1.15F, 0, 0f, "\u00A7c", "");
+ TConstructRegistry.addToolMaterial(14, "Bronze", 1, 2, 350, 700, 2, 1.3F, 1, 0f, "\u00A76", "");
+ TConstructRegistry.addToolMaterial(15, "Alumite", 2, 4, 550, 800, 3, 1.3F, 2, 0f, "\u00A7d", "");
+ TConstructRegistry.addToolMaterial(16, "Steel", 2, 4, 750, 800, 3, 1.3F, 2, 0f);
+ TConstructRegistry.addToolMaterial(17, "BlueSlime", 1, 1, 500, 150, 0, 1.5F, 0, 0f, "\u00A7b", "");
+
+ //Thaumcraft
+ TConstructRegistry.addToolMaterial(21, "Thaumium", 2, 2, 250, 600, 2, 1.3F, 1, 0f);
+
+ /*//Metallurgy
+ TConstructRegistry.addToolMaterial(22, "Heptazion", 2, 2, 300, 800, 1, 1.0F, 0, 0f);
+ TConstructRegistry.addToolMaterial(23, "Damascus Steel", 2, 3, 500, 600, 2, 1.35F, 1, 0f);
+ TConstructRegistry.addToolMaterial(24, "Angmallen", 2, 2, 300, 800, 2, 0.8F, 0, 0f);
+
+ TConstructRegistry.addToolMaterial(25, "Promethium", 1, 1, 200, 400, 1, 1.0F, 0, 0.5f);
+ TConstructRegistry.addToolMaterial(26, "Deep Iron", 1, 2, 250, 600, 2, 1.3F, 1, 0f);
+ TConstructRegistry.addToolMaterial(27, "Oureclase", 2, 3, 750, 800, 2, 1.2F, 0, 0f);
+ TConstructRegistry.addToolMaterial(28, "Aredrite", 2, 3, 1000, 400, 2, 1.5F, 0, 1.0f);
+ TConstructRegistry.addToolMaterial(29, "Astral Silver", 1, 4, 35, 1200, 1, 0.5F, 0, 0f);
+ TConstructRegistry.addToolMaterial(30, "Carmot", 1, 4, 50, 1200, 1, 0.5F, 0, 0f);
+ TConstructRegistry.addToolMaterial(31, "Mithril", 2, 4, 1000, 900, 3, 1.25F, 3, 0f);
+ TConstructRegistry.addToolMaterial(32, "Orichalcum", 2, 5, 1350, 900, 3, 1.25F, 0, 0f);
+ TConstructRegistry.addToolMaterial(33, "Adamantine", 3, 6, 1550, 1000, 4, 1.5F, 1, 0f);
+ TConstructRegistry.addToolMaterial(34, "Atlarus", 3, 6, 1750, 1000, 4, 1.6F, 2, 0f);
+
+ TConstructRegistry.addToolMaterial(35, "Black Steel", 2, 2, 500, 800, 2, 1.3F, 2, 0f);
+ TConstructRegistry.addToolMaterial(36, "Quicksilver", 2, 4, 1100, 1400, 3, 1.0F, 1, 0f);
+ TConstructRegistry.addToolMaterial(37, "Haderoth", 2, 4, 1250, 1200, 3, 1.0F, 2, 0f);
+ TConstructRegistry.addToolMaterial(38, "Celenegil", 3, 5, 1600, 1400, 3, 1.0F, 2, 0f);
+ TConstructRegistry.addToolMaterial(39, "Tartarite", 3, 7, 3000, 1400, 5, 1.6667F, 4, 0f);*/
+
+ PatternBuilder pb = PatternBuilder.instance;
+ if (PHConstruct.enableTWood)
+ pb.registerFullMaterial(Block.planks, 2, "Wood", new ItemStack(Item.stick, 2), new ItemStack(Item.stick), 0);
+ else
+ pb.registerMaterialSet("Wood", new ItemStack(Item.stick, 2), new ItemStack(Item.stick), 0);
+ if (PHConstruct.enableTStone)
+ {
+ pb.registerFullMaterial(Block.stone, 2, "Stone", new ItemStack(TContent.toolShard, 1, 1), new ItemStack(TContent.toolRod, 1, 1), 1);
+ pb.registerMaterial(Block.cobblestone, 2, "Stone");
+ }
+ //else
+ //pb.registerMaterialSet("Stone", new ItemStack(TContent.toolShard, 1, 1), new ItemStack(TContent.toolRod, 1, 1), 1);
+ pb.registerFullMaterial(Item.ingotIron, 2, "Iron", new ItemStack(TContent.toolShard, 1, 2), new ItemStack(TContent.toolRod, 1, 2), 2);
+ pb.registerFullMaterial(Item.flint, 2, "Flint", new ItemStack(TContent.toolShard, 1, 3), new ItemStack(TContent.toolRod, 1, 3), 3);
+ if (PHConstruct.enableTCactus)
+ pb.registerFullMaterial(Block.cactus, 2, "Cactus", new ItemStack(TContent.toolShard, 1, 4), new ItemStack(TContent.toolRod, 1, 4), 4);
+ else
+ pb.registerMaterialSet("Cactus", new ItemStack(TContent.toolShard, 1, 4), new ItemStack(TContent.toolRod, 1, 4), 4);
+ if (PHConstruct.enableTBone)
+ pb.registerFullMaterial(Item.bone, 2, "Bone", new ItemStack(Item.dyePowder, 1, 15), new ItemStack(Item.bone), 5);
+ else
+ pb.registerMaterialSet("Bone", new ItemStack(Item.dyePowder, 1, 15), new ItemStack(Item.bone), 5);
+ pb.registerFullMaterial(Block.obsidian, 2, "Obsidian", new ItemStack(TContent.toolShard, 1, 6), new ItemStack(TContent.toolRod, 1, 6), 6);
+ pb.registerMaterial(new ItemStack(materials, 1, 18), 2, "Obsidian");
+ pb.registerFullMaterial(Block.netherrack, 2, "Netherrack", new ItemStack(TContent.toolShard, 1, 7), new ItemStack(TContent.toolRod, 1, 7), 7);
+ pb.registerFullMaterial(new ItemStack(materials, 1, 1), 2, "Slime", new ItemStack(toolShard, 1, 8), new ItemStack(toolRod, 1, 8), 8);
+ pb.registerFullMaterial(new ItemStack(materials, 1, 0), 2, "Paper", new ItemStack(Item.paper, 2), new ItemStack(toolRod, 1, 9), 9);
+ pb.registerMaterialSet("Cobalt", new ItemStack(toolShard, 1, 10), new ItemStack(toolRod, 1, 10), 10);
+ pb.registerMaterialSet("Ardite", new ItemStack(toolShard, 1, 11), new ItemStack(toolRod, 1, 11), 11);
+ pb.registerMaterialSet("Manyullyn", new ItemStack(toolShard, 1, 12), new ItemStack(toolRod, 1, 12), 12);
+ pb.registerMaterialSet("Copper", new ItemStack(toolShard, 1, 13), new ItemStack(toolRod, 1, 13), 13);
+ pb.registerMaterialSet("Bronze", new ItemStack(toolShard, 1, 14), new ItemStack(toolRod, 1, 14), 14);
+ pb.registerMaterialSet("Alumite", new ItemStack(toolShard, 1, 15), new ItemStack(toolRod, 1, 15), 15);
+ pb.registerMaterialSet("Steel", new ItemStack(toolShard, 1, 16), new ItemStack(toolRod, 1, 16), 16);
+ pb.registerFullMaterial(new ItemStack(materials, 1, 17), 2, "BlueSlime", new ItemStack(toolShard, 1, 17), new ItemStack(toolRod, 1, 17), 17);
+
+ pb.addToolPattern((IPattern) woodPattern);
+ }
+
+ public static Item[] patternOutputs;
+ public static LiquidStack[] liquids;
+
+ void addCraftingRecipes ()
+ {
+ /* Tools */
+ patternOutputs = new Item[] { toolRod, pickaxeHead, shovelHead, axeHead, swordBlade, wideGuard, handGuard, crossbar, binding, frypanHead, signHead, knifeBlade, chiselHead };
+
+ ToolBuilder tb = ToolBuilder.instance;
+ tb.addToolRecipe(pickaxe, pickaxeHead, binding);
+ tb.addToolRecipe(broadsword, swordBlade, wideGuard);
+ tb.addToolRecipe(axe, axeHead);
+ tb.addToolRecipe(shovel, shovelHead);
+ tb.addToolRecipe(longsword, swordBlade, handGuard);
+ tb.addToolRecipe(rapier, swordBlade, crossbar);
+ tb.addToolRecipe(frypan, frypanHead);
+ tb.addToolRecipe(battlesign, signHead);
+ tb.addToolRecipe(mattock, axeHead, shovelHead);
+ tb.addToolRecipe(dagger, knifeBlade, crossbar);
+ tb.addToolRecipe(chisel, chiselHead);
+ //tb.addToolRecipe(longbow, toolRod, toolRod);
+ //tb.addToolRecipe(lumberaxe, lumberHead);
+
+ ItemStack diamond = new ItemStack(Item.diamond);
+ tb.registerToolMod(new ModRepair());
+ tb.registerToolMod(new ModDurability(new ItemStack[] { diamond }, 0, 500, 0f, 3, "Diamond", "\u00a7bDurability +500", "\u00a7b"));
+ tb.registerToolMod(new ModDurability(new ItemStack[] { new ItemStack(Item.emerald) }, 1, 0, 0.5f, 2, "Emerald", "\u00a72Durability +50%", "\u00a72"));
+
+ modE = new ModElectric();
+ tb.registerToolMod(modE);
+
+ ItemStack redstoneItem = new ItemStack(Item.redstone);
+ ItemStack redstoneBlock = new ItemStack(Block.blockRedstone);
+ tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneItem }, 2, 1));
+ tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneItem, redstoneItem }, 2, 2));
+ tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneBlock }, 2, 9));
+ tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneItem, redstoneBlock }, 2, 10));
+ tb.registerToolMod(new ModRedstone(new ItemStack[] { redstoneBlock, redstoneBlock }, 2, 18));
+
+ ItemStack lapisItem = new ItemStack(Item.dyePowder, 1, 4);
+ ItemStack lapisBlock = new ItemStack(Block.blockLapis);
+ modL = new ModLapis(new ItemStack[] { lapisItem }, 10, 1);
+ tb.registerToolMod(modL);
+ tb.registerToolMod(new ModLapis(new ItemStack[] { lapisItem, lapisItem }, 10, 2));
+ tb.registerToolMod(new ModLapis(new ItemStack[] { lapisBlock }, 10, 9));
+ tb.registerToolMod(new ModLapis(new ItemStack[] { lapisItem, lapisBlock }, 10, 10));
+ tb.registerToolMod(new ModLapis(new ItemStack[] { lapisBlock, lapisBlock }, 10, 18));
+
+ tb.registerToolMod(new ModInteger(new ItemStack[] { new ItemStack(materials, 1, 6) }, 4, "Moss", 3, "\u00a72", "Auto-Repair"));
+ ItemStack blazePowder = new ItemStack(Item.blazePowder);
+ tb.registerToolMod(new ModBlaze(new ItemStack[] { blazePowder }, 7, 1));
+ tb.registerToolMod(new ModBlaze(new ItemStack[] { blazePowder, blazePowder }, 7, 2));
+ tb.registerToolMod(new ModAutoSmelt(new ItemStack[] { new ItemStack(materials, 1, 7) }, 6, "Lava", "\u00a74", "Auto-Smelt"));
+ tb.registerToolMod(new ModInteger(new ItemStack[] { new ItemStack(materials, 1, 8) }, 8, "Necrotic", 1, "\u00a78", "Life Steal"));
+
+ ItemStack quartzItem = new ItemStack(Item.netherQuartz);
+ ItemStack quartzBlock = new ItemStack(Block.blockNetherQuartz, 1, Short.MAX_VALUE);
+ tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzItem }, 11, 1));
+ tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzItem, quartzItem }, 11, 2));
+ tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzBlock }, 11, 4));
+ tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzItem, quartzBlock }, 11, 5));
+ tb.registerToolMod(new ModAttack("Quartz", new ItemStack[] { quartzBlock, quartzBlock }, 11, 8));
+
+ tb.registerToolMod(new ModExtraModifier(new ItemStack[] { diamond, new ItemStack(Block.blockGold) }, "Tier1Free"));
+ tb.registerToolMod(new ModExtraModifier(new ItemStack[] { new ItemStack(Item.netherStar) }, "Tier2Free"));
+
+ ItemStack silkyJewel = new ItemStack(materials, 1, 26);
+ tb.registerToolMod(new ModButtertouch(new ItemStack[] { silkyJewel }, 12));
+
+ TConstructRegistry.registerActiveToolMod(new TActiveOmniMod());
+
+ /* Smeltery */
+ ItemStack ingotcast = new ItemStack(metalPattern, 1, 0);
+
+ LiquidCasting tableCasting = TConstructRegistry.instance.getTableCasting();
+ //Blank
+ tableCasting.addCastingRecipe(new ItemStack(blankPattern, 1, 1), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 8), 80);
+ tableCasting.addCastingRecipe(new ItemStack(blankPattern, 1, 1), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 1), 80);
+
+ //Ingots
+ tableCasting.addCastingRecipe(new ItemStack(Item.ingotIron), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 0), ingotcast, 80); //Iron
+ tableCasting.addCastingRecipe(new ItemStack(Item.ingotGold), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 1), ingotcast, 80); //gold
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 9), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 2), ingotcast, 80); //copper
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 10), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 3), ingotcast, 80); //tin
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 11), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 4), ingotcast, 80); //aluminum
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 3), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 5), ingotcast, 80); //cobalt
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 4), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 6), ingotcast, 80); //ardite
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 13), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 7), ingotcast, 80); //bronze
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 14), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 8), ingotcast, 80); //albrass
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 5), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 9), ingotcast, 80); //manyullyn
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 15), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 10), ingotcast, 80); //alumite
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 18), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 11), ingotcast, 80); //obsidian
+ tableCasting.addCastingRecipe(new ItemStack(materials, 1, 16), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 12), ingotcast, 80); //steel
+
+ //Buckets
+ ItemStack bucket = new ItemStack(Item.bucketEmpty);
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 0), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 0), bucket, true, 10); //Iron
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 1), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 1), bucket, true, 10); //gold
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 2), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 2), bucket, true, 10); //copper
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 3), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 3), bucket, true, 10); //tin
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 4), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 4), bucket, true, 10); //aluminum
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 5), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 5), bucket, true, 10); //cobalt
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 6), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 6), bucket, true, 10); //ardite
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 7), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 7), bucket, true, 10); //bronze
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 8), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 8), bucket, true, 10); //albrass
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 9), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 9), bucket, true, 10); //manyullyn
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 10), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 10), bucket, true, 10); //alumite
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 11), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 11), bucket, true, 10);// obsidian
+ tableCasting.addCastingRecipe(new ItemStack(buckets, 1, 12), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 12), bucket, true, 10); //steel
+
+ liquids = new LiquidStack[] { new LiquidStack(liquidMetalStill.blockID, 1, 0), new LiquidStack(liquidMetalStill.blockID, 1, 2), new LiquidStack(liquidMetalStill.blockID, 1, 5),
+ new LiquidStack(liquidMetalStill.blockID, 1, 6), new LiquidStack(liquidMetalStill.blockID, 1, 9), new LiquidStack(liquidMetalStill.blockID, 1, 7),
+ new LiquidStack(liquidMetalStill.blockID, 1, 10), new LiquidStack(liquidMetalStill.blockID, 1, 11), new LiquidStack(liquidMetalStill.blockID, 1, 12) };
+ int[] liquidDamage = new int[] { 2, 13, 10, 11, 12, 14, 15, 6, 16 };
+
+ for (int iter = 0; iter < patternOutputs.length; iter++)
+ {
+ ItemStack cast = new ItemStack(metalPattern, 1, iter + 1);
+ for (int iterTwo = 0; iterTwo < liquids.length; iterTwo++)
+ {
+ tableCasting.addCastingRecipe(new ItemStack(patternOutputs[iter], 1, liquidDamage[iterTwo]), new LiquidStack(liquids[iterTwo].itemID, ((IPattern) metalPattern).getPatternCost(iter)
+ * TConstruct.ingotLiquidValue / 2, liquids[iterTwo].itemMeta), cast, 50);
+ }
+ }
+
+ LiquidCasting basinCasting = TConstructRegistry.getBasinCasting();
+ basinCasting.addCastingRecipe(new ItemStack(Block.blockIron), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 0), null, true, 100); //Iron
+ basinCasting.addCastingRecipe(new ItemStack(Block.blockGold), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 1), null, true, 100); //gold
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 3), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 2), null, true, 100); //copper
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 5), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 3), null, true, 100); //tin
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 6), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 4), null, true, 100); //aluminum
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 0), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 5), null, true, 100); //cobalt
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 1), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 6), null, true, 100); //ardite
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 4), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 7), null, true, 100); //bronze
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 7), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 8), null, true, 100); //albrass
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 2), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 9), null, true, 100); //manyullyn
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 8), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 10), null, true, 100); //alumite
+ basinCasting.addCastingRecipe(new ItemStack(Block.obsidian), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 11), null, true, 100);// obsidian
+ basinCasting.addCastingRecipe(new ItemStack(metalBlock, 1, 9), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 12), null, true, 100); //steel
+
+ basinCasting.addCastingRecipe(new ItemStack(speedBlock, 1, 0), new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 3), new ItemStack(Block.gravel), true, 100); //brownstone
+
+ //Ore
+ Smeltery.addMelting(Block.oreIron, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 0));
+ Smeltery.addMelting(Block.oreGold, 0, 400, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 1));
+ Smeltery.addMelting(oreGravel, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 0));
+ //Smeltery.addMelting(oreGravel, 1, 400, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 1));
+
+ //Items
+ Smeltery.addMelting(new ItemStack(Item.ingotIron, 4), Block.blockIron.blockID, 0, 500, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 0));
+ Smeltery.addMelting(new ItemStack(Item.ingotGold, 4), Block.blockGold.blockID, 0, 300, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 1));
+ Smeltery.addMelting(new ItemStack(Item.goldNugget, 4), Block.blockGold.blockID, 0, 150, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 1));
+
+ Smeltery.addMelting(new ItemStack(Item.bucketEmpty), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 3, 0));
+ Smeltery.addMelting(new ItemStack(Item.minecartEmpty), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 5, 0));
+ Smeltery.addMelting(new ItemStack(materials, 1, 18), Block.obsidian.blockID, 0, 750, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 11));//obsidian
+
+ //Blocks
+ Smeltery.addMelting(Block.blockIron, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 0));
+ Smeltery.addMelting(Block.blockGold, 0, 400, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, 1));
+ Smeltery.addMelting(Block.obsidian, 0, 800, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 11));
+ Smeltery.addMelting(Block.ice, 0, 75, new LiquidStack(Block.waterStill.blockID, 1000, 0));
+
+ //Alloys
+ Smeltery.addAlloyMixing(new LiquidStack(liquidMetalStill.blockID, 2, 7), new LiquidStack(liquidMetalStill.blockID, 3, 2), new LiquidStack(liquidMetalStill.blockID, 1, 3)); //Bronze
+ Smeltery.addAlloyMixing(new LiquidStack(liquidMetalStill.blockID, 2, 8), new LiquidStack(liquidMetalStill.blockID, 3, 4), new LiquidStack(liquidMetalStill.blockID, 1, 2)); //Aluminum Brass
+ Smeltery.addAlloyMixing(new LiquidStack(liquidMetalStill.blockID, 1, 9), new LiquidStack(liquidMetalStill.blockID, 2, 5), new LiquidStack(liquidMetalStill.blockID, 2, 6)); //Manyullyn
+ Smeltery.addAlloyMixing(new LiquidStack(liquidMetalStill.blockID, 3, 10), new LiquidStack(liquidMetalStill.blockID, 5, 4), new LiquidStack(liquidMetalStill.blockID, 2, 0), new LiquidStack(
+ liquidMetalStill.blockID, 2, 11)); //Alumite
+
+ //Oreberries
+ Smeltery.addMelting(new ItemStack(oreBerries, 4, 0), Block.blockIron.blockID, 0, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 0)); //Iron
+ Smeltery.addMelting(new ItemStack(oreBerries, 4, 1), Block.blockGold.blockID, 0, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 1)); //Gold
+ Smeltery.addMelting(new ItemStack(oreBerries, 4, 2), metalBlock.blockID, 3, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 2)); //Copper
+ Smeltery.addMelting(new ItemStack(oreBerries, 4, 3), metalBlock.blockID, 5, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 3)); //Tin
+ Smeltery.addMelting(new ItemStack(oreBerries, 4, 4), metalBlock.blockID, 6, 100, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue / 9, 4)); //Aluminum
+
+ //Vanilla Armor
+ Smeltery.addMelting(new ItemStack(Item.helmetIron, 1, 0), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 5, 0));
+ Smeltery.addMelting(new ItemStack(Item.plateIron, 1, 0), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 8, 0));
+ Smeltery.addMelting(new ItemStack(Item.legsIron, 1, 0), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 7, 0));
+ Smeltery.addMelting(new ItemStack(Item.bootsIron, 1, 0), Block.blockIron.blockID, 0, 600, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 4, 0));
+
+ Smeltery.addMelting(new ItemStack(Item.helmetGold, 1, 0), Block.blockGold.blockID, 0, 350, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 5, 1));
+ Smeltery.addMelting(new ItemStack(Item.plateGold, 1, 0), Block.blockGold.blockID, 0, 350, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 8, 1));
+ Smeltery.addMelting(new ItemStack(Item.legsGold, 1, 0), Block.blockGold.blockID, 0, 350, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 7, 1));
+ Smeltery.addMelting(new ItemStack(Item.bootsGold, 1, 0), Block.blockGold.blockID, 0, 350, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 4, 1));
+
+ Smeltery.addMelting(new ItemStack(Item.helmetChain, 1, 0), this.metalBlock.blockID, 9, 700, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 12));
+ Smeltery.addMelting(new ItemStack(Item.plateChain, 1, 0), this.metalBlock.blockID, 9, 700, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 12));
+ Smeltery.addMelting(new ItemStack(Item.legsChain, 1, 0), this.metalBlock.blockID, 9, 700, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 12));
+ Smeltery.addMelting(new ItemStack(Item.bootsChain, 1, 0), this.metalBlock.blockID, 9, 700, new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue, 12));
+
+ /* Detailing */
+ Detailing chiseling = TConstructRegistry.getChiselDetailing();
+ chiseling.addDetailing(Block.stone, 0, Block.stoneBrick, 0, chisel);
+ chiseling.addDetailing(speedBlock, 0, speedBlock, 1, chisel);
+ chiseling.addDetailing(speedBlock, 2, speedBlock, 3, chisel);
+ chiseling.addDetailing(speedBlock, 3, speedBlock, 4, chisel);
+ chiseling.addDetailing(speedBlock, 4, speedBlock, 5, chisel);
+ chiseling.addDetailing(speedBlock, 5, speedBlock, 6, chisel);
+
+ chiseling.addDetailing(Block.obsidian, 0, multiBrick, 0, chisel);
+ chiseling.addDetailing(Block.sandStone, 0, Block.sandStone, 2, chisel);
+ chiseling.addDetailing(Block.sandStone, 2, Block.sandStone, 1, chisel);
+ chiseling.addDetailing(Block.sandStone, 1, multiBrick, 1, chisel);
+ //chiseling.addDetailing(Block.netherrack, 0, multiBrick, 2, chisel);
+ //chiseling.addDetailing(Block.stone_refined, 0, multiBrick, 3, chisel);
+ chiseling.addDetailing(Item.ingotIron, 0, multiBrick, 4, chisel);
+ chiseling.addDetailing(Item.ingotGold, 0, multiBrick, 5, chisel);
+ chiseling.addDetailing(Item.dyePowder, 4, multiBrick, 6, chisel);
+ chiseling.addDetailing(Item.diamond, 0, multiBrick, 7, chisel);
+ chiseling.addDetailing(Item.redstone, 0, multiBrick, 8, chisel);
+ chiseling.addDetailing(Item.bone, 0, multiBrick, 9, chisel);
+ chiseling.addDetailing(Item.slimeBall, 0, multiBrick, 10, chisel);
+ chiseling.addDetailing(strangeFood, 0, multiBrick, 11, chisel);
+ chiseling.addDetailing(Block.whiteStone, 0, multiBrick, 12, chisel);
+ chiseling.addDetailing(materials, 18, multiBrick, 13, chisel);
+
+ /*static String blockTextures[] = { "brick_obsidian", "brick_sandstone", "brick_netherrack", "brick_stone_refined", "brick_iron", "brick_gold", "brick_lapis", "brick_diamond",
+ "brick_redstone", "brick_slime", "brick_bone" };*/
+
+ /* Crafting */
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 0), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', Block.workbench);
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 1), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.wood, 1, 0));
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 2), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.wood, 1, 1));
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 3), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.wood, 1, 2));
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 4), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.wood, 1, 3));
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 5), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', Block.chest);
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 10), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.planks, 1, 0));
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 11), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.planks, 1, 1));
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 12), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.planks, 1, 2));
+ GameRegistry.addRecipe(new ItemStack(toolStationWood, 1, 13), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', new ItemStack(Block.planks, 1, 3));
+ GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(toolStationWood, 1, 1), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', "logWood"));
+ GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(toolStationWood, 1, 10), "p", "w", 'p', new ItemStack(blankPattern, 1, 0), 'w', "plankWood"));
+
+ GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blankPattern, 1, 0), "ps", "sp", 'p', "plankWood", 's', Item.stick));
+ GameRegistry.addRecipe(new ItemStack(manualBook), "wp", 'w', new ItemStack(blankPattern, 1, 0), 'p', Item.paper);
+ GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 2, 0), new ItemStack(manualBook, 1, 0), Item.book);
+ GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 1, 1), new ItemStack(manualBook, 1, 0));
+ GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 2, 1), new ItemStack(manualBook, 1, 1), Item.book);
+ GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 1, 2), new ItemStack(manualBook, 1, 1));
+ GameRegistry.addShapelessRecipe(new ItemStack(manualBook, 2, 2), new ItemStack(manualBook, 1, 2), Item.book);
+
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 0), "pp", "pp", 'p', Item.paper); //Paper stack
+ OreDictionary.registerOre("mossystone", new ItemStack(Block.stoneBrick, 1, 1));
+ OreDictionary.registerOre("mossystone", new ItemStack(Block.cobblestoneMossy));
+ GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(materials, 1, 6), "ppp", "ppp", "ppp", 'p', "mossystone")); //Moss ball
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 6), "ppp", "ppp", "ppp", 'p', new ItemStack(Block.stoneBrick, 1, 1)); //Moss ball
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 7), "xcx", "cbc", "xcx", 'b', Item.bucketLava, 'c', Item.fireballCharge, 'x', Item.blazeRod); //Auto-smelt
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 7), "xcx", "cbc", "xcx", 'b', Item.bucketLava, 'x', Item.fireballCharge, 'c', Item.blazeRod); //Auto-smelt
+ //GameRegistry.addShapelessRecipe(new ItemStack(materials, 1, 8), Item.bone, Item.rottenFlesh, Item.chickenRaw, Item.beefRaw, Item.porkRaw, Item.fishRaw); //Necrotic bone
+ GameRegistry.addShapelessRecipe(new ItemStack(craftedSoil, 1, 0), Item.slimeBall, Item.slimeBall, Item.slimeBall, Item.slimeBall, Block.sand, Block.dirt); //Slimy sand
+ GameRegistry.addShapelessRecipe(new ItemStack(craftedSoil, 1, 2), strangeFood, strangeFood, strangeFood, strangeFood, Block.sand, Block.dirt); //Slimy sand
+ GameRegistry.addShapelessRecipe(new ItemStack(craftedSoil, 2, 1), Item.clay, Block.sand, Block.gravel); //Grout
+ GameRegistry.addShapelessRecipe(new ItemStack(craftedSoil, 8, 1), Block.blockClay, Block.sand, Block.gravel, Block.sand, Block.gravel, Block.sand, Block.gravel, Block.sand, Block.gravel); //Grout
+
+ FurnaceRecipes.smelting().addSmelting(craftedSoil.blockID, 0, new ItemStack(materials, 1, 1), 2f); //Slime
+ FurnaceRecipes.smelting().addSmelting(craftedSoil.blockID, 1, new ItemStack(materials, 1, 2), 2f); //Seared brick item
+ FurnaceRecipes.smelting().addSmelting(craftedSoil.blockID, 2, new ItemStack(materials, 1, 17), 2f); //Blue Slime
+ //GameRegistry.addRecipe(new ItemStack(oreSlag, 1, 0), "pp", "pp", 'p', new ItemStack(materials, 1, 2)); //Seared brick block
+
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 25), "sss", "sns", "sss", 'n', new ItemStack(materials, 1, 24), 's', new ItemStack(Item.silk)); //Silky Cloth
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 25), "sss", "sns", "sss", 'n', new ItemStack(Item.goldNugget), 's', new ItemStack(Item.silk));
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 26), " c ", "cec", " c ", 'c', new ItemStack(materials, 1, 25), 'e', new ItemStack(Item.emerald)); //Silky Jewel
+
+ //FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 1, new ItemStack(materials, 1, 3), 3f);
+ //FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 2, new ItemStack(materials, 1, 4), 3f);
+ FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 3, new ItemStack(materials, 1, 9), 0.5f);
+ FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 4, new ItemStack(materials, 1, 10), 0.5f);
+ FurnaceRecipes.smelting().addSmelting(oreSlag.blockID, 5, new ItemStack(materials, 1, 12), 0.5f);
+
+ FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 0, new ItemStack(materials, 1, 19), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 1, new ItemStack(Item.goldNugget), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 2, new ItemStack(materials, 1, 20), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 3, new ItemStack(materials, 1, 21), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 4, new ItemStack(materials, 1, 22), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreBerries.itemID, 5, new ItemStack(materials, 1, 23), 0.2f);
+
+ FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 0, new ItemStack(Item.ingotIron), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 1, new ItemStack(Item.ingotGold), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 2, new ItemStack(materials, 1, 9), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 3, new ItemStack(materials, 1, 10), 0.2f);
+ FurnaceRecipes.smelting().addSmelting(oreGravel.blockID, 4, new ItemStack(materials, 1, 12), 0.2f);
+
+ FurnaceRecipes.smelting().addSmelting(speedBlock.blockID, 0, new ItemStack(speedBlock, 1, 2), 0.2f);
+
+ //Metal conversion
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 9), "m", 'm', new ItemStack(metalBlock, 1, 3)); //Copper
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 10), "m", 'm', new ItemStack(metalBlock, 1, 5)); //Tin
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 12), "m", 'm', new ItemStack(metalBlock, 1, 6)); //Aluminum
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 13), "m", 'm', new ItemStack(metalBlock, 1, 4)); //Bronze
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 14), "m", 'm', new ItemStack(metalBlock, 1, 7)); //AluBrass
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 3), "m", 'm', new ItemStack(metalBlock, 1, 0)); //Cobalt
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 4), "m", 'm', new ItemStack(metalBlock, 1, 1)); //Ardite
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 5), "m", 'm', new ItemStack(metalBlock, 1, 2)); //Manyullyn
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 15), "m", 'm', new ItemStack(metalBlock, 1, 8)); //Alumite
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 16), "m", 'm', new ItemStack(metalBlock, 1, 9)); //Steel
+
+ GameRegistry.addRecipe(new ItemStack(Item.ingotIron), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 19)); //Iron
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 9), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 20)); //Copper
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 10), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 21)); //Tin
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 12), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 22)); //Aluminum
+ GameRegistry.addRecipe(new ItemStack(materials, 1, 14), "mmm", "mmm", "mmm", 'm', new ItemStack(materials, 1, 24)); //Aluminum Brass
+
+ GameRegistry.addRecipe(new ItemStack(materials, 9, 24), "m", 'm', new ItemStack(materials, 1, 14)); //Aluminum Brass Nugget
+
+ /*OreDictionary.registerOre("ingotAluminumBrass", new ItemStack(materials, 1, 14));
+ OreDictionary.registerOre("nuggetAluminumBrass", new ItemStack(materials, 1, 24));*/
+
+ //Smeltery
+ ItemStack searedBrick = new ItemStack(materials, 1, 2);
+ GameRegistry.addRecipe(new ItemStack(smeltery, 1, 0), "bbb", "b b", "bbb", 'b', searedBrick); //Controller
+ GameRegistry.addRecipe(new ItemStack(smeltery, 1, 1), "b b", "b b", "b b", 'b', searedBrick); //Drain
+ GameRegistry.addRecipe(new ItemStack(smeltery, 1, 2), "bb", "bb", 'b', searedBrick); //Bricks
+
+ GameRegistry.addRecipe(new ItemStack(lavaTank, 1, 0), "bbb", "bgb", "bbb", 'b', searedBrick, 'g', Block.glass); //Tank
+ GameRegistry.addRecipe(new ItemStack(lavaTank, 1, 1), "bgb", "ggg", "bgb", 'b', searedBrick, 'g', Block.glass); //Glass
+ GameRegistry.addRecipe(new ItemStack(lavaTank, 1, 2), "bgb", "bgb", "bgb", 'b', searedBrick, 'g', Block.glass); //Window
+
+ GameRegistry.addRecipe(new ItemStack(searedBlock, 1, 0), "bbb", "b b", "b b", 'b', searedBrick); //Table
+ GameRegistry.addRecipe(new ItemStack(searedBlock, 1, 1), "b b", " b ", 'b', searedBrick); //Faucet
+ GameRegistry.addRecipe(new ItemStack(searedBlock, 1, 2), "b b", "b b", "bbb", 'b', searedBrick); //Basin
+
+ GameRegistry.addRecipe(new ItemStack(stoneTorch, 4), "p", "w", 'p', new ItemStack(Item.coal, 1, Short.MAX_VALUE), 'w', new ItemStack(toolRod, 1, 1));
+ GameRegistry.addRecipe(new ItemStack(toolRod, 4, 1), "c", "c", 'c', new ItemStack(Block.stone));
+ GameRegistry.addRecipe(new ItemStack(toolRod, 2, 1), "c", "c", 'c', new ItemStack(Block.cobblestone));
+
+ ItemStack aluBrass = new ItemStack(materials, 1, 14);
+ GameRegistry.addRecipe(new ItemStack(Item.pocketSundial), " i ", "iri", " i ", 'i', aluBrass, 'r', new ItemStack(Item.redstone));
+ GameRegistry.addRecipe(new ItemStack(Block.pressurePlateGold), "ii", 'i', aluBrass);
+
+ ItemStack necroticBone = new ItemStack(materials, 1, 8);
+ //Accessories
+ GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(heartCanister, 1, 0), "##", "##", '#', "ingotNaturalAluminum"));
+ 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), necroticBone, new ItemStack(heartCanister, 1, 0), new ItemStack(heartCanister, 1, 1));
+ }
+
+ void setupToolTabs ()
+ {
+ TConstructRegistry.materialTab.init(new ItemStack(titleIcon));
+ TConstructRegistry.blockTab.init(new ItemStack(toolStationWood));
+ ItemStack tool = new ItemStack(longsword, 1, 0);
+
+ NBTTagCompound compound = new NBTTagCompound();
+ compound.setCompoundTag("InfiTool", new NBTTagCompound());
+ compound.getCompoundTag("InfiTool").setInteger("RenderHead", 2);
+ compound.getCompoundTag("InfiTool").setInteger("RenderHandle", 0);
+ compound.getCompoundTag("InfiTool").setInteger("RenderAccessory", 10);
+ tool.setTagCompound(compound);
+
+ //TConstruct.
+ TConstructRegistry.toolTab.init(tool);
+ }
+
+ public void addLoot ()
+ {
+ //Item, min, max, weight
+ ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(heartCanister, 1, 1), 1, 1, 5));
+ ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_DESERT_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(heartCanister, 1, 1), 1, 1, 10));
+ ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_JUNGLE_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(heartCanister, 1, 1), 1, 1, 10));
+
+ tinkerHouseChest = new ChestGenHooks("TinkerHouse", new WeightedRandomChestContent[0], 3, 27);
+ tinkerHouseChest.addItem(new WeightedRandomChestContent(new ItemStack(heartCanister, 1, 1), 1, 1, 1));
+ int[] validTypes = { 0, 1, 2, 3, 4, 5, 6, 8, 9, 13, 14, 17};
+ Item[] partTypes = { pickaxeHead, shovelHead, axeHead, binding, swordBlade, wideGuard, handGuard, crossbar, knifeBlade, frypanHead, signHead, chiselHead};
+
+ for (int partIter = 0; partIter < partTypes.length; partIter++)
+ {
+ for (int typeIter = 0; typeIter < validTypes.length; typeIter++)
+ {
+ tinkerHouseChest.addItem(new WeightedRandomChestContent(new ItemStack(partTypes[partIter], 1, validTypes[typeIter]), 1, 1, 15));
+ }
+ }
+
+ tinkerHousePatterns = new ChestGenHooks("TinkerPatterns", new WeightedRandomChestContent[0], 5, 30);
+ for (int i = 0; i < 13; i++)
+ {
+ tinkerHousePatterns.addItem(new WeightedRandomChestContent(new ItemStack(woodPattern, 1, i+1), 1, 3, 20));
+ }
+ }
+
+ public static LiquidStack[] liquidIcons = new LiquidStack[0];
+ public static String[] liquidNames;
+
+ public void oreRegistry ()
+ {
+ OreDictionary.registerOre("oreCobalt", new ItemStack(oreSlag, 1, 1));
+ OreDictionary.registerOre("oreArdite", new ItemStack(oreSlag, 1, 2));
+ OreDictionary.registerOre("oreCopper", new ItemStack(oreSlag, 1, 3));
+ OreDictionary.registerOre("oreTin", new ItemStack(oreSlag, 1, 4));
+ OreDictionary.registerOre("oreNaturalAluminum", new ItemStack(oreSlag, 1, 5));
+
+ OreDictionary.registerOre("oreIron", new ItemStack(oreGravel, 1, 0));
+ //OreDictionary.registerOre("oreGold", new ItemStack(oreGravel, 1, 1));
+ OreDictionary.registerOre("oreCobalt", new ItemStack(oreGravel, 1, 5));
+ OreDictionary.registerOre("oreCopper", new ItemStack(oreGravel, 1, 2));
+ OreDictionary.registerOre("oreTin", new ItemStack(oreGravel, 1, 3));
+ OreDictionary.registerOre("oreNaturalAluminum", new ItemStack(oreGravel, 1, 4));
+
+ OreDictionary.registerOre("ingotCobalt", new ItemStack(materials, 1, 3));
+ OreDictionary.registerOre("ingotArdite", new ItemStack(materials, 1, 4));
+ OreDictionary.registerOre("ingotManyullyn", new ItemStack(materials, 1, 5));
+ OreDictionary.registerOre("ingotCopper", new ItemStack(materials, 1, 9));
+ OreDictionary.registerOre("ingotTin", new ItemStack(materials, 1, 10));
+ OreDictionary.registerOre("ingotNaturalAluminum", new ItemStack(materials, 1, 11));
+ OreDictionary.registerOre("naturalAluminum", new ItemStack(materials, 1, 12));
+ OreDictionary.registerOre("ingotBronze", new ItemStack(materials, 1, 13));
+ OreDictionary.registerOre("ingotAluminumBrass", new ItemStack(materials, 1, 14));
+ OreDictionary.registerOre("ingotAlumite", new ItemStack(materials, 1, 15));
+ OreDictionary.registerOre("ingotSteel", new ItemStack(materials, 1, 16));
+
+ OreDictionary.registerOre("blockCobalt", new ItemStack(metalBlock, 1, 0));
+ OreDictionary.registerOre("blockArdite", new ItemStack(metalBlock, 1, 1));
+ OreDictionary.registerOre("blockManyullyn", new ItemStack(metalBlock, 1, 2));
+ OreDictionary.registerOre("blockCopper", new ItemStack(metalBlock, 1, 3));
+ OreDictionary.registerOre("blockBronze", new ItemStack(metalBlock, 1, 4));
+ OreDictionary.registerOre("blockTin", new ItemStack(metalBlock, 1, 5));
+ OreDictionary.registerOre("blockNaturalAluminum", new ItemStack(metalBlock, 1, 6));
+ OreDictionary.registerOre("blockAluminumBrass", new ItemStack(metalBlock, 1, 7));
+ OreDictionary.registerOre("blockAlumite", new ItemStack(metalBlock, 1, 8));
+ OreDictionary.registerOre("blockSteel", new ItemStack(metalBlock, 1, 9));
+
+ OreDictionary.registerOre("nuggetIron", new ItemStack(materials, 1, 19));
+ OreDictionary.registerOre("nuggetCopper", new ItemStack(materials, 1, 20));
+ OreDictionary.registerOre("nuggetTin", new ItemStack(materials, 1, 21));
+ OreDictionary.registerOre("nuggetNaturalAluminum", new ItemStack(materials, 1, 22));
+ OreDictionary.registerOre("nuggetSilver", new ItemStack(materials, 1, 23));
+ OreDictionary.registerOre("nuggetAluminumBrass", new ItemStack(materials, 1, 24));
+
+ String[] names = new String[] { "Iron", "Gold", "Copper", "Tin", "Aluminum", "Cobalt", "Ardite", "Bronze", "Brass", "Manyullyn", "Alumite", "Obsidian", "Steel" };
+ liquidIcons = new LiquidStack[names.length];
+ liquidNames = new String[names.length];
+ for (int iter = 0; iter < names.length; iter++)
+ {
+ LiquidStack liquidstack = new LiquidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 9, iter);
+ String name = "Molten " + names[iter];
+ liquidIcons[iter] = liquidstack;
+ liquidNames[iter] = name;
+ LiquidDictionary.getOrCreateLiquid(name, liquidstack);
+ LiquidContainerRegistry.registerLiquid(new LiquidContainerData(liquidstack, new ItemStack(buckets, 1, iter), new ItemStack(Item.bucketEmpty)));
+ }
+
+ //Vanilla stuff
+ OreDictionary.registerOre("slimeball", new ItemStack(Item.slimeBall));
+ OreDictionary.registerOre("slimeball", new ItemStack(strangeFood, 1, 0));
+ RecipeRemover.removeShapedRecipe(new ItemStack(Block.pistonStickyBase));
+ RecipeRemover.removeShapedRecipe(new ItemStack(Item.magmaCream));
+ GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.pistonStickyBase), "slimeball", Block.pistonBase));
+ GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.magmaCream), "slimeball", Item.blazePowder));
+ }
+
+ public void intermodCommunication ()
+ {
+ FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerry, 1, 12));
+ FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerry, 1, 13));
+ FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerry, 1, 14));
+ FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerry, 1, 15));
+ FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerrySecond, 1, 12));
+ FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(oreBerrySecond, 1, 13));
+ }
+
+ public void modIntegration ()
+ {
+ ItemStack ironpick = ToolBuilder.instance.buildTool(new ItemStack(TContent.pickaxeHead, 1, 6), new ItemStack(TContent.toolRod, 1, 2), new ItemStack(TContent.binding, 1, 6), "");
+ /* IC2 */
+ ItemStack reBattery = ic2.api.item.Items.getItem("reBattery");
+ if (reBattery != null)
+ modE.batteries.add(reBattery);
+ ItemStack chargedReBattery = ic2.api.item.Items.getItem("chargedReBattery");
+ if (chargedReBattery != null)
+ {
+ modE.batteries.add(chargedReBattery);
+ }
+ ItemStack electronicCircuit = ic2.api.item.Items.getItem("electronicCircuit");
+ if (electronicCircuit != null)
+ modE.circuits.add(electronicCircuit);
+
+ if (chargedReBattery != null && electronicCircuit != null)
+ TConstructClientRegistry.registerManualModifier("electricmod", ironpick.copy(), chargedReBattery, electronicCircuit);
+
+ /* Thaumcraft */
+ //Object obj = getItem("itemResource", "thaumcraft.common.Config");
+ }
+
+ public static Object getItem (String name, String classPackage)
+ {
+ try
+ {
+ Class c = Class.forName(classPackage);
+ Object ret = c.getField(name);
+ if (ret != null && (ret instanceof ItemStack || ret instanceof Item))
+ return ret;
+ return null;
+ }
+ catch (Exception e)
+ {
+ System.out.println("[TConstruct] Could not find item for " + name);
+ return null;
+ }
+ }
+
+ @Override
+ public int getBurnTime (ItemStack fuel)
+ {
+ if (fuel.itemID == materials.itemID && fuel.getItemDamage() == 7)
+ return 26400;
+ return 0;
+ }
}
\ No newline at end of file
diff --git a/mods/tinker/tconstruct/entity/BlueSlime.java b/mods/tinker/tconstruct/entity/BlueSlime.java
index a0c09003..9197c9d0 100644
--- a/mods/tinker/tconstruct/entity/BlueSlime.java
+++ b/mods/tinker/tconstruct/entity/BlueSlime.java
@@ -2,19 +2,28 @@ package mods.tinker.tconstruct.entity;
import mods.tinker.tconstruct.TConstruct;
import mods.tinker.tconstruct.common.TContent;
+import mods.tinker.tconstruct.library.TConstructRegistry;
+import mods.tinker.tconstruct.library.crafting.ToolBuilder;
+import mods.tinker.tconstruct.library.tools.ToolCore;
+import net.minecraft.entity.EntityList;
import net.minecraft.entity.EntityLiving;
+import net.minecraft.entity.boss.IBossDisplayData;
+import net.minecraft.entity.monster.EntityCreeper;
import net.minecraft.entity.monster.EntitySkeleton;
import net.minecraft.entity.monster.IMob;
import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.potion.Potion;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MathHelper;
+import net.minecraft.util.StatCollector;
import net.minecraft.world.EnumSkyBlock;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
-public class BlueSlime extends EntityLiving implements IMob
+public class BlueSlime extends EntityLiving implements IMob, IBossDisplayData
{
private static final float[] field_100000_e = new float[] { 1.0F, 0.75F, 0.5F, 0.25F, 0.0F, 0.25F, 0.5F, 0.75F };
public float sizeOffset;
@@ -28,13 +37,13 @@ public class BlueSlime extends EntityLiving implements IMob
{
super(world);
this.texture = "/mods/tinker/textures/mob/slimeedible.png";
- int offset = this.rand.nextInt(99);
- if (offset < 49)
+ int offset = this.rand.nextInt(199);
+ if (offset < 99)
offset = 1;
- else if (offset < 98)
- offset = 2;
+ else if (offset < 198)
+ offset = 2;
else
- offset = 3;
+ offset = 3;
int size = 1 << offset;
this.yOffset = 0.0F;
this.slimeJumpDelay = this.rand.nextInt(120) + 40;
@@ -50,12 +59,20 @@ public class BlueSlime extends EntityLiving implements IMob
super.damageEntity(damageSource, damage);
}
- /*public boolean attackEntityFrom(DamageSource damageSource, int damage)
+ public String getEntityName ()
{
- if (damageSource.damageType.equals("arrow") && rand.nextInt(5) == 0)
- return false;
- return super.attackEntityFrom(damageSource, damage);
- }*/
+ String s = EntityList.getEntityString(this);
+
+ if (s == null)
+ {
+ s = "generic";
+ }
+
+ if (getSlimeSize() >= 8)
+ s = "TConstruct.KingSlime";
+
+ return StatCollector.translateToLocal("entity." + s + ".name");
+ }
@Override
public void initCreature ()
@@ -68,7 +85,35 @@ public class BlueSlime extends EntityLiving implements IMob
this.worldObj.spawnEntityInWorld(entityskeleton);
entityskeleton.mountEntity(this);
}
+ if (getSlimeSize() == 4 && rand.nextInt(12) == 0)
+ {
+ EntityCreeper creeper = new EntityCreeper(this.worldObj);
+ creeper.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
+ creeper.initCreature();
+ this.worldObj.spawnEntityInWorld(creeper);
+ creeper.mountEntity(this);
+ }
+ if (getSlimeSize() == 8)
+ {
+ for (int i = 0; i < 5; i++)
+ {
+ BlueSlime slime = new BlueSlime(this.worldObj);
+ slime.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
+ slime.initCreature();
+ this.worldObj.spawnEntityInWorld(slime);
+ }
+ BlueSlime slime = new BlueSlime(this.worldObj);
+ slime.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
+ slime.setSlimeSize(2);
+ this.worldObj.spawnEntityInWorld(slime);
+
+ EntitySkeleton skelton = new EntitySkeleton(this.worldObj);
+ skelton.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
+ skelton.initCreature();
+ this.worldObj.spawnEntityInWorld(skelton);
+ skelton.mountEntity(slime);
+ }
}
@Override
@@ -92,15 +137,19 @@ public class BlueSlime extends EntityLiving implements IMob
this.motionX -= (double) (MathHelper.sin(f) * 0.2F);
this.motionZ += (double) (MathHelper.cos(f) * 0.2F);
}
-
- if (this.getBrightness(1.0F) > 0.9F && rand.nextInt(5) == 0 && this.worldObj.canBlockSeeTheSky(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)))
- {
- int size = this.getSlimeSize() - 1;
- if (size <= 0)
- this.kill();
- else
- this.setSlimeSize(size);
- }
+
+ if (this.getBrightness(1.0F) > 0.9F && rand.nextInt(5) == 0
+ && this.worldObj.canBlockSeeTheSky(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)))
+ {
+ int size = this.getSlimeSize() - 1;
+ if (size < 7)
+ {
+ if (size <= 0)
+ this.kill();
+ else
+ this.setSlimeSize(size);
+ }
+ }
this.isAirBorne = true;
ForgeHooks.onLivingJump(this);
@@ -127,10 +176,10 @@ public class BlueSlime extends EntityLiving implements IMob
int x = MathHelper.floor_double(this.posX);
int y = MathHelper.floor_double(this.boundingBox.minY);
int z = MathHelper.floor_double(this.posZ);
-
+
if (y < 60 && rand.nextInt(5) != 0)
{
- return false;
+ return false;
}
if (this.worldObj.getSavedLightValue(EnumSkyBlock.Sky, x, y, z) > this.rand.nextInt(32))
@@ -157,15 +206,18 @@ public class BlueSlime extends EntityLiving implements IMob
{
super.entityInit();
this.dataWatcher.addObject(16, new Byte((byte) 1));
+ this.dataWatcher.addObject(17, new Integer(100));
}
- protected void setSlimeSize (int size)
+ public void setSlimeSize (int size)
{
this.dataWatcher.updateObject(16, new Byte((byte) size));
this.setSize(0.6F * size, 0.6F * size);
this.setPosition(this.posX, this.posY, this.posZ);
this.setEntityHealth(this.getMaxHealth());
this.experienceValue = size + 2;
+ if (size >= 8)
+ this.experienceValue = 500;
}
public int getMaxHealth ()
@@ -173,6 +225,8 @@ public class BlueSlime extends EntityLiving implements IMob
int i = this.getSlimeSize();
if (i == 1)
return 4;
+ if (i == 8)
+ return 100;
return (int) Math.min(i * i + 8, 49);
}
@@ -200,6 +254,7 @@ public class BlueSlime extends EntityLiving implements IMob
{
super.readEntityFromNBT(par1NBTTagCompound);
this.setSlimeSize(par1NBTTagCompound.getInteger("Size") + 1);
+ this.dataWatcher.updateObject(17, Integer.valueOf(this.health));
}
/**
@@ -220,6 +275,11 @@ public class BlueSlime extends EntityLiving implements IMob
this.isDead = true;
}
+ if (!this.worldObj.isRemote)
+ {
+ this.dataWatcher.updateObject(17, Integer.valueOf(this.health));
+ }
+
this.sizeFactor += (this.sizeOffset - this.sizeFactor) * 0.5F;
this.sizeHeight = this.sizeFactor;
boolean flag = this.onGround;
@@ -332,14 +392,14 @@ public class BlueSlime extends EntityLiving implements IMob
*/
public void setDead ()
{
- int i = this.getSlimeSize();
+ int size = this.getSlimeSize();
- if (!this.worldObj.isRemote && i > 1 && this.getHealth() <= 0)
+ if (!this.worldObj.isRemote && size > 1 && this.getHealth() <= 0 && size < 8)
{
- float f = (-0.5F) * (float) i / 4.0F;
- float f1 = (-0.5F) * (float) i / 4.0F;
+ float f = (-0.5F) * (float) size / 4.0F;
+ float f1 = (-0.5F) * (float) size / 4.0F;
BlueSlime entityslime = this.createInstance();
- entityslime.setSlimeSize(i / 2);
+ entityslime.setSlimeSize(size / 2);
entityslime.setLocationAndAngles(this.posX + (double) f, this.posY + 0.5D, this.posZ + (double) f1, this.rand.nextFloat() * 360.0F, 0.0F);
this.worldObj.spawnEntityInWorld(entityslime);
}
@@ -349,9 +409,10 @@ public class BlueSlime extends EntityLiving implements IMob
protected void dropFewItems (boolean par1, int par2)
{
+ int size = this.getSlimeSize();
int j = this.getDropItemId();
- if (j > 0 && rand.nextInt(2) == 0)
+ if (j > 0 && (rand.nextInt(2) == 0) || size >= 8)
{
int k = rand.nextInt(3) + rand.nextInt(this.getSlimeSize());
@@ -365,6 +426,24 @@ public class BlueSlime extends EntityLiving implements IMob
this.dropItem(j, 1);
}
}
+
+ if (size == 8)
+ {
+ ToolCore tool = TConstructRegistry.tools.get(rand.nextInt(TConstructRegistry.tools.size()));
+
+ Item accessory = tool.getAccessoryItem();
+ ItemStack accessoryStack = accessory != null ? new ItemStack(tool.getAccessoryItem(), 1, 17) : null;
+ ItemStack toolStack = ToolBuilder.instance.buildTool(new ItemStack(tool.getHeadItem(), 1, 17), new ItemStack(tool.getHandleItem(), 1, 17), accessoryStack,
+ "King Slime " + tool.getToolName());
+
+ NBTTagCompound tags = toolStack.getTagCompound().getCompoundTag("InfiTool");
+ tags.setInteger("Attack", 3 + tool.getDamageVsEntity(null));
+ tags.setInteger("TotalDurability", 1500);
+ tags.setInteger("BaseDurability", 1500);
+ tags.setInteger("MiningSpeed", 800);
+
+ this.entityDropItem(toolStack, 0f);
+ }
}
/**
@@ -456,4 +535,10 @@ public class BlueSlime extends EntityLiving implements IMob
{
return this.getSlimeSize() > 2;
}
+
+ @Override
+ public int getBossHealth ()
+ {
+ return this.dataWatcher.getWatchableObjectInt(17);
+ }
}
diff --git a/mods/tinker/tconstruct/entity/Crystal.java b/mods/tinker/tconstruct/entity/Crystal.java
index 78fc2f24..c309f6c1 100644
--- a/mods/tinker/tconstruct/entity/Crystal.java
+++ b/mods/tinker/tconstruct/entity/Crystal.java
@@ -9,7 +9,7 @@ public class Crystal extends EntityCreeper
public Crystal(World par1World)
{
super(par1World);
- this.texture = "/tinkertextures/mob/crystalwater.png";
+ this.texture = "/mods/tinker/textures/mob/crystalwater.png";
}
@Override
diff --git a/mods/tinker/tconstruct/items/DiamondApple.java b/mods/tinker/tconstruct/items/DiamondApple.java
new file mode 100644
index 00000000..b3417bee
--- /dev/null
+++ b/mods/tinker/tconstruct/items/DiamondApple.java
@@ -0,0 +1,77 @@
+package mods.tinker.tconstruct.items;
+
+import net.minecraft.client.renderer.texture.IconRegister;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemFood;
+import net.minecraft.item.ItemStack;
+import net.minecraft.potion.Potion;
+import net.minecraft.potion.PotionEffect;
+import net.minecraft.util.Icon;
+import net.minecraft.world.World;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+
+public class DiamondApple extends ItemFood
+{
+ public Icon[] icons;
+ public String[] textureNames = new String[] { "apple_diamond" };
+ public String[] itemNames = new String[] { "apple.diamond" };
+
+ public DiamondApple(int id)
+ {
+ super(id, 4, 2.0F, false);
+ setHasSubtypes(true);
+ setMaxDamage(0);
+ this.setAlwaysEdible();
+ }
+
+ protected void onFoodEaten(ItemStack stack, World world, EntityPlayer player)
+ {
+ if (!world.isRemote)
+ {
+ int duration = 0;
+ PotionEffect potion;
+
+ potion = player.getActivePotionEffect(Potion.resistance);
+ if (potion != null)
+ duration = potion.duration;
+ player.addPotionEffect(new PotionEffect(Potion.resistance.id, duration + 60*20, 0));
+
+ potion = player.getActivePotionEffect(Potion.digSpeed);
+ if (potion != null)
+ duration = potion.duration;
+ player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, duration + 60*20, 0));
+
+ potion = player.getActivePotionEffect(Potion.damageBoost);
+ if (potion != null)
+ duration = potion.duration;
+ player.addPotionEffect(new PotionEffect(Potion.damageBoost.id, duration + 60*20, 0));
+ }
+ }
+
+ @SideOnly(Side.CLIENT)
+ @Override
+ public Icon getIconFromDamage(int meta)
+ {
+ return icons[meta];
+ }
+
+ @SideOnly(Side.CLIENT)
+ @Override
+ public void registerIcons(IconRegister iconRegister)
+ {
+ this.icons = new Icon[textureNames.length];
+
+ for (int i = 0; i < this.icons.length; ++i)
+ {
+ this.icons[i] = iconRegister.registerIcon("tinker:"+textureNames[i]);
+ }
+ }
+
+ /* Name override */
+ @Override
+ public String getUnlocalizedName(ItemStack itemstack)
+ {
+ return (new StringBuilder()).append("item.food.").append(itemNames[itemstack.getItemDamage()]).toString();
+ }
+}
diff --git a/mods/tinker/tconstruct/items/HeartCanister.java b/mods/tinker/tconstruct/items/HeartCanister.java
new file mode 100644
index 00000000..005a6b53
--- /dev/null
+++ b/mods/tinker/tconstruct/items/HeartCanister.java
@@ -0,0 +1,69 @@
+package mods.tinker.tconstruct.items;
+
+import java.util.List;
+
+import mods.tinker.tconstruct.TConstruct;
+import mods.tinker.tconstruct.util.player.ArmorExtended;
+import mods.tinker.tconstruct.util.player.TPlayerStats;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+
+public class HeartCanister extends CraftingItem
+{
+
+ public HeartCanister(int id)
+ {
+ super(id, new String[] { "empty", "miniheart.red", "heart" }, new String[] { "canister_empty", "miniheart_red", "canister_heart" }, "");
+ this.setMaxStackSize(10);
+ }
+
+ @Override
+ public ItemStack onItemRightClick (ItemStack stack, World world, EntityPlayer player)
+ {
+ if (!world.isRemote && stack.getItemDamage() == 2)
+ {
+ TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.username);
+ if (stats != null)
+ {
+ ArmorExtended armor = stats.armor;
+ ItemStack slotStack = armor.getStackInSlot(6);
+ if (slotStack == null)// || slotStack.getItem() == this)
+ {
+ armor.setInventorySlotContents(6, new ItemStack(this, 1, 2));
+ stack.stackSize--;
+ }
+ else if (slotStack.getItem() == this && slotStack.stackSize < this.maxStackSize)
+ {
+ slotStack.stackSize++;
+ stack.stackSize--;
+ }
+ armor.recalculateHealth();
+ }
+ }
+ return stack;
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
+ {
+ switch (stack.getItemDamage())
+ {
+ case 0:
+ list.add("Crafting Item");
+ break;
+ case 1:
+ list.add("Crafting Item");
+ list.add("Part of low-level Heart Canisters");
+ break;
+ case 2:
+ list.add("Accessory");
+ list.add("Permanent health increase");
+ break;
+ }
+ }
+
+}
diff --git a/mods/tinker/tconstruct/items/HeartContainer.java b/mods/tinker/tconstruct/items/HeartContainer.java
deleted file mode 100644
index 54e4335c..00000000
--- a/mods/tinker/tconstruct/items/HeartContainer.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package mods.tinker.tconstruct.items;
-
-import java.util.List;
-
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-
-
-public class HeartContainer extends CraftingItem
-{
-
- public HeartContainer(int id)
- {
- super(id, new String[] {"empty", "heart"}, new String[] {"canister_empty", "canister_heart"}, "");
- }
-
- @Override
- @SideOnly(Side.CLIENT)
- public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4)
- {
- list.add("Test Item");
- }
-
-}
diff --git a/mods/tinker/tconstruct/items/TitleIcon.java b/mods/tinker/tconstruct/items/TitleIcon.java
index b43018e0..4de8ef36 100644
--- a/mods/tinker/tconstruct/items/TitleIcon.java
+++ b/mods/tinker/tconstruct/items/TitleIcon.java
@@ -1,15 +1,37 @@
package mods.tinker.tconstruct.items;
+import java.util.List;
+
import mods.tinker.tconstruct.client.TProxyClient;
+import mods.tinker.tconstruct.entity.BlueSlime;
+import mods.tinker.tconstruct.entity.NitroCreeper;
import mods.tinker.tconstruct.library.tools.ToolCore;
+import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityList;
+import net.minecraft.entity.EntityLiving;
+import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.Facing;
+import net.minecraft.util.Icon;
+import net.minecraft.util.StatCollector;
+import net.minecraft.world.World;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
public class TitleIcon extends Item
{
+ int[] primaryColor = { 0x66BBE8, 0x66BBE8, 0xF73E6C };
+ int[] secondaryColor = { 0x1567BF, 0x1567BF, 0x9B5004 };
+ String[] mobNames = { "TConstruct.EdibleSlime", "TConstruct.KingSlime", "TConstruct.UnstableCreeper" };
+
public TitleIcon(int par1)
{
super(par1);
+ this.setCreativeTab(CreativeTabs.tabMisc);
}
@Override
@@ -19,4 +41,103 @@ public class TitleIcon extends Item
TProxyClient.metalBall = iconRegister.registerIcon("tinker:metalball");
itemIcon = iconRegister.registerIcon("tinker:tparts");
}
+
+ @SideOnly(Side.CLIENT)
+ public boolean requiresMultipleRenderPasses ()
+ {
+ return true;
+ }
+
+ @SideOnly(Side.CLIENT)
+ public Icon getIconFromDamageForRenderPass (int par1, int par2)
+ {
+ return Item.monsterPlacer.getIconFromDamageForRenderPass(par1, par2);
+ }
+
+ @Override
+ public String getItemDisplayName (ItemStack par1ItemStack)
+ {
+ String s = ("" + StatCollector.translateToLocal(this.getUnlocalizedName() + ".name")).trim();
+ String s1 = mobNames[par1ItemStack.getItemDamage()];
+
+ if (s1 != null)
+ {
+ s = s + " " + StatCollector.translateToLocal("entity." + s1 + ".name");
+ }
+
+ return s;
+ }
+
+ @Override
+ public void getSubItems(int id, CreativeTabs tab, List list)
+ {
+ for (int i = 0; i < mobNames.length; i++)
+ list.add(new ItemStack(id, 1, i));
+ }
+
+ @SideOnly(Side.CLIENT)
+ public int getColorFromItemStack (ItemStack stack, int pass)
+ {
+ int damage = stack.getItemDamage();
+ return pass == 0 ? primaryColor[damage] : secondaryColor[damage];
+ }
+
+ public boolean onItemUse (ItemStack stack, EntityPlayer player, World world, int posX, int posY, int posZ, int par7, float par8, float par9, float par10)
+ {
+ if (!world.isRemote)
+ {
+ int i1 = world.getBlockId(posX, posY, posZ);
+ posX += Facing.offsetsXForSide[par7];
+ posY += Facing.offsetsYForSide[par7];
+ posZ += Facing.offsetsZForSide[par7];
+ double d0 = 0.0D;
+
+ if (par7 == 1 && Block.blocksList[i1] != null && Block.blocksList[i1].getRenderType() == 11)
+ {
+ d0 = 0.5D;
+ }
+
+ int damage = stack.getItemDamage();
+ switch (damage)
+ {
+ case 0:
+ spawnEntity(posX, posY, posZ, new BlueSlime(world), world, player);
+ break;
+ case 1:
+ spawnBossSlime(posX, posY, posZ, new BlueSlime(world), world, player);
+ break;
+ case 2:
+ spawnEntity(posX, posY, posZ, new NitroCreeper(world), world, player);
+ break;
+ }
+ if (!player.capabilities.isCreativeMode)
+ {
+ --stack.stackSize;
+ }
+ }
+ return true;
+ }
+
+ public static void spawnEntity (double x, double y, double z, Entity entity, World world, EntityPlayer player)
+ {
+ if (!world.isRemote)
+ {
+ entity.setPosition(x, y, z);
+ entity.setAngles(player.cameraYaw, player.cameraYaw);
+ ((EntityLiving) entity).initCreature();
+ world.spawnEntityInWorld(entity);
+ }
+ }
+
+ public static void spawnBossSlime (double x, double y, double z, BlueSlime entity, World world, EntityPlayer player)
+ {
+ if (!world.isRemote)
+ {
+ entity.setPosition(x, y, z);
+ entity.setAngles(player.cameraYaw, player.cameraYaw);
+ entity.setSlimeSize(8);
+ entity.initCreature();
+ world.spawnEntityInWorld(entity);
+ }
+ }
}
diff --git a/mods/tinker/tconstruct/items/armor/TArmorBase.java b/mods/tinker/tconstruct/items/armor/TArmorBase.java
index 9362bc0d..e98c7c90 100644
--- a/mods/tinker/tconstruct/items/armor/TArmorBase.java
+++ b/mods/tinker/tconstruct/items/armor/TArmorBase.java
@@ -22,7 +22,7 @@ public class TArmorBase extends ItemArmor
//implements ISpecialArmor
{
Icon[] icons;
- String[] iconNames = { "wood_helmet" };
+ String[] iconNames = { "wood_boots" };
//static Minecraft mc = Minecraft.getMinecraft();
//private ModelBiped modelArmor;
diff --git a/mods/tinker/tconstruct/items/tools/BattleSign.java b/mods/tinker/tconstruct/items/tools/BattleSign.java
index 91a517b9..b684d453 100644
--- a/mods/tinker/tconstruct/items/tools/BattleSign.java
+++ b/mods/tinker/tconstruct/items/tools/BattleSign.java
@@ -23,7 +23,7 @@ public class BattleSign extends Weapon
public String getToolName ()
{
- return "Battle Sign";
+ return "Battlesign";
}
/*public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer player, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
@@ -97,13 +97,13 @@ public class BattleSign extends Weapon
}*/
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.signHead;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return null;
}
diff --git a/mods/tinker/tconstruct/items/tools/Broadsword.java b/mods/tinker/tconstruct/items/tools/Broadsword.java
index 982ac9c7..4f119d01 100644
--- a/mods/tinker/tconstruct/items/tools/Broadsword.java
+++ b/mods/tinker/tconstruct/items/tools/Broadsword.java
@@ -13,13 +13,13 @@ public class Broadsword extends Weapon
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.swordBlade;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return TContent.wideGuard;
}
diff --git a/mods/tinker/tconstruct/items/tools/Chisel.java b/mods/tinker/tconstruct/items/tools/Chisel.java
index 73b54af9..350fb374 100644
--- a/mods/tinker/tconstruct/items/tools/Chisel.java
+++ b/mods/tinker/tconstruct/items/tools/Chisel.java
@@ -166,13 +166,13 @@ public class Chisel extends ToolCore
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.chiselHead;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return null;
}
diff --git a/mods/tinker/tconstruct/items/tools/Dagger.java b/mods/tinker/tconstruct/items/tools/Dagger.java
index a603e38d..4db88027 100644
--- a/mods/tinker/tconstruct/items/tools/Dagger.java
+++ b/mods/tinker/tconstruct/items/tools/Dagger.java
@@ -89,13 +89,13 @@ public class Dagger extends Weapon
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.knifeBlade;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return TContent.crossbar;
}
diff --git a/mods/tinker/tconstruct/items/tools/FryingPan.java b/mods/tinker/tconstruct/items/tools/FryingPan.java
index 6d13ce4c..3b5f0297 100644
--- a/mods/tinker/tconstruct/items/tools/FryingPan.java
+++ b/mods/tinker/tconstruct/items/tools/FryingPan.java
@@ -1,14 +1,19 @@
package mods.tinker.tconstruct.items.tools;
+import java.util.List;
+
import mods.tinker.tconstruct.blocks.logic.EquipLogic;
import mods.tinker.tconstruct.common.TContent;
+import mods.tinker.tconstruct.library.crafting.ToolBuilder;
import mods.tinker.tconstruct.library.tools.AbilityHelper;
import mods.tinker.tconstruct.library.tools.Weapon;
+import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;
@@ -48,6 +53,29 @@ public class FryingPan extends Weapon
{
return "Frying Pan";
}
+
+ public void getSubItems (int id, CreativeTabs tab, List list)
+ {
+ super.getSubItems(id, tab, list);
+
+ Item accessory = getAccessoryItem();
+ ItemStack tool = ToolBuilder.instance.buildTool(new ItemStack(getHeadItem(), 1, 2), new ItemStack(getHandleItem(), 1, 16), null, "Bane of Pigs");
+
+ NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
+ tags.setInteger("Modifiers", 0);
+ tags.setInteger("Attack", Integer.MAX_VALUE/100);
+ tags.setInteger("TotalDurability", Integer.MAX_VALUE/100);
+ tags.setInteger("BaseDurability", Integer.MAX_VALUE/100);
+ tags.setInteger("MiningSpeed", Integer.MAX_VALUE/100);
+
+ int[] keyPair = new int[] { Integer.MAX_VALUE/100, 0, 0 };
+ tags.setIntArray("Blaze", keyPair);
+ tags.setInteger("Necrotic", Integer.MAX_VALUE/100);
+ tags.setInteger("Effect1", 7);
+
+ tags.setBoolean("Built", true);
+ list.add(tool);
+ }
public boolean onItemUse (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float clickX, float clickY, float clickZ)
{
@@ -109,13 +137,13 @@ public class FryingPan extends Weapon
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.frypanHead;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return null;
}
diff --git a/mods/tinker/tconstruct/items/tools/Hammer.java b/mods/tinker/tconstruct/items/tools/Hammer.java
index e9ff96b0..35c6bda0 100644
--- a/mods/tinker/tconstruct/items/tools/Hammer.java
+++ b/mods/tinker/tconstruct/items/tools/Hammer.java
@@ -80,13 +80,13 @@ public class Hammer extends HarvestTool
}*/
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return null;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return null;
}
diff --git a/mods/tinker/tconstruct/items/tools/Hatchet.java b/mods/tinker/tconstruct/items/tools/Hatchet.java
index bf3c584f..c99e197c 100644
--- a/mods/tinker/tconstruct/items/tools/Hatchet.java
+++ b/mods/tinker/tconstruct/items/tools/Hatchet.java
@@ -51,13 +51,13 @@ public class Hatchet extends HarvestTool
static Material[] materials = { Material.wood, Material.leaves, Material.vine, Material.circuits, Material.cactus, Material.pumpkin };
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.axeHead;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return null;
}
diff --git a/mods/tinker/tconstruct/items/tools/Longsword.java b/mods/tinker/tconstruct/items/tools/Longsword.java
index fa2e83cf..2ea91b6a 100644
--- a/mods/tinker/tconstruct/items/tools/Longsword.java
+++ b/mods/tinker/tconstruct/items/tools/Longsword.java
@@ -62,13 +62,13 @@ public class Longsword extends Weapon
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.swordBlade;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return TContent.handGuard;
}
diff --git a/mods/tinker/tconstruct/items/tools/LumberAxe.java b/mods/tinker/tconstruct/items/tools/LumberAxe.java
index 635ee89e..297845d9 100644
--- a/mods/tinker/tconstruct/items/tools/LumberAxe.java
+++ b/mods/tinker/tconstruct/items/tools/LumberAxe.java
@@ -168,13 +168,13 @@ public class LumberAxe extends HarvestTool
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.lumberHead;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return null;
}
diff --git a/mods/tinker/tconstruct/items/tools/Mattock.java b/mods/tinker/tconstruct/items/tools/Mattock.java
index 0b6ef92b..ec3ca652 100644
--- a/mods/tinker/tconstruct/items/tools/Mattock.java
+++ b/mods/tinker/tconstruct/items/tools/Mattock.java
@@ -63,13 +63,13 @@ public class Mattock extends DualHarvestTool
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.axeHead;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return TContent.shovelHead;
}
diff --git a/mods/tinker/tconstruct/items/tools/Pickaxe.java b/mods/tinker/tconstruct/items/tools/Pickaxe.java
index f7da4456..385e2d63 100644
--- a/mods/tinker/tconstruct/items/tools/Pickaxe.java
+++ b/mods/tinker/tconstruct/items/tools/Pickaxe.java
@@ -34,13 +34,13 @@ public class Pickaxe extends HarvestTool
static Material[] materials = new Material[] { Material.rock, Material.iron, Material.ice, Material.glass, Material.piston, Material.anvil, Material.circuits };
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.pickaxeHead;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return TContent.binding;
}
diff --git a/mods/tinker/tconstruct/items/tools/RangedWeapon.java b/mods/tinker/tconstruct/items/tools/RangedWeapon.java
index 7529a246..8e1ddd3d 100644
--- a/mods/tinker/tconstruct/items/tools/RangedWeapon.java
+++ b/mods/tinker/tconstruct/items/tools/RangedWeapon.java
@@ -32,13 +32,13 @@ public abstract class RangedWeapon extends ToolCore
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.toolRod;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return TContent.toolRod;
}
diff --git a/mods/tinker/tconstruct/items/tools/Rapier.java b/mods/tinker/tconstruct/items/tools/Rapier.java
index e769e45d..5b18b26e 100644
--- a/mods/tinker/tconstruct/items/tools/Rapier.java
+++ b/mods/tinker/tconstruct/items/tools/Rapier.java
@@ -72,13 +72,13 @@ public class Rapier extends Weapon
}
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.swordBlade;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return TContent.crossbar;
}
diff --git a/mods/tinker/tconstruct/items/tools/Shovel.java b/mods/tinker/tconstruct/items/tools/Shovel.java
index 4b5c30da..3bcd6c35 100644
--- a/mods/tinker/tconstruct/items/tools/Shovel.java
+++ b/mods/tinker/tconstruct/items/tools/Shovel.java
@@ -36,13 +36,13 @@ public class Shovel extends HarvestTool
static Material[] materials = { Material.grass, Material.ground, Material.sand, Material.snow, Material.craftedSnow, Material.clay };
@Override
- protected Item getHeadItem ()
+ public Item getHeadItem ()
{
return TContent.shovelHead;
}
@Override
- protected Item getAccessoryItem ()
+ public Item getAccessoryItem ()
{
return null;
}
diff --git a/mods/tinker/tconstruct/library/ActiveToolMod.java b/mods/tinker/tconstruct/library/ActiveToolMod.java
index c39087e1..9c2aff0a 100644
--- a/mods/tinker/tconstruct/library/ActiveToolMod.java
+++ b/mods/tinker/tconstruct/library/ActiveToolMod.java
@@ -21,7 +21,7 @@ public class ActiveToolMod
return false;
}
- public boolean afterBlockBreak()
+ public boolean afterBlockBreak() //Unfinished, not called
{
return false;
}
@@ -44,7 +44,7 @@ public class ActiveToolMod
return 0;
}
- public void lateAttackEntity()
+ public void lateAttackEntity() //Unfinished, not called
{
}
diff --git a/mods/tinker/tconstruct/library/crafting/Smeltery.java b/mods/tinker/tconstruct/library/crafting/Smeltery.java
index 22a0b789..508338fb 100644
--- a/mods/tinker/tconstruct/library/crafting/Smeltery.java
+++ b/mods/tinker/tconstruct/library/crafting/Smeltery.java
@@ -5,7 +5,6 @@ import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
-import mods.tinker.tconstruct.TConstruct;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraftforge.liquids.LiquidStack;
diff --git a/mods/tinker/tconstruct/library/tools/AbilityHelper.java b/mods/tinker/tconstruct/library/tools/AbilityHelper.java
index 2e93a2cb..6ffadaee 100644
--- a/mods/tinker/tconstruct/library/tools/AbilityHelper.java
+++ b/mods/tinker/tconstruct/library/tools/AbilityHelper.java
@@ -288,11 +288,16 @@ public class AbilityHelper
if (ignoreCharge || !damageElectricTool(stack, tags, entity))
{
+ boolean damagedTool = false;
for (ActiveToolMod mod : TConstructRegistry.activeModifiers)
{
- if (mod.damageTool(stack, dam, entity));
- return;
+ if (mod.damageTool(stack, dam, entity))
+ damagedTool = true;
}
+
+ if (damagedTool)
+ return;
+
int damage = tags.getCompoundTag("InfiTool").getInteger("Damage");
int damageTrue = damage + dam;
int maxDamage = tags.getCompoundTag("InfiTool").getInteger("TotalDurability");
diff --git a/mods/tinker/tconstruct/library/tools/DualHarvestTool.java b/mods/tinker/tconstruct/library/tools/DualHarvestTool.java
index 2bea0593..ae708fba 100644
--- a/mods/tinker/tconstruct/library/tools/DualHarvestTool.java
+++ b/mods/tinker/tconstruct/library/tools/DualHarvestTool.java
@@ -4,13 +4,8 @@ import mods.tinker.tconstruct.library.ActiveToolMod;
import mods.tinker.tconstruct.library.TConstructRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
-import net.minecraft.enchantment.Enchantment;
-import net.minecraft.enchantment.EnchantmentHelper;
-import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
@@ -19,125 +14,125 @@ import net.minecraftforge.common.MinecraftForge;
public abstract class DualHarvestTool extends HarvestTool
{
- public DualHarvestTool(int itemID, int baseDamage)
- {
- super(itemID, baseDamage);
- }
+ public DualHarvestTool(int itemID, int baseDamage)
+ {
+ super(itemID, baseDamage);
+ }
- @Override
- public int getHeadType ()
- {
- return 3;
- }
+ @Override
+ public int getHeadType ()
+ {
+ return 3;
+ }
- @Override
- public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPlayer player)
- {
- NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
- World world = player.worldObj;
- int bID = player.worldObj.getBlockId(x, y, z);
- int meta = world.getBlockMetadata(x, y, z);
- Block block = Block.blocksList[bID];
- if (block == null || bID < 1)
- return false;
- int hlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getHarvestType());
- int shlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getSecondHarvestType());
+ @Override
+ public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPlayer player)
+ {
+ NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
+ World world = player.worldObj;
+ int bID = player.worldObj.getBlockId(x, y, z);
+ int meta = world.getBlockMetadata(x, y, z);
+ Block block = Block.blocksList[bID];
+ if (block == null || bID < 1)
+ return false;
+ int hlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getHarvestType());
+ int shlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getSecondHarvestType());
- if (hlvl <= tags.getInteger("HarvestLevel") && shlvl <= tags.getInteger("HarvestLevel2"))
- {
- boolean cancelHarvest = false;
- for (ActiveToolMod mod : TConstructRegistry.activeModifiers)
- {
- if (mod.beforeBlockBreak(this, stack, x, y, z, player));
- cancelHarvest = true;
- }
+ if (hlvl <= tags.getInteger("HarvestLevel") && shlvl <= tags.getInteger("HarvestLevel2"))
+ {
+ boolean cancelHarvest = false;
+ for (ActiveToolMod mod : TConstructRegistry.activeModifiers)
+ {
+ if (mod.beforeBlockBreak(this, stack, x, y, z, player))
+ cancelHarvest = true;
+ }
- return cancelHarvest;
- }
- else
- {
- if (!player.capabilities.isCreativeMode)
- onBlockDestroyed(stack, world, bID, x, y, z, player);
- world.setBlockToAir(x, y, z);
- if (!world.isRemote)
- world.playAuxSFX(2001, x, y, z, bID + (meta << 12));
- return true;
- }
- }
+ return cancelHarvest;
+ }
+ else
+ {
+ if (!player.capabilities.isCreativeMode)
+ onBlockDestroyed(stack, world, bID, x, y, z, player);
+ world.setBlockToAir(x, y, z);
+ if (!world.isRemote)
+ world.playAuxSFX(2001, x, y, z, bID + (meta << 12));
+ return true;
+ }
+ }
- @Override
- public float getStrVsBlock (ItemStack stack, Block block, int meta)
- {
+ @Override
+ public float getStrVsBlock (ItemStack stack, Block block, int meta)
+ {
- NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
- if (tags.getBoolean("Broken"))
- return 0.1f;
+ NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
+ if (tags.getBoolean("Broken"))
+ return 0.1f;
- Material[] materials = getEffectiveMaterials();
- for (int i = 0; i < materials.length; i++)
- {
- if (materials[i] == block.blockMaterial)
- {
- float speed = tags.getInteger("MiningSpeed");
- speed /= 100f;
- int hlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getHarvestType());
- int durability = tags.getInteger("Damage");
+ Material[] materials = getEffectiveMaterials();
+ for (int i = 0; i < materials.length; i++)
+ {
+ if (materials[i] == block.blockMaterial)
+ {
+ float speed = tags.getInteger("MiningSpeed");
+ speed /= 100f;
+ int hlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getHarvestType());
+ int durability = tags.getInteger("Damage");
- float shoddy = tags.getFloat("Shoddy");
- speed += shoddy * durability / 100f;
+ float shoddy = tags.getFloat("Shoddy");
+ speed += shoddy * durability / 100f;
- if (hlvl <= tags.getInteger("HarvestLevel"))
- return speed;
- return 0.1f;
- }
- }
- materials = getEffectiveSecondaryMaterials();
- for (int i = 0; i < materials.length; i++)
- {
- if (materials[i] == block.blockMaterial)
- {
- float speed = tags.getInteger("MiningSpeed2");
- speed /= 100f;
- int hlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getHarvestType());
- int durability = tags.getInteger("Damage");
+ if (hlvl <= tags.getInteger("HarvestLevel"))
+ return speed;
+ return 0.1f;
+ }
+ }
+ materials = getEffectiveSecondaryMaterials();
+ for (int i = 0; i < materials.length; i++)
+ {
+ if (materials[i] == block.blockMaterial)
+ {
+ float speed = tags.getInteger("MiningSpeed2");
+ speed /= 100f;
+ int hlvl = MinecraftForge.getBlockHarvestLevel(block, meta, getHarvestType());
+ int durability = tags.getInteger("Damage");
- float shoddy = tags.getFloat("Shoddy");
- speed += shoddy * durability / 100f;
+ float shoddy = tags.getFloat("Shoddy");
+ speed += shoddy * durability / 100f;
- if (hlvl <= tags.getInteger("HarvestLevel2"))
- return speed;
- return 0.1f;
- }
- }
- return super.getStrVsBlock(stack, block, meta);
- }
+ if (hlvl <= tags.getInteger("HarvestLevel2"))
+ return speed;
+ return 0.1f;
+ }
+ }
+ return super.getStrVsBlock(stack, block, meta);
+ }
- public boolean canHarvestBlock (Block block)
- {
- if (block.blockMaterial.isToolNotRequired())
- {
- return true;
- }
- for (Material m : getEffectiveMaterials())
- {
- if (m == block.blockMaterial)
- return true;
- }
- for (Material m : getEffectiveSecondaryMaterials())
- {
- if (m == block.blockMaterial)
- return true;
- }
- return false;
- }
+ public boolean canHarvestBlock (Block block)
+ {
+ if (block.blockMaterial.isToolNotRequired())
+ {
+ return true;
+ }
+ for (Material m : getEffectiveMaterials())
+ {
+ if (m == block.blockMaterial)
+ return true;
+ }
+ for (Material m : getEffectiveSecondaryMaterials())
+ {
+ if (m == block.blockMaterial)
+ return true;
+ }
+ return false;
+ }
- @Override
- public String[] toolCategories ()
- {
- return new String[] { "harvest", "dualharvest" };
- }
+ @Override
+ public String[] toolCategories ()
+ {
+ return new String[] { "harvest", "dualharvest" };
+ }
- protected abstract Material[] getEffectiveSecondaryMaterials ();
+ protected abstract Material[] getEffectiveSecondaryMaterials ();
- protected abstract String getSecondHarvestType ();
+ protected abstract String getSecondHarvestType ();
}
diff --git a/mods/tinker/tconstruct/library/tools/HarvestTool.java b/mods/tinker/tconstruct/library/tools/HarvestTool.java
index 0d81c145..f57eeabd 100644
--- a/mods/tinker/tconstruct/library/tools/HarvestTool.java
+++ b/mods/tinker/tconstruct/library/tools/HarvestTool.java
@@ -1,17 +1,11 @@
package mods.tinker.tconstruct.library.tools;
-import mods.tinker.tconstruct.common.TContent;
import mods.tinker.tconstruct.library.ActiveToolMod;
import mods.tinker.tconstruct.library.TConstructRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
-import net.minecraft.enchantment.Enchantment;
-import net.minecraft.enchantment.EnchantmentHelper;
-import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
diff --git a/mods/tinker/tconstruct/library/tools/ToolCore.java b/mods/tinker/tconstruct/library/tools/ToolCore.java
index a2fe3f54..e3ef8c86 100644
--- a/mods/tinker/tconstruct/library/tools/ToolCore.java
+++ b/mods/tinker/tconstruct/library/tools/ToolCore.java
@@ -15,16 +15,12 @@ import mods.tinker.tconstruct.library.crafting.ToolBuilder;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.enchantment.Enchantment;
-import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
-import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
-import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
@@ -453,11 +449,11 @@ public abstract class ToolCore extends Item implements ICustomElectricItem, IBox
}
}
- protected abstract Item getHeadItem ();
+ public abstract Item getHeadItem ();
- protected abstract Item getAccessoryItem ();
+ public abstract Item getAccessoryItem ();
- protected Item getHandleItem ()
+ public Item getHandleItem ()
{
return TConstructRegistry.toolRod;
}
@@ -484,7 +480,7 @@ public abstract class ToolCore extends Item implements ICustomElectricItem, IBox
boolean cancelHarvest = false;
for (ActiveToolMod mod : TConstructRegistry.activeModifiers)
{
- if (mod.beforeBlockBreak(this, stack, x, y, z, player));
+ if (mod.beforeBlockBreak(this, stack, x, y, z, player))
cancelHarvest = true;
}
diff --git a/mods/tinker/tconstruct/library/tools/Weapon.java b/mods/tinker/tconstruct/library/tools/Weapon.java
index ab60c03c..613b8d92 100644
--- a/mods/tinker/tconstruct/library/tools/Weapon.java
+++ b/mods/tinker/tconstruct/library/tools/Weapon.java
@@ -1,12 +1,9 @@
package mods.tinker.tconstruct.library.tools;
-import mods.tinker.tconstruct.common.TContent;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
-import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
-import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
diff --git a/mods/tinker/tconstruct/modifiers/TActiveOmniMod.java b/mods/tinker/tconstruct/modifiers/TActiveOmniMod.java
index d75cc79e..ecd52859 100644
--- a/mods/tinker/tconstruct/modifiers/TActiveOmniMod.java
+++ b/mods/tinker/tconstruct/modifiers/TActiveOmniMod.java
@@ -35,7 +35,7 @@ public class TActiveOmniMod extends ActiveToolMod
if (tags.hasKey("Moss"))
{
int chance = tags.getInteger("Moss");
- int check = world.canBlockSeeTheSky((int) entity.posX, (int) entity.posY, (int) entity.posZ) ? 750 : 1500;
+ int check = world.canBlockSeeTheSky((int) entity.posX, (int) entity.posY, (int) entity.posZ) ? 350 : 1150;
if (random.nextInt(check) < chance)
{
AbilityHelper.healTool(stack, 1, (EntityLiving) entity, true);
diff --git a/mods/tinker/tconstruct/util/PHConstruct.java b/mods/tinker/tconstruct/util/PHConstruct.java
index 9178f4d8..8d4f8713 100644
--- a/mods/tinker/tconstruct/util/PHConstruct.java
+++ b/mods/tinker/tconstruct/util/PHConstruct.java
@@ -144,8 +144,12 @@ public class PHConstruct
slimefood = config.getItem("Patterns and Misc", "Strange Food", 14103).getInt(14103);
oreChunks = config.getItem("Patterns and Misc", "Ore Chunks", 14104).getInt(14104);
- heartContainer = config.getItem("Equipables", "Heart Canister", 14105).getInt(14105);
+ heartCanister = config.getItem("Equipables", "Heart Canister", 14105).getInt(14105);
heavyHelmet = config.getItem("Equipables", "Heavy Helmet", 14106).getInt(14106);
+ diamondApple = config.getItem("Patterns and Misc", "Jeweled Apple", 14107).getInt(14107);
+ heavyChestplate = config.getItem("Equipables", "Heavy Chestplate", 14108).getInt(14108);
+ heavyPants = config.getItem("Equipables", "Heavy Pants", 14109).getInt(14109);
+ heavyBoots = config.getItem("Equipables", "Heavy Boots", 14110).getInt(14110);
boolean ic2 = true;
boolean xycraft = true;
@@ -282,6 +286,7 @@ public class PHConstruct
public static int oreChunks;
//Food
+ public static int diamondApple;
public static int slimefood;
//Tools
@@ -332,7 +337,7 @@ public class PHConstruct
public static int heavyPants;
public static int heavyBoots;
- public static int heartContainer;
+ public static int heartCanister;
//Ore values
public static boolean generateCopper;
diff --git a/mods/tinker/tconstruct/util/TCraftingHandler.java b/mods/tinker/tconstruct/util/TCraftingHandler.java
index 5fc82409..6675a81d 100644
--- a/mods/tinker/tconstruct/util/TCraftingHandler.java
+++ b/mods/tinker/tconstruct/util/TCraftingHandler.java
@@ -1,7 +1,9 @@
package mods.tinker.tconstruct.util;
+import mods.tinker.tconstruct.TConstruct;
import mods.tinker.tconstruct.common.TContent;
import mods.tinker.tconstruct.library.tools.AbilityHelper;
+import mods.tinker.tconstruct.util.player.TPlayerStats;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
@@ -19,18 +21,22 @@ public class TCraftingHandler implements ICraftingHandler
int itemID = item.getItem().itemID;
if (itemID == TContent.toolStationWood.blockID)
{
+ TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.username);
NBTTagCompound tags = player.getEntityData().getCompoundTag("TConstruct");
- if (!tags.getBoolean("materialManual"))
+ if (!tags.getBoolean("materialManual") || !stats.materialManual)
{
+ stats.materialManual = true;
tags.setBoolean("materialManual", true);
AbilityHelper.spawnItemAtPlayer(player, new ItemStack(TContent.manualBook, 1, 1));
}
}
if (itemID == TContent.smeltery.blockID || itemID == TContent.lavaTank.blockID)
{
+ TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.username);
NBTTagCompound tags = player.getEntityData().getCompoundTag("TConstruct");
- if (!tags.getBoolean("smelteryManual"))
+ if (!tags.getBoolean("smelteryManual") || !stats.smelteryManual)
{
+ stats.smelteryManual = true;
tags.setBoolean("smelteryManual", true);
AbilityHelper.spawnItemAtPlayer(player, new ItemStack(TContent.manualBook, 1, 2));
}
diff --git a/mods/tinker/tconstruct/util/TEventHandler.java b/mods/tinker/tconstruct/util/TEventHandler.java
index d5144a75..084816b7 100644
--- a/mods/tinker/tconstruct/util/TEventHandler.java
+++ b/mods/tinker/tconstruct/util/TEventHandler.java
@@ -17,17 +17,15 @@ import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.monster.EntityCreeper;
import net.minecraft.entity.monster.EntityGhast;
import net.minecraft.entity.monster.EntitySkeleton;
+import net.minecraft.entity.monster.EntitySpider;
+import net.minecraft.entity.monster.IMob;
import net.minecraft.entity.passive.EntityChicken;
import net.minecraft.entity.passive.EntityCow;
-import net.minecraft.entity.passive.EntityPig;
-import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EntityDamageSource;
import net.minecraft.util.EnumMovingObjectType;
import net.minecraft.world.World;
-import net.minecraftforge.client.event.TextureStitchEvent;
-import net.minecraftforge.client.event.sound.SoundLoadEvent;
import net.minecraftforge.event.Event.Result;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.living.LivingDropsEvent;
@@ -37,8 +35,6 @@ import net.minecraftforge.event.entity.player.FillBucketEvent;
import net.minecraftforge.liquids.LiquidStack;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.oredict.OreDictionary.OreRegisterEvent;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
public class TEventHandler
{
@@ -60,6 +56,14 @@ public class TEventHandler
@ForgeSubscribe
public void onLivingDrop (LivingDropsEvent event)
{
+ if (random.nextInt(500) == 0 && event.entityLiving instanceof IMob && event.entityLiving.dimension == 0)
+ {
+ 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);
+ entityitem.delayBeforeCanPickup = 10;
+ event.drops.add(entityitem);
+ }
+
if (!event.entityLiving.isChild())
{
if (event.entityLiving.getClass() == EntityCow.class)
@@ -112,12 +116,15 @@ public class TEventHandler
@ForgeSubscribe
public void onLivingSpawn (LivingSpawnEvent.SpecialSpawn event)
- {
- if (event.entityLiving instanceof EntityCreeper && random.nextInt(500) == 0)
+ {
+ if (event.entityLiving.getClass() == EntitySpider.class && random.nextInt(100) == 0)
{
- EntityPig pig = new EntityPig(event.entityLiving.worldObj);
- spawnEntity(event.entityLiving.posX, event.entityLiving.posY+1, event.entityLiving.posZ, pig, event.entityLiving.worldObj);
- event.entityLiving.mountEntity(pig);
+ EntityCreeper creeper = new EntityCreeper(event.entityLiving.worldObj);
+ spawnEntity(event.entityLiving.posX, event.entityLiving.posY+1, event.entityLiving.posZ, creeper, event.entityLiving.worldObj);
+ EntitySkeleton skeleton = new EntitySkeleton(event.entityLiving.worldObj);
+ spawnEntity(event.entityLiving.posX, event.entityLiving.posY+1, event.entityLiving.posZ, skeleton, event.entityLiving.worldObj);
+ skeleton.mountEntity(creeper);
+ creeper.mountEntity(event.entityLiving);
}
}
@@ -126,7 +133,6 @@ public class TEventHandler
if (!world.isRemote)
{
entity.setPosition(x, y, z);
- //entity.setAngles(player.cameraYaw, player.cameraYaw);
((EntityLiving) entity).initCreature();
world.spawnEntityInWorld(entity);
}
diff --git a/mods/tinker/tconstruct/util/player/ArmorExtended.java b/mods/tinker/tconstruct/util/player/ArmorExtended.java
index 47c2dcf6..d0a8b90c 100644
--- a/mods/tinker/tconstruct/util/player/ArmorExtended.java
+++ b/mods/tinker/tconstruct/util/player/ArmorExtended.java
@@ -2,6 +2,7 @@ package mods.tinker.tconstruct.util.player;
import java.lang.ref.WeakReference;
+import mods.tinker.tconstruct.TConstruct;
import mods.tinker.tconstruct.common.TContent;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
@@ -54,6 +55,7 @@ public class ArmorExtended implements IInventory
{
inventory[slot] = null;
}
+ recalculateHealth();
return split;
}
else
@@ -77,6 +79,7 @@ public class ArmorExtended implements IInventory
{
itemstack.stackSize = getInventoryStackLimit();
}
+ recalculateHealth();
}
@Override
@@ -100,9 +103,23 @@ public class ArmorExtended implements IInventory
@Override
public void onInventoryChanged ()
{
- if (inventory[6] != null && inventory[6].getItem() == TContent.heartContainer)
+ recalculateHealth();
+ }
+
+ public void recalculateHealth()
+ {
+ if (inventory[6] != null && inventory[6].getItem() == TContent.heartCanister)
{
- parent.get().maxHealth = 40;
+ ItemStack stack = inventory[6];
+ int meta = stack.getItemDamage();
+ if (meta == 2)
+ {
+ EntityPlayer player = parent.get();
+ TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.username);
+ int bonusHP = stack.stackSize * 2;
+ stats.bonusHealth = bonusHP;
+ player.maxHealth = 20 + bonusHP;
+ }
}
else
{
diff --git a/mods/tinker/tconstruct/util/player/TFoodStats.java b/mods/tinker/tconstruct/util/player/TFoodStats.java
index 6a987b9e..4d81c923 100644
--- a/mods/tinker/tconstruct/util/player/TFoodStats.java
+++ b/mods/tinker/tconstruct/util/player/TFoodStats.java
@@ -70,7 +70,6 @@ public class TFoodStats extends FoodStats
if (this.foodTimer >= 80)
{
player.heal(1);
- //player.setEntityHealth(player.getHealth() + 1);
this.foodTimer = 0;
}
}
diff --git a/mods/tinker/tconstruct/util/player/TPlayerHandler.java b/mods/tinker/tconstruct/util/player/TPlayerHandler.java
index 40f50b75..55c257fb 100644
--- a/mods/tinker/tconstruct/util/player/TPlayerHandler.java
+++ b/mods/tinker/tconstruct/util/player/TPlayerHandler.java
@@ -44,13 +44,13 @@ public class TPlayerHandler implements IPlayerTracker
stats.armor.loadFromNBT(entityplayer);
stats.level = entityplayer.experienceLevel;
- stats.health = entityplayer.maxHealth;
stats.hunger = entityplayer.getFoodStats().getFoodLevel();
stats.beginnerManual = tags.getCompoundTag("TConstruct").getBoolean("beginnerManual");
stats.materialManual = tags.getCompoundTag("TConstruct").getBoolean("materialManual");
stats.smelteryManual = tags.getCompoundTag("TConstruct").getBoolean("smelteryManual");
if (!stats.beginnerManual)
{
+ stats.beginnerManual = true;
tags.getCompoundTag("TConstruct").setBoolean("beginnerManual", true);
ItemStack diary = new ItemStack(TContent.manualBook);
if (!entityplayer.inventory.addItemStackToInventory(diary))
@@ -79,7 +79,7 @@ public class TPlayerHandler implements IPlayerTracker
if (player != null)
{
TPlayerStats stats = getPlayerStats(player.username);
- if (stats != null)
+ if (stats != null && stats.armor != null)
{
stats.armor.saveToNBT(player);
if (clean)
@@ -98,6 +98,7 @@ public class TPlayerHandler implements IPlayerTracker
//Boom!
TPlayerStats stats = getPlayerStats(entityplayer.username);
stats.player = new WeakReference(entityplayer);
+ stats.armor.recalculateHealth();
TFoodStats food = new TFoodStats();
entityplayer.foodStats = food;
diff --git a/mods/tinker/tconstruct/util/player/TPlayerStats.java b/mods/tinker/tconstruct/util/player/TPlayerStats.java
index d6fccdeb..acf26682 100644
--- a/mods/tinker/tconstruct/util/player/TPlayerStats.java
+++ b/mods/tinker/tconstruct/util/player/TPlayerStats.java
@@ -11,7 +11,8 @@ public class TPlayerStats
{
public WeakReference player;
public int level;
- public int health;
+ public int levelHealth;
+ public int bonusHealth;
public int hunger;
public boolean beginnerManual;
public boolean materialManual;
diff --git a/mods/tinker/tconstruct/worldgen/OverworldProvider.java b/mods/tinker/tconstruct/worldgen/OverworldProvider.java
index 0edcd6d8..b3a0d489 100644
--- a/mods/tinker/tconstruct/worldgen/OverworldProvider.java
+++ b/mods/tinker/tconstruct/worldgen/OverworldProvider.java
@@ -19,6 +19,27 @@ public class OverworldProvider extends WorldProvider
return this.terrainType.hasVoidParticles(this.hasNoSky);
}
+ public float calculateCelestialAngle(long worldtime, float par3)
+ {
+ int timeOfDay = 18000;
+ float f1 = ((float)timeOfDay + par3) / 24000.0F - 0.25F;
+
+ if (f1 < 0.0F)
+ {
+ ++f1;
+ }
+
+ if (f1 > 1.0F)
+ {
+ --f1;
+ }
+
+ float f2 = f1;
+ f1 = 1.0F - (float)((Math.cos((double)f1 * Math.PI) + 1.0D) / 2.0D);
+ f1 = f2 + (f1 - f2) / 3.0F;
+ return f1;
+ }
+
/*public float calculateCelestialAngle(long worldtime, float par3)
{
int timeOfDay = (int)(worldtime % 43200L);
diff --git a/mods/tinker/tconstruct/worldgen/village/ComponentToolWorkshop.java b/mods/tinker/tconstruct/worldgen/village/ComponentToolWorkshop.java
index 9ec01a4e..bb348e5f 100644
--- a/mods/tinker/tconstruct/worldgen/village/ComponentToolWorkshop.java
+++ b/mods/tinker/tconstruct/worldgen/village/ComponentToolWorkshop.java
@@ -3,8 +3,10 @@ package mods.tinker.tconstruct.worldgen.village;
import java.util.List;
import java.util.Random;
+import mods.tinker.tconstruct.blocks.logic.PatternChestLogic;
import mods.tinker.tconstruct.common.TContent;
import net.minecraft.block.Block;
+import net.minecraft.util.WeightedRandomChestContent;
import net.minecraft.world.World;
import net.minecraft.world.gen.structure.ComponentVillage;
import net.minecraft.world.gen.structure.ComponentVillageStartPiece;
@@ -13,133 +15,163 @@ import net.minecraft.world.gen.structure.StructureComponent;
public class ComponentToolWorkshop extends ComponentVillage
{
- private int averageGroundLevel = -1;
+ private int averageGroundLevel = -1;
- public ComponentToolWorkshop(ComponentVillageStartPiece par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
- {
- super(par1ComponentVillageStartPiece, par2);
- this.coordBaseMode = par5;
- this.boundingBox = par4StructureBoundingBox;
- }
+ public ComponentToolWorkshop(ComponentVillageStartPiece par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
+ {
+ super(par1ComponentVillageStartPiece, par2);
+ this.coordBaseMode = par5;
+ this.boundingBox = par4StructureBoundingBox;
+ }
- public static ComponentToolWorkshop buildComponent(ComponentVillageStartPiece villagePiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
- {
- StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p1, p2, p3, 0, 0, 0, 7, 6, 7, p4);
- return canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(pieces, structureboundingbox) == null ? new ComponentToolWorkshop(villagePiece, p5, random, structureboundingbox, p4) : null;
- }
+ public static ComponentToolWorkshop buildComponent (ComponentVillageStartPiece villagePiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5)
+ {
+ StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(p1, p2, p3, 0, 0, 0, 7, 6, 7, p4);
+ return canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(pieces, structureboundingbox) == null ? new ComponentToolWorkshop(villagePiece, p5, random,
+ structureboundingbox, p4) : null;
+ }
- /**
- * second Part of Structure generating, this for example places Spiderwebs, Mob Spawners, it closes Mineshafts at
- * the end, it adds Fences...
- */
- public boolean addComponentParts(World world, Random random, StructureBoundingBox sbb)
- {
- if (this.averageGroundLevel < 0)
- {
- this.averageGroundLevel = this.getAverageGroundLevel(world, sbb);
+ /**
+ * second Part of Structure generating, this for example places Spiderwebs, Mob Spawners, it closes Mineshafts at
+ * the end, it adds Fences...
+ */
+ public boolean addComponentParts (World world, Random random, StructureBoundingBox sbb)
+ {
+ if (this.averageGroundLevel < 0)
+ {
+ this.averageGroundLevel = this.getAverageGroundLevel(world, sbb);
- if (this.averageGroundLevel < 0)
- {
- return true;
- }
+ if (this.averageGroundLevel < 0)
+ {
+ return true;
+ }
- this.boundingBox.offset(0, this.averageGroundLevel - this.boundingBox.maxY + 4, 0);
- }
-
- /**
- * arguments: (World worldObj, StructureBoundingBox structBB, int minX, int minY, int minZ, int maxX, int maxY, int
- * maxZ, int placeBlockId, int replaceBlockId, boolean alwaysreplace)
- */
-
- this.fillWithBlocks(world, sbb, 0, 0, 0, 6, 0, 6, Block.cobblestone.blockID, Block.cobblestone.blockID, false); //Base
- this.fillWithBlocks(world, sbb, 0, 5, 0, 6, 5, 6, Block.fence.blockID, Block.fence.blockID, false);
- this.fillWithBlocks(world, sbb, 1, 0, 1, 5, 0, 5, Block.planks.blockID, Block.planks.blockID, false);
- this.fillWithBlocks(world, sbb, 2, 0, 2, 4, 0, 4, Block.cloth.blockID, Block.cloth.blockID, false);
-
- //this.fillWithBlocks(world, sbb, 0, 5, 0, 6, 5, 6, Block.wood.blockID, Block.wood.blockID, false);
-
- this.fillWithBlocks(world, sbb, 0, 1, 0, 0, 4, 0, Block.wood.blockID, Block.wood.blockID, false); //Edges
- this.fillWithBlocks(world, sbb, 0, 1, 6, 0, 4, 6, Block.wood.blockID, Block.wood.blockID, false);
- this.fillWithBlocks(world, sbb, 6, 1, 0, 6, 4, 0, Block.wood.blockID, Block.wood.blockID, false);
- this.fillWithBlocks(world, sbb, 6, 1, 6, 6, 4, 6, Block.wood.blockID, Block.wood.blockID, false);
-
- this.fillWithBlocks(world, sbb, 0, 1, 1, 0, 1, 5, Block.planks.blockID, Block.planks.blockID, false); //Walls
- this.fillWithBlocks(world, sbb, 1, 1, 0, 5, 1, 0, Block.planks.blockID, Block.planks.blockID, false);
- this.fillWithBlocks(world, sbb, 6, 1, 1, 6, 1, 5, Block.planks.blockID, Block.planks.blockID, false);
- this.fillWithBlocks(world, sbb, 1, 1, 6, 5, 1, 6, Block.planks.blockID, Block.planks.blockID, false);
-
- this.fillWithBlocks(world, sbb, 0, 3, 1, 0, 3, 5, Block.planks.blockID, Block.planks.blockID, false);
- this.fillWithBlocks(world, sbb, 1, 3, 0, 5, 3, 0, Block.planks.blockID, Block.planks.blockID, false);
- this.fillWithBlocks(world, sbb, 6, 3, 1, 6, 3, 5, Block.planks.blockID, Block.planks.blockID, false);
- this.fillWithBlocks(world, sbb, 1, 3, 6, 5, 3, 6, Block.planks.blockID, Block.planks.blockID, false);
-
- this.fillWithBlocks(world, sbb, 0, 4, 1, 0, 4, 5, Block.wood.blockID, Block.wood.blockID, false);
- this.fillWithBlocks(world, sbb, 1, 4, 0, 5, 4, 0, Block.wood.blockID, Block.wood.blockID, false);
- this.fillWithBlocks(world, sbb, 6, 4, 1, 6, 4, 5, Block.wood.blockID, Block.wood.blockID, false);
- this.fillWithBlocks(world, sbb, 1, 4, 6, 5, 4, 6, Block.wood.blockID, Block.wood.blockID, false);
+ this.boundingBox.offset(0, this.averageGroundLevel - this.boundingBox.maxY + 4, 0);
+ }
- this.fillWithBlocks(world, sbb, 1, 1, 1, 5, 5, 5, 0, 0, false);
- this.fillWithBlocks(world, sbb, 1, 4, 1, 5, 4, 5, Block.planks.blockID, Block.planks.blockID, false);
-
- //world, blockID, metadata, x, y, z, bounds
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 1, 2, 0, sbb);//Glass and door
- this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 2, 2, 0, sbb);
- this.placeDoorAtCurrentPosition(world, sbb, random, 3, 1, 0, this.getMetadataWithOffset(Block.doorWood.blockID, 1));
- this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 4, 2, 0, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 5, 2, 0, sbb);
-
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 1, 2, 6, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 2, 2, 6, sbb);
- this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 3, 2, 6, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 4, 2, 6, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 5, 2, 6, sbb);
+ /**
+ * arguments: (World worldObj, StructureBoundingBox structBB, int minX, int minY, int minZ, int maxX, int maxY, int
+ * maxZ, int placeBlockId, int replaceBlockId, boolean alwaysreplace)
+ */
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 0, 2, 1, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 0, 2, 2, sbb);
- this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 0, 2, 3, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 0, 2, 4, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 0, 2, 5, sbb);
+ this.fillWithBlocks(world, sbb, 0, 0, 0, 6, 0, 6, Block.cobblestone.blockID, Block.cobblestone.blockID, false); //Base
+ this.fillWithBlocks(world, sbb, 0, 5, 0, 6, 5, 6, Block.fence.blockID, Block.fence.blockID, false);
+ this.fillWithBlocks(world, sbb, 1, 0, 1, 5, 0, 5, Block.planks.blockID, Block.planks.blockID, false);
+ this.fillWithBlocks(world, sbb, 2, 0, 2, 4, 0, 4, Block.cloth.blockID, Block.cloth.blockID, false);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 6, 2, 1, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 6, 2, 2, sbb);
- this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 6, 2, 3, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 6, 2, 4, sbb);
- this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 6, 2, 5, sbb);
-
- int i = this.getMetadataWithOffset(Block.ladder.blockID, 3); //Ladders
- this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 1, 5, sbb);
- this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 2, 5, sbb);
- this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 3, 5, sbb);
- this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 4, 5, sbb);
+ //this.fillWithBlocks(world, sbb, 0, 5, 0, 6, 5, 6, Block.wood.blockID, Block.wood.blockID, false);
- this.placeBlockAtCurrentPosition(world, TContent.toolStationWood.blockID, 0, 1, 1, 1, sbb); //Inside
- this.placeBlockAtCurrentPosition(world, TContent.toolStationWood.blockID, 5, 1, 1, 2, sbb);
- this.placeBlockAtCurrentPosition(world, TContent.toolStationWood.blockID, 1, 1, 1, 3, sbb);
- this.placeBlockAtCurrentPosition(world, Block.workbench.blockID, 0, 1, 1, 4, sbb);
- this.placeBlockAtCurrentPosition(world, TContent.toolStationWood.blockID, 10, 1, 1, 5, sbb);
+ this.fillWithBlocks(world, sbb, 0, 1, 0, 0, 4, 0, Block.wood.blockID, Block.wood.blockID, false); //Edges
+ this.fillWithBlocks(world, sbb, 0, 1, 6, 0, 4, 6, Block.wood.blockID, Block.wood.blockID, false);
+ this.fillWithBlocks(world, sbb, 6, 1, 0, 6, 4, 0, Block.wood.blockID, Block.wood.blockID, false);
+ this.fillWithBlocks(world, sbb, 6, 1, 6, 6, 4, 6, Block.wood.blockID, Block.wood.blockID, false);
- this.placeBlockAtCurrentPosition(world, Block.chest.blockID, i, 4, 1, 5, sbb);
- i = this.getMetadataWithOffset(Block.pistonBase.blockID, 3);
- this.placeBlockAtCurrentPosition(world, Block.pistonBase.blockID, i, 5, 1, 5, sbb);
-
- for (int l = 0; l < 6; ++l)
- {
- for (int i1 = 0; i1 < 9; ++i1)
- {
- this.clearCurrentPositionBlocksUpwards(world, i1, 9, l, sbb);
- this.fillCurrentPositionBlocksDownwards(world, Block.cobblestone.blockID, 0, i1, -1, l, sbb);
- }
- }
- this.spawnVillagers(world, sbb, 3, 1, 3, 1);
+ this.fillWithBlocks(world, sbb, 0, 1, 1, 0, 1, 5, Block.planks.blockID, Block.planks.blockID, false); //Walls
+ this.fillWithBlocks(world, sbb, 1, 1, 0, 5, 1, 0, Block.planks.blockID, Block.planks.blockID, false);
+ this.fillWithBlocks(world, sbb, 6, 1, 1, 6, 1, 5, Block.planks.blockID, Block.planks.blockID, false);
+ this.fillWithBlocks(world, sbb, 1, 1, 6, 5, 1, 6, Block.planks.blockID, Block.planks.blockID, false);
- return true;
- }
+ this.fillWithBlocks(world, sbb, 0, 3, 1, 0, 3, 5, Block.planks.blockID, Block.planks.blockID, false);
+ this.fillWithBlocks(world, sbb, 1, 3, 0, 5, 3, 0, Block.planks.blockID, Block.planks.blockID, false);
+ this.fillWithBlocks(world, sbb, 6, 3, 1, 6, 3, 5, Block.planks.blockID, Block.planks.blockID, false);
+ this.fillWithBlocks(world, sbb, 1, 3, 6, 5, 3, 6, Block.planks.blockID, Block.planks.blockID, false);
- /**
- * Returns the villager type to spawn in this component, based on the number of villagers already spawned.
- */
- protected int getVillagerType(int par1)
- {
- return 78943;
- }
+ this.fillWithBlocks(world, sbb, 0, 4, 1, 0, 4, 5, Block.wood.blockID, Block.wood.blockID, false);
+ this.fillWithBlocks(world, sbb, 1, 4, 0, 5, 4, 0, Block.wood.blockID, Block.wood.blockID, false);
+ this.fillWithBlocks(world, sbb, 6, 4, 1, 6, 4, 5, Block.wood.blockID, Block.wood.blockID, false);
+ this.fillWithBlocks(world, sbb, 1, 4, 6, 5, 4, 6, Block.wood.blockID, Block.wood.blockID, false);
+
+ this.fillWithBlocks(world, sbb, 1, 1, 1, 5, 5, 5, 0, 0, false);
+ this.fillWithBlocks(world, sbb, 1, 4, 1, 5, 4, 5, Block.planks.blockID, Block.planks.blockID, false);
+
+ //world, blockID, metadata, x, y, z, bounds
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 1, 2, 0, sbb);//Glass and door
+ this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 2, 2, 0, sbb);
+ this.placeDoorAtCurrentPosition(world, sbb, random, 3, 1, 0, this.getMetadataWithOffset(Block.doorWood.blockID, 1));
+ this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 4, 2, 0, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 5, 2, 0, sbb);
+
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 1, 2, 6, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 2, 2, 6, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 3, 2, 6, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 4, 2, 6, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 5, 2, 6, sbb);
+
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 0, 2, 1, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 0, 2, 2, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 0, 2, 3, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 0, 2, 4, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 0, 2, 5, sbb);
+
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 6, 2, 1, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 6, 2, 2, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.planks.blockID, 0, 6, 2, 3, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 6, 2, 4, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.thinGlass.blockID, 0, 6, 2, 5, sbb);
+
+ int i = this.getMetadataWithOffset(Block.ladder.blockID, 3); //Ladders
+ this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 1, 5, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 2, 5, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 3, 5, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.ladder.blockID, i, 3, 4, 5, sbb);
+
+ this.placeBlockAtCurrentPosition(world, TContent.toolStationWood.blockID, 0, 1, 1, 1, sbb); //Inside
+ this.generateStructureChestContents(world, sbb, random, 1, 1, 2, TContent.tinkerHousePatterns.getItems(random), TContent.tinkerHousePatterns.getCount(random));
+ //this.placeBlockAtCurrentPosition(world, TContent.toolStationWood.blockID, 5, 1, 1, 2, sbb);
+ this.placeBlockAtCurrentPosition(world, TContent.toolStationWood.blockID, 1, 1, 1, 3, sbb);
+ this.placeBlockAtCurrentPosition(world, Block.workbench.blockID, 0, 1, 1, 4, sbb);
+ this.placeBlockAtCurrentPosition(world, TContent.toolStationWood.blockID, 10, 1, 1, 5, sbb);
+
+ //ChestGenHooks info = ChestGenHooks.getInfo("TinkerHouse");
+
+ this.generateStructureChestContents(world, sbb, random, 4, 1, 5, TContent.tinkerHouseChest.getItems(random), TContent.tinkerHouseChest.getCount(random));
+ //this.placeBlockAtCurrentPosition(world, Block.chest.blockID, i, 4, 1, 5, sbb);
+ i = this.getMetadataWithOffset(Block.pistonBase.blockID, 3);
+ this.placeBlockAtCurrentPosition(world, Block.pistonBase.blockID, i, 5, 1, 5, sbb);
+
+ for (int l = 0; l < 6; ++l)
+ {
+ for (int i1 = 0; i1 < 9; ++i1)
+ {
+ this.clearCurrentPositionBlocksUpwards(world, i1, 9, l, sbb);
+ this.fillCurrentPositionBlocksDownwards(world, Block.cobblestone.blockID, 0, i1, -1, l, sbb);
+ }
+ }
+ this.spawnVillagers(world, sbb, 3, 1, 3, 1);
+
+ return true;
+ }
+
+ protected boolean generateStructurePatternChestContents (World world, StructureBoundingBox par2StructureBoundingBox, Random random, int x, int y, int z,
+ WeightedRandomChestContent[] content, int par8)
+ {
+ int posX = this.getXWithOffset(x, z);
+ int posY = this.getYWithOffset(y);
+ int posZ = this.getZWithOffset(x, z);
+
+ if (par2StructureBoundingBox.isVecInside(posX, posY, posZ) && world.getBlockId(posX, posY, posZ) != Block.chest.blockID)
+ {
+ world.setBlock(posX, posY, posZ, TContent.toolStationWood.blockID, 5, 2);
+ PatternChestLogic logic = (PatternChestLogic) world.getBlockTileEntity(posX, posY, posZ);
+
+ if (logic != null)
+ {
+ WeightedRandomChestContent.generateChestContents(random, content, logic, par8);
+ }
+
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ /**
+ * Returns the villager type to spawn in this component, based on the number of villagers already spawned.
+ */
+ protected int getVillagerType (int par1)
+ {
+ return 78943;
+ }
}
diff --git a/mods/tinker/tconstruct/worldgen/village/VillageSmelteryHandler.java b/mods/tinker/tconstruct/worldgen/village/VillageSmelteryHandler.java
index 3ab6fec2..a5b0594c 100644
--- a/mods/tinker/tconstruct/worldgen/village/VillageSmelteryHandler.java
+++ b/mods/tinker/tconstruct/worldgen/village/VillageSmelteryHandler.java
@@ -13,7 +13,7 @@ public class VillageSmelteryHandler implements IVillageCreationHandler
@Override
public StructureVillagePieceWeight getVillagePieceWeight (Random random, int i)
{
- return new StructureVillagePieceWeight(ComponentSmeltery.class, 9, i + 1);
+ return new StructureVillagePieceWeight(ComponentSmeltery.class, 9, i + random.nextInt(10) == 0 ? 1 : 0);
}
@Override
diff --git a/mods/tinker/tconstruct/worldgen/village/VillageToolStationHandler.java b/mods/tinker/tconstruct/worldgen/village/VillageToolStationHandler.java
index be951ec3..701e418a 100644
--- a/mods/tinker/tconstruct/worldgen/village/VillageToolStationHandler.java
+++ b/mods/tinker/tconstruct/worldgen/village/VillageToolStationHandler.java
@@ -13,7 +13,7 @@ public class VillageToolStationHandler implements IVillageCreationHandler
@Override
public StructureVillagePieceWeight getVillagePieceWeight (Random random, int i)
{
- return new StructureVillagePieceWeight(ComponentToolWorkshop.class, 30, i + 2);
+ return new StructureVillagePieceWeight(ComponentToolWorkshop.class, 30, i + random.nextInt(4));
}
@Override
diff --git a/mods/tinker/textures/items/apple_diamond.png b/mods/tinker/textures/items/apple_diamond.png
new file mode 100644
index 00000000..afb2112a
Binary files /dev/null and b/mods/tinker/textures/items/apple_diamond.png differ
diff --git a/mods/tinker/textures/items/miniheart_red.png b/mods/tinker/textures/items/miniheart_red.png
new file mode 100644
index 00000000..54125c7f
Binary files /dev/null and b/mods/tinker/textures/items/miniheart_red.png differ
diff --git a/mods/tinker/textures/items/unstable_heart.png b/mods/tinker/textures/items/unstable_heart.png
deleted file mode 100644
index bd6fdc50..00000000
Binary files a/mods/tinker/textures/items/unstable_heart.png and /dev/null differ
diff --git a/spritesheets/arrows.png b/spritesheets/arrows.png
new file mode 100644
index 00000000..a371e084
Binary files /dev/null and b/spritesheets/arrows.png differ
diff --git a/test/XinStick.java b/test/XinStick.java
index bd5d25dc..82140113 100644
--- a/test/XinStick.java
+++ b/test/XinStick.java
@@ -1,6 +1,6 @@
package test;
-import mods.tinker.tconstruct.entity.SlimeClone;
+import mods.tinker.tconstruct.entity.Crystal;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
@@ -37,7 +37,7 @@ public class XinStick extends Item
spawnEntity(player.posX, player.posY+1, player.posZ, creeper, world, player);
spawnEntity(player.posX, player.posY+1, player.posZ, pig, world, player);
creeper.mountEntity(pig);*/
- spawnEntity(player.posX, player.posY+1, player.posZ, new SlimeClone(world, "Minalien"), world, player);
+ spawnEntity(player.posX, player.posY+1, player.posZ, new Crystal(world), world, player);
//System.out.println("Health! "+player.getHealth());
//healPlayer(player);
//removeChunk(world, player.posX, player.posZ);
@@ -79,6 +79,7 @@ public class XinStick extends Item
{
entity.setPosition(x, y, z);
entity.setAngles(player.cameraYaw, player.cameraYaw);
+ //((BlueSlime) entity).setSlimeSize(8);
((EntityLiving) entity).initCreature();
world.spawnEntityInWorld(entity);
}