diff --git a/assets/tinker/lang/en_US.xml b/assets/tinker/lang/en_US.xml
index 3bd9bd27..8992373d 100644
--- a/assets/tinker/lang/en_US.xml
+++ b/assets/tinker/lang/en_US.xml
@@ -337,7 +337,10 @@
Molten Invar Bucket
Molten Electrum Bucket
Liquified Ender Bucket
+<<<<<<< HEAD:assets/tinker/lang/en_US.xml
Liquid Slime Bucket
+=======
+>>>>>>> Slime islands:mods/tinker/resources/lang/en_US.xml
Bowstring
Enchanted Bowstring
diff --git a/assets/tinker/manuals/materials.xml b/assets/tinker/manuals/materials.xml
index 728a434f..6083dc2b 100644
--- a/assets/tinker/manuals/materials.xml
+++ b/assets/tinker/manuals/materials.xml
@@ -270,7 +270,7 @@ Class: Utility Tool
Natural Abilities:
- Area of Effect, Mines a 3x3 area. The direction depends on which face is pounded.
- Smite II, Does 2-4 extra hearts of damage against undead.
-- Huge Durability, his tool has very high durability to make up for the constant beating it will recieve.
+- Huge Durability, this tool has very high durability to make up for the constant beating it will recieve.
Class: Broad Mining Tool
hammericon
diff --git a/mods/tinker/tconstruct/client/ToolCoreRenderer.java b/mods/tinker/tconstruct/client/ToolCoreRenderer.java
deleted file mode 100644
index 2ecbe94c..00000000
--- a/mods/tinker/tconstruct/client/ToolCoreRenderer.java
+++ /dev/null
@@ -1,250 +0,0 @@
-package mods.tinker.tconstruct.client;
-
-import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.Icon;
-import net.minecraftforge.client.IItemRenderer;
-
-import org.lwjgl.opengl.GL11;
-import org.lwjgl.opengl.GL12;
-
-import tconstruct.library.tools.ToolCore;
-
-public class ToolCoreRenderer implements IItemRenderer
-{
- @Override
- public boolean handleRenderType(ItemStack item, ItemRenderType type)
- {
- switch (type)
- {
- case ENTITY:
- case EQUIPPED:
- case EQUIPPED_FIRST_PERSON:
- case INVENTORY:
- return true;
- default:
- System.out.println("[TCon] Unhandled render case!");
- case FIRST_PERSON_MAP:
- return false;
- }
- }
-
- @Override
- public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper)
- {
- return handleRenderType(item, type) &
- helper.ordinal() < ItemRendererHelper.EQUIPPED_BLOCK.ordinal();
- }
-
- private static final int toolIcons = 10;
-
- @Override
- public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
- ToolCore tool = (ToolCore)item.getItem();
-
- boolean isInventory = type == ItemRenderType.INVENTORY;
- Entity ent = null;
- if (data.length > 1)
- ent = (Entity)data[1];
-
- int iconParts = toolIcons;//tool.getRenderPasses(item.getItemDamage());
-
- Icon[] tempParts = new Icon[iconParts];
- label: {
- if (!isInventory && ent instanceof EntityPlayer)
- {
- EntityPlayer player = (EntityPlayer)ent;
- ItemStack itemInUse = player.getItemInUse();
- if (itemInUse != null)
- {
- int useCount = player.getItemInUseCount();
- for (int i = iconParts; i --> 0; )
- tempParts[i] = tool.getIcon(item, i, player, itemInUse, useCount);
- break label;
- }
- }
- for (int i = iconParts; i --> 0; )
- tempParts[i] = tool.getIcon(item, i);
- }
-
- int count = 0;
- Icon[] parts = new Icon[iconParts];
- for (int i = 0; i < iconParts; ++i)
- {
- Icon part = tempParts[i];
- if (part == null || part == ToolCore.blankSprite | part == ToolCore.emptyIcon)
- ++count;
- else
- parts[i - count] = part;
- }
- iconParts -= count;
-
- if (iconParts <= 0)
- {
- iconParts = 1;
- // TODO: assign default sprite
- // parts = new Icon[]{ defaultSprite };
- }
-
- Tessellator tess = Tessellator.instance;
- float[] xMax = new float[iconParts];
- float[] yMin = new float[iconParts];
- float[] xMin = new float[iconParts];
- float[] yMax = new float[iconParts];
- int[] sheetWidth = new int[iconParts];
- int[] sheetHeight = new int[iconParts];
- float depth = 1f / 16f;
-
- float[] width = new float[iconParts];
- float[] height = new float[iconParts];
- float[] xDiff = new float[iconParts];
- float[] yDiff = new float[iconParts];
- for (int i = 0; i < iconParts; ++i)
- {
- Icon icon = parts[i];
- xMin[i] = icon.getMinU();
- xMax[i] = icon.getMaxU();
- yMin[i] = icon.getMinV();
- yMax[i] = icon.getMaxV();
- sheetWidth[i] = icon.getOriginX();
- sheetHeight[i] = icon.getOriginY();
- width[i] = sheetWidth[i] * (xMax[i] - xMin[i]);
- height[i] = sheetHeight[i] * (yMax[i] - yMin[i]);
- xDiff[i] = xMin[i] - xMax[i];
- yDiff[i] = yMin[i] - yMax[i];
- }
- GL11.glPushMatrix();
-
- if (type == ItemRenderType.INVENTORY)
- {
- GL11.glDisable(GL11.GL_LIGHTING);
- tess.startDrawingQuads();
- for (int i = 0; i < iconParts; ++i)
- {
- tess.addVertexWithUV(0, 16, 0, xMin[i], yMax[i]);
- tess.addVertexWithUV(16, 16, 0, xMax[i], yMax[i]);
- tess.addVertexWithUV(16, 0, 0, xMax[i], yMin[i]);
- tess.addVertexWithUV(0, 0, 0, xMin[i], yMin[i]);
- }
- tess.draw();
- GL11.glEnable(GL11.GL_LIGHTING);
- }
- else
- {
- GL11.glEnable(GL12.GL_RESCALE_NORMAL);
-
- switch (type)
- {
- case EQUIPPED_FIRST_PERSON:
- break;
- case EQUIPPED:
- GL11.glTranslatef(0, -4 / 16f, 0);
- break;
- case ENTITY:
- GL11.glTranslatef(0, 4 / 16f, 0);
- break;
- default:
- }
-
- tess.startDrawingQuads();
- tess.setNormal(0, 0, 1);
- for (int i = 0; i < iconParts; ++i)
- {
- tess.addVertexWithUV(0, 0, 0, xMax[i], yMax[i]);
- tess.addVertexWithUV(1, 0, 0, xMin[i], yMax[i]);
- tess.addVertexWithUV(1, 1, 0, xMin[i], yMin[i]);
- tess.addVertexWithUV(0, 1, 0, xMax[i], yMin[i]);
- }
- tess.draw();
- tess.startDrawingQuads();
- tess.setNormal(0, 0, -1);
- for (int i = 0; i < iconParts; ++i)
- {
- tess.addVertexWithUV(0, 1, -depth, xMax[i], yMin[i]);
- tess.addVertexWithUV(1, 1, -depth, xMin[i], yMin[i]);
- tess.addVertexWithUV(1, 0, -depth, xMin[i], yMax[i]);
- tess.addVertexWithUV(0, 0, -depth, xMax[i], yMax[i]);
- }
- tess.draw();
- tess.startDrawingQuads();
- tess.setNormal(-1, 0, 0);
- int k;
- float pos;
- float iconPos;
-
- for (int i = 0; i < iconParts; ++i)
- {
- for (k = 0; k < width[i]; ++k)
- {
- pos = k / width[i];
- iconPos = xMax[i] + xDiff[i] * pos - 0.5F / sheetWidth[i];
- tess.addVertexWithUV(pos, 0, -depth, iconPos, yMax[i]);
- tess.addVertexWithUV(pos, 0, 0, iconPos, yMax[i]);
- tess.addVertexWithUV(pos, 1, 0, iconPos, yMin[i]);
- tess.addVertexWithUV(pos, 1, -depth, iconPos, yMin[i]);
- }
- }
-
- tess.draw();
- tess.startDrawingQuads();
- tess.setNormal(1, 0, 0);
- float posEnd;
-
- for (int i = 0; i < iconParts; ++i)
- {
- for (k = 0; k < width[i]; ++k)
- {
- pos = k / width[i];
- iconPos = xMax[i] + xDiff[i] * pos - 0.5F / sheetWidth[i];
- posEnd = pos + 1 / width[i];
- tess.addVertexWithUV(posEnd, 1, -depth, iconPos, yMin[i]);
- tess.addVertexWithUV(posEnd, 1, 0, iconPos, yMin[i]);
- tess.addVertexWithUV(posEnd, 0, 0, iconPos, yMax[i]);
- tess.addVertexWithUV(posEnd, 0, -depth, iconPos, yMax[i]);
- }
- }
-
- tess.draw();
- tess.startDrawingQuads();
- tess.setNormal(0, 1, 0);
-
- for (int i = 0; i < iconParts; ++i)
- {
- for (k = 0; k < height[i]; ++k)
- {
- pos = k / height[i];
- iconPos = yMax[i] + yDiff[i] * pos - 0.5F / sheetHeight[i];
- posEnd = pos + 1 / height[i];
- tess.addVertexWithUV(0, posEnd, 0, xMax[i], iconPos);
- tess.addVertexWithUV(1, posEnd, 0, xMin[i], iconPos);
- tess.addVertexWithUV(1, posEnd, -depth, xMin[i], iconPos);
- tess.addVertexWithUV(0, posEnd, -depth, xMax[i], iconPos);
- }
- }
-
- tess.draw();
- tess.startDrawingQuads();
- tess.setNormal(0, -1, 0);
-
- for (int i = 0; i < iconParts; ++i)
- {
- for (k = 0; k < height[i]; ++k)
- {
- pos = k / height[i];
- iconPos = yMax[i] + yDiff[i] * pos - 0.5F / sheetHeight[i];
- tess.addVertexWithUV(1, pos, 0, xMin[i], iconPos);
- tess.addVertexWithUV(0, pos, 0, xMax[i], iconPos);
- tess.addVertexWithUV(0, pos, -depth, xMax[i], iconPos);
- tess.addVertexWithUV(1, pos, -depth, xMin[i], iconPos);
- }
- }
-
- tess.draw();
- GL11.glDisable(GL12.GL_RESCALE_NORMAL);
- }
-
- GL11.glPopMatrix();
- }
-}
diff --git a/mods/tinker/textures/blocks/slime_blue.png b/mods/tinker/textures/blocks/slime_blue.png
new file mode 100644
index 00000000..4fc22c5d
Binary files /dev/null and b/mods/tinker/textures/blocks/slime_blue.png differ
diff --git a/mods/tinker/textures/blocks/slime_blue.txt b/mods/tinker/textures/blocks/slime_blue.txt
new file mode 100644
index 00000000..d8fe765a
--- /dev/null
+++ b/mods/tinker/textures/blocks/slime_blue.txt
@@ -0,0 +1,32 @@
+0*2
+1*2
+2*2
+3*2
+4*2
+5*2
+6*2
+7*2
+8*2
+9*2
+10*2
+11*2
+12*2
+13*2
+14*2
+15*2
+16*2
+17*2
+18*2
+19*2
+20*2
+21*2
+22*2
+23*2
+24*2
+25*2
+26*2
+27*2
+28*2
+29*2
+30*2
+31*2
diff --git a/mods/tinker/textures/blocks/slime_blue_flow.png b/mods/tinker/textures/blocks/slime_blue_flow.png
new file mode 100644
index 00000000..929420e0
Binary files /dev/null and b/mods/tinker/textures/blocks/slime_blue_flow.png differ
diff --git a/mods/tinker/textures/blocks/slime_blue_flow.txt b/mods/tinker/textures/blocks/slime_blue_flow.txt
new file mode 100644
index 00000000..e69de29b
diff --git a/mods/tinker/textures/blocks/slimeblock_blue.png b/mods/tinker/textures/blocks/slimeblock_blue.png
new file mode 100644
index 00000000..cc2a161b
Binary files /dev/null and b/mods/tinker/textures/blocks/slimeblock_blue.png differ
diff --git a/mods/tinker/textures/blocks/slimeblock_green.png b/mods/tinker/textures/blocks/slimeblock_green.png
new file mode 100644
index 00000000..e0d9f10d
Binary files /dev/null and b/mods/tinker/textures/blocks/slimeblock_green.png differ
diff --git a/mods/tinker/textures/blocks/slimeblock_purple.png b/mods/tinker/textures/blocks/slimeblock_purple.png
new file mode 100644
index 00000000..4c63c537
Binary files /dev/null and b/mods/tinker/textures/blocks/slimeblock_purple.png differ
diff --git a/mods/tinker/textures/blocks/slimedirt_blue.png b/mods/tinker/textures/blocks/slimedirt_blue.png
new file mode 100644
index 00000000..133b401b
Binary files /dev/null and b/mods/tinker/textures/blocks/slimedirt_blue.png differ
diff --git a/mods/tinker/textures/blocks/slimedirt_green.png b/mods/tinker/textures/blocks/slimedirt_green.png
new file mode 100644
index 00000000..d4992452
Binary files /dev/null and b/mods/tinker/textures/blocks/slimedirt_green.png differ
diff --git a/mods/tinker/textures/blocks/slimegrass_blue_fern.png b/mods/tinker/textures/blocks/slimegrass_blue_fern.png
new file mode 100644
index 00000000..e50c38a7
Binary files /dev/null and b/mods/tinker/textures/blocks/slimegrass_blue_fern.png differ
diff --git a/mods/tinker/textures/blocks/slimegrass_blue_side.png b/mods/tinker/textures/blocks/slimegrass_blue_side.png
new file mode 100644
index 00000000..988c5281
Binary files /dev/null and b/mods/tinker/textures/blocks/slimegrass_blue_side.png differ
diff --git a/mods/tinker/textures/blocks/slimegrass_blue_tall.png b/mods/tinker/textures/blocks/slimegrass_blue_tall.png
new file mode 100644
index 00000000..bb10912e
Binary files /dev/null and b/mods/tinker/textures/blocks/slimegrass_blue_tall.png differ
diff --git a/mods/tinker/textures/blocks/slimegrass_blue_top.png b/mods/tinker/textures/blocks/slimegrass_blue_top.png
new file mode 100644
index 00000000..5d9ad68e
Binary files /dev/null and b/mods/tinker/textures/blocks/slimegrass_blue_top.png differ
diff --git a/mods/tinker/textures/blocks/slimegrass_green_blue_side.png b/mods/tinker/textures/blocks/slimegrass_green_blue_side.png
new file mode 100644
index 00000000..d8a186cb
Binary files /dev/null and b/mods/tinker/textures/blocks/slimegrass_green_blue_side.png differ
diff --git a/mods/tinker/textures/blocks/slimegrass_green_dirt_side.png b/mods/tinker/textures/blocks/slimegrass_green_dirt_side.png
new file mode 100644
index 00000000..3d057239
Binary files /dev/null and b/mods/tinker/textures/blocks/slimegrass_green_dirt_side.png differ
diff --git a/mods/tinker/textures/blocks/slimegrass_green_green_side.png b/mods/tinker/textures/blocks/slimegrass_green_green_side.png
new file mode 100644
index 00000000..1b5b9b22
Binary files /dev/null and b/mods/tinker/textures/blocks/slimegrass_green_green_side.png differ
diff --git a/mods/tinker/textures/blocks/slimegrass_green_top.png b/mods/tinker/textures/blocks/slimegrass_green_top.png
new file mode 100644
index 00000000..cf7ff8b4
Binary files /dev/null and b/mods/tinker/textures/blocks/slimegrass_green_top.png differ
diff --git a/mods/tinker/textures/blocks/slimeleaves_blue_fancy.png b/mods/tinker/textures/blocks/slimeleaves_blue_fancy.png
new file mode 100644
index 00000000..deb17e7a
Binary files /dev/null and b/mods/tinker/textures/blocks/slimeleaves_blue_fancy.png differ
diff --git a/mods/tinker/textures/blocks/slimeleaves_blue_fast.png b/mods/tinker/textures/blocks/slimeleaves_blue_fast.png
new file mode 100644
index 00000000..6c91818b
Binary files /dev/null and b/mods/tinker/textures/blocks/slimeleaves_blue_fast.png differ
diff --git a/mods/tinker/textures/blocks/slimesapling_blue.png b/mods/tinker/textures/blocks/slimesapling_blue.png
new file mode 100644
index 00000000..c48bc13d
Binary files /dev/null and b/mods/tinker/textures/blocks/slimesapling_blue.png differ
diff --git a/mods/tinker/textures/blocks/slimesnow_blue.png b/mods/tinker/textures/blocks/slimesnow_blue.png
new file mode 100644
index 00000000..9a81f243
Binary files /dev/null and b/mods/tinker/textures/blocks/slimesnow_blue.png differ
diff --git a/tconstruct/TConstruct.java b/tconstruct/TConstruct.java
index feca2058..a32d135b 100644
--- a/tconstruct/TConstruct.java
+++ b/tconstruct/TConstruct.java
@@ -1,12 +1,7 @@
package tconstruct;
import net.minecraftforge.common.MinecraftForge;
-
import tconstruct.client.event.EventCloakRender;
-import tconstruct.client.tabs.InventoryTabArmorExtended;
-import tconstruct.client.tabs.InventoryTabKnapsack;
-import tconstruct.client.tabs.InventoryTabVanilla;
-import tconstruct.client.tabs.TabRegistry;
import tconstruct.common.TContent;
import tconstruct.common.TProxyCommon;
import tconstruct.landmine.logic.behavior.Behavior;
diff --git a/tconstruct/blocks/SoilBlock.java b/tconstruct/blocks/SoilBlock.java
index c5b21efa..0e8b5adc 100644
--- a/tconstruct/blocks/SoilBlock.java
+++ b/tconstruct/blocks/SoilBlock.java
@@ -3,7 +3,7 @@ package tconstruct.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
-import net.minecraft.entity.EntityLiving;
+import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.EnumCreatureAttribute;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
@@ -20,9 +20,9 @@ public class SoilBlock extends TConstructBlock
@Override
public void onEntityWalking (World world, int x, int y, int z, Entity entity)
{
- if (entity instanceof EntityLiving)
+ if (entity instanceof EntityLivingBase)
{
- EntityLiving living = ((EntityLiving) entity);
+ EntityLivingBase living = ((EntityLivingBase) entity);
if (living.getCreatureAttribute() == EnumCreatureAttribute.UNDEAD)
{
int metadata = world.getBlockMetadata(x, y, z);
diff --git a/tconstruct/blocks/SoilSlab.java b/tconstruct/blocks/SoilSlab.java
index e49e5686..8930b1ee 100644
--- a/tconstruct/blocks/SoilSlab.java
+++ b/tconstruct/blocks/SoilSlab.java
@@ -2,9 +2,6 @@ package tconstruct.blocks;
import java.util.List;
-import tconstruct.common.TContent;
-import tconstruct.library.TConstructRegistry;
-
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
@@ -13,6 +10,8 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.ColorizerGrass;
import net.minecraft.world.IBlockAccess;
+import tconstruct.common.TContent;
+import tconstruct.library.TConstructRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
diff --git a/tconstruct/client/TClientTickHandler.java b/tconstruct/client/TClientTickHandler.java
index 069525d9..e2e65934 100644
--- a/tconstruct/client/TClientTickHandler.java
+++ b/tconstruct/client/TClientTickHandler.java
@@ -4,11 +4,8 @@ import java.util.EnumSet;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
-import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.Tessellator;
-import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
import tconstruct.common.TContent;
import cpw.mods.fml.common.ITickHandler;
@@ -28,6 +25,12 @@ public class TClientTickHandler implements ITickHandler
{
TContent.oreBerry.setGraphicsLevel(Block.leaves.graphicsLevel);
TContent.oreBerrySecond.setGraphicsLevel(Block.leaves.graphicsLevel);
+ TContent.slimeLeaves.setGraphicsLevel(Block.leaves.graphicsLevel);
+
+ /*if (PHConstruct.alphaHunger)
+ {
+ GuiIngameForge.renderFood = false;
+ }*/
/*player = mc.thePlayer;
if (player == null || player.capabilities.isCreativeMode)
diff --git a/tconstruct/client/TProxyClient.java b/tconstruct/client/TProxyClient.java
index 5540ba67..fabea7c8 100644
--- a/tconstruct/client/TProxyClient.java
+++ b/tconstruct/client/TProxyClient.java
@@ -51,6 +51,7 @@ import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.MinecraftForge;
+import net.minecraftforge.fluids.RenderBlockFluid;
import org.lwjgl.opengl.GL11;
import org.w3c.dom.Document;
diff --git a/tconstruct/common/TContent.java b/tconstruct/common/TContent.java
index 7ece1c94..4945c2ad 100644
--- a/tconstruct/common/TContent.java
+++ b/tconstruct/common/TContent.java
@@ -19,8 +19,6 @@ import net.minecraft.item.crafting.ShapedRecipes;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.potion.Potion;
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.MinecraftForge;
import net.minecraftforge.fluids.Fluid;
@@ -415,21 +413,6 @@ public class TContent implements IFuelHandler
//Tool modifiers
public static ModElectric modE;
public static ModLapis modL;
-
- //Golems
-
- 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;
//Wearables
public static Item heavyHelmet;
public static Item heavyChestplate;
@@ -470,7 +453,7 @@ public class TContent implements IFuelHandler
EntityRegistry.registerModEntity(MiniGardy.class, "MiniGardy", 13, TConstruct.instance, 64, 3, true);
//EntityRegistry.registerModEntity(MetalSlime.class, "MetalSlime", 13, TConstruct.instance, 64, 5, true);
- BiomeGenBase[] plains = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.PLAINS);
+ /*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);
@@ -479,7 +462,7 @@ public class TContent implements IFuelHandler
BiomeGenBase[] jungle = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.JUNGLE);
BiomeGenBase[] wasteland = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.WASTELAND);
- BiomeGenBase[] nether = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.NETHER);
+ BiomeGenBase[] nether = BiomeDictionary.getBiomesForType(BiomeDictionary.Type.NETHER);*/
/*if (PHConstruct.blueSlime)
{
@@ -874,10 +857,10 @@ public class TContent implements IFuelHandler
fluids[24] = blueSlimeFluid;
fluidBlocks[24] = slimePool;
FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(blueSlimeFluid, 1000), new ItemStack(buckets, 1, 24), new ItemStack(Item.bucketEmpty)));
-
+
slimeGel = new SlimeGel(PHConstruct.slimeGel).setStepSound(slimeStep).setUnlocalizedName("slime.gel");
GameRegistry.registerBlock(slimeGel, SlimeGelItemBlock.class, "slime.gel");
-
+
slimeGrass = new SlimeGrass(PHConstruct.slimeGrass).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("slime.grass");
GameRegistry.registerBlock(slimeGrass, SlimeGrassItemBlock.class, "slime.grass");
@@ -886,7 +869,7 @@ public class TContent implements IFuelHandler
slimeLeaves = (SlimeLeaves) new SlimeLeaves(PHConstruct.slimeLeaves).setStepSound(slimeStep).setUnlocalizedName("slime.leaves");
GameRegistry.registerBlock(slimeLeaves, SlimeLeavesItemBlock.class, "slime.leaves");
-
+
slimeSapling = (SlimeSapling) new SlimeSapling(PHConstruct.slimeSapling).setStepSound(slimeStep).setUnlocalizedName("slime.sapling");
GameRegistry.registerBlock(slimeSapling, SlimeSaplingItemBlock.class, "slime.sapling");
@@ -1887,6 +1870,13 @@ public class TContent implements IFuelHandler
GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 5), "b", 'b', new ItemStack(toolForge, 1, Short.MAX_VALUE));
GameRegistry.addRecipe(new ItemStack(essenceExtractor, 1, 0), " b ", "eme", "mmm", 'b', Item.book, 'e', Item.emerald, 'm', Block.whiteStone);
+
+ //Slime
+ GameRegistry.addRecipe(new ItemStack(slimeGel, 1, 0), "##", "##", '#', strangeFood);
+ GameRegistry.addRecipe(new ItemStack(strangeFood, 4, 0), "#", '#', new ItemStack(slimeGel, 1, 0));
+ GameRegistry.addRecipe(new ItemStack(slimeGel, 1, 1), "##", "##", '#', Item.slimeBall);
+ GameRegistry.addRecipe(new ItemStack(Item.slimeBall, 4, 0), "#", '#', new ItemStack(slimeGel, 1, 1));
+
}
void setupToolTabs ()
@@ -1990,6 +1980,7 @@ public class TContent implements IFuelHandler
"blueslime" };
for (int i = 0; i < matNames.length; i++)
OreDictionary.registerOre(matNames[i] + "Rod", new ItemStack(toolRod, 1, i));
+ OreDictionary.registerOre("thaumiumRod", new ItemStack(toolRod, 1, 31));
String[] glassTypes = { "glassBlack", "glassRed", "glassGreen", "glassBrown", "glassBlue", "glassPurple", "glassCyan", "glassLightGray", "glassGray", "glassPink", "glassLime", "glassYellow",
"glassLightBlue", "glassMagenta", "glassOrange", "glassWhite" };
diff --git a/tconstruct/items/RedstoneBallRepeaterItem.java b/tconstruct/items/RedstoneBallRepeaterItem.java
deleted file mode 100644
index 5320a41c..00000000
--- a/tconstruct/items/RedstoneBallRepeaterItem.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package tconstruct.items;
-
-import tconstruct.common.TContent;
-import net.minecraft.block.Block;
-import net.minecraft.client.renderer.texture.IconRegister;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.world.World;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-
-public class RedstoneBallRepeaterItem extends Item
-{
- public RedstoneBallRepeaterItem(int par1)
- {
- super(par1);
- this.setCreativeTab(CreativeTabs.tabRedstone);
- }
-
- /**
- * Callback for item usage. If the item does something special on right clicking, he will have one of those. Return
- * True if something happen and false if it don't. This is for ITEMS, not BLOCKS
- */
- public boolean onItemUse (ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
- {
- if (par3World.getBlockId(par4, par5, par6) != Block.snow.blockID)
- {
- if (par7 == 0)
- {
- --par5;
- }
-
- if (par7 == 1)
- {
- ++par5;
- }
-
- if (par7 == 2)
- {
- --par6;
- }
-
- if (par7 == 3)
- {
- ++par6;
- }
-
- if (par7 == 4)
- {
- --par4;
- }
-
- if (par7 == 5)
- {
- ++par4;
- }
-
- if (!par3World.isAirBlock(par4, par5, par6))
- {
- return false;
- }
- }
-
- if (!par2EntityPlayer.canPlayerEdit(par4, par5, par6, par7, par1ItemStack))
- {
- return false;
- }
- else
- {
- if (Block.redstoneWire.canPlaceBlockAt(par3World, par4, par5, par6))
- {
- --par1ItemStack.stackSize;
- par3World.setBlock(par4, par5, par6, TContent.redstoneBallRepeater.blockID);
- }
-
- return true;
- }
- }
-
- @SideOnly(Side.CLIENT)
- public void registerIcons (IconRegister iconRegister)
- {
- this.itemIcon = iconRegister.registerIcon("tinker:redstoneball");
- }
-}
diff --git a/tconstruct/items/TitleIcon.java b/tconstruct/items/TitleIcon.java
index 19a944ba..2ad4441b 100644
--- a/tconstruct/items/TitleIcon.java
+++ b/tconstruct/items/TitleIcon.java
@@ -173,7 +173,6 @@ public class TitleIcon extends Item
if (!world.isRemote)
{
entity.setPosition(x, y, z);
- entity.setAngles(player.cameraYaw, player.cameraYaw);
entity.setSlimeSize(8);
entity.func_110161_a((EntityLivingData)null);
world.spawnEntityInWorld(entity);
diff --git a/tconstruct/items/tools/Battleaxe.java b/tconstruct/items/tools/Battleaxe.java
index a49d094b..27514520 100644
--- a/tconstruct/items/tools/Battleaxe.java
+++ b/tconstruct/items/tools/Battleaxe.java
@@ -53,7 +53,7 @@ public class Battleaxe extends HarvestTool
return AbilityHelper.onBlockChanged(itemstack, world, bID, x, y, z, player, random);
}
- static Material[] materials = { Material.wood, Material.vine, Material.circuits, Material.cactus, Material.pumpkin };
+ static Material[] materials = { Material.wood, Material.vine, Material.circuits, Material.cactus, Material.pumpkin};
@Override
public Item getHeadItem ()
diff --git a/tconstruct/items/tools/LumberAxe.java b/tconstruct/items/tools/LumberAxe.java
index e1381ee9..7117a0c0 100644
--- a/tconstruct/items/tools/LumberAxe.java
+++ b/tconstruct/items/tools/LumberAxe.java
@@ -145,7 +145,7 @@ public class LumberAxe extends HarvestTool
{
return super.onBlockStartBreak(stack, x, y, z, player);
}
- if (wood.isWood(world, x, y, z))
+ if (wood.isWood(world, x, y, z) || wood.blockMaterial == Material.sponge)
{
int height = y;
boolean foundTop = false;
diff --git a/tconstruct/util/PHConstruct.java b/tconstruct/util/PHConstruct.java
index c22b4035..cfa6a46e 100644
--- a/tconstruct/util/PHConstruct.java
+++ b/tconstruct/util/PHConstruct.java
@@ -44,6 +44,8 @@ public class PHConstruct
keepHunger = config.get("Difficulty Changes", "Keep hunger on death", true).getBoolean(true);
keepLevels = config.get("Difficulty Changes", "Keep levels on death", true).getBoolean(true);
beginnerBook = config.get("Difficulty Changes", "Spawn beginner book", true).getBoolean(true);
+ alphaRegen = config.get("Alpha Behavior", "Regenerate HP from food", false).getBoolean(false);
+ alphaHunger = config.get("Alpha Behavior", "Remove hunger", false).getBoolean(false);
superfunWorld = config.get("Superfun", "All the world is Superfun", false).getBoolean(false);
@@ -70,9 +72,6 @@ public class PHConstruct
miningLevelIncrease = config.get("Difficulty Changes", "Modifiers increase Mining Level", true).getBoolean(true);
denyMattock = config.get("Difficulty Changes", "Deny creation of non-metal mattocks", false).getBoolean(false);
- blueSlime = config.get("Mob Spawning", "Activate Blue Slime Spawns", true).getBoolean(true);
- blueSlimeWeight = config.get("Mob Spawning", "Spawn Weight for Blue Slime", 6).getInt(6);
-
//1467-1489
woodStation = config.getBlock("Wood Tool Station", 1471).getInt(1471);
heldItemBlock = config.getBlock("Held Item Block", 1472).getInt(1472);
@@ -147,6 +146,13 @@ public class PHConstruct
punji = config.getBlock("Punji", 3232).getInt(3232);
woodCrafter = config.getBlock("Crafting Station", 3233).getInt(3233);
essenceExtractor = config.getBlock("Essence Extractor", 3234).getInt(3234);
+
+ slimePoolBlue = config.getBlock("Liquid Blue Slime", 3235).getInt(3235);
+ slimeGel = config.getBlock("Congealed Slime", 3237).getInt(3237);
+ slimeGrass = config.getBlock("Slime Grass", 3238).getInt(3238);
+ slimeTallGrass = config.getBlock("Slime Tall Grass", 3239).getInt(3239);
+ slimeLeaves = config.getBlock("Slime Grass Leaves", 3240).getInt(3240);
+ slimeSapling = config.getBlock("Slime Tree Sapling", 3241).getInt(3241);
slimePoolBlue = config.getBlock("Liquid Blue Slime", 3235).getInt(3235);
slimeGel = config.getBlock("Congealed Slime", 3237).getInt(3237);
@@ -280,7 +286,7 @@ public class PHConstruct
generateEssenceBush = config.get("Worldgen Disabler", "Generate Essence Bushes", true).getBoolean(true);
addToVillages = config.get("Worldgen Disabler", "Add Village Generation", true).getBoolean(true);
- copperuDensity = config.get("Worldgen", "Copper Underground Density", 2).getInt(2);
+ copperuDensity = config.get("Worldgen", "Copper Underground Density", 2, "Density: Chances per chunk").getInt(2);
tinuDensity = config.get("Worldgen", "Tin Underground Density", 2).getInt(2);
aluminumuDensity = config.get("Worldgen", "Aluminum Underground Density", 3).getInt(3);
netherDensity = config.get("Worldgen", "Nether Ores Density", 8).getInt(8);
@@ -294,7 +300,7 @@ public class PHConstruct
ironsRarity = config.get("Worldgen", "Iron Surface Rarity", 400).getInt(400);
goldsRarity = config.get("Worldgen", "Gold Surface Rarity", 900).getInt(900);
- coppersRarity = config.get("Worldgen", "Copper Surface Rarity", 100).getInt(100);
+ coppersRarity = config.get("Worldgen", "Copper Surface Rarity", 100, "Rarity: 1/num to generate in chunk").getInt(100);
tinsRarity = config.get("Worldgen", "Tin Surface Rarity", 100).getInt(100);
aluminumsRarity = config.get("Worldgen", "Aluminum Surface Rarity", 50).getInt(50);
cobaltsRarity = config.get("Worldgen", "Cobalt Surface Rarity", 2000).getInt(2000);
@@ -323,13 +329,16 @@ public class PHConstruct
seaLevel = config.get("general", "Sea level", 64).getInt(64);
enableHealthRegen = config.get("Ultra Hardcore Changes", "Passive Health Regen", true).getBoolean(true);
- goldAppleRecipe = config.get("Ultra Hardcore Changes", "Change Crafting Recipes", false).getBoolean(false);
+ goldAppleRecipe = config.get("Ultra Hardcore Changes", "Change Crafting Recipes", false, "Makes recipes for gold apples, carrots, and melon potions more expensive").getBoolean(false);
dropPlayerHeads = config.get("Ultra Hardcore Changes", "Players drop heads on death", false).getBoolean(false);
uhcGhastDrops = config.get("Ultra Hardcore Changes", "Change Ghast drops to Gold Ingots", false).getBoolean(false);
worldBorder = config.get("Ultra Hardcore Changes", "Add World Border", false).getBoolean(false);
worldBorderSize = config.get("Ultra Hardcore Changes", "World Border Radius", 1000).getInt(1000);
- freePatterns = config.get("Ultra Hardcore Changes", "Add Patterns to Pattern Chests", false).getBoolean(false);
+ freePatterns = config.get("Ultra Hardcore Changes", "Add Patterns to Pattern Chests", false, "Gives all tier 1 patterns when pattern chest is placed").getBoolean(false);
necroticUHS = config.get("Ultra Hardcore Changes", "Necrotic modifier only heals on hostile mob kills", false).getBoolean(false);
+
+ //Slime pools
+ islandRarity = config.get("Worldgen", "Slime Island Rarity", 450).getInt(450);
//Slime pools
islandRarity = config.get("Worldgen", "Slime Island Rarity", 1450).getInt(1450);
@@ -600,12 +609,12 @@ public class PHConstruct
public static int seaLevel;
//Mobs
- public static boolean blueSlime;
- public static int blueSlimeWeight;
//Difficulty modifiers
public static boolean keepHunger;
public static boolean keepLevels;
+ public static boolean alphaRegen;
+ public static boolean alphaHunger;
public static boolean disableWoodTools;
public static boolean disableStoneTools;
diff --git a/tconstruct/util/TEventHandler.java b/tconstruct/util/TEventHandler.java
index 7ffcf896..f566ce9e 100644
--- a/tconstruct/util/TEventHandler.java
+++ b/tconstruct/util/TEventHandler.java
@@ -25,11 +25,13 @@ import net.minecraft.util.EnumMovingObjectType;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraftforge.event.Event.Result;
+import net.minecraftforge.event.Event;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.living.LivingDeathEvent;
import net.minecraftforge.event.entity.living.LivingDropsEvent;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import net.minecraftforge.event.entity.living.LivingSpawnEvent;
+import net.minecraftforge.event.entity.player.BonemealEvent;
import net.minecraftforge.event.entity.player.FillBucketEvent;
import net.minecraftforge.event.world.ChunkDataEvent;
import net.minecraftforge.fluids.FluidStack;
@@ -214,7 +216,7 @@ public class TEventHandler
{
if (stack.itemID >= 4096)
return false;
-
+
Block block = Block.blocksList[stack.itemID];
if (block != null)
{
@@ -497,6 +499,22 @@ public class TEventHandler
}
}
}
+
+ /* Bonemeal */
+
+
+ @ForgeSubscribe
+ public void bonemealEvent (BonemealEvent event)
+ {
+ if (!event.world.isRemote)
+ {
+ if (event.ID == TContent.slimeSapling.blockID)
+ {
+ if (TContent.slimeSapling.boneFertilize(event.world, event.X, event.Y, event.Z, event.world.rand, event.entityPlayer))
+ event.setResult(Event.Result.ALLOW);
+ }
+ }
+ }
/* Ore Dictionary */
@ForgeSubscribe
@@ -865,6 +883,75 @@ public class TEventHandler
Smeltery.addMelting(new ItemStack(evt.Ore.itemID, 2, evt.Ore.getItemDamage()), TContent.metalBlock.blockID, 9, 500, new FluidStack(TContent.moltenElectrumFluid,
TConstruct.ingotLiquidValue));
}
+
+ /*else if (evt.Name == "nuggetIron")
+ {
+ Smeltery.addMelting(new ItemStack(evt.Ore.itemID, 2, evt.Ore.getItemDamage()), TContent.metalBlock.blockID, 3, 450, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 0));
+ }
+
+ ores = OreDictionary.getOres("nuggetCopper");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 3, 450, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 2));
+ }
+
+ ores = OreDictionary.getOres("nuggetTin");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 5, 175, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 3));
+ }
+
+ ores = OreDictionary.getOres("nuggetNaturalAluminum");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 6, 250, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 4));
+ }
+
+ ores = OreDictionary.getOres("nuggetNickel");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 17));
+ }
+
+ ores = OreDictionary.getOres("nuggetLead");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 18));
+ }
+
+ ores = OreDictionary.getOres("nuggetSilver");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 19));
+ }
+
+ ores = OreDictionary.getOres("nuggetPlatinum");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 20));
+ }
+
+ ores = OreDictionary.getOres("nuggetInvar");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 21));
+ }
+
+ ores = OreDictionary.getOres("nuggetElectrum");
+ for (ItemStack ore : ores)
+ {
+ Smeltery.addMelting(new ItemStack(ore.itemID, 2, ore.getItemDamage()), TContent.metalBlock.blockID, 0, 400, new LiquidStack(TContent.liquidMetalStill.blockID,
+ TConstruct.ingotLiquidValue / 9, 22));
+ }*/
}
public void unfuxOreDictionary ()
@@ -874,7 +961,7 @@ public class TEventHandler
{
PatternBuilder.instance.registerMaterial(ore, 2, "Wood");
}
-
+
ores = OreDictionary.getOres("ingotCopper");
for (ItemStack ore : ores)
{
diff --git a/tconstruct/util/player/TPlayerHandler.java b/tconstruct/util/player/TPlayerHandler.java
index 66625b43..8ece5502 100644
--- a/tconstruct/util/player/TPlayerHandler.java
+++ b/tconstruct/util/player/TPlayerHandler.java
@@ -80,7 +80,6 @@ public class TPlayerHandler implements IPlayerTracker
entityplayer.addChatMessage("Solution 1: Disable Reverse Smelting recipes from GregTech.");
entityplayer.addChatMessage("Solution 2: Disable Auto-Smelt/Fortune interaction from TConstruct.");
}
- entityplayer.addChatMessage("Warning: Cross-mod Exploit Present!");
}
updatePlayerInventory(entityplayer, stats);