From c0833c069d04ffa453a8355ff25f548431d6129d Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Fri, 20 Dec 2013 18:38:51 +0200 Subject: Fixed ore generation --- common/darkknight/jewelrycraft/renders/TileEntityMolderRender.java | 4 ++-- common/darkknight/jewelrycraft/worldGen/Generation.java | 6 ++++-- 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); } } -- cgit v1.2.3