summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-20 18:38:51 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-20 18:38:51 +0200
commitc0833c069d04ffa453a8355ff25f548431d6129d (patch)
treed7eca14e3a34cb5acc1ca7aba66fb55f04afda3b
parentdd7f860cf1681b8e9fbf68f1f300a4512481ce40 (diff)
Fixed ore generation
-rw-r--r--common/darkknight/jewelrycraft/renders/TileEntityMolderRender.java4
-rw-r--r--common/darkknight/jewelrycraft/worldGen/Generation.java6
2 files changed, 6 insertions, 4 deletions
diff --git a/common/darkknight/jewelrycraft/renders/TileEntityMolderRender.java b/common/darkknight/jewelrycraft/renders/TileEntityMolderRender.java
index d6c1756..a5b6830 100644
--- a/common/darkknight/jewelrycraft/renders/TileEntityMolderRender.java
+++ b/common/darkknight/jewelrycraft/renders/TileEntityMolderRender.java
@@ -43,8 +43,8 @@ public class TileEntityMolderRender extends TileEntitySpecialRenderer
ResourceLocation lava = new ResourceLocation("jewelrycraft", texture);
Minecraft.getMinecraft().renderEngine.bindTexture(lava);
me.mold.getIconIndex().getInterpolatedU(0);
- int decal = -16;
- int decal2 = 16;
+ int decal = -4;
+ int decal2 = 4;
// if (me.mold.getItemDamage() == 0)
// decal = 32;
// else if (me.mold.getItemDamage() > 0)
diff --git a/common/darkknight/jewelrycraft/worldGen/Generation.java b/common/darkknight/jewelrycraft/worldGen/Generation.java
index 514820a..55daf7f 100644
--- a/common/darkknight/jewelrycraft/worldGen/Generation.java
+++ b/common/darkknight/jewelrycraft/worldGen/Generation.java
@@ -7,6 +7,7 @@ import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
import darkknight.jewelrycraft.block.BlockList;
+import darkknight.jewelrycraft.config.ConfigHandler;
public class Generation implements IWorldGenerator
{
@@ -32,12 +33,13 @@ public class Generation implements IWorldGenerator
private void generateSurface(World world, Random random, int i, int j)
{
- for (int k = 1; k < 2; k++)
+ for (int k = 1; k < 4; k++)
{
int x = i + random.nextInt(16);
int y = 5 + random.nextInt(4);
int z = j + random.nextInt(16);
- (new WorldGenMinable(BlockList.shadowOre.blockID, 1)).generate(world, random, x, y, z);
+ world.setBlock(x, y, z, ConfigHandler.idShadowOre);
+ System.out.println(x + " " + y + " " + z);
}
}