From 42e3ecd7451f7735116adbaa17ade9720fe6c3b5 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 13:59:20 +0200 Subject: [PATCH 01/59] Fixed crash when changing dungeon rarity -Added biome selection --- common/MysticRuins/Config.java | 29 +- .../MysticRuins/StructureMysticDungeon.java | 3554 ++++++++--------- common/MysticRuins/StructureRuin$1.java | 786 ++-- common/MysticRuins/StructureRuin.java | 784 ++-- common/mysticruins/WorldGenMystic.java | 31 +- 5 files changed, 2585 insertions(+), 2599 deletions(-) diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 032b225..2151f5d 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -10,26 +10,23 @@ public class Config { public static Configuration config; public static int RuinRarity; public static int DunRarity; - public static List ruinAllowId = new ArrayList(); - public static List dungeonAllowId = new ArrayList(); + public static List[] allowId = new ArrayList[4]; + public static final String[] allows = { "Ruin allowed dimension id", "Dungeon allowed dimension id", "Ruin allowed biome id", "Dungeon allowed biome id" }; public static void initialize(File file) { config = new Configuration(file); config.load(); - RuinRarity = config.get("General", "Ruin Rarity", 2).getInt(); - DunRarity = config.get("General", "Mystic Dungeon Rarity", 1).getInt(); - String[] ID = config.get("General", "Ruin allowed dimension id", "0,").getString().split(","); - for (String txt : ID) { - try { - ruinAllowId.add(Integer.parseInt(txt.trim())); - } catch (NumberFormatException e) { - } - } - ID = config.get("General", "Dungeon allowed dimension id", "0,").getString().split(","); - for (String txt : ID) { - try { - dungeonAllowId.add(Integer.parseInt(txt.trim())); - } catch (NumberFormatException e) { + RuinRarity = config.get("General", "Ruin Rarity", 2, "Tries per chunk : lower to make rarer").getInt(); + DunRarity = config.get("General", "Mystic Dungeon Rarity", 1, "Tries per chunk : lower to make rarer").getInt(); + String[] ID; + for (int i = 0; i < allows.length; i++) { + ID = config.get("General", allows[i], i < 2 ? "0," : "1,2,3,4,5,6,7,21,22").getString().split(","); + allowId[i] = new ArrayList(); + for (String txt : ID) { + try { + allowId[i].add(Integer.parseInt(txt.trim())); + } catch (NumberFormatException e) { + } } } config.save(); diff --git a/common/MysticRuins/StructureMysticDungeon.java b/common/MysticRuins/StructureMysticDungeon.java index e25958c..24bc34c 100644 --- a/common/MysticRuins/StructureMysticDungeon.java +++ b/common/MysticRuins/StructureMysticDungeon.java @@ -15,1868 +15,1856 @@ public class StructureMysticDungeon extends WorldGenerator { @Override public boolean generate(World world, Random random, int i, int j, int k) { if (world.getWorldInfo().getTerrainType() != WorldType.FLAT) { - int l = random.nextInt(100); - if (l >= 4) { + int j1 = (i + random.nextInt(8)) - random.nextInt(8); + int k1 = (j + random.nextInt(4)) - random.nextInt(4); + int l1 = (k + random.nextInt(8)) - random.nextInt(8); + boolean flag = false; + if (k1 <= 0) { return false; } - for (int i1 = 0; i1 < 1; i1++) { - int j1 = (i + random.nextInt(8)) - random.nextInt(8); - int k1 = (j + random.nextInt(4)) - random.nextInt(4); - int l1 = (k + random.nextInt(8)) - random.nextInt(8); - boolean flag = false; - /* - * if (world.isAirBlock(j1 - 1, k1 + 1, l1) && - * world.isAirBlock(j1 - 1, k1 + 1, l1 + 1) && - * world.isAirBlock(j1 - 1, k1 + 2, l1) && world.isAirBlock(j1 - - * 1, k1 + 2, l1 + 1) && world.getBlockId(j1, k1, l1) == - * Block.stone.blockID && world.getBlockId(j1, k1, l1 + 1) == - * Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1) == - * Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1 + 1) - * == Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1) == - * Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1 + 1) - * == Block.stone.blockID) - */ + if (world.isAirBlock(j1 - 1, k1 + 1, l1) && world.isAirBlock(j1 - 1, k1 + 1, l1 + 1) && world.isAirBlock(j1 - 1, k1 + 2, l1) && world.isAirBlock(j1 - 1, k1 + 2, l1 + 1) + && world.getBlockId(j1, k1, l1) == Block.stone.blockID && world.getBlockId(j1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1) == Block.stone.blockID + && world.getBlockId(j1 - 1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1) == Block.stone.blockID + && world.getBlockId(j1, k1 + 1, l1 + 1) == Block.stone.blockID) flag = true; - if (!flag) { - continue; + if (!flag) { + return false; + } + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1 - 1, k1 + 1, l1 + 2, 0); + world.setBlock(j1 - 1, k1 + 1, l1 + 3, 0); + world.setBlock(j1 - 1, k1 + 2, l1 + 2, 0); + for (int y = k1 + 1; y < k1 + 4; y++) { + for (int x = 1; x < 6; x++) { + world.setBlock(j1 - x, y, l1, 0); + world.setBlock(j1 - x, y, l1 + 1, 0); + world.setBlock(j1 - x, y, l1 - 1, 0); } - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1 - 1, k1 + 1, l1 + 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 + 3, 0); - world.setBlock(j1 - 1, k1 + 2, l1 + 2, 0); - for (int y = k1 + 1; y < k1 + 4; y++) { - for (int x = 1; x < 6; x++) { - world.setBlock(j1 - x, y, l1, 0); - world.setBlock(j1 - x, y, l1 + 1, 0); - world.setBlock(j1 - x, y, l1 - 1, 0); + } + world.setBlock(j1 - 2, k1 + 1, l1 + 2, 0); + for (int x = 6; x < 17; x++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1 - x, k1 + y, l1, 0); + } + } + world.setBlock(j1 - 15, k1 + 14, l1, 0); + int i2 = random.nextInt(100); + if (i2 <= 40) { + for (int z = 1; z < 9; z++) { + world.setBlock(j1 - 16, k1 + 11, l1 - z, 0); + world.setBlock(j1 - 16, k1 + 12, l1 - z, 0); + } + world.setBlock(j1 - 16, k1 + 13, l1 - 8, 0); + world.setBlock(j1 - 16, k1 + 14, l1 - 8, 0); + for (int z = 0; z < 5; z++) { + for (int y = 12; y < 16; y++) { + world.setBlock(j1 - 16, k1 + y + z, l1 - 9 + z, 0); } } - world.setBlock(j1 - 2, k1 + 1, l1 + 2, 0); - for (int x = 6; x < 17; x++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1 - x, k1 + y, l1, 0); - } - } - world.setBlock(j1 - 15, k1 + 14, l1, 0); - int i2 = random.nextInt(100); - if (i2 <= 40) { - for (int z = 1; z < 9; z++) { - world.setBlock(j1 - 16, k1 + 11, l1 - z, 0); - world.setBlock(j1 - 16, k1 + 12, l1 - z, 0); - } - world.setBlock(j1 - 16, k1 + 13, l1 - 8, 0); - world.setBlock(j1 - 16, k1 + 14, l1 - 8, 0); - for (int z = 0; z < 5; z++) { - for (int y = 12; y < 16; y++) { - world.setBlock(j1 - 16, k1 + y + z, l1 - 9 + z, 0); - } - } - world.setBlock(j1 - 16, k1 + 20, l1 - 13, 0); - int j2 = random.nextInt(100); - if (j2 <= 20) { - for (int x = 0; x < 3; x++) { - for (int z = 15; z < 18; z++) { - world.setBlock(j1 - 15 - x, k1 + 17, l1 - z, 0); - world.setBlock(j1 - 15 - x, k1 + 18, l1 - z, 0); - } - } - world.setBlock(j1 - 16, k1 + 16, l1 - 15, Block.blockLapis.blockID); - world.setBlock(j1 - 16, k1 + 16, l1 - 16, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 16, k1 + 16, l1 - 17, Block.blockLapis.blockID); + world.setBlock(j1 - 16, k1 + 20, l1 - 13, 0); + int j2 = random.nextInt(100); + if (j2 <= 20) { + for (int x = 0; x < 3; x++) { for (int z = 15; z < 18; z++) { - world.setBlock(j1 - 15, k1 + 16, l1 - z, Block.blockLapis.blockID); - world.setBlock(j1 - 17, k1 + 16, l1 - z, Block.blockLapis.blockID); - } - world.setBlock(j1 - 16, k1 + 17, l1 - 16, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 16, k1 + 17, l1 - 16)); - } - } - for (int z = 0; z < 12; z++) { - for (int y = k1 + 12 + z; y < k1 + 16 + z; y++) { - world.setBlock(j1 - 16, y, l1 + 1 + z, 0); - } - } - world.setBlock(j1 - 16, k1 + 24, l1 + 9, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); - int k2 = random.nextInt(100); - if (k2 <= 40) { - world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 3, l1 + 2, Block.vine.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - int l2 = random.nextInt(100); - if (l2 <= 30) { - world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 3, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 5, k1 + 3, l1, Block.vine.blockID); - } - int i3 = random.nextInt(100); - if (i3 <= 40) { - for (int z = 2; z < 10; z++) { - world.setBlock(j1, k1 + 1, l1 - z, 0); - world.setBlock(j1, k1 + 2, l1 - z, 0); - } - for (int z = 0; z < 14; z++) { - for (int y = k1 + 1 + z; y < k + 5 + z; y++) { - world.setBlock(j1, y, l1 - 10 - z, 0); + world.setBlock(j1 - 15 - x, k1 + 17, l1 - z, 0); + world.setBlock(j1 - 15 - x, k1 + 18, l1 - z, 0); } } - world.setBlock(j1, k1 + 15, l1 - 20, 0); - world.setBlock(j1, k1 + 16, l1 - 21, 0); - int j3 = random.nextInt(100); - if (j3 <= 20) { - for (int x = -1; x < 2; x++) { - world.setBlock(j1 + x, k1 + 15, l1 - 25, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 25, 0); - world.setBlock(j1 + x, k1 + 15, l1 - 26, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 26, 0); - world.setBlock(j1 + x, k1 + 15, l1 - 27, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 27, 0); - } - world.setBlock(j1 - 16, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 16, k1 + 14, l1 - 16, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 16, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 16, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 16, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 16, k1 + 15, l1 - 16, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 16, k1 + 15, l1 - 16)); + world.setBlock(j1 - 16, k1 + 16, l1 - 15, Block.blockLapis.blockID); + world.setBlock(j1 - 16, k1 + 16, l1 - 16, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 16, k1 + 16, l1 - 17, Block.blockLapis.blockID); + for (int z = 15; z < 18; z++) { + world.setBlock(j1 - 15, k1 + 16, l1 - z, Block.blockLapis.blockID); + world.setBlock(j1 - 17, k1 + 16, l1 - z, Block.blockLapis.blockID); + } + world.setBlock(j1 - 16, k1 + 17, l1 - 16, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 16, k1 + 17, l1 - 16)); + } + } + for (int z = 0; z < 12; z++) { + for (int y = k1 + 12 + z; y < k1 + 16 + z; y++) { + world.setBlock(j1 - 16, y, l1 + 1 + z, 0); + } + } + world.setBlock(j1 - 16, k1 + 24, l1 + 9, 0); + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); + int k2 = random.nextInt(100); + if (k2 <= 40) { + world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 3, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 3, l1 + 2, Block.vine.blockID); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + int l2 = random.nextInt(100); + if (l2 <= 30) { + world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 3, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 3, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 5, k1 + 3, l1, Block.vine.blockID); + } + int i3 = random.nextInt(100); + if (i3 <= 40) { + for (int z = 2; z < 10; z++) { + world.setBlock(j1, k1 + 1, l1 - z, 0); + world.setBlock(j1, k1 + 2, l1 - z, 0); + } + for (int z = 0; z < 14; z++) { + for (int y = k1 + 1 + z; y < k + 5 + z; y++) { + world.setBlock(j1, y, l1 - 10 - z, 0); } } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + world.setBlock(j1, k1 + 15, l1 - 20, 0); + world.setBlock(j1, k1 + 16, l1 - 21, 0); + int j3 = random.nextInt(100); + if (j3 <= 20) { + for (int x = -1; x < 2; x++) { + world.setBlock(j1 + x, k1 + 15, l1 - 25, 0); + world.setBlock(j1 + x, k1 + 16, l1 - 25, 0); + world.setBlock(j1 + x, k1 + 15, l1 - 26, 0); + world.setBlock(j1 + x, k1 + 16, l1 - 26, 0); + world.setBlock(j1 + x, k1 + 15, l1 - 27, 0); + world.setBlock(j1 + x, k1 + 16, l1 - 27, 0); + } + world.setBlock(j1 - 16, k1 + 14, l1 - 15, 0); + world.setBlock(j1 - 16, k1 + 14, l1 - 16, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 16, k1 + 14, l1 - 17, 0); + world.setBlock(j1 - 15, k1 + 14, l1 - 15, 0); + world.setBlock(j1 - 15, k1 + 14, l1 - 16, 0); + world.setBlock(j1 - 15, k1 + 14, l1 - 17, 0); + world.setBlock(j1 - 17, k1 + 14, l1 - 15, 0); + world.setBlock(j1 - 17, k1 + 14, l1 - 16, 0); + world.setBlock(j1 - 17, k1 + 14, l1 - 17, 0); + world.setBlock(j1 - 16, k1 + 15, l1 - 16, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 16, k1 + 15, l1 - 16)); } - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 + 2, 0); + world.setBlock(j1, k1 + 1, l1 - 2, 0); + world.setBlock(j1, k1 + 2, l1 + 2, 0); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1 + y, l1 + z, 0); } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); - j1++; + } + world.setBlock(j1, k1 + 1, l1 + 3, 0); + world.setBlock(j1, k1 + 3, l1 - 3, 0); + world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); + j1++; + int k3 = random.nextInt(2) + 1; + if (k3 == 1) { + int l3 = random.nextInt(2) + 1; world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 1, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 - 2, 0); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int y = 1; y < 5; y++) { + for (int z = -4; z < 5; z++) { world.setBlock(j1, k1 + y, l1 + z, 0); } } - world.setBlock(j1, k1 + 1, l1 + 3, 0); - world.setBlock(j1, k1 + 3, l1 - 3, 0); - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); j1++; - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); - j1++; - int k3 = random.nextInt(2) + 1; - if (k3 == 1) { - int l3 = random.nextInt(2) + 1; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestoneMossy.blockID); - if (l3 == 1) { - int k4 = random.nextInt(100); - if (k4 <= 60) { - for (int u = 1; u < 4; u++) { - world.setBlock(j1, k1 + u, l1 + u, Block.bookShelf.blockID); - } - } - } - if (l3 == 2) { - int l4 = random.nextInt(100); - if (l4 <= 40) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 3, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - if (l3 == 2) { - int i5 = random.nextInt(100); - if (i5 <= 40) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - if (l3 == 1) { - int j5 = random.nextInt(100); - if (j5 <= 15) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 1); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); - } - world.setBlock(j1, k1 + 2, l1 + 1, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 + 2, l1 + 1)); - world.setBlock(j1, k1 + 3, l1 + 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawnerII = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 3, l1 + 1); - if (spawnerII != null) { - spawnerII.getSpawnerLogic().setMobID("CaveSpider"); - } - world.setBlock(j1, k1 + 1, l1 + 2, 0); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 3, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); - world.setBlock(j1, k1 + 2, l1 + 3, 0); - world.setBlock(j1, k1 + 3, l1 + 3, 0); - } - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - if (l3 == 1) { - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); - } - if (l3 == 2) { - int k5 = random.nextInt(100); - if (k5 <= 30) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 3); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Creeper"); - } - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); - if (l3 == 1) { - int l5 = random.nextInt(100); - if (l5 <= 60) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 + 2); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Skeleton"); - } - world.setBlock(j1, k1 + 3, l1 + 2, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 3, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 3, l1 + 3, Block.bookShelf.blockID); - } - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); - } - int i6 = random.nextInt(100); - if (i6 <= 30) { - world.setBlock(j1 - 1, k1 + 4, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 4, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 - 3, Block.vine.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - if (l3 == 2) { - int l6 = random.nextInt(100); - if (l6 <= 30) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 2); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Blaze"); - } - world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 5, Block.cobblestone.blockID); - if (l3 == 1) { - int i7 = random.nextInt(100); - if (i7 <= 60) { - for (int y = 1; y < 4; y++) { - for (int z = 1; z < 4; z++) { - world.setBlock(j1, k1 + y, l1 + z, Block.bookShelf.blockID); - } - } - } - } - if (l3 == 2) { - int j7 = random.nextInt(100); - if (j7 <= 20) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockGold.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); - } - int j8 = random.nextInt(100); - if (j8 <= 30) { - world.setBlock(j1, k1 + 1, l1 - 1, 0); - world.setBlock(j1, k1 + 2, l1 - 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 - 1); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); - } - world.setBlock(j1, k1 + 1, l1 - 2, 0); - world.setBlock(j1, k1 + 2, l1 - 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 2, l1 - 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 - 2, 0); - } - int j9 = random.nextInt(100); - if (j9 <= 10) { - world.setBlock(j1 - 3, k1 + 1, l1 - 1, Block.blockDiamond.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); - } - int j10 = random.nextInt(100); - if (j10 <= 10) { - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); - } - int j11 = random.nextInt(100); - if (j11 <= 15) { - world.setBlock(j1 - 5, k1 + 1, l1 - 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 5, k1 + 1, l1 - 2)); - world.setBlock(j1 - 5, k1 + 1, l1 - 3, 0); - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - int k7 = random.nextInt(100); - if (k7 <= 30) { - world.setBlock(j1 - 2, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 5, l1 - 3, 0); - world.setBlock(j1 - 2, k1 + 5, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 5, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 6, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 7, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 8, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 8, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 8, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 9, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 9, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 9, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 10, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 10, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 1, l1 - 3, Block.gravel.blockID); - world.setBlock(j1 - 1, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 1, k1 + 1, l1 - 3, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 1, l1 - 1, Block.stone.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 2, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 2, l1 - 1, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.stone.blockID); - world.setBlock(j1 - 4, k1 + 3, l1 - 1, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 3, l1, Block.gravel.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 - 3, Block.stone.blockID); + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); } } - if (k3 == 2) { - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - for (int u = 0; u < 9; u++) { - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestoneMossy.blockID); + if (l3 == 1) { + int k4 = random.nextInt(100); + if (k4 <= 60) { + for (int u = 1; u < 4; u++) { + world.setBlock(j1, k1 + u, l1 + u, Block.bookShelf.blockID); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestoneMossy.blockID); - int i4 = random.nextInt(100); - if (i4 <= 60) { - for (int y = 0; y < 15; y++) { - world.setBlock(j1 + 7, k1 - y, l1, 0); - } - world.setBlock(j1, k1 - 13, l1 + 1, 0); - world.setBlock(j1, k1 - 13, l1 - 1, 0); - world.setBlock(j1, k1 - 14, l1 + 1, 0); - world.setBlock(j1, k1 - 14, l1 - 1, 0); - world.setBlock(j1 + 1, k1 - 13, l1 + 1, 0); - world.setBlock(j1 + 1, k1 - 13, l1 - 1, 0); - world.setBlock(j1 + 1, k1 - 14, l1 + 1, 0); - world.setBlock(j1 + 1, k1 - 14, l1 - 1, 0); + } + if (l3 == 2) { + int l4 = random.nextInt(100); + if (l4 <= 40) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.blockIron.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, 0); + world.setBlock(j1, k1 + 3, l1 + 2, 0); + world.setBlock(j1, k1 + 1, l1 + 3, 0); } - int j6 = random.nextInt(100); - if (j6 <= 70) { - for (int y = 0; y < 13; y++) { - world.setBlock(j1 + 7, k1 - y, l1 + 6, 0); - } - world.setBlock(j1, k1 - 11, l1 + 7, 0); - world.setBlock(j1, k1 - 11, l1 + 5, 0); - world.setBlock(j1, k1 - 12, l1 + 7, 0); - world.setBlock(j1, k1 - 12, l1 + 5, 0); - world.setBlock(j1 + 1, k1 - 11, l1 + 7, 0); - world.setBlock(j1 + 1, k1 - 11, l1 + 5, 0); - world.setBlock(j1 + 1, k1 - 12, l1 + 7, 0); - world.setBlock(j1 + 1, k1 - 12, l1 + 5, 0); - } - int l7 = random.nextInt(100); - if (l7 <= 50) { - for (int y = 0; y < 17; y++) { - world.setBlock(j1 + 7, k1 - y, l1 - 4, 0); - } - world.setBlock(j1 + 7, k1 - 15, l1 - 5, 0); - world.setBlock(j1 + 7, k1 - 15, l1 - 3, 0); - world.setBlock(j1 + 7, k1 - 16, l1 - 5, 0); - world.setBlock(j1 + 7, k1 - 16, l1 - 3, 0); - world.setBlock(j1 + 8, k1 - 15, l1 - 5, 0); - world.setBlock(j1 + 8, k1 - 15, l1 - 3, 0); - world.setBlock(j1 + 8, k1 - 16, l1 - 5, 0); - world.setBlock(j1 + 8, k1 - 16, l1 - 3, 0); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1 + 3, l1, 0); - world.setBlock(j1, k1 + 4, l1, 0); - world.setBlock(j1, k1 + 5, l1, 0); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int u = 1; u < 9; u++) { - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); - } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); - } - int k8 = random.nextInt(100); - if (k8 <= 15) { - world.setBlock(j1, k1 + 1, l1 - 7, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1 - 7)); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 4, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1)); - for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); - if (z != 0) - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); - } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); - int k9 = random.nextInt(100); - if (k9 <= 75) { - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1 + 1, l1 + 1, 0); - world.setBlock(j1, k1 + 2, l1 + 1, 0); - world.setBlock(j1, k1 + 1, l1 - 1, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1 - 1, k1 + 1, l1, 0); - world.setBlock(j1 - 1, k1 + 2, l1, 0); - world.setBlock(j1 - 1, k1 + 2, l1 - 1, 0); - world.setBlock(j1 - 3, k1 + 1, l1 + 2, Block.obsidian.blockID); - world.setBlock(j1 - 2, k1 + 1, l1, Block.obsidian.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 3, Block.obsidian.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); - } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); - } - int k10 = random.nextInt(100); - if (k10 <= 50) { - world.setBlock(j1, k1 + 1, l1 + 7, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 2, k1 + 1, l1 + 8, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 + 1, l1 + 5, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + 2, l1 + 6, 0); - world.setBlock(j1, k1 + 3, l1 + 6, 0); - world.setBlock(j1, k1 + 4, l1 + 6, 0); - } - int k11 = random.nextInt(100); - if (k11 <= 30) { - world.setBlock(j1 + 1, k1 + 5, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 5, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 6, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 5, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 7, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 7, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 6, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 8, l1, Block.vine.blockID); - world.setBlock(j1 + 1, k1 + 5, l1 - 3, Block.vine.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 4, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); - for (int z = -3; z < 4; z++) { - world.setBlock(j1, k1 + 1, l1 + z, Block.stoneSingleSlab.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); - } - int j12 = random.nextInt(100); - if (j12 <= 50) { - world.setBlock(j1, k1 + 1, l1 - 7, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 + 1, l1 - 8, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 + 1, l1 - 5, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + 3, l1 - 6, 0); - world.setBlock(j1, k1 + 4, l1 - 6, 0); - world.setBlock(j1, k1 + 5, l1 - 6, 0); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); } j1++; - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); - j1++; - for (int y = 1; y < 4; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); } } + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + if (l3 == 2) { + int i5 = random.nextInt(100); + if (i5 <= 40) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, 0); + world.setBlock(j1, k1 + 1, l1 + 3, 0); + } + } + j1++; world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - j1++; - for (int y = 1; y < 4; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + if (l3 == 1) { + int j5 = random.nextInt(100); + if (j5 <= 15) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 1); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Zombie"); + } + world.setBlock(j1, k1 + 2, l1 + 1, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 + 2, l1 + 1)); + world.setBlock(j1, k1 + 3, l1 + 1, Block.mobSpawner.blockID); + TileEntityMobSpawner spawnerII = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 3, l1 + 1); + if (spawnerII != null) { + spawnerII.getSpawnerLogic().setMobID("CaveSpider"); + } + world.setBlock(j1, k1 + 1, l1 + 2, 0); + world.setBlock(j1, k1 + 2, l1 + 2, 0); + world.setBlock(j1, k1 + 3, l1 + 2, 0); + world.setBlock(j1, k1 + 1, l1 + 3, 0); + world.setBlock(j1, k1 + 2, l1 + 3, 0); + world.setBlock(j1, k1 + 3, l1 + 3, 0); + } + world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); + world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + } j1++; - world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + if (l3 == 1) { + world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); + world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + } + if (l3 == 2) { + int k5 = random.nextInt(100); + if (k5 <= 30) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.blockIron.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 3); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Creeper"); + } + } + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); + if (l3 == 1) { + int l5 = random.nextInt(100); + if (l5 <= 60) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 3, l1 + 1, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 + 2); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Skeleton"); + } + world.setBlock(j1, k1 + 3, l1 + 2, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 2, l1 + 3, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 3, l1 + 3, Block.bookShelf.blockID); + } + world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); + world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + } + int i6 = random.nextInt(100); + if (i6 <= 30) { + world.setBlock(j1 - 1, k1 + 4, l1 + 3, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 4, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 4, l1 - 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 4, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 4, l1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 4, l1 - 3, Block.vine.blockID); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + if (l3 == 2) { + int l6 = random.nextInt(100); + if (l6 <= 30) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 2); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Blaze"); + } + world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); + } + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 - 5, Block.cobblestone.blockID); + if (l3 == 1) { + int i7 = random.nextInt(100); + if (i7 <= 60) { + for (int y = 1; y < 4; y++) { + for (int z = 1; z < 4; z++) { + world.setBlock(j1, k1 + y, l1 + z, Block.bookShelf.blockID); + } + } + } + } + if (l3 == 2) { + int j7 = random.nextInt(100); + if (j7 <= 20) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.blockGold.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.blockGold.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.blockGold.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); + } + int j8 = random.nextInt(100); + if (j8 <= 30) { + world.setBlock(j1, k1 + 1, l1 - 1, 0); + world.setBlock(j1, k1 + 2, l1 - 1, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 - 1); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Zombie"); + } + world.setBlock(j1, k1 + 1, l1 - 2, 0); + world.setBlock(j1, k1 + 2, l1 - 2, 0); + world.setBlock(j1 - 1, k1 + 1, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 2, l1 - 2, 0); + world.setBlock(j1 - 1, k1 + 1, l1 - 2, 0); + } + int j9 = random.nextInt(100); + if (j9 <= 10) { + world.setBlock(j1 - 3, k1 + 1, l1 - 1, Block.blockDiamond.blockID); + world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); + } + int j10 = random.nextInt(100); + if (j10 <= 10) { + world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); + } + int j11 = random.nextInt(100); + if (j11 <= 15) { + world.setBlock(j1 - 5, k1 + 1, l1 - 2, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 5, k1 + 1, l1 - 2)); + world.setBlock(j1 - 5, k1 + 1, l1 - 3, 0); + } + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + int k7 = random.nextInt(100); + if (k7 <= 30) { + world.setBlock(j1 - 2, k1 + 5, l1 - 3, 0); + world.setBlock(j1 - 2, k1 + 5, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 5, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 5, l1 - 2, 0); + world.setBlock(j1 - 3, k1 + 5, l1 - 2, 0); + world.setBlock(j1 - 5, k1 + 5, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 6, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 6, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 6, l1 - 2, 0); + world.setBlock(j1 - 3, k1 + 6, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 7, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 7, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 7, l1 - 2, 0); + world.setBlock(j1 - 3, k1 + 7, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 8, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 8, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 8, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 9, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 9, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 9, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 10, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 10, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 1, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 2, k1 + 1, l1 - 3, Block.gravel.blockID); + world.setBlock(j1 - 1, k1 + 1, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 1, k1 + 1, l1 - 3, Block.gravel.blockID); + world.setBlock(j1 - 2, k1 + 1, l1 - 1, Block.stone.blockID); + world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 2, k1 + 2, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 2, k1 + 2, l1 - 1, Block.gravel.blockID); + world.setBlock(j1 - 2, k1 + 3, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.stone.blockID); + world.setBlock(j1 - 4, k1 + 3, l1 - 1, Block.gravel.blockID); + world.setBlock(j1 - 2, k1 + 3, l1, Block.gravel.blockID); + world.setBlock(j1 - 1, k1 + 3, l1 - 3, Block.stone.blockID); + } + } + if (k3 == 2) { + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + for (int u = 0; u < 9; u++) { + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestoneMossy.blockID); + int i4 = random.nextInt(100); + if (i4 <= 60) { + for (int y = 0; y < 15; y++) { + world.setBlock(j1 + 7, k1 - y, l1, 0); + } + world.setBlock(j1, k1 - 13, l1 + 1, 0); + world.setBlock(j1, k1 - 13, l1 - 1, 0); + world.setBlock(j1, k1 - 14, l1 + 1, 0); + world.setBlock(j1, k1 - 14, l1 - 1, 0); + world.setBlock(j1 + 1, k1 - 13, l1 + 1, 0); + world.setBlock(j1 + 1, k1 - 13, l1 - 1, 0); + world.setBlock(j1 + 1, k1 - 14, l1 + 1, 0); + world.setBlock(j1 + 1, k1 - 14, l1 - 1, 0); + } + int j6 = random.nextInt(100); + if (j6 <= 70) { + for (int y = 0; y < 13; y++) { + world.setBlock(j1 + 7, k1 - y, l1 + 6, 0); + } + world.setBlock(j1, k1 - 11, l1 + 7, 0); + world.setBlock(j1, k1 - 11, l1 + 5, 0); + world.setBlock(j1, k1 - 12, l1 + 7, 0); + world.setBlock(j1, k1 - 12, l1 + 5, 0); + world.setBlock(j1 + 1, k1 - 11, l1 + 7, 0); + world.setBlock(j1 + 1, k1 - 11, l1 + 5, 0); + world.setBlock(j1 + 1, k1 - 12, l1 + 7, 0); + world.setBlock(j1 + 1, k1 - 12, l1 + 5, 0); + } + int l7 = random.nextInt(100); + if (l7 <= 50) { + for (int y = 0; y < 17; y++) { + world.setBlock(j1 + 7, k1 - y, l1 - 4, 0); + } + world.setBlock(j1 + 7, k1 - 15, l1 - 5, 0); + world.setBlock(j1 + 7, k1 - 15, l1 - 3, 0); + world.setBlock(j1 + 7, k1 - 16, l1 - 5, 0); + world.setBlock(j1 + 7, k1 - 16, l1 - 3, 0); + world.setBlock(j1 + 8, k1 - 15, l1 - 5, 0); + world.setBlock(j1 + 8, k1 - 15, l1 - 3, 0); + world.setBlock(j1 + 8, k1 - 16, l1 - 5, 0); + world.setBlock(j1 + 8, k1 - 16, l1 - 3, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); world.setBlock(j1, k1 + 1, l1, 0); world.setBlock(j1, k1 + 2, l1, 0); world.setBlock(j1, k1 + 3, l1, 0); + world.setBlock(j1, k1 + 4, l1, 0); + world.setBlock(j1, k1 + 5, l1, 0); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int u = 1; u < 9; u++) { + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 + 1, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 - 1, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 - 2, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); j1++; - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + } + world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + } + int k8 = random.nextInt(100); + if (k8 <= 15) { + world.setBlock(j1, k1 + 1, l1 - 7, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1 - 7)); + } j1++; - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); - world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 4, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1)); + for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); + if (z != 0) + world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + } + world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + int k9 = random.nextInt(100); + if (k9 <= 75) { + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1 + 1, l1 + 1, 0); + world.setBlock(j1, k1 + 2, l1 + 1, 0); + world.setBlock(j1, k1 + 1, l1 - 1, 0); + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1 - 1, k1 + 1, l1, 0); + world.setBlock(j1 - 1, k1 + 2, l1, 0); + world.setBlock(j1 - 1, k1 + 2, l1 - 1, 0); + world.setBlock(j1 - 3, k1 + 1, l1 + 2, Block.obsidian.blockID); + world.setBlock(j1 - 2, k1 + 1, l1, Block.obsidian.blockID); + world.setBlock(j1 - 3, k1 + 1, l1 - 3, Block.obsidian.blockID); + } j1++; - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + } + world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + } + int k10 = random.nextInt(100); + if (k10 <= 50) { + world.setBlock(j1, k1 + 1, l1 + 7, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 2, k1 + 1, l1 + 8, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 1, k1 + 1, l1 + 5, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + 2, l1 + 6, 0); + world.setBlock(j1, k1 + 3, l1 + 6, 0); + world.setBlock(j1, k1 + 4, l1 + 6, 0); + } + int k11 = random.nextInt(100); + if (k11 <= 30) { + world.setBlock(j1 + 1, k1 + 5, l1 + 3, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 5, l1 + 3, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 6, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 5, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 7, l1 - 1, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 7, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 6, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 8, l1, Block.vine.blockID); + world.setBlock(j1 + 1, k1 + 5, l1 - 3, Block.vine.blockID); + } j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 4, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); + for (int z = -3; z < 4; z++) { + world.setBlock(j1, k1 + 1, l1 + z, Block.stoneSingleSlab.blockID); + } j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + } + int j12 = random.nextInt(100); + if (j12 <= 50) { + world.setBlock(j1, k1 + 1, l1 - 7, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 1, k1 + 1, l1 - 8, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 3, k1 + 1, l1 - 5, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + 3, l1 - 6, 0); + world.setBlock(j1, k1 + 4, l1 - 6, 0); + world.setBlock(j1, k1 + 5, l1 - 6, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); + } + j1++; + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); + j1++; + for (int y = 1; y < 4; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 + y, l1 + z, 0); + } + } + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + j1++; + for (int y = 1; y < 4; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 + y, l1 + z, 0); + } + } + world.setBlock(j1, k1, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1 + 3, l1, 0); + j1++; + world.setBlock(j1, k1 - 1, l1, 0); + world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + j1++; + world.setBlock(j1, k1 - 2, l1, 0); + world.setBlock(j1, k1 - 1, l1, 0); + world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1 + 1, l1, 0); + j1++; + world.setBlock(j1, k1 - 3, l1, 0); + world.setBlock(j1, k1 - 2, l1, 0); + world.setBlock(j1, k1 - 1, l1, 0); + world.setBlock(j1, k1, l1, 0); + j1++; + world.setBlock(j1, k1 - 4, l1, 0); + world.setBlock(j1, k1 - 3, l1, 0); + world.setBlock(j1, k1 - 2, l1, 0); + world.setBlock(j1, k1 - 1, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + world.setBlock(j1, k1 - 3, l1, 0); + world.setBlock(j1, k1 - 2, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + for (int z = 0; z < 21; z++) { world.setBlock(j1, k1 - 5, l1, 0); world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - for (int z = 0; z < 21; z++) { - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + } + world.setBlock(j1, k1 - 4, l1 + 21, 0); + world.setBlock(j1, k1 - 5, l1 + 21, 0); + world.setBlock(j1, k1 - 6, l1 + 21, 0); + for (int z = 0; z < 8; z++) { + for (int y = 4; y < 7; y++) { + world.setBlock(j1, k1 - y - z, l1 + 22 + z, 0); } - world.setBlock(j1, k1 - 4, l1 + 21, 0); - world.setBlock(j1, k1 - 5, l1 + 21, 0); - world.setBlock(j1, k1 - 6, l1 + 21, 0); - for (int z = 0; z < 8; z++) { - for (int y = 4; y < 7; y++) { - world.setBlock(j1, k1 - y - z, l1 + 22 + z, 0); - } + } + int j4 = random.nextInt(100); + if (j4 <= 20) { + for (int x = -1; x < 2; x++) { + world.setBlock(j1 + x, k1 - 12, l1 + 31, 0); + world.setBlock(j1 + x, k1 - 13, l1 + 31, 0); + world.setBlock(j1 + x, k1 - 12, l1 + 32, 0); + world.setBlock(j1 + x, k1 - 13, l1 + 32, 0); + world.setBlock(j1 + x, k1 - 12, l1 + 33, 0); + world.setBlock(j1 + x, k1 - 13, l1 + 33, 0); } - int j4 = random.nextInt(100); - if (j4 <= 20) { - for (int x = -1; x < 2; x++) { - world.setBlock(j1 + x, k1 - 12, l1 + 31, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 31, 0); - world.setBlock(j1 + x, k1 - 12, l1 + 32, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 32, 0); - world.setBlock(j1 + x, k1 - 12, l1 + 33, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 33, 0); - } - world.setBlock(j1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1, k1 - 10, l1 + 32, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1, k1 - 11, l1 + 32, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 - 11, l1 + 32)); + world.setBlock(j1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + world.setBlock(j1, k1 - 10, l1 + 32, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + world.setBlock(j1 + 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + world.setBlock(j1 + 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); + world.setBlock(j1 + 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + world.setBlock(j1, k1 - 11, l1 + 32, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 - 11, l1 + 32)); + } + j1++; + world.setBlock(j1, k1 - 4, l1, 0); + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 6, l1, 0); + j1++; + world.setBlock(j1, k1 - 4, l1, 0); + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 6, l1, 0); + world.setBlock(j1, k1 - 7, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 6, l1, 0); + world.setBlock(j1, k1 - 7, l1, 0); + world.setBlock(j1, k1 - 8, l1, 0); + j1++; + world.setBlock(j1, k1 - 6, l1, 0); + world.setBlock(j1, k1 - 7, l1, 0); + world.setBlock(j1, k1 - 8, l1, 0); + world.setBlock(j1, k1 - 9, l1, 0); + j1++; + world.setBlock(j1, k1 - 7, l1, 0); + world.setBlock(j1, k1 - 8, l1, 0); + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + j1++; + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + j1++; + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + j1++; + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + j1++; + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); - j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); - j1++; - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); - j1++; - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.stone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.stone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 10, l1, 0); + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1, Block.cobblestoneMossy.blockID); + int k6 = random.nextInt(100); + if (k6 <= 30) { + world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.vine.blockID); + world.setBlock(j1 - 2, k1 - 8, l1, Block.vine.blockID); + world.setBlock(j1 - 2, k1 - 9, l1, Block.vine.blockID); + world.setBlock(j1 - 4, k1 - 8, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 6, k1 - 8, l1 - 1, Block.vine.blockID); + } + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 10, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1, Block.cobblestoneMossy.blockID); - int k6 = random.nextInt(100); - if (k6 <= 30) { - world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 2, k1 - 8, l1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 - 9, l1, Block.vine.blockID); - world.setBlock(j1 - 4, k1 - 8, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 6, k1 - 8, l1 - 1, Block.vine.blockID); + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + int i8 = random.nextInt(2) + 1; + if (i8 == 1) { for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + world.setBlock(j1 - 2, k1 - 10 - y, l1, Block.cobblestone.blockID); + world.setBlock(j1 - 6, k1 - 10 - y, l1, Block.cobblestone.blockID); + world.setBlock(j1 - 10, k1 - 10 - y, l1, Block.cobblestone.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l8 = random.nextInt(100); + if (l8 <= 50) { + world.setBlock(j1 - 1, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.stoneDoubleSlab.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l9 = random.nextInt(100); + if (l9 <= 60) { + world.setBlock(j1 - 2, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 2, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 2, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 2, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 2, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l10 = random.nextInt(100); + if (l10 <= 70) { + world.setBlock(j1 - 3, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 3, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 3, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 3, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l11 = random.nextInt(100); + if (l11 <= 40) { + world.setBlock(j1 - 1, k1 - 10, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 1, k1 - 9, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 1, k1 - 8, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 - 3, Block.brick.blockID); + world.setBlock(j1 - 1, k1 - 9, l1 - 3, Block.brick.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int k12 = random.nextInt(100); + if (k12 <= 50) { + world.setBlock(j1 - 2, k1 - 10, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 9, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 8, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 10, l1 - 3, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 9, l1 - 3, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 8, l1 - 3, Block.brick.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l12 = random.nextInt(100); + if (l12 <= 40) { + world.setBlock(j1 - 4, k1 - 10, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 4, k1 - 9, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 4, k1 - 10, l1 - 3, Block.netherBrick.blockID); + world.setBlock(j1 - 4, k1 - 9, l1 - 3, Block.netherBrick.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int i13 = random.nextInt(100); + if (i13 <= 40) { + world.setBlock(j1 - 5, k1 - 10, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 5, k1 - 9, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 5, k1 - 10, l1 - 3, Block.netherBrick.blockID); + world.setBlock(j1 - 5, k1 - 9, l1 - 3, Block.netherBrick.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 6, k1 - 9, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 - 3, Block.netherBrick.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int j13 = random.nextInt(100); + if (j13 <= 15) { + world.setBlock(j1 - 9, k1 - 10, l1 + 2, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 + 2)); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int k13 = random.nextInt(100); + if (k13 <= 15) { + world.setBlock(j1 - 9, k1 - 10, l1 - 2, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 - 2)); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } - } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } - } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } - } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - int i8 = random.nextInt(2) + 1; - if (i8 == 1) { - for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 2, k1 - 10 - y, l1, Block.cobblestone.blockID); - world.setBlock(j1 - 6, k1 - 10 - y, l1, Block.cobblestone.blockID); - world.setBlock(j1 - 10, k1 - 10 - y, l1, Block.cobblestone.blockID); - } - int l8 = random.nextInt(100); - if (l8 <= 50) { - world.setBlock(j1 - 1, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.stoneDoubleSlab.blockID); - } - int l9 = random.nextInt(100); - if (l9 <= 60) { - world.setBlock(j1 - 2, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); - } - int l10 = random.nextInt(100); - if (l10 <= 70) { - world.setBlock(j1 - 3, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); - } - int l11 = random.nextInt(100); - if (l11 <= 40) { - world.setBlock(j1 - 1, k1 - 10, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 - 3, Block.brick.blockID); - } - int k12 = random.nextInt(100); - if (k12 <= 50) { - world.setBlock(j1 - 2, k1 - 10, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 10, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 - 3, Block.brick.blockID); - } - int l12 = random.nextInt(100); - if (l12 <= 40) { - world.setBlock(j1 - 4, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 10, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 9, l1 - 3, Block.netherBrick.blockID); - } - int i13 = random.nextInt(100); - if (i13 <= 40) { - world.setBlock(j1 - 5, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 9, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 3, Block.netherBrick.blockID); - } - int j13 = random.nextInt(100); - if (j13 <= 15) { - world.setBlock(j1 - 9, k1 - 10, l1 + 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 + 2)); - } - int k13 = random.nextInt(100); - if (k13 <= 15) { - world.setBlock(j1 - 9, k1 - 10, l1 - 2, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 - 2)); - } - } - if (i8 != 2) { - continue; - } - for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 1, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - } - world.setBlock(j1 - 4, k1 - 10, l1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 - 4, k1 - 10, l1); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); - } - world.setBlock(j1 - 8, k1 - 10, l1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 8, k1 - 10, l1 + 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 8, k1 - 10, l1 - 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 5, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1 - 1, Block.cobblestone.blockID); - int i9 = random.nextInt(100); - if (i9 <= 30) { - world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); - } - if (i9 <= 10) { - world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); - } - for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 9, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 9, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 9, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - } - int i10 = random.nextInt(100); - if (i10 <= 20) { - world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 2, k1 - 10, l1 + 4)); - } - int i11 = random.nextInt(100); - if (i11 <= 40) { - world.setBlock(j1 - 3, k1 - 9, l1 + 3, 0); - world.setBlock(j1 - 3, k1 - 8, l1 + 3, 0); - world.setBlock(j1 - 3, k1 - 7, l1 + 3, 0); - world.setBlock(j1 - 1, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 - 10, l1 + 2, Block.blockNetherQuartz.blockID, 2, 2); - } - int i12 = random.nextInt(100); - if (i12 <= 40) { - world.setBlock(j1 - 9, k1 - 9, l1 - 3, 0); - world.setBlock(j1 - 9, k1 - 8, l1 - 3, 0); - world.setBlock(j1 - 9, k1 - 7, l1 - 3, 0); - world.setBlock(j1 - 7, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); - } - System.out.println((j1 - 8) + "," + (k1 - 10) + "," + (l1 - 2)); + } + if (i8 != 2) { + return true; + } + for (int y = 0; y < 4; y++) { + world.setBlock(j1 - 1, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 1, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 1, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 3, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 3, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 3, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + } + world.setBlock(j1 - 4, k1 - 10, l1, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 - 4, k1 - 10, l1); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Zombie"); + } + world.setBlock(j1 - 8, k1 - 10, l1, Block.stoneSingleSlab.blockID); + world.setBlock(j1 - 8, k1 - 10, l1 + 1, Block.stoneSingleSlab.blockID); + world.setBlock(j1 - 8, k1 - 10, l1 - 1, Block.stoneSingleSlab.blockID); + world.setBlock(j1 - 5, k1 - 10, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 5, k1 - 10, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1 - 5, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 6, k1 - 10, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 7, k1 - 10, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 7, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 7, k1 - 10, l1 - 1, Block.cobblestone.blockID); + int i9 = random.nextInt(100); + if (i9 <= 30) { + world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); + } + if (i9 <= 10) { + world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); + } + for (int y = 0; y < 4; y++) { + world.setBlock(j1 - 9, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 9, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 9, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 11, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 11, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 11, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + } + int i10 = random.nextInt(100); + if (i10 <= 20) { + world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 2, k1 - 10, l1 + 4)); + } + int i11 = random.nextInt(100); + if (i11 <= 40) { + world.setBlock(j1 - 3, k1 - 9, l1 + 3, 0); + world.setBlock(j1 - 3, k1 - 8, l1 + 3, 0); + world.setBlock(j1 - 3, k1 - 7, l1 + 3, 0); + world.setBlock(j1 - 1, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 - 10, l1 + 2, Block.blockNetherQuartz.blockID, 2, 2); + } + int i12 = random.nextInt(100); + if (i12 <= 40) { + world.setBlock(j1 - 9, k1 - 9, l1 - 3, 0); + world.setBlock(j1 - 9, k1 - 8, l1 - 3, 0); + world.setBlock(j1 - 9, k1 - 7, l1 - 3, 0); + world.setBlock(j1 - 7, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); } } return true; diff --git a/common/MysticRuins/StructureRuin$1.java b/common/MysticRuins/StructureRuin$1.java index 389c90c..51e7536 100644 --- a/common/MysticRuins/StructureRuin$1.java +++ b/common/MysticRuins/StructureRuin$1.java @@ -14,421 +14,417 @@ public class StructureRuin$1 extends WorldGenerator { @Override public boolean generate(World world, Random random, int i, int j, int k) { - int l = random.nextInt(100); - if (l >= 10) { + int j1 = (i + random.nextInt(8)) - random.nextInt(8); + int k1 = (j + random.nextInt(4)) - random.nextInt(4); + int l1 = (k + random.nextInt(8)) - random.nextInt(8); + if (k1 <= 0) { return false; } - for (int i1 = 0; i1 < 1; i1++) { - int j1 = (i + random.nextInt(8)) - random.nextInt(8); - int k1 = (j + random.nextInt(4)) - random.nextInt(4); - int l1 = (k + random.nextInt(8)) - random.nextInt(8); - if (!world.isAirBlock(j1, k1, l1) || world.getBlockId(j1, k1 - 1, l1) != Block.grass.blockID || !Block.pumpkin.canPlaceBlockAt(world, j1, k1, l1)) { - continue; - } - int i2 = random.nextInt(3) + 1; - if (i2 == 1) { - int j2 = random.nextInt(8) + 5; - int i3 = random.nextInt(8) + 5; - int l3 = random.nextInt(8) + 5; - int k4 = random.nextInt(4) + 3; - int j5 = 1; - int i6 = 0; - int l6 = 1; - boolean flag = false; - int k7 = random.nextInt(100); - int j8 = random.nextInt(100); - if (j8 <= 20) { - j5 = 0; - } else { - j5 = random.nextInt(4) + 5; - } - world.setBlock(j1, k1 - j5, l1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 1, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 2, l1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 3, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 4, l1 + 1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 5, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 2, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 3, l1 + 2, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 4, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - j5, l1 + 3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 1, l1 + 3, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 3, Block.stoneBrick.blockID); - world.setBlock(j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); - world.setBlock(j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 - j5 - k4, l1 + 2)); - l6 = 1; - i6 = 0; - flag = false; - do { - if (world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) - || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Block.waterStill.blockID - || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) == Block.waterStill.blockID) { - i6++; - } else { - flag = true; - } - } while (!flag && l6++ < 12); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Block.stoneBrick.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Block.stoneBrick.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1, 2); - k7 = random.nextInt(100); - if (k7 <= 30) { - world.setBlock(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID(DungeonHooks.getRandomDungeonMob(random)); - } - world.setBlock(j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); - } - l6 = 1; - i6 = 0; - flag = false; - do { - if (world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 4) || world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 5) || world.isAirBlock(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) - || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID - || world.getBlockId(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID) { - i6++; - } else { - flag = true; - } - } while (!flag && l6++ < 12); - world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 4, Block.stoneBrick.blockID); - world.setBlock(j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); - world.setBlock(j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); - k7 = random.nextInt(100); - if (k7 <= 60) { - world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); - world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); - } - } - if (i2 == 2) { - int k2 = random.nextInt(8) + 5; - int j3 = random.nextInt(8) + 5; - int i4 = random.nextInt(8) + 5; - int l4 = random.nextInt(4) + 3; - int k5 = 1; - int j6 = 0; - int i7 = 1; - boolean flag1 = false; - int l7 = random.nextInt(100); - int k8 = random.nextInt(100); - if (k8 <= 20) { - k5 = 0; - } else { - k5 = random.nextInt(4) + 5; - } - world.setBlock(j1, k1 - k5, l1, Block.stoneBrick.blockID); - world.setBlock(j1, k1 - k5, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - k5, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - k5, l1 + 3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - k5, l1 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - k5) + 1, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - k5) + 2, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - k5) + 3, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - k5) + 1, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + 1, k1 - k5, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + 2, k1 - k5, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); - world.setBlock(j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); - i7 = 1; - j6 = 0; - flag1 = false; - do { - if (world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 4) || world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 5) || world.isAirBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) - || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID - || world.getBlockId(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID) { - j6++; - } else { - flag1 = true; - } - } while (!flag1 && i7++ < 12); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); - world.setBlock(j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); - l7 = random.nextInt(100); - if (l7 <= 30) { - world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); - world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); - } - i7 = 1; - j6 = 0; - flag1 = false; - do { - if (world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 4) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 6) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 8) - || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 6) == Block.waterStill.blockID - || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 8) == Block.waterStill.blockID) { - j6++; - } else { - flag1 = true; - } - } while (!flag1 && i7++ < 12); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 8, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 9, Block.stoneBrick.blockID, 1, 2); - l7 = random.nextInt(100); - if (l7 <= 60) { - world.setBlock(j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); - } - i7 = 1; - j6 = 0; - flag1 = false; - do { - if (world.isAirBlock(j1 - j3, k1 - k5 - i7, l1 + i4) || world.isAirBlock(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) || world.isAirBlock((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) - || world.getBlockId(j1 - j3, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID || world.getBlockId(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) == Block.waterStill.blockID - || world.getBlockId((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID) { - j6++; - } else { - flag1 = true; - } - } while (!flag1 && i7++ < 12); - world.setBlock((j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID); - world.setBlock((j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); - world.setBlock((j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); - world.setBlock((j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID, 1, 2); - l7 = random.nextInt(100); - if (l7 <= 30) { - world.setBlock(j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); - world.setBlock(j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); - } - i7 = 1; - j6 = 0; - flag1 = false; - do { - if (world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) || world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) || world.isAirBlock(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) - || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) == Block.waterStill.blockID || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID - || world.getBlockId(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID) { - j6++; - } else { - flag1 = true; - } - } while (!flag1 && i7++ < 12); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Block.stoneBrick.blockID); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); - world.setBlock(j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); - l7 = random.nextInt(100); - if (l7 <= 30) { - world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); - } - } - if (i2 != 3) { - continue; - } - int l2 = random.nextInt(8) + 5; - int k3 = random.nextInt(8) + 5; - int j4 = random.nextInt(8) + 5; - int i5 = random.nextInt(4) + 3; - int l5 = 1; - int k6 = 0; - int j7 = 1; - boolean flag2 = false; - int i8 = random.nextInt(100); - int l8 = random.nextInt(100); - if (l8 <= 20) { - l5 = 0; + if (!world.isAirBlock(j1, k1, l1) || world.getBlockId(j1, k1 - 1, l1) != Block.grass.blockID || !Block.pumpkin.canPlaceBlockAt(world, j1, k1, l1)) { + return false; + } + int i2 = random.nextInt(3) + 1; + if (i2 == 1) { + int j2 = random.nextInt(8) + 5; + int i3 = random.nextInt(8) + 5; + int l3 = random.nextInt(8) + 5; + int k4 = random.nextInt(4) + 3; + int j5 = 1; + int i6 = 0; + int l6 = 1; + boolean flag = false; + int k7 = random.nextInt(100); + int j8 = random.nextInt(100); + if (j8 <= 20) { + j5 = 0; } else { - l5 = random.nextInt(4) + 5; + j5 = random.nextInt(4) + 5; } - world.setBlock(j1, k1 - l5, l1, Block.stoneBrick.blockID); - world.setBlock(j1 - 1, k1 - l5, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - l5) + 4, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - l5) + 5, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - l5, l1 + 1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - l5) + 2, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - l5, l1 + 2, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - l5) + 1, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); - world.setBlock(j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); - j7 = 1; - k6 = 0; - flag2 = false; + world.setBlock(j1, k1 - j5, l1, Block.stoneBrick.blockID); + world.setBlock(j1, (k1 - j5) + 1, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - j5) + 2, l1, Block.stoneBrick.blockID); + world.setBlock(j1, (k1 - j5) + 2, l1 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - j5) + 3, l1 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - j5) + 4, l1 + 1, Block.stoneBrick.blockID); + world.setBlock(j1, (k1 - j5) + 5, l1 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - j5) + 2, l1 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - j5) + 3, l1 + 2, Block.stoneBrick.blockID); + world.setBlock(j1, (k1 - j5) + 4, l1 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, k1 - j5, l1 + 3, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - j5) + 1, l1 + 3, Block.stoneBrick.blockID); + world.setBlock(j1, (k1 - j5) + 2, l1 + 3, Block.stoneBrick.blockID); + world.setBlock(j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); + world.setBlock(j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 - j5 - k4, l1 + 2)); + l6 = 1; + i6 = 0; + flag = false; do { - if (world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Block.waterStill.blockID - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Block.waterStill.blockID - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) == Block.waterStill.blockID) { - k6++; + if (world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) + || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Block.waterStill.blockID + || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) == Block.waterStill.blockID) { + i6++; } else { - flag2 = true; + flag = true; } - } while (!flag2 && j7++ < 12); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Block.stoneBrick.blockID); - i8 = random.nextInt(100); - if (i8 <= 30) { - world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); + } while (!flag && l6++ < 12); + world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Block.stoneBrick.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Block.stoneBrick.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1, 2); + k7 = random.nextInt(100); + if (k7 <= 30) { + world.setBlock(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID(DungeonHooks.getRandomDungeonMob(random)); + } + world.setBlock(j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); } - j7 = 1; - k6 = 0; - flag2 = false; + l6 = 1; + i6 = 0; + flag = false; do { - if (world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) || world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) || world.isAirBlock(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) - || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) == Block.waterStill.blockID || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) == Block.waterStill.blockID - || world.getBlockId(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) == Block.waterStill.blockID) { - k6++; + if (world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 4) || world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 5) || world.isAirBlock(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) + || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID + || world.getBlockId(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID) { + i6++; } else { - flag2 = true; + flag = true; } - } while (!flag2 && j7++ < 12); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Block.stoneBrick.blockID); - world.setBlock(j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Block.stoneBrick.blockID); - world.setBlock(j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); - world.setBlock(j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Block.stoneBrick.blockID); - world.setBlock(j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); - i8 = random.nextInt(100); - if (i8 <= 60) { - world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); - world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); + } while (!flag && l6++ < 12); + world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 4, Block.stoneBrick.blockID); + world.setBlock(j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); + world.setBlock(j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); + k7 = random.nextInt(100); + if (k7 <= 60) { + world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); + world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); } - j7 = 1; - k6 = 0; - flag2 = false; + } + if (i2 == 2) { + int k2 = random.nextInt(8) + 5; + int j3 = random.nextInt(8) + 5; + int i4 = random.nextInt(8) + 5; + int l4 = random.nextInt(4) + 3; + int k5 = 1; + int j6 = 0; + int i7 = 1; + boolean flag1 = false; + int l7 = random.nextInt(100); + int k8 = random.nextInt(100); + if (k8 <= 20) { + k5 = 0; + } else { + k5 = random.nextInt(4) + 5; + } + world.setBlock(j1, k1 - k5, l1, Block.stoneBrick.blockID); + world.setBlock(j1, k1 - k5, l1 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, k1 - k5, l1 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, k1 - k5, l1 + 3, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, k1 - k5, l1 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - k5) + 1, l1 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - k5) + 2, l1 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - k5) + 3, l1 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - k5) + 1, l1 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + 1, k1 - k5, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + 2, k1 - k5, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); + world.setBlock(j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); + i7 = 1; + j6 = 0; + flag1 = false; do { - if (world.isAirBlock(j1 + l2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) - || world.getBlockId(j1 + l2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID || world.getBlockId(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID - || world.getBlockId(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID) { - k6++; + if (world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 4) || world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 5) || world.isAirBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) + || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID + || world.getBlockId(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID) { + j6++; } else { - flag2 = true; + flag1 = true; } - } while (!flag2 && j7++ < 12); - world.setBlock(j1 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - i8 = random.nextInt(100); - if (i8 <= 30) { - world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); - world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); + } while (!flag1 && i7++ < 12); + world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 3, Block.stoneBrick.blockID); + world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); + world.setBlock(j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); + l7 = random.nextInt(100); + if (l7 <= 30) { + world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); + world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); } - j7 = 1; - k6 = 0; - flag2 = false; + i7 = 1; + j6 = 0; + flag1 = false; do { - if (world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) - || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) == Block.waterStill.blockID || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) == Block.waterStill.blockID - || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) == Block.waterStill.blockID) { - k6++; + if (world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 4) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 6) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 8) + || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 6) == Block.waterStill.blockID + || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 8) == Block.waterStill.blockID) { + j6++; } else { - flag2 = true; + flag1 = true; } - } while (!flag2 && j7++ < 12); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Block.stoneBrick.blockID, 1, 2); - i8 = random.nextInt(100); - if (i8 <= 30) { - world.setBlock(j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); + } while (!flag1 && i7++ < 12); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 5, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Block.stoneBrick.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 7, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Block.stoneBrick.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 8, Block.stoneBrick.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 9, Block.stoneBrick.blockID, 1, 2); + l7 = random.nextInt(100); + if (l7 <= 60) { + world.setBlock(j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); + world.setBlock(j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); } + i7 = 1; + j6 = 0; + flag1 = false; + do { + if (world.isAirBlock(j1 - j3, k1 - k5 - i7, l1 + i4) || world.isAirBlock(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) || world.isAirBlock((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) + || world.getBlockId(j1 - j3, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID || world.getBlockId(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) == Block.waterStill.blockID + || world.getBlockId((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID) { + j6++; + } else { + flag1 = true; + } + } while (!flag1 && i7++ < 12); + world.setBlock((j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID); + world.setBlock((j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); + world.setBlock((j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); + world.setBlock((j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID, 1, 2); + l7 = random.nextInt(100); + if (l7 <= 30) { + world.setBlock(j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); + world.setBlock(j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); + } + i7 = 1; + j6 = 0; + flag1 = false; + do { + if (world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) || world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) || world.isAirBlock(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) + || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) == Block.waterStill.blockID || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID + || world.getBlockId(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID) { + j6++; + } else { + flag1 = true; + } + } while (!flag1 && i7++ < 12); + world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Block.stoneBrick.blockID); + world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); + world.setBlock(j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); + l7 = random.nextInt(100); + if (l7 <= 30) { + world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); + world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); + } + } + if (i2 != 3) { + return true; + } + int l2 = random.nextInt(8) + 5; + int k3 = random.nextInt(8) + 5; + int j4 = random.nextInt(8) + 5; + int i5 = random.nextInt(4) + 3; + int l5 = 1; + int k6 = 0; + int j7 = 1; + boolean flag2 = false; + int i8 = random.nextInt(100); + int l8 = random.nextInt(100); + if (l8 <= 20) { + l5 = 0; + } else { + l5 = random.nextInt(4) + 5; + } + world.setBlock(j1, k1 - l5, l1, Block.stoneBrick.blockID); + world.setBlock(j1 - 1, k1 - l5, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - 1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - 1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - 1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID); + world.setBlock(j1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - l5) + 4, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, (k1 - l5) + 5, l1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, k1 - l5, l1 + 1, Block.stoneBrick.blockID); + world.setBlock(j1, (k1 - l5) + 2, l1 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, k1 - l5, l1 + 2, Block.stoneBrick.blockID); + world.setBlock(j1, (k1 - l5) + 1, l1 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); + world.setBlock(j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); + j7 = 1; + k6 = 0; + flag2 = false; + do { + if (world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) + || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Block.waterStill.blockID || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Block.waterStill.blockID + || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) == Block.waterStill.blockID) { + k6++; + } else { + flag2 = true; + } + } while (!flag2 && j7++ < 12); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Block.stoneBrick.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Block.stoneBrick.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Block.stoneBrick.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Block.stoneBrick.blockID); + i8 = random.nextInt(100); + if (i8 <= 30) { + world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); + } + j7 = 1; + k6 = 0; + flag2 = false; + do { + if (world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) || world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) || world.isAirBlock(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) + || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) == Block.waterStill.blockID || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) == Block.waterStill.blockID + || world.getBlockId(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) == Block.waterStill.blockID) { + k6++; + } else { + flag2 = true; + } + } while (!flag2 && j7++ < 12); + world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Block.stoneBrick.blockID); + world.setBlock(j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Block.stoneBrick.blockID); + world.setBlock(j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Block.stoneBrick.blockID); + world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); + world.setBlock(j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Block.stoneBrick.blockID); + world.setBlock(j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); + i8 = random.nextInt(100); + if (i8 <= 60) { + world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); + world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); + } + j7 = 1; + k6 = 0; + flag2 = false; + do { + if (world.isAirBlock(j1 + l2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) + || world.getBlockId(j1 + l2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID || world.getBlockId(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID + || world.getBlockId(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID) { + k6++; + } else { + flag2 = true; + } + } while (!flag2 && j7++ < 12); + world.setBlock(j1 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); + world.setBlock(j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); + world.setBlock(j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); + world.setBlock(j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID); + world.setBlock(j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); + world.setBlock(j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + i8 = random.nextInt(100); + if (i8 <= 30) { + world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); + world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); + } + j7 = 1; + k6 = 0; + flag2 = false; + do { + if (world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) + || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) == Block.waterStill.blockID || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) == Block.waterStill.blockID + || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) == Block.waterStill.blockID) { + k6++; + } else { + flag2 = true; + } + } while (!flag2 && j7++ < 12); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3, Block.stoneBrick.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Block.stoneBrick.blockID); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Block.stoneBrick.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Block.stoneBrick.blockID); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Block.stoneBrick.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Block.stoneBrick.blockID, 1, 2); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Block.stoneBrick.blockID, 1, 2); + i8 = random.nextInt(100); + if (i8 <= 30) { + world.setBlock(j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); + world.setBlock(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); } return true; } diff --git a/common/MysticRuins/StructureRuin.java b/common/MysticRuins/StructureRuin.java index 6c906a6..f1140ed 100644 --- a/common/MysticRuins/StructureRuin.java +++ b/common/MysticRuins/StructureRuin.java @@ -14,420 +14,416 @@ public class StructureRuin extends WorldGenerator { @Override public boolean generate(World world, Random random, int i, int j, int k) { - int l = random.nextInt(100); - if (l >= 10) { + int j1 = (i + random.nextInt(8)) - random.nextInt(8); + int k1 = (j + random.nextInt(4)) - random.nextInt(4); + int l1 = (k + random.nextInt(8)) - random.nextInt(8); + if (k1 <= 0) { return false; } - for (int i1 = 0; i1 < 1; i1++) { - int j1 = (i + random.nextInt(8)) - random.nextInt(8); - int k1 = (j + random.nextInt(4)) - random.nextInt(4); - int l1 = (k + random.nextInt(8)) - random.nextInt(8); - if (!world.isAirBlock(j1, k1, l1) || world.getBlockId(j1, k1 - 1, l1) != Block.grass.blockID || !Block.pumpkin.canPlaceBlockAt(world, j1, k1, l1)) { - continue; - } - int i2 = random.nextInt(3) + 1; - if (i2 == 1) { - int j2 = random.nextInt(8) + 5; - int i3 = random.nextInt(8) + 5; - int l3 = random.nextInt(8) + 5; - int k4 = random.nextInt(4) + 3; - int j5 = 1; - int i6 = 0; - int l6 = 1; - boolean flag = false; - int k7 = random.nextInt(100); - int j8 = random.nextInt(100); - if (j8 <= 20) { - j5 = 0; - } else { - j5 = random.nextInt(4) + 5; - } - world.setBlock(j1, k1 - j5, l1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 3, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 4, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 5, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 3, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 4, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - j5, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); - world.setBlock(j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 - j5 - k4, l1 + 2)); - l6 = 1; - i6 = 0; - flag = false; - do { - if (world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) - || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Block.waterStill.blockID - || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) == Block.waterStill.blockID) { - i6++; - } else { - flag = true; - } - } while (!flag && l6++ < 12); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Block.cobblestone.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Block.cobblestone.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Block.cobblestoneMossy.blockID); - k7 = random.nextInt(100); - if (k7 <= 30) { - world.setBlock(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID(DungeonHooks.getRandomDungeonMob(random)); - } - world.setBlock(j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); - } - l6 = 1; - i6 = 0; - flag = false; - do { - if (world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 4) || world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 5) || world.isAirBlock(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) - || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID - || world.getBlockId(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID) { - i6++; - } else { - flag = true; - } - } while (!flag && l6++ < 12); - world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Block.cobblestone.blockID); - k7 = random.nextInt(100); - if (k7 <= 60) { - world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); - world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); - } - } else if (i2 == 2) { - int k2 = random.nextInt(8) + 5; - int j3 = random.nextInt(8) + 5; - int i4 = random.nextInt(8) + 5; - int l4 = random.nextInt(4) + 3; - int k5 = 1; - int j6 = 0; - int i7 = 1; - boolean flag1 = false; - int l7 = random.nextInt(100); - int k8 = random.nextInt(100); - if (k8 <= 20) { - k5 = 0; - } else { - k5 = random.nextInt(4) + 5; - } - world.setBlock(j1, k1 - k5, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - k5, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - k5, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - k5, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - k5, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - k5) + 1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - k5) + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - k5) + 3, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - k5) + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + 1, k1 - k5, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + 2, k1 - k5, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); - world.setBlock(j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); - i7 = 1; - j6 = 0; - flag1 = false; - do { - if (world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 4) || world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 5) || world.isAirBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) - || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID - || world.getBlockId(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID) { - j6++; - } else { - flag1 = true; - } - } while (!flag1 && i7++ < 12); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Block.cobblestone.blockID); - l7 = random.nextInt(100); - if (l7 <= 30) { - world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); - world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); - } - i7 = 1; - j6 = 0; - flag1 = false; - do { - if (world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 4) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 6) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 8) - || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 6) == Block.waterStill.blockID - || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 8) == Block.waterStill.blockID) { - j6++; - } else { - flag1 = true; - } - } while (!flag1 && i7++ < 12); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 9, Block.cobblestoneMossy.blockID); - l7 = random.nextInt(100); - if (l7 <= 60) { - world.setBlock(j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); - } - i7 = 1; - j6 = 0; - flag1 = false; - do { - if (world.isAirBlock(j1 - j3, k1 - k5 - i7, l1 + i4) || world.isAirBlock(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) || world.isAirBlock((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) - || world.getBlockId(j1 - j3, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID || world.getBlockId(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) == Block.waterStill.blockID - || world.getBlockId((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID) { - j6++; - } else { - flag1 = true; - } - } while (!flag1 && i7++ < 12); - world.setBlock((j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Block.cobblestone.blockID); - world.setBlock((j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Block.cobblestoneMossy.blockID); - world.setBlock((j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Block.cobblestoneMossy.blockID); - world.setBlock((j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Block.cobblestoneMossy.blockID); - l7 = random.nextInt(100); - if (l7 <= 30) { - world.setBlock(j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); - world.setBlock(j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); - } - i7 = 1; - j6 = 0; - flag1 = false; - do { - if (world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) || world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) || world.isAirBlock(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) - || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) == Block.waterStill.blockID || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID - || world.getBlockId(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID) { - j6++; - } else { - flag1 = true; - } - } while (!flag1 && i7++ < 12); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Block.cobblestone.blockID); - l7 = random.nextInt(100); - if (l7 <= 30) { - world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); - } - } - if (i2 != 3) { - continue; - } - int l2 = random.nextInt(8) + 5; - int k3 = random.nextInt(8) + 5; - int j4 = random.nextInt(8) + 5; - int i5 = random.nextInt(4) + 3; - int l5 = 1; - int k6 = 0; - int j7 = 1; - boolean flag2 = false; - int i8 = random.nextInt(100); - int l8 = random.nextInt(100); - if (l8 <= 20) { - l5 = 0; + if (!world.isAirBlock(j1, k1, l1) || world.getBlockId(j1, k1 - 1, l1) != Block.grass.blockID || !Block.pumpkin.canPlaceBlockAt(world, j1, k1, l1)) { + return false; + } + int i2 = random.nextInt(3) + 1; + if (i2 == 1) { + int j2 = random.nextInt(8) + 5; + int i3 = random.nextInt(8) + 5; + int l3 = random.nextInt(8) + 5; + int k4 = random.nextInt(4) + 3; + int j5 = 1; + int i6 = 0; + int l6 = 1; + boolean flag = false; + int k7 = random.nextInt(100); + int j8 = random.nextInt(100); + if (j8 <= 20) { + j5 = 0; } else { - l5 = random.nextInt(4) + 5; + j5 = random.nextInt(4) + 5; } - world.setBlock(j1, k1 - l5, l1, Block.cobblestone.blockID); - world.setBlock(j1 - 1, k1 - l5, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 1, (k1 - l5) + 1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 1, (k1 - l5) + 2, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 1, (k1 - l5) + 3, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - l5) + 1, l1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - l5) + 2, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - l5) + 3, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - l5) + 4, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - l5) + 5, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - l5, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - l5) + 2, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - l5, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - l5) + 1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); - world.setBlock(j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); - j7 = 1; - k6 = 0; - flag2 = false; + world.setBlock(j1, k1 - j5, l1, Block.cobblestone.blockID); + world.setBlock(j1, (k1 - j5) + 1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - j5) + 2, l1, Block.cobblestone.blockID); + world.setBlock(j1, (k1 - j5) + 2, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - j5) + 3, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - j5) + 4, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, (k1 - j5) + 5, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - j5) + 2, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - j5) + 3, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, (k1 - j5) + 4, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - j5, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - j5) + 1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, (k1 - j5) + 2, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); + world.setBlock(j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 - j5 - k4, l1 + 2)); + l6 = 1; + i6 = 0; + flag = false; do { - if (world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Block.waterStill.blockID - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Block.waterStill.blockID - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) == Block.waterStill.blockID) { - k6++; + if (world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) + || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Block.waterStill.blockID + || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) == Block.waterStill.blockID) { + i6++; } else { - flag2 = true; + flag = true; } - } while (!flag2 && j7++ < 12); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Block.cobblestone.blockID); - i8 = random.nextInt(100); - if (i8 <= 30) { - world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); + } while (!flag && l6++ < 12); + world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Block.cobblestone.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Block.cobblestone.blockID); + world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Block.cobblestoneMossy.blockID); + k7 = random.nextInt(100); + if (k7 <= 30) { + world.setBlock(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID(DungeonHooks.getRandomDungeonMob(random)); + } + world.setBlock(j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); } - j7 = 1; - k6 = 0; - flag2 = false; + l6 = 1; + i6 = 0; + flag = false; do { - if (world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) || world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) || world.isAirBlock(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) - || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) == Block.waterStill.blockID || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) == Block.waterStill.blockID - || world.getBlockId(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) == Block.waterStill.blockID) { - k6++; + if (world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 4) || world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 5) || world.isAirBlock(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) + || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID + || world.getBlockId(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID) { + i6++; } else { - flag2 = true; + flag = true; } - } while (!flag2 && j7++ < 12); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Block.cobblestone.blockID); - world.setBlock(j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Block.cobblestone.blockID); - world.setBlock(j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Block.cobblestone.blockID); - world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestone.blockID); - world.setBlock(j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Block.cobblestone.blockID); - world.setBlock(j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestone.blockID); - i8 = random.nextInt(100); - if (i8 <= 60) { - world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); - world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); + } while (!flag && l6++ < 12); + world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Block.cobblestone.blockID); + k7 = random.nextInt(100); + if (k7 <= 60) { + world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); + world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); } - j7 = 1; - k6 = 0; - flag2 = false; + } else if (i2 == 2) { + int k2 = random.nextInt(8) + 5; + int j3 = random.nextInt(8) + 5; + int i4 = random.nextInt(8) + 5; + int l4 = random.nextInt(4) + 3; + int k5 = 1; + int j6 = 0; + int i7 = 1; + boolean flag1 = false; + int l7 = random.nextInt(100); + int k8 = random.nextInt(100); + if (k8 <= 20) { + k5 = 0; + } else { + k5 = random.nextInt(4) + 5; + } + world.setBlock(j1, k1 - k5, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - k5, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - k5, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - k5, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - k5, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - k5) + 1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - k5) + 2, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - k5) + 3, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - k5) + 1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + 1, k1 - k5, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + 2, k1 - k5, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); + world.setBlock(j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); + i7 = 1; + j6 = 0; + flag1 = false; do { - if (world.isAirBlock(j1 + l2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) - || world.getBlockId(j1 + l2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID || world.getBlockId(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID - || world.getBlockId(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID) { - k6++; + if (world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 4) || world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 5) || world.isAirBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) + || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID + || world.getBlockId(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID) { + j6++; } else { - flag2 = true; + flag1 = true; } - } while (!flag2 && j7++ < 12); - world.setBlock(j1 + l2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - i8 = random.nextInt(100); - if (i8 <= 30) { - world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); - world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); + } while (!flag1 && i7++ < 12); + world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Block.cobblestone.blockID); + l7 = random.nextInt(100); + if (l7 <= 30) { + world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); + world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); } - j7 = 1; - k6 = 0; - flag2 = false; + i7 = 1; + j6 = 0; + flag1 = false; do { - if (world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) - || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) == Block.waterStill.blockID || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) == Block.waterStill.blockID - || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) == Block.waterStill.blockID) { - k6++; + if (world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 4) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 6) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 8) + || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 6) == Block.waterStill.blockID + || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 8) == Block.waterStill.blockID) { + j6++; } else { - flag2 = true; + flag1 = true; } - } while (!flag2 && j7++ < 12); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3, Block.cobblestone.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Block.cobblestone.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Block.cobblestone.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Block.cobblestone.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Block.cobblestone.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Block.cobblestoneMossy.blockID); - i8 = random.nextInt(100); - if (i8 <= 30) { - world.setBlock(j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); + } while (!flag1 && i7++ < 12); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 9, Block.cobblestoneMossy.blockID); + l7 = random.nextInt(100); + if (l7 <= 60) { + world.setBlock(j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); + world.setBlock(j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); } + i7 = 1; + j6 = 0; + flag1 = false; + do { + if (world.isAirBlock(j1 - j3, k1 - k5 - i7, l1 + i4) || world.isAirBlock(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) || world.isAirBlock((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) + || world.getBlockId(j1 - j3, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID || world.getBlockId(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) == Block.waterStill.blockID + || world.getBlockId((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID) { + j6++; + } else { + flag1 = true; + } + } while (!flag1 && i7++ < 12); + world.setBlock((j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Block.cobblestone.blockID); + world.setBlock((j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Block.cobblestoneMossy.blockID); + world.setBlock((j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Block.cobblestoneMossy.blockID); + world.setBlock((j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Block.cobblestone.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Block.cobblestone.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Block.cobblestone.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Block.cobblestone.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Block.cobblestone.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Block.cobblestone.blockID); + world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Block.cobblestoneMossy.blockID); + l7 = random.nextInt(100); + if (l7 <= 30) { + world.setBlock(j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); + world.setBlock(j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); + } + i7 = 1; + j6 = 0; + flag1 = false; + do { + if (world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) || world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) || world.isAirBlock(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) + || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) == Block.waterStill.blockID || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID + || world.getBlockId(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID) { + j6++; + } else { + flag1 = true; + } + } while (!flag1 && i7++ < 12); + world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Block.cobblestone.blockID); + l7 = random.nextInt(100); + if (l7 <= 30) { + world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); + world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); + } + } + if (i2 != 3) { + return true; + } + int l2 = random.nextInt(8) + 5; + int k3 = random.nextInt(8) + 5; + int j4 = random.nextInt(8) + 5; + int i5 = random.nextInt(4) + 3; + int l5 = 1; + int k6 = 0; + int j7 = 1; + boolean flag2 = false; + int i8 = random.nextInt(100); + int l8 = random.nextInt(100); + if (l8 <= 20) { + l5 = 0; + } else { + l5 = random.nextInt(4) + 5; + } + world.setBlock(j1, k1 - l5, l1, Block.cobblestone.blockID); + world.setBlock(j1 - 1, k1 - l5, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 1, (k1 - l5) + 1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 1, (k1 - l5) + 2, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 1, (k1 - l5) + 3, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - l5) + 1, l1, Block.cobblestone.blockID); + world.setBlock(j1, (k1 - l5) + 2, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - l5) + 3, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - l5) + 4, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, (k1 - l5) + 5, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - l5, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, (k1 - l5) + 2, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - l5, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, (k1 - l5) + 1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); + world.setBlock(j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); + j7 = 1; + k6 = 0; + flag2 = false; + do { + if (world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) + || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Block.waterStill.blockID || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Block.waterStill.blockID + || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) == Block.waterStill.blockID) { + k6++; + } else { + flag2 = true; + } + } while (!flag2 && j7++ < 12); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Block.cobblestone.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Block.cobblestone.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Block.cobblestone.blockID); + world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Block.cobblestone.blockID); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Block.cobblestone.blockID); + i8 = random.nextInt(100); + if (i8 <= 30) { + world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); + world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); + } + j7 = 1; + k6 = 0; + flag2 = false; + do { + if (world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) || world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) || world.isAirBlock(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) + || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) == Block.waterStill.blockID || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) == Block.waterStill.blockID + || world.getBlockId(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) == Block.waterStill.blockID) { + k6++; + } else { + flag2 = true; + } + } while (!flag2 && j7++ < 12); + world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Block.cobblestone.blockID); + world.setBlock(j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Block.cobblestone.blockID); + world.setBlock(j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Block.cobblestone.blockID); + world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestone.blockID); + world.setBlock(j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Block.cobblestone.blockID); + world.setBlock(j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestone.blockID); + i8 = random.nextInt(100); + if (i8 <= 60) { + world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); + world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); + } + j7 = 1; + k6 = 0; + flag2 = false; + do { + if (world.isAirBlock(j1 + l2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) + || world.getBlockId(j1 + l2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID || world.getBlockId(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID + || world.getBlockId(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID) { + k6++; + } else { + flag2 = true; + } + } while (!flag2 && j7++ < 12); + world.setBlock(j1 + l2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); + world.setBlock(j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestone.blockID); + world.setBlock(j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); + world.setBlock(j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestone.blockID); + world.setBlock(j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestone.blockID); + world.setBlock(j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); + i8 = random.nextInt(100); + if (i8 <= 30) { + world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); + world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); + } + j7 = 1; + k6 = 0; + flag2 = false; + do { + if (world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) + || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) == Block.waterStill.blockID || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) == Block.waterStill.blockID + || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) == Block.waterStill.blockID) { + k6++; + } else { + flag2 = true; + } + } while (!flag2 && j7++ < 12); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3, Block.cobblestone.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Block.cobblestone.blockID); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Block.cobblestone.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Block.cobblestone.blockID); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Block.cobblestone.blockID); + world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Block.cobblestoneMossy.blockID); + i8 = random.nextInt(100); + if (i8 <= 30) { + world.setBlock(j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); + world.setBlock(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); } return true; } diff --git a/common/mysticruins/WorldGenMystic.java b/common/mysticruins/WorldGenMystic.java index 8c1f622..62b74f0 100644 --- a/common/mysticruins/WorldGenMystic.java +++ b/common/mysticruins/WorldGenMystic.java @@ -14,30 +14,39 @@ public class WorldGenMystic implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { - if (Config.ruinAllowId.contains(world.provider.dimensionId)) { + if (Config.allowId[0].contains(world.provider.dimensionId)) { generateRuins(world, random, chunkX * 16, chunkZ * 16); } - if (Config.dungeonAllowId.contains(world.provider.dimensionId)) { + if (Config.allowId[1].contains(world.provider.dimensionId)) { generateDungeon(world, random, chunkX * 16, chunkZ * 16); } } private void generateDungeon(World world, Random random, int blockX, int blockZ) { + int Xcoord1, Ycoord1, Zcoord1; for (int i = 0; i < Config.DunRarity; i++) { - int Xcoord1 = blockX + random.nextInt(16) + 8; - int Ycoord1 = random.nextInt(9) + 28; - int Zcoord1 = blockZ + random.nextInt(16) + 8; - dungeon.generate(world, random, Xcoord1, Ycoord1, Zcoord1); + Xcoord1 = blockX + random.nextInt(16) + 8; + Ycoord1 = random.nextInt(9) + 28; + Zcoord1 = blockZ + random.nextInt(16) + 8; + if (!Config.allowId[3].contains(world.getBiomeGenForCoords(Xcoord1, Zcoord1).biomeID)) { + continue; + } + if (dungeon.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) + break; } } private void generateRuins(World world, Random random, int blockX, int blockZ) { + int Xcoord1, Ycoord1, Zcoord1; for (int i = 0; i < Config.RuinRarity; i++) { - int Xcoord1 = blockX + random.nextInt(16) + 8; - int Ycoord1 = random.nextInt(11) + 60; - int Zcoord1 = blockZ + random.nextInt(16) + 8; - ruin.generate(world, random, Xcoord1, Ycoord1, Zcoord1); - ruin1.generate(world, random, Xcoord1, Ycoord1, Zcoord1); + Xcoord1 = blockX + random.nextInt(16) + 8; + Ycoord1 = random.nextInt(11) + 60; + Zcoord1 = blockZ + random.nextInt(16) + 8; + if (!Config.allowId[2].contains(world.getBiomeGenForCoords(Xcoord1, Zcoord1).biomeID)) { + continue; + } + if (ruin.generate(world, random, Xcoord1, Ycoord1, Zcoord1) || ruin1.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) + break; } } } \ No newline at end of file From 633d1bed90e5142d48046ba532f4d2fb8463f2e1 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 13:59:56 +0200 Subject: [PATCH 02/59] Deprecated localizations, to be replaced with vanilla --- common/MysticStones/Util/Localizations.java | 1 + common/MysticWorld/Util/Localizations.java | 1 + 2 files changed, 2 insertions(+) diff --git a/common/MysticStones/Util/Localizations.java b/common/MysticStones/Util/Localizations.java index bd81ec7..7cf0d79 100644 --- a/common/MysticStones/Util/Localizations.java +++ b/common/MysticStones/Util/Localizations.java @@ -22,6 +22,7 @@ import cpw.mods.fml.common.registry.LanguageRegistry; * repository, many thanks friend c: * */ +@Deprecated(/* replaced by vanilla */) public class Localizations { private Localizations() { } diff --git a/common/MysticWorld/Util/Localizations.java b/common/MysticWorld/Util/Localizations.java index dc22b20..7117fd1 100644 --- a/common/MysticWorld/Util/Localizations.java +++ b/common/MysticWorld/Util/Localizations.java @@ -22,6 +22,7 @@ import cpw.mods.fml.common.registry.LanguageRegistry; * repository, many thanks friend c: * */ +@Deprecated(/* replaced by vanilla */) public class Localizations { private Localizations() { } From 44285b2b6bc71e97fb1c23467e2c6cc32f4cb96c Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 14:00:47 +0200 Subject: [PATCH 03/59] Removed useless --- common/MysticOres/Util/Localizations.java | 1 + common/MysticOres/Util/RecipeManager.java | 2 +- common/MysticWorld/Lib/BlockIds.java | 62 +++++++---------------- 3 files changed, 19 insertions(+), 46 deletions(-) diff --git a/common/MysticOres/Util/Localizations.java b/common/MysticOres/Util/Localizations.java index c60e3c6..9a1b326 100644 --- a/common/MysticOres/Util/Localizations.java +++ b/common/MysticOres/Util/Localizations.java @@ -22,6 +22,7 @@ import cpw.mods.fml.common.registry.LanguageRegistry; * repository, many thanks friend c: * */ +@Deprecated(/* replaced by vanilla */) public class Localizations { private Localizations() { } diff --git a/common/MysticOres/Util/RecipeManager.java b/common/MysticOres/Util/RecipeManager.java index 89c4448..ee5db71 100644 --- a/common/MysticOres/Util/RecipeManager.java +++ b/common/MysticOres/Util/RecipeManager.java @@ -105,6 +105,6 @@ public class RecipeManager { ToolRecipes.AdvancedShovelRecipe(Items.BloodstoneShovel, OreDictManager.ORES[7]); ToolRecipes.AdvancedAxeRecipe(Items.BloodstoneAxe, OreDictManager.ORES[7]); ToolRecipes.AdvancedHoeRecipe(Items.BloodstoneHoe, OreDictManager.ORES[7]); - GameRegistry.addRecipe(new ItemStack(Items.Satchel, 1), "#$#", "$%$", "#$#", '#', Item.silk, '$', OreDictManager.INGOTS[9], '%', Block.enderChest); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Satchel, 1), "#$#", "$%$", "#$#", '#', Item.silk, '$', OreDictManager.INGOTS[9], '%', Block.enderChest)); } } diff --git a/common/MysticWorld/Lib/BlockIds.java b/common/MysticWorld/Lib/BlockIds.java index e2b223f..76b3432 100644 --- a/common/MysticWorld/Lib/BlockIds.java +++ b/common/MysticWorld/Lib/BlockIds.java @@ -1,49 +1,21 @@ package mysticworld.lib; public class BlockIds { - - //Default Block IDs - public static int ORE_STONE_1_DEFAULT = 600; - - public static int BUSH_DEFAULT = 601; - public static int POISON_BUSH_DEFAULT = 602; - public static int WEAKNESS_BUSH_DEFAULT = 603; - public static int SLOWNESS_BUSH_DEFAULT = 604; - public static int HARMING_BUSH_DEFAULT = 605; - public static int WITHER_BUSH_DEFAULT = 606; - public static int HEALTH_BUSH_DEFAULT = 607; - public static int SPEED_BUSH_DEFAULT = 608; - public static int FIRE_RESISTANCE_BUSH_DEFAULT = 609; - public static int REGEN_BUSH_DEFAULT = 610; - public static int NIGHT_VISION_BUSH_DEFAULT = 611; - public static int INVISIBILITY_BUSH_DEFAULT = 612; - - public static int LIGHT_CUBE_DEFAULT = 613; - - public static int PLATFORM_DEFAULT = 614; - public static int PILLAR_DEFAULT = 615; - public static int PILLAR_INSERT_DEFAULT = 616; - - //Current Block IDs - public static int ORE_STONE_1; - - public static int BUSH; - public static int POISON_BUSH; - public static int WEAKNESS_BUSH; - public static int SLOWNESS_BUSH; - public static int HARMING_BUSH; - public static int WITHER_BUSH; - public static int HEALTH_BUSH; - public static int SPEED_BUSH; - public static int FIRE_RESISTANCE_BUSH; - public static int REGEN_BUSH; - public static int NIGHT_VISION_BUSH; - public static int INVISIBILITY_BUSH; - - public static int LIGHT_CUBE; - - public static int PLATFORM; - public static int PILLAR; - public static int PILLAR_INSERT; - + public static int ORE_STONE_1 = 600; + public static int BUSH = 601; + public static int POISON_BUSH = 602; + public static int WEAKNESS_BUSH = 603; + public static int SLOWNESS_BUSH = 604; + public static int HARMING_BUSH = 605; + public static int WITHER_BUSH = 606; + public static int HEALTH_BUSH = 607; + public static int SPEED_BUSH = 608; + public static int FIRE_RESISTANCE_BUSH = 609; + public static int REGEN_BUSH = 610; + public static int NIGHT_VISION_BUSH = 611; + public static int INVISIBILITY_BUSH = 612; + public static int LIGHT_CUBE = 613; + public static int PLATFORM = 614; + public static int PILLAR = 615; + public static int PILLAR_INSERT = 616; } From b3cc647c29b31c9a10d73e61d884008c279dc00b Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 14:01:06 +0200 Subject: [PATCH 04/59] Removed useless --- common/MysticWorld/Lib/ItemIds.java | 117 ++++++++-------------------- common/MysticWorld/Util/Config.java | 86 ++++++++++---------- 2 files changed, 74 insertions(+), 129 deletions(-) diff --git a/common/MysticWorld/Lib/ItemIds.java b/common/MysticWorld/Lib/ItemIds.java index 467b451..1a99d9b 100644 --- a/common/MysticWorld/Lib/ItemIds.java +++ b/common/MysticWorld/Lib/ItemIds.java @@ -1,90 +1,35 @@ package mysticworld.lib; public class ItemIds { - - //Default Item IDs - public static int STAFF_PARTS_DEFAULT = 5503; - - public static int IMBUED_SHARD_DEFAULT = 5504; - - public static int FIRE_STAFF_DEFAULT = 5505; - public static int WATER_STAFF_DEFAULT = 5506; - public static int EARTH_STAFF_DEFAULT = 5507; - public static int AIR_STAFF_DEFAULT = 5508; - public static int ENERGY_STAFF_DEFAULT = 5509; - - public static int STAFF_POWER_DEFAULT = 5510; - - public static int BUSH_FRUIT_DEFAULT = 5511; - - public static int VERDITE_HELMET_DEFAULT = 5512; - public static int VERDITE_CHESTPLATE_DEFAULT = 5513; - public static int VERDITE_LEGGINGS_DEFAULT = 5514; - public static int VERDITE_BOOTS_DEFAULT = 5515; - - public static int MITHRIL_HELMET_DEFAULT = 5516; - public static int MITHRIL_CHESTPLATE_DEFAULT = 5517; - public static int MITHRIL_LEGGINGS_DEFAULT = 5518; - public static int MITHRIL_BOOTS_DEFAULT = 5519; - - public static int ADAMANTINE_HELMET_DEFAULT = 5520; - public static int ADAMANTINE_CHESTPLATE_DEFAULT = 5521; - public static int ADAMANTINE_LEGGINGS_DEFAULT = 5522; - public static int ADAMANTINE_BOOTS_DEFAULT = 5523; - - public static int IRIDIUM_HELMET_DEFAULT = 5524; - public static int IRIDIUM_CHESTPLATE_DEFAULT = 5525; - public static int IRIDIUM_LEGGINGS_DEFAULT = 5526; - public static int IRIDIUM_BOOTS_DEFAULT = 5527; - - public static int FIRE_ORB_DEFAULT = 5528; - public static int WATER_ORB_DEFAULT = 5529; - public static int EARTH_ORB_DEFAULT = 5530; - public static int AIR_ORB_DEFAULT = 5531; - public static int ENERGY_ORB_DEFAULT = 5532; - - public static int VOID_SHARD_DEFAULT = 5533; - - //Current Item IDs - public static int STAFF_PARTS; - - public static int IMBUED_SHARD; - - public static int FIRE_STAFF; - public static int WATER_STAFF; - public static int EARTH_STAFF; - public static int AIR_STAFF; - public static int ENERGY_STAFF; - - public static int STAFF_POWER; - - public static int BUSH_FRUIT; - - public static int VERDITE_HELMET; - public static int VERDITE_CHESTPLATE; - public static int VERDITE_LEGGINGS; - public static int VERDITE_BOOTS; - - public static int MITHRIL_HELMET; - public static int MITHRIL_CHESTPLATE; - public static int MITHRIL_LEGGINGS; - public static int MITHRIL_BOOTS; - - public static int ADAMANTINE_HELMET; - public static int ADAMANTINE_CHESTPLATE; - public static int ADAMANTINE_LEGGINGS; - public static int ADAMANTINE_BOOTS; - - public static int IRIDIUM_HELMET; - public static int IRIDIUM_CHESTPLATE; - public static int IRIDIUM_LEGGINGS; - public static int IRIDIUM_BOOTS; - - public static int FIRE_ORB; - public static int WATER_ORB; - public static int EARTH_ORB; - public static int AIR_ORB; - public static int ENERGY_ORB; - - public static int VOID_SHARD; + public static int STAFF_PARTS = 5503; + public static int IMBUED_SHARD = 5504; + public static int FIRE_STAFF = 5505; + public static int WATER_STAFF = 5506; + public static int EARTH_STAFF = 5507; + public static int AIR_STAFF = 5508; + public static int ENERGY_STAFF = 5509; + public static int STAFF_POWER = 5510; + public static int BUSH_FRUIT = 5511; + public static int VERDITE_HELMET = 5512; + public static int VERDITE_CHESTPLATE = 5513; + public static int VERDITE_LEGGINGS = 5514; + public static int VERDITE_BOOTS = 5515; + public static int MITHRIL_HELMET = 5516; + public static int MITHRIL_CHESTPLATE = 5517; + public static int MITHRIL_LEGGINGS = 5518; + public static int MITHRIL_BOOTS = 5519; + public static int ADAMANTINE_HELMET = 5520; + public static int ADAMANTINE_CHESTPLATE = 5521; + public static int ADAMANTINE_LEGGINGS = 5522; + public static int ADAMANTINE_BOOTS = 5523; + public static int IRIDIUM_HELMET = 5524; + public static int IRIDIUM_CHESTPLATE = 5525; + public static int IRIDIUM_LEGGINGS = 5526; + public static int IRIDIUM_BOOTS = 5527; + public static int FIRE_ORB = 5528; + public static int WATER_ORB = 5529; + public static int EARTH_ORB = 5530; + public static int AIR_ORB = 5531; + public static int ENERGY_ORB = 5532; + public static int VOID_SHARD = 5533; } diff --git a/common/MysticWorld/Util/Config.java b/common/MysticWorld/Util/Config.java index be78ca3..e3c782b 100644 --- a/common/MysticWorld/Util/Config.java +++ b/common/MysticWorld/Util/Config.java @@ -14,51 +14,51 @@ public class Config { public static void initialize(File file) { config = new Configuration(file); //Boolean Configurations - Booleans.ENABLE_BUSH_GEN = config.get("World Generation", "Enable Bush Generation", true).getBoolean(Booleans.ENABLE_BUSH_GEN); - Booleans.ENABLE_GLACIER_GEN = config.get("World Generation", "Enable Glacier Biome", true).getBoolean(Booleans.ENABLE_GLACIER_GEN); - Booleans.ENABLE_JUNGLE_REWRITE = config.get("World Generation", "Enable Vanilla Jungle Biome Modification", true).getBoolean(Booleans.ENABLE_JUNGLE_REWRITE); - Booleans.ENABLE_MOUNTAIN_GEN = config.get("World Generation", "Enable Mountain Biome", true).getBoolean(Booleans.ENABLE_MOUNTAIN_GEN); - Booleans.ENABLE_STEPPE_GEN = config.get("World Generation", "Enable Steppe Biome", true).getBoolean(Booleans.ENABLE_STEPPE_GEN); - Booleans.ENABLE_TUNDRA_GEN = config.get("World Generation", "Enable Tundra Biome", true).getBoolean(Booleans.ENABLE_TUNDRA_GEN); + Booleans.ENABLE_BUSH_GEN = config.get("World Generation", "Enable Bush Generation", true).getBoolean(true); + Booleans.ENABLE_GLACIER_GEN = config.get("World Generation", "Enable Glacier Biome", true).getBoolean(true); + Booleans.ENABLE_JUNGLE_REWRITE = config.get("World Generation", "Enable Vanilla Jungle Biome Modification", true).getBoolean(true); + Booleans.ENABLE_MOUNTAIN_GEN = config.get("World Generation", "Enable Mountain Biome", true).getBoolean(true); + Booleans.ENABLE_STEPPE_GEN = config.get("World Generation", "Enable Steppe Biome", true).getBoolean(true); + Booleans.ENABLE_TUNDRA_GEN = config.get("World Generation", "Enable Tundra Biome", true).getBoolean(true); //Block Configuration - BlockIds.ORE_STONE_1 = config.getBlock(Strings.IMBUED_STONE_NAME, BlockIds.ORE_STONE_1_DEFAULT).getInt(BlockIds.ORE_STONE_1); - BlockIds.BUSH = config.getBlock(Strings.BUSH_NAME, BlockIds.BUSH_DEFAULT).getInt(BlockIds.BUSH_DEFAULT); - BlockIds.LIGHT_CUBE = config.getBlock(Strings.LIGHT_CUBE_NAME, BlockIds.LIGHT_CUBE_DEFAULT).getInt(BlockIds.LIGHT_CUBE_DEFAULT); - BlockIds.PLATFORM = config.getBlock(Strings.PLATFORM_NAME, BlockIds.PLATFORM_DEFAULT).getInt(BlockIds.PLATFORM_DEFAULT); - BlockIds.PILLAR = config.getBlock(Strings.PILLAR_NAME, BlockIds.PILLAR_DEFAULT).getInt(BlockIds.PILLAR_DEFAULT); - BlockIds.PILLAR_INSERT = config.getBlock(Strings.PILLAR_INSERT_NAME, BlockIds.PILLAR_INSERT_DEFAULT).getInt(BlockIds.PILLAR_INSERT_DEFAULT); + BlockIds.ORE_STONE_1 = config.getBlock(Strings.IMBUED_STONE_NAME, BlockIds.ORE_STONE_1).getInt(BlockIds.ORE_STONE_1); + BlockIds.BUSH = config.getBlock(Strings.BUSH_NAME, BlockIds.BUSH).getInt(BlockIds.BUSH); + BlockIds.LIGHT_CUBE = config.getBlock(Strings.LIGHT_CUBE_NAME, BlockIds.LIGHT_CUBE).getInt(BlockIds.LIGHT_CUBE); + BlockIds.PLATFORM = config.getBlock(Strings.PLATFORM_NAME, BlockIds.PLATFORM).getInt(BlockIds.PLATFORM); + BlockIds.PILLAR = config.getBlock(Strings.PILLAR_NAME, BlockIds.PILLAR).getInt(BlockIds.PILLAR); + BlockIds.PILLAR_INSERT = config.getBlock(Strings.PILLAR_INSERT_NAME, BlockIds.PILLAR_INSERT).getInt(BlockIds.PILLAR_INSERT); //Item Configuration - ItemIds.IMBUED_SHARD = config.getItem(Strings.IMBUED_SHARD_NAME, ItemIds.IMBUED_SHARD_DEFAULT).getInt(ItemIds.IMBUED_SHARD_DEFAULT); - ItemIds.STAFF_PARTS = config.getItem(Strings.STAFF_NAME, ItemIds.STAFF_PARTS_DEFAULT).getInt(ItemIds.STAFF_PARTS_DEFAULT); - ItemIds.FIRE_STAFF = config.getItem(Strings.FIRE_STAFF_NAME, ItemIds.FIRE_STAFF_DEFAULT).getInt(ItemIds.FIRE_STAFF_DEFAULT); - ItemIds.WATER_STAFF = config.getItem(Strings.WATER_STAFF_NAME, ItemIds.WATER_STAFF_DEFAULT).getInt(ItemIds.WATER_STAFF_DEFAULT); - ItemIds.EARTH_STAFF = config.getItem(Strings.EARTH_STAFF_NAME, ItemIds.EARTH_STAFF_DEFAULT).getInt(ItemIds.EARTH_STAFF_DEFAULT); - ItemIds.AIR_STAFF = config.getItem(Strings.AIR_STAFF_NAME, ItemIds.AIR_STAFF_DEFAULT).getInt(ItemIds.AIR_STAFF_DEFAULT); - ItemIds.ENERGY_STAFF = config.getItem(Strings.ENERGY_STAFF_NAME, ItemIds.ENERGY_STAFF_DEFAULT).getInt(ItemIds.ENERGY_STAFF_DEFAULT); - ItemIds.STAFF_POWER = config.getItem(Strings.POWER_STAFF_NAME, ItemIds.STAFF_POWER_DEFAULT).getInt(ItemIds.STAFF_POWER_DEFAULT); - ItemIds.BUSH_FRUIT = config.getItem(Strings.BUSH_FRUIT_NAME, ItemIds.BUSH_FRUIT_DEFAULT).getInt(ItemIds.BUSH_FRUIT_DEFAULT); - ItemIds.VERDITE_HELMET = config.getItem(Strings.VERDITE_HELMET_NAME, ItemIds.VERDITE_HELMET_DEFAULT).getInt(ItemIds.VERDITE_HELMET_DEFAULT); - ItemIds.VERDITE_CHESTPLATE = config.getItem(Strings.VERDITE_CHESTPLATE_NAME, ItemIds.VERDITE_CHESTPLATE_DEFAULT).getInt(ItemIds.VERDITE_CHESTPLATE_DEFAULT); - ItemIds.VERDITE_LEGGINGS = config.getItem(Strings.VERDITE_LEGGINGS_NAME, ItemIds.VERDITE_LEGGINGS_DEFAULT).getInt(ItemIds.VERDITE_LEGGINGS_DEFAULT); - ItemIds.VERDITE_BOOTS = config.getItem(Strings.VERDITE_BOOTS_NAME, ItemIds.VERDITE_BOOTS_DEFAULT).getInt(ItemIds.VERDITE_BOOTS_DEFAULT); - ItemIds.MITHRIL_HELMET = config.getItem(Strings.MITHRIL_HELMET_NAME, ItemIds.MITHRIL_HELMET_DEFAULT).getInt(ItemIds.MITHRIL_HELMET_DEFAULT); - ItemIds.MITHRIL_CHESTPLATE = config.getItem(Strings.MITHRIL_CHESTPLATE_NAME, ItemIds.MITHRIL_CHESTPLATE_DEFAULT).getInt(ItemIds.MITHRIL_CHESTPLATE_DEFAULT); - ItemIds.MITHRIL_LEGGINGS = config.getItem(Strings.MITHRIL_LEGGINGS_NAME, ItemIds.MITHRIL_LEGGINGS_DEFAULT).getInt(ItemIds.MITHRIL_LEGGINGS_DEFAULT); - ItemIds.MITHRIL_BOOTS = config.getItem(Strings.MITHRIL_BOOTS_NAME, ItemIds.MITHRIL_BOOTS_DEFAULT).getInt(ItemIds.MITHRIL_BOOTS_DEFAULT); - ItemIds.ADAMANTINE_HELMET = config.getItem(Strings.ADAMANTINE_HELMET_NAME, ItemIds.ADAMANTINE_HELMET_DEFAULT).getInt(ItemIds.ADAMANTINE_HELMET_DEFAULT); - ItemIds.ADAMANTINE_CHESTPLATE = config.getItem(Strings.ADAMANTINE_CHESTPLATE_NAME, ItemIds.ADAMANTINE_CHESTPLATE_DEFAULT).getInt(ItemIds.ADAMANTINE_CHESTPLATE_DEFAULT); - ItemIds.ADAMANTINE_LEGGINGS = config.getItem(Strings.ADAMANTINE_LEGGINGS_NAME, ItemIds.ADAMANTINE_LEGGINGS_DEFAULT).getInt(ItemIds.ADAMANTINE_LEGGINGS_DEFAULT); - ItemIds.ADAMANTINE_BOOTS = config.getItem(Strings.ADAMANTINE_BOOTS_NAME, ItemIds.ADAMANTINE_BOOTS_DEFAULT).getInt(ItemIds.ADAMANTINE_BOOTS_DEFAULT); - ItemIds.IRIDIUM_HELMET = config.getItem(Strings.IRIDIUM_HELMET_NAME, ItemIds.IRIDIUM_HELMET_DEFAULT).getInt(ItemIds.IRIDIUM_HELMET_DEFAULT); - ItemIds.IRIDIUM_CHESTPLATE = config.getItem(Strings.IRIDIUM_CHESTPLATE_NAME, ItemIds.IRIDIUM_CHESTPLATE_DEFAULT).getInt(ItemIds.IRIDIUM_CHESTPLATE_DEFAULT); - ItemIds.IRIDIUM_LEGGINGS = config.getItem(Strings.IRIDIUM_LEGGINGS_NAME, ItemIds.IRIDIUM_LEGGINGS_DEFAULT).getInt(ItemIds.IRIDIUM_LEGGINGS_DEFAULT); - ItemIds.IRIDIUM_BOOTS = config.getItem(Strings.IRIDIUM_BOOTS_NAME, ItemIds.IRIDIUM_BOOTS_DEFAULT).getInt(ItemIds.IRIDIUM_BOOTS_DEFAULT); - ItemIds.FIRE_ORB = config.getItem(Strings.FIRE_ORB_NAME, ItemIds.FIRE_ORB_DEFAULT).getInt(ItemIds.FIRE_ORB_DEFAULT); - ItemIds.WATER_ORB = config.getItem(Strings.WATER_ORB_NAME, ItemIds.WATER_ORB_DEFAULT).getInt(ItemIds.WATER_ORB_DEFAULT); - ItemIds.EARTH_ORB = config.getItem(Strings.EARTH_ORB_NAME, ItemIds.EARTH_ORB_DEFAULT).getInt(ItemIds.EARTH_ORB_DEFAULT); - ItemIds.AIR_ORB = config.getItem(Strings.AIR_ORB_NAME, ItemIds.AIR_ORB_DEFAULT).getInt(ItemIds.AIR_ORB_DEFAULT); - ItemIds.ENERGY_ORB = config.getItem(Strings.ENERGY_ORB_NAME, ItemIds.ENERGY_ORB_DEFAULT).getInt(ItemIds.ENERGY_ORB_DEFAULT); - ItemIds.VOID_SHARD = config.getItem(Strings.VOID_SHARD_NAME, ItemIds.VOID_SHARD_DEFAULT).getInt(ItemIds.VOID_SHARD_DEFAULT); + ItemIds.IMBUED_SHARD = config.getItem(Strings.IMBUED_SHARD_NAME, ItemIds.IMBUED_SHARD).getInt(ItemIds.IMBUED_SHARD); + ItemIds.STAFF_PARTS = config.getItem(Strings.STAFF_NAME, ItemIds.STAFF_PARTS).getInt(ItemIds.STAFF_PARTS); + ItemIds.FIRE_STAFF = config.getItem(Strings.FIRE_STAFF_NAME, ItemIds.FIRE_STAFF).getInt(ItemIds.FIRE_STAFF); + ItemIds.WATER_STAFF = config.getItem(Strings.WATER_STAFF_NAME, ItemIds.WATER_STAFF).getInt(ItemIds.WATER_STAFF); + ItemIds.EARTH_STAFF = config.getItem(Strings.EARTH_STAFF_NAME, ItemIds.EARTH_STAFF).getInt(ItemIds.EARTH_STAFF); + ItemIds.AIR_STAFF = config.getItem(Strings.AIR_STAFF_NAME, ItemIds.AIR_STAFF).getInt(ItemIds.AIR_STAFF); + ItemIds.ENERGY_STAFF = config.getItem(Strings.ENERGY_STAFF_NAME, ItemIds.ENERGY_STAFF).getInt(ItemIds.ENERGY_STAFF); + ItemIds.STAFF_POWER = config.getItem(Strings.POWER_STAFF_NAME, ItemIds.STAFF_POWER).getInt(ItemIds.STAFF_POWER); + ItemIds.BUSH_FRUIT = config.getItem(Strings.BUSH_FRUIT_NAME, ItemIds.BUSH_FRUIT).getInt(ItemIds.BUSH_FRUIT); + ItemIds.VERDITE_HELMET = config.getItem(Strings.VERDITE_HELMET_NAME, ItemIds.VERDITE_HELMET).getInt(ItemIds.VERDITE_HELMET); + ItemIds.VERDITE_CHESTPLATE = config.getItem(Strings.VERDITE_CHESTPLATE_NAME, ItemIds.VERDITE_CHESTPLATE).getInt(ItemIds.VERDITE_CHESTPLATE); + ItemIds.VERDITE_LEGGINGS = config.getItem(Strings.VERDITE_LEGGINGS_NAME, ItemIds.VERDITE_LEGGINGS).getInt(ItemIds.VERDITE_LEGGINGS); + ItemIds.VERDITE_BOOTS = config.getItem(Strings.VERDITE_BOOTS_NAME, ItemIds.VERDITE_BOOTS).getInt(ItemIds.VERDITE_BOOTS); + ItemIds.MITHRIL_HELMET = config.getItem(Strings.MITHRIL_HELMET_NAME, ItemIds.MITHRIL_HELMET).getInt(ItemIds.MITHRIL_HELMET); + ItemIds.MITHRIL_CHESTPLATE = config.getItem(Strings.MITHRIL_CHESTPLATE_NAME, ItemIds.MITHRIL_CHESTPLATE).getInt(ItemIds.MITHRIL_CHESTPLATE); + ItemIds.MITHRIL_LEGGINGS = config.getItem(Strings.MITHRIL_LEGGINGS_NAME, ItemIds.MITHRIL_LEGGINGS).getInt(ItemIds.MITHRIL_LEGGINGS); + ItemIds.MITHRIL_BOOTS = config.getItem(Strings.MITHRIL_BOOTS_NAME, ItemIds.MITHRIL_BOOTS).getInt(ItemIds.MITHRIL_BOOTS); + ItemIds.ADAMANTINE_HELMET = config.getItem(Strings.ADAMANTINE_HELMET_NAME, ItemIds.ADAMANTINE_HELMET).getInt(ItemIds.ADAMANTINE_HELMET); + ItemIds.ADAMANTINE_CHESTPLATE = config.getItem(Strings.ADAMANTINE_CHESTPLATE_NAME, ItemIds.ADAMANTINE_CHESTPLATE).getInt(ItemIds.ADAMANTINE_CHESTPLATE); + ItemIds.ADAMANTINE_LEGGINGS = config.getItem(Strings.ADAMANTINE_LEGGINGS_NAME, ItemIds.ADAMANTINE_LEGGINGS).getInt(ItemIds.ADAMANTINE_LEGGINGS); + ItemIds.ADAMANTINE_BOOTS = config.getItem(Strings.ADAMANTINE_BOOTS_NAME, ItemIds.ADAMANTINE_BOOTS).getInt(ItemIds.ADAMANTINE_BOOTS); + ItemIds.IRIDIUM_HELMET = config.getItem(Strings.IRIDIUM_HELMET_NAME, ItemIds.IRIDIUM_HELMET).getInt(ItemIds.IRIDIUM_HELMET); + ItemIds.IRIDIUM_CHESTPLATE = config.getItem(Strings.IRIDIUM_CHESTPLATE_NAME, ItemIds.IRIDIUM_CHESTPLATE).getInt(ItemIds.IRIDIUM_CHESTPLATE); + ItemIds.IRIDIUM_LEGGINGS = config.getItem(Strings.IRIDIUM_LEGGINGS_NAME, ItemIds.IRIDIUM_LEGGINGS).getInt(ItemIds.IRIDIUM_LEGGINGS); + ItemIds.IRIDIUM_BOOTS = config.getItem(Strings.IRIDIUM_BOOTS_NAME, ItemIds.IRIDIUM_BOOTS).getInt(ItemIds.IRIDIUM_BOOTS); + ItemIds.FIRE_ORB = config.getItem(Strings.FIRE_ORB_NAME, ItemIds.FIRE_ORB).getInt(ItemIds.FIRE_ORB); + ItemIds.WATER_ORB = config.getItem(Strings.WATER_ORB_NAME, ItemIds.WATER_ORB).getInt(ItemIds.WATER_ORB); + ItemIds.EARTH_ORB = config.getItem(Strings.EARTH_ORB_NAME, ItemIds.EARTH_ORB).getInt(ItemIds.EARTH_ORB); + ItemIds.AIR_ORB = config.getItem(Strings.AIR_ORB_NAME, ItemIds.AIR_ORB).getInt(ItemIds.AIR_ORB); + ItemIds.ENERGY_ORB = config.getItem(Strings.ENERGY_ORB_NAME, ItemIds.ENERGY_ORB).getInt(ItemIds.ENERGY_ORB); + ItemIds.VOID_SHARD = config.getItem(Strings.VOID_SHARD_NAME, ItemIds.VOID_SHARD).getInt(ItemIds.VOID_SHARD); config.save(); } } \ No newline at end of file From 527d71363341068da31ea399d1cab050a58c494b Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 14:01:19 +0200 Subject: [PATCH 05/59] Fixed naming --- common/MysticStones/Blocks/BlockReinforced.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/MysticStones/Blocks/BlockReinforced.java b/common/MysticStones/Blocks/BlockReinforced.java index 3ae80e3..94f0800 100644 --- a/common/MysticStones/Blocks/BlockReinforced.java +++ b/common/MysticStones/Blocks/BlockReinforced.java @@ -27,7 +27,7 @@ public class BlockReinforced extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemReinforced.BRICK_TYPE.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemReinforced.BRICK_TYPE[i] + " Bricks"); + textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemReinforced.BRICK_TYPE[i]); } } } From 90ec2cb342d9afa6b6fd66fbb663161ca24c44ba Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 14:01:28 +0200 Subject: [PATCH 06/59] Improved bush code --- common/MysticWorld/Blocks/BlockBush.java | 80 ++++-------------------- 1 file changed, 12 insertions(+), 68 deletions(-) diff --git a/common/MysticWorld/Blocks/BlockBush.java b/common/MysticWorld/Blocks/BlockBush.java index 6762982..7a5d89e 100644 --- a/common/MysticWorld/Blocks/BlockBush.java +++ b/common/MysticWorld/Blocks/BlockBush.java @@ -6,23 +6,22 @@ import java.util.Random; import mysticworld.MysticWorld; import mysticworld.items.ItemHandler; import net.minecraft.block.Block; +import net.minecraft.block.BlockFlower; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; +import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.Icon; import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerGrass; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.EnumPlantType; -import net.minecraftforge.common.ForgeDirection; -import net.minecraftforge.common.IPlantable; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -public class BlockBush extends Block implements IPlantable { +public class BlockBush extends BlockFlower { Icon[] textures; public BlockBush(int id) { @@ -34,19 +33,6 @@ public class BlockBush extends Block implements IPlantable { setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F); } - @Override - public boolean canBlockStay(World par1World, int par2, int par3, int par4) { - Block soil = blocksList[par1World.getBlockId(par2, par3 - 1, par4)]; - return (par1World.getFullBlockLightValue(par2, par3, par4) >= 8 || par1World.canBlockSeeTheSky(par2, par3, par4)) - && (soil != null && soil.canSustainPlant(par1World, par2, par3 - 1, par4, ForgeDirection.UP, this)); - } - - //Plant Specific Stuff - @Override - public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4) { - return super.canPlaceBlockAt(par1World, par2, par3, par4) && canBlockStay(par1World, par2, par3, par4); - } - @Override @SideOnly(Side.CLIENT) public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) { @@ -68,26 +54,16 @@ public class BlockBush extends Block implements IPlantable { } @Override - public int getDamageValue(World par1World, int par2, int par3, int par4) { - return par1World.getBlockMetadata(par2, par3, par4); + public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4) { + return AxisAlignedBB.getAABBPool().getAABB(par2 + this.minX, par3 + this.minY, par4 + this.minZ, par2 + this.maxX, par3 + this.maxY, par4 + this.maxZ); } - //Sprite Inits @Override + @SideOnly(Side.CLIENT) public Icon getIcon(int side, int meta) { return textures[meta]; } - @Override - public int getPlantID(World world, int x, int y, int z) { - return 0; - } - - @Override - public int getPlantMetadata(World world, int x, int y, int z) { - return 0; - } - @Override public EnumPlantType getPlantType(World world, int x, int y, int z) { return EnumPlantType.Plains; @@ -100,39 +76,23 @@ public class BlockBush extends Block implements IPlantable { } @Override + public int getRenderType() { + return 0; + } + + @Override + @SideOnly(Side.CLIENT) public void getSubBlocks(int i, CreativeTabs tab, List list) { for (int j = 0; j < 12; j++) { list.add(new ItemStack(i, 1, j)); } } - @Override - public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6) { - super.harvestBlock(par1World, par2EntityPlayer, par3, par4, par5, par6); - } - @Override public int idDropped(int par1, Random par2Random, int par3) { return ItemHandler.bushFruit.itemID; } - @Override - public int idPicked(World par1World, int par2, int par3, int par4) { - return blockID; - } - - @Override - public boolean isOpaqueCube() { - return false; - } - - @Override - public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { - super.onNeighborBlockChange(par1World, par2, par3, par4, par5); - this.checkBushChange(par1World, par2, par3, par4); - } - - //Meta Inits @Override public int quantityDroppedWithBonus(int par1, Random par2Random) { return 1 + par2Random.nextInt(par1 * 2 + 1); @@ -148,23 +108,7 @@ public class BlockBush extends Block implements IPlantable { } @Override - public boolean renderAsNormalBlock() { - return false; - } - - @Override - public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) { - this.checkBushChange(par1World, par2, par3, par4); - } - protected boolean canThisPlantGrowOnThisBlockID(int par1) { return par1 == Block.grass.blockID || par1 == Block.dirt.blockID; } - - protected final void checkBushChange(World par1World, int par2, int par3, int par4) { - if (!this.canBlockStay(par1World, par2, par3, par4)) { - this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0); - par1World.setBlockToAir(par2, par3, par4); - } - } } From 11d127d26617ce9e54a6641f448d9a22c1a0246b Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 23:18:36 +0200 Subject: [PATCH 07/59] Reorganized biomes --- common/MysticWorld/Biome/BiomeGenBasic.java | 24 ++++---- common/MysticWorld/Biome/BiomeGenGlacier.java | 29 ++-------- common/MysticWorld/Biome/BiomeGenJungle.java | 58 +++---------------- .../MysticWorld/Biome/BiomeGenMountain.java | 23 -------- common/MysticWorld/Biome/BiomeGenTundra.java | 23 ++------ common/MysticWorld/Biome/BiomeHandler.java | 3 +- 6 files changed, 30 insertions(+), 130 deletions(-) delete mode 100644 common/MysticWorld/Biome/BiomeGenMountain.java diff --git a/common/MysticWorld/Biome/BiomeGenBasic.java b/common/MysticWorld/Biome/BiomeGenBasic.java index 1498d6c..ebf150e 100644 --- a/common/MysticWorld/Biome/BiomeGenBasic.java +++ b/common/MysticWorld/Biome/BiomeGenBasic.java @@ -1,25 +1,25 @@ package mysticworld.biome; -import java.util.Random; - -import net.minecraft.entity.monster.EntityCreeper; -import net.minecraft.entity.monster.EntityGhast; -import net.minecraft.entity.monster.EntityGiantZombie; import net.minecraft.world.biome.BiomeGenBase; -import net.minecraft.world.biome.SpawnListEntry; -import net.minecraft.world.gen.feature.WorldGenerator; public class BiomeGenBasic extends BiomeGenBase { - - public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) { + public BiomeGenBasic(int id, int blockTop, int blockFiller) { super(id); this.topBlock = (byte) blockTop; this.fillerBlock = (byte) blockFiller; + } + + public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk) { + super(id); this.theBiomeDecorator.treesPerChunk = treesChunk; this.theBiomeDecorator.grassPerChunk = grassChunk; this.theBiomeDecorator.flowersPerChunk = flowerChunk; - this.theBiomeDecorator.reedsPerChunk = reedsChunk;; + this.theBiomeDecorator.reedsPerChunk = reedsChunk; } - -} + public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) { + this(id, treesChunk, grassChunk, flowerChunk, reedsChunk); + this.topBlock = (byte) blockTop; + this.fillerBlock = (byte) blockFiller; + } +} diff --git a/common/MysticWorld/Biome/BiomeGenGlacier.java b/common/MysticWorld/Biome/BiomeGenGlacier.java index 50e406b..2e46237 100644 --- a/common/MysticWorld/Biome/BiomeGenGlacier.java +++ b/common/MysticWorld/Biome/BiomeGenGlacier.java @@ -1,29 +1,8 @@ package mysticworld.biome; -import java.util.Random; - -import net.minecraft.entity.monster.EntityCreeper; -import net.minecraft.entity.monster.EntityGhast; -import net.minecraft.entity.monster.EntityGiantZombie; -import net.minecraft.world.biome.BiomeGenBase; -import net.minecraft.world.biome.SpawnListEntry; -import net.minecraft.world.gen.feature.WorldGenerator; - -public class BiomeGenGlacier extends BiomeGenBase { - +public class BiomeGenGlacier extends BiomeGenTundra { public BiomeGenGlacier(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) { - super(id); - this.topBlock = (byte) blockTop; - this.fillerBlock = (byte) blockFiller; - this.theBiomeDecorator.treesPerChunk = treesChunk; - this.theBiomeDecorator.grassPerChunk = grassChunk; - this.theBiomeDecorator.flowersPerChunk = flowerChunk; - this.theBiomeDecorator.reedsPerChunk = reedsChunk;; - this.spawnableCreatureList.clear(); - this.spawnableMonsterList.clear(); - this.spawnableWaterCreatureList.clear(); - this.spawnableCreatureList.add(new SpawnListEntry(net.minecraft.entity.passive.EntityWolf.class, 5, 4, 4)); - this.waterColorMultiplier = 15397370; - } + super(id, treesChunk, grassChunk, flowerChunk, reedsChunk, blockTop, blockFiller); + this.waterColorMultiplier = 15397370; + } } - diff --git a/common/MysticWorld/Biome/BiomeGenJungle.java b/common/MysticWorld/Biome/BiomeGenJungle.java index 98a4025..c9f62dc 100644 --- a/common/MysticWorld/Biome/BiomeGenJungle.java +++ b/common/MysticWorld/Biome/BiomeGenJungle.java @@ -1,58 +1,18 @@ package mysticworld.biome; import java.util.Random; -import net.minecraft.block.Block; -import net.minecraft.entity.passive.EntityChicken; -import net.minecraft.entity.passive.EntityOcelot; -import net.minecraft.world.World; -import net.minecraft.world.biome.BiomeGenBase; -import net.minecraft.world.biome.SpawnListEntry; import net.minecraft.world.gen.feature.WorldGenHugeTrees; -import net.minecraft.world.gen.feature.WorldGenShrub; -import net.minecraft.world.gen.feature.WorldGenTallGrass; import net.minecraft.world.gen.feature.WorldGenTrees; -import net.minecraft.world.gen.feature.WorldGenVines; import net.minecraft.world.gen.feature.WorldGenerator; -public class BiomeGenJungle extends BiomeGenBase -{ - public BiomeGenJungle(int par1) - { - super(par1); - this.theBiomeDecorator.treesPerChunk = 50; - this.theBiomeDecorator.grassPerChunk = 25; - this.theBiomeDecorator.flowersPerChunk = 4; - this.spawnableMonsterList.add(new SpawnListEntry(EntityOcelot.class, 2, 1, 1)); - this.spawnableCreatureList.add(new SpawnListEntry(EntityChicken.class, 10, 4, 4)); - } +public class BiomeGenJungle extends net.minecraft.world.biome.BiomeGenJungle { + public BiomeGenJungle(int par1) { + super(par1); + } - /** - * Gets a WorldGen appropriate for this biome. - */ - public WorldGenerator getRandomWorldGenForTrees(Random par1Random) - { - return (WorldGenerator)(par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true))); - } - - /** - * Gets a WorldGen appropriate for this biome. - */ - public WorldGenerator getRandomWorldGenForGrass(Random par1Random) - { - return par1Random.nextInt(4) == 0 ? new WorldGenTallGrass(Block.tallGrass.blockID, 2) : new WorldGenTallGrass(Block.tallGrass.blockID, 1); - } - - public void decorate(World par1World, Random par2Random, int par3, int par4) - { - super.decorate(par1World, par2Random, par3, par4); - WorldGenVines worldgenvines = new WorldGenVines(); - - for (int k = 0; k < 50; ++k) - { - int l = par3 + par2Random.nextInt(16) + 8; - byte b0 = 64; - int i1 = par4 + par2Random.nextInt(16) + 8; - worldgenvines.generate(par1World, par2Random, l, b0, i1); - } - } + @Override + public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { + return par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, + 4 + par1Random.nextInt(7), 3, 3, true)); + } } diff --git a/common/MysticWorld/Biome/BiomeGenMountain.java b/common/MysticWorld/Biome/BiomeGenMountain.java deleted file mode 100644 index 0b97b09..0000000 --- a/common/MysticWorld/Biome/BiomeGenMountain.java +++ /dev/null @@ -1,23 +0,0 @@ -package mysticworld.biome; - -import java.util.Random; - -import net.minecraft.block.Block; -import net.minecraft.entity.monster.EntityCreeper; -import net.minecraft.entity.monster.EntityGhast; -import net.minecraft.entity.monster.EntityGiantZombie; -import net.minecraft.world.World; -import net.minecraft.world.biome.BiomeGenBase; -import net.minecraft.world.biome.SpawnListEntry; -import net.minecraft.world.gen.feature.WorldGenerator; - -public class BiomeGenMountain extends BiomeGenBase { - - public BiomeGenMountain(int id, int blockTop, int blockFiller) - { - super(id); - this.topBlock = (byte) blockTop; - this.fillerBlock = (byte) blockFiller; - } -} - diff --git a/common/MysticWorld/Biome/BiomeGenTundra.java b/common/MysticWorld/Biome/BiomeGenTundra.java index c25326a..746f303 100644 --- a/common/MysticWorld/Biome/BiomeGenTundra.java +++ b/common/MysticWorld/Biome/BiomeGenTundra.java @@ -1,28 +1,13 @@ package mysticworld.biome; -import java.util.Random; - -import net.minecraft.entity.monster.EntityCreeper; -import net.minecraft.entity.monster.EntityGhast; -import net.minecraft.entity.monster.EntityGiantZombie; -import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.SpawnListEntry; -import net.minecraft.world.gen.feature.WorldGenerator; -public class BiomeGenTundra extends BiomeGenBase { - +public class BiomeGenTundra extends BiomeGenBasic { public BiomeGenTundra(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) { - super(id); - this.topBlock = (byte) blockTop; - this.fillerBlock = (byte) blockFiller; - this.theBiomeDecorator.treesPerChunk = treesChunk; - this.theBiomeDecorator.grassPerChunk = grassChunk; - this.theBiomeDecorator.flowersPerChunk = flowerChunk; - this.theBiomeDecorator.reedsPerChunk = reedsChunk;; + super(id, treesChunk, grassChunk, flowerChunk, reedsChunk, blockTop, blockFiller); this.spawnableCreatureList.clear(); this.spawnableMonsterList.clear(); this.spawnableWaterCreatureList.clear(); - this.spawnableCreatureList.add(new SpawnListEntry(net.minecraft.entity.passive.EntityWolf.class, 5, 4, 4)); - } + this.spawnableCreatureList.add(new SpawnListEntry(net.minecraft.entity.passive.EntityWolf.class, 5, 4, 4)); + } } - diff --git a/common/MysticWorld/Biome/BiomeHandler.java b/common/MysticWorld/Biome/BiomeHandler.java index 9f245d7..ac316b9 100644 --- a/common/MysticWorld/Biome/BiomeHandler.java +++ b/common/MysticWorld/Biome/BiomeHandler.java @@ -19,7 +19,7 @@ public class BiomeHandler { } public static void initializeBiomes() { - Mountain = new BiomeGenMountain(23, Block.stone.blockID, Block.stone.blockID).setColor(9286496).setBiomeName("Mountain").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) + Mountain = new BiomeGenBasic(23, Block.stone.blockID, Block.stone.blockID).setColor(9286496).setBiomeName("Mountain").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) .setMinMaxHeight(0.5F, 1.0F); Tundra = new BiomeGenTundra(24, 0, 0, 0, 0, Block.blockSnow.blockID, Block.blockSnow.blockID).setColor(9286496).setBiomeName("Tundra").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) .setMinMaxHeight(0.8F, 0.4F); @@ -27,7 +27,6 @@ public class BiomeHandler { Glacier = new BiomeGenGlacier(26, 0, 0, 0, 0, Block.ice.blockID, Block.ice.blockID).setColor(9474208).setBiomeName("Glacier").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) .setMinMaxHeight(0.5F, 0.7F); Jungle = new BiomeGenJungle(27).setColor(5470985).setBiomeName("Jungle").func_76733_a(5470985).setTemperatureRainfall(1.2F, 0.9F).setMinMaxHeight(0.2F, 0.4F); - ; } public static void registerBiomes() { From 29c98b8fa4ad9a66ec5eaef65eb63fe1f2d0e434 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 23:20:10 +0200 Subject: [PATCH 08/59] Added config options for each stones rarity --- common/MysticStones/Util/Config.java | 23 ++++++++------- .../worldgen/WorldGeneratorStones.java | 28 +++++++++---------- 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/common/MysticStones/Util/Config.java b/common/MysticStones/Util/Config.java index 45210ed..2f3a306 100644 --- a/common/MysticStones/Util/Config.java +++ b/common/MysticStones/Util/Config.java @@ -7,21 +7,24 @@ import java.util.ArrayList; import net.minecraftforge.common.Configuration; public class Config { - public static int PlanksID; - public static int StonesID; - public static int StoneBricksID; - public static int ReinforcedBricksID; - public static int Rare; + public static final String[] keys = { "anorthosite", "limestone", "marble", "migmatite", "orthogneiss", "slate", "travertine" }; + public static int planksID; + public static int stonesID; + public static int stoneBricksID; + public static int reinforcedBricksID; + public static int[] rare = new int[keys.length]; public static List allowed = new ArrayList(); public static void initialize(File file) { Configuration config = new Configuration(file); config.load(); - PlanksID = config.getBlock("Plank IDs", 509).getInt(); - StonesID = config.getBlock("Stone IDs", 510).getInt(); - StoneBricksID = config.getBlock("Stone Brick IDs", 511).getInt(); - ReinforcedBricksID = config.getBlock("Reinforced Brick IDs", 512).getInt(); - Rare = config.get("Generation", "Rarity of Stones", 3).getInt(); + planksID = config.getBlock("Plank IDs", 509).getInt(); + stonesID = config.getBlock("Stone IDs", 510).getInt(); + stoneBricksID = config.getBlock("Stone Brick IDs", 511).getInt(); + reinforcedBricksID = config.getBlock("Reinforced Brick IDs", 512).getInt(); + for (int i = 0; i < rare.length; i++) { + rare[i] = config.get("Generation", "Rarity of " + keys[i], 3).getInt(); + } for (String id : config.get("Generation", "Allowed Dimension ID", "0,").getString().split(",")) { try { allowed.add(Integer.parseInt(id.trim())); diff --git a/common/mysticstones/worldgen/WorldGeneratorStones.java b/common/mysticstones/worldgen/WorldGeneratorStones.java index ed20924..e7ddd51 100644 --- a/common/mysticstones/worldgen/WorldGeneratorStones.java +++ b/common/mysticstones/worldgen/WorldGeneratorStones.java @@ -11,13 +11,13 @@ import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class WorldGeneratorStones implements IWorldGenerator { - public static final WorldGenMinable anorthosite = new WorldGenMinable(MysticStones.Stones.blockID, 0, 24, Block.stone.blockID); - public static final WorldGenMinable limestone = new WorldGenMinable(MysticStones.Stones.blockID, 2, 48, Block.stone.blockID); - public static final WorldGenMinable marble = new WorldGenMinable(MysticStones.Stones.blockID, 4, 24, Block.stone.blockID); - public static final WorldGenMinable migmatite = new WorldGenMinable(MysticStones.Stones.blockID, 6, 48, Block.stone.blockID); - public static final WorldGenMinable orthogneiss = new WorldGenMinable(MysticStones.Stones.blockID, 8, 48, Block.stone.blockID); - public static final WorldGenMinable slate = new WorldGenMinable(MysticStones.Stones.blockID, 10, 24, Block.stone.blockID); - public static final WorldGenMinable travertine = new WorldGenMinable(MysticStones.Stones.blockID, 12, 24, Block.stone.blockID); + public static final WorldGenMinable anorthosite = new WorldGenMinable(MysticStones.stones.blockID, 0, 24, Block.stone.blockID); + public static final WorldGenMinable limestone = new WorldGenMinable(MysticStones.stones.blockID, 2, 48, Block.stone.blockID); + public static final WorldGenMinable marble = new WorldGenMinable(MysticStones.stones.blockID, 4, 24, Block.stone.blockID); + public static final WorldGenMinable migmatite = new WorldGenMinable(MysticStones.stones.blockID, 6, 48, Block.stone.blockID); + public static final WorldGenMinable orthogneiss = new WorldGenMinable(MysticStones.stones.blockID, 8, 48, Block.stone.blockID); + public static final WorldGenMinable slate = new WorldGenMinable(MysticStones.stones.blockID, 10, 24, Block.stone.blockID); + public static final WorldGenMinable travertine = new WorldGenMinable(MysticStones.stones.blockID, 12, 24, Block.stone.blockID); @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { @@ -28,43 +28,43 @@ public class WorldGeneratorStones implements IWorldGenerator { private void generateSurface(World world, Random random, int blockX, int blockZ) { int Xcoord, Ycoord, Zcoord; - for (int i = 0; i < Config.Rare; i++) { + for (int i = 0; i < Config.rare[0]; i++) { Xcoord = blockX + random.nextInt(16); Ycoord = random.nextInt(40) + 20; Zcoord = blockZ + random.nextInt(16); anorthosite.generate(world, random, Xcoord, Ycoord, Zcoord); } - for (int i = 0; i < Config.Rare; i++) { + for (int i = 0; i < Config.rare[1]; i++) { Xcoord = blockX + random.nextInt(16); Ycoord = random.nextInt(40) + 20; Zcoord = blockZ + random.nextInt(16); limestone.generate(world, random, Xcoord, Ycoord, Zcoord); } - for (int i = 0; i < Config.Rare; i++) { + for (int i = 0; i < Config.rare[2]; i++) { Xcoord = blockX + random.nextInt(16); Ycoord = random.nextInt(40) + 20; Zcoord = blockZ + random.nextInt(16); marble.generate(world, random, Xcoord, Ycoord, Zcoord); } - for (int i = 0; i < Config.Rare; i++) { + for (int i = 0; i < Config.rare[3]; i++) { Xcoord = blockX + random.nextInt(16); Ycoord = random.nextInt(40) + 20; Zcoord = blockZ + random.nextInt(16); migmatite.generate(world, random, Xcoord, Ycoord, Zcoord); } - for (int i = 0; i < Config.Rare; i++) { + for (int i = 0; i < Config.rare[4]; i++) { Xcoord = blockX + random.nextInt(16); Ycoord = random.nextInt(40) + 20; Zcoord = blockZ + random.nextInt(16); orthogneiss.generate(world, random, Xcoord, Ycoord, Zcoord); } - for (int i = 0; i < Config.Rare; i++) { + for (int i = 0; i < Config.rare[5]; i++) { Xcoord = blockX + random.nextInt(16); Ycoord = random.nextInt(40) + 20; Zcoord = blockZ + random.nextInt(16); slate.generate(world, random, Xcoord, Ycoord, Zcoord); } - for (int i = 0; i < Config.Rare; i++) { + for (int i = 0; i < Config.rare[6]; i++) { Xcoord = blockX + random.nextInt(16); Ycoord = random.nextInt(40) + 20; Zcoord = blockZ + random.nextInt(16); From b04dccd673108b6674d1c2f35a99d111874366f2 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 23:20:53 +0200 Subject: [PATCH 09/59] Renamed variables to Java standards --- common/MysticOres/Items/Items.java | 36 ++++--------------- common/MysticOres/Lib/ItemID.java | 36 ++++--------------- common/MysticStones/Blocks/ItemPlanks.java | 2 +- .../MysticStones/Blocks/ItemReinforced.java | 2 +- .../MysticStones/Blocks/ItemStoneBricks.java | 2 +- common/MysticStones/Blocks/ItemStones.java | 2 +- common/MysticStones/MysticStones.java | 30 ++++++++-------- common/MysticStones/Util/RecipeHandler.java | 20 +++++------ common/MysticStones/Util/TabMysticStones.java | 2 +- 9 files changed, 42 insertions(+), 90 deletions(-) diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index 62c523f..e4b0028 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -4,36 +4,12 @@ import mysticores.lib.ItemID; import net.minecraft.item.Item; public class Items { - public static Item VerditeSword; - public static Item VerditePickaxe; - public static Item VerditeShovel; - public static Item VerditeAxe; - public static Item VerditeHoe; - public static Item MithrilSword; - public static Item MithrilPickaxe; - public static Item MithrilShovel; - public static Item MithrilAxe; - public static Item MithrilHoe; - public static Item AdamantineSword; - public static Item AdamantinePickaxe; - public static Item AdamantineShovel; - public static Item AdamantineAxe; - public static Item AdamantineHoe; - public static Item IridiumSword; - public static Item IridiumPickaxe; - public static Item IridiumShovel; - public static Item IridiumAxe; - public static Item IridiumHoe; - public static Item BloodstoneSword; - public static Item BloodstonePickaxe; - public static Item BloodstoneShovel; - public static Item BloodstoneAxe; - public static Item BloodstoneHoe; - public static Item ObsidianSword; - public static Item ObsidianPickaxe; - public static Item ObsidianShovel; - public static Item ObsidianAxe; - public static Item ObsidianHoe; + public static Item VerditeSword, VerditePickaxe, VerditeShovel, VerditeAxe, VerditeHoe; + public static Item MithrilSword, MithrilPickaxe, MithrilShovel, MithrilAxe, MithrilHoe; + public static Item AdamantineSword, AdamantinePickaxe, AdamantineShovel, AdamantineAxe, AdamantineHoe; + public static Item IridiumSword, IridiumPickaxe, IridiumShovel, IridiumAxe, IridiumHoe; + public static Item BloodstoneSword, BloodstonePickaxe, BloodstoneShovel, BloodstoneAxe, BloodstoneHoe; + public static Item ObsidianSword, ObsidianPickaxe, ObsidianShovel, ObsidianAxe, ObsidianHoe; public static Item Resource; public static Item Satchel; diff --git a/common/MysticOres/Lib/ItemID.java b/common/MysticOres/Lib/ItemID.java index 0feb4c1..98a37ea 100644 --- a/common/MysticOres/Lib/ItemID.java +++ b/common/MysticOres/Lib/ItemID.java @@ -1,36 +1,12 @@ package mysticores.lib; public class ItemID { - public static int VERDITESWORD = 7050; - public static int VERDITEPICKAXE = 7051; - public static int VERDITESHOVEL = 7052; - public static int VERDITEAXE = 7053; - public static int VERDITEHOE = 7054; - public static int MITHRILSWORD = 7055; - public static int MITHRILPICKAXE = 7056; - public static int MITHRILSHOVEL = 7057; - public static int MITHRILAXE = 7058; - public static int MITHRILHOE = 7059; - public static int ADAMANTINESWORD = 7060; - public static int ADAMANTINEPICKAXE = 7061; - public static int ADAMANTINESHOVEL = 7062; - public static int ADAMANTINEAXE = 7063; - public static int ADAMANTINEHOE = 7064; - public static int IRIDIUMSWORD = 7065; - public static int IRIDIUMPICKAXE = 7066; - public static int IRIDIUMSHOVEL = 7067; - public static int IRIDIUMAXE = 7068; - public static int IRIDIUMHOE = 7069; - public static int OBSIDIANSWORD = 7070; - public static int OBSIDIANPICKAXE = 7071; - public static int OBSIDIANSHOVEL = 7072; - public static int OBSIDIANAXE = 7073; - public static int OBSIDIANHOE = 7074; - public static int BLOODSTONESWORD = 7075; - public static int BLOODSTONEPICKAXE = 7076; - public static int BLOODSTONESHOVEL = 7077; - public static int BLOODSTONEAXE = 7078; - public static int BLOODSTONEHOE = 7079; + public static int VERDITESWORD = 7050, VERDITEPICKAXE = 7051, VERDITESHOVEL = 7052, VERDITEAXE = 7053, VERDITEHOE = 7054; + public static int MITHRILSWORD = 7055, MITHRILPICKAXE = 7056, MITHRILSHOVEL = 7057, MITHRILAXE = 7058, MITHRILHOE = 7059; + public static int ADAMANTINESWORD = 7060, ADAMANTINEPICKAXE = 7061, ADAMANTINESHOVEL = 7062, ADAMANTINEAXE = 7063, ADAMANTINEHOE = 7064; + public static int IRIDIUMSWORD = 7065, IRIDIUMPICKAXE = 7066, IRIDIUMSHOVEL = 7067, IRIDIUMAXE = 7068, IRIDIUMHOE = 7069; + public static int OBSIDIANSWORD = 7070, OBSIDIANPICKAXE = 7071, OBSIDIANSHOVEL = 7072, OBSIDIANAXE = 7073, OBSIDIANHOE = 7074; + public static int BLOODSTONESWORD = 7075, BLOODSTONEPICKAXE = 7076, BLOODSTONESHOVEL = 7077, BLOODSTONEAXE = 7078, BLOODSTONEHOE = 7079; public static int SATCHEL = 7080; public static int RESOURCES = 7081; } diff --git a/common/MysticStones/Blocks/ItemPlanks.java b/common/MysticStones/Blocks/ItemPlanks.java index 03f0608..4559d12 100644 --- a/common/MysticStones/Blocks/ItemPlanks.java +++ b/common/MysticStones/Blocks/ItemPlanks.java @@ -6,6 +6,6 @@ public class ItemPlanks extends ItemBlockMulti { public static final String[] PLANK_TYPE = new String[] { "Purple Planks", "Green Planks", "Black Planks", "Orange Planks", "Red Planks", "Blue Planks", "Yellow Planks" }; public ItemPlanks(int par1) { - super(par1, MysticStones.Planks, PLANK_TYPE); + super(par1, MysticStones.planks, PLANK_TYPE); } } diff --git a/common/MysticStones/Blocks/ItemReinforced.java b/common/MysticStones/Blocks/ItemReinforced.java index c16eeac..4a22a00 100644 --- a/common/MysticStones/Blocks/ItemReinforced.java +++ b/common/MysticStones/Blocks/ItemReinforced.java @@ -13,7 +13,7 @@ public class ItemReinforced extends ItemBlockMulti { "Agate Bricks" }; public ItemReinforced(int par1) { - super(par1, MysticStones.ReinforcedBricks, BRICK_TYPE); + super(par1, MysticStones.reinforcedBricks, BRICK_TYPE); } @Override diff --git a/common/MysticStones/Blocks/ItemStoneBricks.java b/common/MysticStones/Blocks/ItemStoneBricks.java index eaed36f..972f08e 100644 --- a/common/MysticStones/Blocks/ItemStoneBricks.java +++ b/common/MysticStones/Blocks/ItemStoneBricks.java @@ -7,6 +7,6 @@ public class ItemStoneBricks extends ItemBlockMulti { "Travertine Bricks" }; public ItemStoneBricks(int par1) { - super(par1, MysticStones.StoneBricks, STONEBRICK_TYPES); + super(par1, MysticStones.stoneBricks, STONEBRICK_TYPES); } } diff --git a/common/MysticStones/Blocks/ItemStones.java b/common/MysticStones/Blocks/ItemStones.java index 2a60dd4..2d644c6 100644 --- a/common/MysticStones/Blocks/ItemStones.java +++ b/common/MysticStones/Blocks/ItemStones.java @@ -7,6 +7,6 @@ public class ItemStones extends ItemBlockMulti { "Smooth Orthogneiss", "Orthogneiss", "Smooth Slate", "Slate", "Smooth Travertine", "Travertine" }; public ItemStones(int par1) { - super(par1, MysticStones.Stones, STONE_TYPES); + super(par1, MysticStones.stones, STONE_TYPES); } } diff --git a/common/MysticStones/MysticStones.java b/common/MysticStones/MysticStones.java index 0b1b240..5c97828 100644 --- a/common/MysticStones/MysticStones.java +++ b/common/MysticStones/MysticStones.java @@ -22,30 +22,30 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; -@Mod(modid = "Mystic Stones", name = "Mystic Stones", version = "0.1") +@Mod(modid = "MysticStones", name = "Mystic Stones", version = "0.1") @NetworkMod(clientSideRequired = true) public class MysticStones { - @Instance("Mystic Stones") + @Instance("MysticStones") public static MysticStones instance; - public static Block Planks, Stones, StoneBricks, ReinforcedBricks; + public static Block planks, stones, stoneBricks, reinforcedBricks; public static final CreativeTabs MysticStonesTab = new TabMysticStones("MysticStonesTab"); @EventHandler public void preInit(FMLPreInitializationEvent event) { Config.initialize(event.getSuggestedConfigurationFile()); - Planks = new BlockPlanks(Config.PlanksID); - Stones = new BlockStones(Config.StonesID); - StoneBricks = new BlockStoneBricks(Config.StoneBricksID); - ReinforcedBricks = new BlockReinforced(Config.ReinforcedBricksID); - GameRegistry.registerBlock(Planks, ItemPlanks.class, "Planks"); - GameRegistry.registerBlock(Stones, ItemStones.class, "Stones"); - GameRegistry.registerBlock(StoneBricks, ItemStoneBricks.class, "StoneBricks"); - GameRegistry.registerBlock(ReinforcedBricks, ItemReinforced.class, "Reinforcedbricks"); + planks = new BlockPlanks(Config.planksID); + stones = new BlockStones(Config.stonesID); + stoneBricks = new BlockStoneBricks(Config.stoneBricksID); + reinforcedBricks = new BlockReinforced(Config.reinforcedBricksID); + GameRegistry.registerBlock(planks, ItemPlanks.class, "Planks"); + GameRegistry.registerBlock(stones, ItemStones.class, "Stones"); + GameRegistry.registerBlock(stoneBricks, ItemStoneBricks.class, "StoneBricks"); + GameRegistry.registerBlock(reinforcedBricks, ItemReinforced.class, "Reinforcedbricks"); Localizations.Initialize(); - RecipeHandler.CraftPlanks(); - RecipeHandler.CraftStoneBricks(); - RecipeHandler.CraftReinforced(); - RecipeHandler.CraftElse(); + RecipeHandler.craftPlanks(); + RecipeHandler.craftStoneBricks(); + RecipeHandler.craftReinforced(); + RecipeHandler.craftElse(); GameRegistry.registerWorldGenerator(new WorldGeneratorStones()); } } diff --git a/common/MysticStones/Util/RecipeHandler.java b/common/MysticStones/Util/RecipeHandler.java index 3e6520d..31d720b 100644 --- a/common/MysticStones/Util/RecipeHandler.java +++ b/common/MysticStones/Util/RecipeHandler.java @@ -14,35 +14,35 @@ public class RecipeHandler { public static final String[] STONES = { "anorthositeSmooth", "Anorthosite", "limestoneSmooth", "limestone", "marbleSmooth", "marble", "migmatiteSmooth", "migmatite", "orthogneissSmooth", "orthogneiss", "slateSmooth", "slate", "travertineSmooth", "travertine" }; - public static void CraftElse() { + public static void craftElse() { //smelting for (int i = 1; i < 14; i += 2) { - FurnaceRecipes.smelting().addSmelting(MysticStones.Stones.blockID, i, new ItemStack(MysticStones.Stones, 1, i - 1), 0.1F); + FurnaceRecipes.smelting().addSmelting(MysticStones.stones.blockID, i, new ItemStack(MysticStones.stones, 1, i - 1), 0.1F); } } - public static void CraftPlanks() { + public static void craftPlanks() { for (int i = 0; i < 7; i++) { - ItemStack stack = new ItemStack(MysticStones.Planks, 1, i); + ItemStack stack = new ItemStack(MysticStones.planks, 1, i); OreDictionary.registerOre("plankWood", stack); - OreDictionary.registerOre(STONES[2 * i], new ItemStack(MysticStones.Stones, 1, 2 * i)); - OreDictionary.registerOre(STONES[2 * i + 1], new ItemStack(MysticStones.Stones, 1, 2 * i + 1)); + OreDictionary.registerOre(STONES[2 * i], new ItemStack(MysticStones.stones, 1, 2 * i)); + OreDictionary.registerOre(STONES[2 * i + 1], new ItemStack(MysticStones.stones, 1, 2 * i + 1)); GameRegistry.addRecipe(new ShapelessOreRecipe(stack, "plankWood", STONES[2 * i])); GameRegistry.addRecipe(new ShapelessOreRecipe(stack, "plankWood", STONES[2 * i + 1])); } } - public static void CraftReinforced() { + public static void craftReinforced() { if (Loader.isModLoaded("MysticOres")) { for (int i = 0; i < MATERIALS.length; i++) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MysticStones.ReinforcedBricks, 1, i), true, "#$#", "$$$", "#$#", '$', MATERIALS[i], '#', "stone")); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MysticStones.reinforcedBricks, 1, i), true, "#$#", "$$$", "#$#", '$', MATERIALS[i], '#', "stone")); } } } - public static void CraftStoneBricks() { + public static void craftStoneBricks() { for (int i = 0; i < 7; i++) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MysticStones.StoneBricks, 4, i), "##", "##", '#', STONES[2 * i])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MysticStones.stoneBricks, 4, i), "##", "##", '#', STONES[2 * i])); } } } diff --git a/common/MysticStones/Util/TabMysticStones.java b/common/MysticStones/Util/TabMysticStones.java index 33d30ba..1c4b4ab 100644 --- a/common/MysticStones/Util/TabMysticStones.java +++ b/common/MysticStones/Util/TabMysticStones.java @@ -11,6 +11,6 @@ public class TabMysticStones extends CreativeTabs { @Override public ItemStack getIconItemStack() { - return new ItemStack(MysticStones.ReinforcedBricks, 1, 4); + return new ItemStack(MysticStones.reinforcedBricks, 1, 4); } } From fd1a0dfae90e0331c0b54d4928e1d1f718820035 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 26 Oct 2013 23:21:15 +0200 Subject: [PATCH 10/59] Added biome tags support to config --- common/MysticRuins/Config.java | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 2151f5d..78331ee 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -1,16 +1,19 @@ package mysticruins; import java.io.File; -import java.util.ArrayList; -import java.util.List; +import java.util.HashSet; +import java.util.Set; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraftforge.common.BiomeDictionary; +import net.minecraftforge.common.BiomeDictionary.Type; import net.minecraftforge.common.Configuration; public class Config { public static Configuration config; public static int RuinRarity; public static int DunRarity; - public static List[] allowId = new ArrayList[4]; + public static Set[] allowId = new HashSet[4]; public static final String[] allows = { "Ruin allowed dimension id", "Dungeon allowed dimension id", "Ruin allowed biome id", "Dungeon allowed biome id" }; public static void initialize(File file) { @@ -20,12 +23,32 @@ public class Config { DunRarity = config.get("General", "Mystic Dungeon Rarity", 1, "Tries per chunk : lower to make rarer").getInt(); String[] ID; for (int i = 0; i < allows.length; i++) { - ID = config.get("General", allows[i], i < 2 ? "0," : "1,2,3,4,5,6,7,21,22").getString().split(","); - allowId[i] = new ArrayList(); + ID = config.get("General", allows[i], i < 2 ? "0," : "1,2,3,4,5,6,7,21,22", i < 2 ? "" : "Use ALL or * for all biomes, biome id or biome tags").getString().split(","); + allowId[i] = new HashSet(); for (String txt : ID) { try { allowId[i].add(Integer.parseInt(txt.trim())); } catch (NumberFormatException e) { + if (i > 1) { + if (txt.equals("*") || txt.equalsIgnoreCase("ALL")) { + allowId[i].clear(); + for (BiomeGenBase biome : BiomeGenBase.biomeList) { + if (biome != null) { + allowId[i].add(biome.biomeID); + } + } + break; + } else { + try { + for (BiomeGenBase biome : BiomeDictionary.getBiomesForType(Type.valueOf(txt.toUpperCase()))) { + if (biome != null) { + allowId[i].add(biome.biomeID); + } + } + } catch (IllegalArgumentException l) { + } + } + } } } } From 006de315b44a7c40ca69806b9c99addfb9d4ca8a Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sun, 27 Oct 2013 13:14:47 +0100 Subject: [PATCH 11/59] Delayed config init to account for custom biomes --- common/MysticRuins/MysticRuins.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common/MysticRuins/MysticRuins.java b/common/MysticRuins/MysticRuins.java index a176bee..de65ea6 100644 --- a/common/MysticRuins/MysticRuins.java +++ b/common/MysticRuins/MysticRuins.java @@ -1,15 +1,25 @@ package mysticruins; +import java.io.File; + import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; +import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "MysticRuins", name = "Mystic Ruins", version = "0.1") public class MysticRuins { + public static File file; + + @EventHandler + public void modsLoaded(FMLPostInitializationEvent event) { + Config.initialize(file); + } + @EventHandler public void preInit(FMLPreInitializationEvent event) { - Config.initialize(event.getSuggestedConfigurationFile()); + file = event.getSuggestedConfigurationFile(); GameRegistry.registerWorldGenerator(new WorldGenMystic()); } } From 33fa173cbbf9493e4699c69b84722103aa5409ea Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sun, 27 Oct 2013 13:15:05 +0100 Subject: [PATCH 12/59] Improved biome selection system --- common/MysticRuins/Config.java | 61 +- .../MysticRuins/StructureMysticDungeon.java | 3549 ++++++++--------- common/mysticruins/WorldGenMystic.java | 25 +- 3 files changed, 1834 insertions(+), 1801 deletions(-) diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 78331ee..8a4353f 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -1,6 +1,7 @@ package mysticruins; import java.io.File; +import java.util.Arrays; import java.util.HashSet; import java.util.Set; @@ -15,37 +16,63 @@ public class Config { public static int DunRarity; public static Set[] allowId = new HashSet[4]; public static final String[] allows = { "Ruin allowed dimension id", "Dungeon allowed dimension id", "Ruin allowed biome id", "Dungeon allowed biome id" }; + public static Set[] allowType = new HashSet[2]; public static void initialize(File file) { config = new Configuration(file); config.load(); + StringBuilder build = new StringBuilder("Available biome tags are: "); + for (Type t : Type.values()) { + build.append(t); + build.append(","); + } + config.addCustomCategoryComment("General", build.toString()); RuinRarity = config.get("General", "Ruin Rarity", 2, "Tries per chunk : lower to make rarer").getInt(); DunRarity = config.get("General", "Mystic Dungeon Rarity", 1, "Tries per chunk : lower to make rarer").getInt(); String[] ID; for (int i = 0; i < allows.length; i++) { - ID = config.get("General", allows[i], i < 2 ? "0," : "1,2,3,4,5,6,7,21,22", i < 2 ? "" : "Use ALL or * for all biomes, biome id or biome tags").getString().split(","); + ID = config.get("General", allows[i], i < 2 ? "0," : "ALL,-WATER", i < 2 ? "" : "Use ALL or * for all biomes, select with biome id or biome tags, prefix with - to exclude").getString() + .split(","); allowId[i] = new HashSet(); + if (i > 1) { + allowType[i - 2] = new HashSet(); + } for (String txt : ID) { - try { - allowId[i].add(Integer.parseInt(txt.trim())); - } catch (NumberFormatException e) { - if (i > 1) { - if (txt.equals("*") || txt.equalsIgnoreCase("ALL")) { - allowId[i].clear(); - for (BiomeGenBase biome : BiomeGenBase.biomeList) { - if (biome != null) { - allowId[i].add(biome.biomeID); + if (txt.startsWith("-") && i > 1) { + txt = txt.substring(1).trim(); + try { + allowId[i].remove(Integer.parseInt(txt)); + } catch (NumberFormatException e) { + try { + allowType[i - 2].remove(Type.valueOf(txt.toUpperCase())); + } catch (IllegalArgumentException l) { + } + } + } else { + try { + int j = Integer.parseInt(txt.trim()); + allowId[i].add(j); + if (i > 1) { + allowType[i - 2].addAll(Arrays.asList(BiomeDictionary.getTypesForBiome(BiomeGenBase.biomeList[j]))); + } + } catch (NumberFormatException e) { + if (i > 1) { + if (txt.equals("*") || txt.equalsIgnoreCase("ALL")) { + for (int j = 0; j < BiomeGenBase.biomeList.length; j++) { + allowId[i].add(j); } - } - break; - } else { - try { - for (BiomeGenBase biome : BiomeDictionary.getBiomesForType(Type.valueOf(txt.toUpperCase()))) { - if (biome != null) { + for (Type t : Type.values()) { + allowType[i - 2].add(t); + } + } else { + try { + Type type = Type.valueOf(txt.toUpperCase()); + allowType[i - 2].add(type); + for (BiomeGenBase biome : BiomeDictionary.getBiomesForType(type)) { allowId[i].add(biome.biomeID); } + } catch (IllegalArgumentException l) { } - } catch (IllegalArgumentException l) { } } } diff --git a/common/MysticRuins/StructureMysticDungeon.java b/common/MysticRuins/StructureMysticDungeon.java index 24bc34c..8400adb 100644 --- a/common/MysticRuins/StructureMysticDungeon.java +++ b/common/MysticRuins/StructureMysticDungeon.java @@ -5,7 +5,6 @@ import java.util.Random; import net.minecraft.block.Block; import net.minecraft.tileentity.TileEntityMobSpawner; import net.minecraft.world.World; -import net.minecraft.world.WorldType; import net.minecraft.world.gen.feature.WorldGenerator; public class StructureMysticDungeon extends WorldGenerator { @@ -14,1859 +13,1857 @@ public class StructureMysticDungeon extends WorldGenerator { @Override public boolean generate(World world, Random random, int i, int j, int k) { - if (world.getWorldInfo().getTerrainType() != WorldType.FLAT) { - int j1 = (i + random.nextInt(8)) - random.nextInt(8); - int k1 = (j + random.nextInt(4)) - random.nextInt(4); - int l1 = (k + random.nextInt(8)) - random.nextInt(8); - boolean flag = false; - if (k1 <= 0) { - return false; + int j1 = (i + random.nextInt(8)) - random.nextInt(8); + int k1 = (j + random.nextInt(4)) - random.nextInt(4); + int l1 = (k + random.nextInt(8)) - random.nextInt(8); + boolean flag = false; + if (k1 <= 0) { + return false; + } + if (world.isAirBlock(j1 - 1, k1 + 1, l1) && world.isAirBlock(j1 - 1, k1 + 1, l1 + 1) && world.isAirBlock(j1 - 1, k1 + 2, l1) && world.isAirBlock(j1 - 1, k1 + 2, l1 + 1) + && world.getBlockId(j1, k1, l1) == Block.stone.blockID && world.getBlockId(j1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1) == Block.stone.blockID + && world.getBlockId(j1 - 1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1) == Block.stone.blockID + && world.getBlockId(j1, k1 + 1, l1 + 1) == Block.stone.blockID) + flag = true; + if (!flag) { + return false; + } + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1 - 1, k1 + 1, l1 + 2, 0); + world.setBlock(j1 - 1, k1 + 1, l1 + 3, 0); + world.setBlock(j1 - 1, k1 + 2, l1 + 2, 0); + for (int y = k1 + 1; y < k1 + 4; y++) { + for (int x = 1; x < 6; x++) { + world.setBlock(j1 - x, y, l1, 0); + world.setBlock(j1 - x, y, l1 + 1, 0); + world.setBlock(j1 - x, y, l1 - 1, 0); } - if (world.isAirBlock(j1 - 1, k1 + 1, l1) && world.isAirBlock(j1 - 1, k1 + 1, l1 + 1) && world.isAirBlock(j1 - 1, k1 + 2, l1) && world.isAirBlock(j1 - 1, k1 + 2, l1 + 1) - && world.getBlockId(j1, k1, l1) == Block.stone.blockID && world.getBlockId(j1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1) == Block.stone.blockID - && world.getBlockId(j1 - 1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1) == Block.stone.blockID - && world.getBlockId(j1, k1 + 1, l1 + 1) == Block.stone.blockID) - flag = true; - if (!flag) { - return false; + } + world.setBlock(j1 - 2, k1 + 1, l1 + 2, 0); + for (int x = 6; x < 17; x++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1 - x, k1 + y, l1, 0); } - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1 - 1, k1 + 1, l1 + 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 + 3, 0); - world.setBlock(j1 - 1, k1 + 2, l1 + 2, 0); - for (int y = k1 + 1; y < k1 + 4; y++) { - for (int x = 1; x < 6; x++) { - world.setBlock(j1 - x, y, l1, 0); - world.setBlock(j1 - x, y, l1 + 1, 0); - world.setBlock(j1 - x, y, l1 - 1, 0); + } + world.setBlock(j1 - 15, k1 + 14, l1, 0); + int i2 = random.nextInt(100); + if (i2 <= 40) { + for (int z = 1; z < 9; z++) { + world.setBlock(j1 - 16, k1 + 11, l1 - z, 0); + world.setBlock(j1 - 16, k1 + 12, l1 - z, 0); + } + world.setBlock(j1 - 16, k1 + 13, l1 - 8, 0); + world.setBlock(j1 - 16, k1 + 14, l1 - 8, 0); + for (int z = 0; z < 5; z++) { + for (int y = 12; y < 16; y++) { + world.setBlock(j1 - 16, k1 + y + z, l1 - 9 + z, 0); } } - world.setBlock(j1 - 2, k1 + 1, l1 + 2, 0); - for (int x = 6; x < 17; x++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1 - x, k1 + y, l1, 0); - } - } - world.setBlock(j1 - 15, k1 + 14, l1, 0); - int i2 = random.nextInt(100); - if (i2 <= 40) { - for (int z = 1; z < 9; z++) { - world.setBlock(j1 - 16, k1 + 11, l1 - z, 0); - world.setBlock(j1 - 16, k1 + 12, l1 - z, 0); - } - world.setBlock(j1 - 16, k1 + 13, l1 - 8, 0); - world.setBlock(j1 - 16, k1 + 14, l1 - 8, 0); - for (int z = 0; z < 5; z++) { - for (int y = 12; y < 16; y++) { - world.setBlock(j1 - 16, k1 + y + z, l1 - 9 + z, 0); - } - } - world.setBlock(j1 - 16, k1 + 20, l1 - 13, 0); - int j2 = random.nextInt(100); - if (j2 <= 20) { - for (int x = 0; x < 3; x++) { - for (int z = 15; z < 18; z++) { - world.setBlock(j1 - 15 - x, k1 + 17, l1 - z, 0); - world.setBlock(j1 - 15 - x, k1 + 18, l1 - z, 0); - } - } - world.setBlock(j1 - 16, k1 + 16, l1 - 15, Block.blockLapis.blockID); - world.setBlock(j1 - 16, k1 + 16, l1 - 16, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 16, k1 + 16, l1 - 17, Block.blockLapis.blockID); + world.setBlock(j1 - 16, k1 + 20, l1 - 13, 0); + int j2 = random.nextInt(100); + if (j2 <= 20) { + for (int x = 0; x < 3; x++) { for (int z = 15; z < 18; z++) { - world.setBlock(j1 - 15, k1 + 16, l1 - z, Block.blockLapis.blockID); - world.setBlock(j1 - 17, k1 + 16, l1 - z, Block.blockLapis.blockID); - } - world.setBlock(j1 - 16, k1 + 17, l1 - 16, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 16, k1 + 17, l1 - 16)); - } - } - for (int z = 0; z < 12; z++) { - for (int y = k1 + 12 + z; y < k1 + 16 + z; y++) { - world.setBlock(j1 - 16, y, l1 + 1 + z, 0); - } - } - world.setBlock(j1 - 16, k1 + 24, l1 + 9, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); - int k2 = random.nextInt(100); - if (k2 <= 40) { - world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 3, l1 + 2, Block.vine.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - int l2 = random.nextInt(100); - if (l2 <= 30) { - world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 3, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 5, k1 + 3, l1, Block.vine.blockID); - } - int i3 = random.nextInt(100); - if (i3 <= 40) { - for (int z = 2; z < 10; z++) { - world.setBlock(j1, k1 + 1, l1 - z, 0); - world.setBlock(j1, k1 + 2, l1 - z, 0); - } - for (int z = 0; z < 14; z++) { - for (int y = k1 + 1 + z; y < k + 5 + z; y++) { - world.setBlock(j1, y, l1 - 10 - z, 0); + world.setBlock(j1 - 15 - x, k1 + 17, l1 - z, 0); + world.setBlock(j1 - 15 - x, k1 + 18, l1 - z, 0); } } - world.setBlock(j1, k1 + 15, l1 - 20, 0); - world.setBlock(j1, k1 + 16, l1 - 21, 0); - int j3 = random.nextInt(100); - if (j3 <= 20) { - for (int x = -1; x < 2; x++) { - world.setBlock(j1 + x, k1 + 15, l1 - 25, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 25, 0); - world.setBlock(j1 + x, k1 + 15, l1 - 26, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 26, 0); - world.setBlock(j1 + x, k1 + 15, l1 - 27, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 27, 0); - } - world.setBlock(j1 - 16, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 16, k1 + 14, l1 - 16, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 16, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 16, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 16, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 16, k1 + 15, l1 - 16, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 16, k1 + 15, l1 - 16)); + world.setBlock(j1 - 16, k1 + 16, l1 - 15, Block.blockLapis.blockID); + world.setBlock(j1 - 16, k1 + 16, l1 - 16, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 16, k1 + 16, l1 - 17, Block.blockLapis.blockID); + for (int z = 15; z < 18; z++) { + world.setBlock(j1 - 15, k1 + 16, l1 - z, Block.blockLapis.blockID); + world.setBlock(j1 - 17, k1 + 16, l1 - z, Block.blockLapis.blockID); + } + world.setBlock(j1 - 16, k1 + 17, l1 - 16, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 16, k1 + 17, l1 - 16)); + } + } + for (int z = 0; z < 12; z++) { + for (int y = k1 + 12 + z; y < k1 + 16 + z; y++) { + world.setBlock(j1 - 16, y, l1 + 1 + z, 0); + } + } + world.setBlock(j1 - 16, k1 + 24, l1 + 9, 0); + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); + int k2 = random.nextInt(100); + if (k2 <= 40) { + world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 3, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 3, l1 + 2, Block.vine.blockID); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + int l2 = random.nextInt(100); + if (l2 <= 30) { + world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 3, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 3, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 5, k1 + 3, l1, Block.vine.blockID); + } + int i3 = random.nextInt(100); + if (i3 <= 40) { + for (int z = 2; z < 10; z++) { + world.setBlock(j1, k1 + 1, l1 - z, 0); + world.setBlock(j1, k1 + 2, l1 - z, 0); + } + for (int z = 0; z < 14; z++) { + for (int y = k1 + 1 + z; y < k + 5 + z; y++) { + world.setBlock(j1, y, l1 - 10 - z, 0); } } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + world.setBlock(j1, k1 + 15, l1 - 20, 0); + world.setBlock(j1, k1 + 16, l1 - 21, 0); + int j3 = random.nextInt(100); + if (j3 <= 20) { + for (int x = -1; x < 2; x++) { + world.setBlock(j1 + x, k1 + 15, l1 - 25, 0); + world.setBlock(j1 + x, k1 + 16, l1 - 25, 0); + world.setBlock(j1 + x, k1 + 15, l1 - 26, 0); + world.setBlock(j1 + x, k1 + 16, l1 - 26, 0); + world.setBlock(j1 + x, k1 + 15, l1 - 27, 0); + world.setBlock(j1 + x, k1 + 16, l1 - 27, 0); + } + world.setBlock(j1 - 16, k1 + 14, l1 - 15, 0); + world.setBlock(j1 - 16, k1 + 14, l1 - 16, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 16, k1 + 14, l1 - 17, 0); + world.setBlock(j1 - 15, k1 + 14, l1 - 15, 0); + world.setBlock(j1 - 15, k1 + 14, l1 - 16, 0); + world.setBlock(j1 - 15, k1 + 14, l1 - 17, 0); + world.setBlock(j1 - 17, k1 + 14, l1 - 15, 0); + world.setBlock(j1 - 17, k1 + 14, l1 - 16, 0); + world.setBlock(j1 - 17, k1 + 14, l1 - 17, 0); + world.setBlock(j1 - 16, k1 + 15, l1 - 16, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 16, k1 + 15, l1 - 16)); } - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + world.setBlock(j1, k1 + y, l1, 0); + world.setBlock(j1, k1 + y, l1 + 1, 0); + world.setBlock(j1, k1 + y, l1 - 1, 0); + } + world.setBlock(j1, k1 + 1, l1 + 2, 0); + world.setBlock(j1, k1 + 1, l1 - 2, 0); + world.setBlock(j1, k1 + 2, l1 + 2, 0); + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + for (int y = 1; y < 4; y++) { + for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1 + y, l1 + z, 0); } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); - j1++; + } + world.setBlock(j1, k1 + 1, l1 + 3, 0); + world.setBlock(j1, k1 + 3, l1 - 3, 0); + world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); + j1++; + int k3 = random.nextInt(2) + 1; + if (k3 == 1) { + int l3 = random.nextInt(2) + 1; world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); - } - world.setBlock(j1, k1 + 1, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 - 2, 0); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - for (int y = 1; y < 4; y++) { - for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int y = 1; y < 5; y++) { + for (int z = -4; z < 5; z++) { world.setBlock(j1, k1 + y, l1 + z, 0); } } - world.setBlock(j1, k1 + 1, l1 + 3, 0); - world.setBlock(j1, k1 + 3, l1 - 3, 0); - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); j1++; - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); - j1++; - int k3 = random.nextInt(2) + 1; - if (k3 == 1) { - int l3 = random.nextInt(2) + 1; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestoneMossy.blockID); - if (l3 == 1) { - int k4 = random.nextInt(100); - if (k4 <= 60) { - for (int u = 1; u < 4; u++) { - world.setBlock(j1, k1 + u, l1 + u, Block.bookShelf.blockID); - } - } - } - if (l3 == 2) { - int l4 = random.nextInt(100); - if (l4 <= 40) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 3, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - if (l3 == 2) { - int i5 = random.nextInt(100); - if (i5 <= 40) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - if (l3 == 1) { - int j5 = random.nextInt(100); - if (j5 <= 15) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 1); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); - } - world.setBlock(j1, k1 + 2, l1 + 1, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 + 2, l1 + 1)); - world.setBlock(j1, k1 + 3, l1 + 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawnerII = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 3, l1 + 1); - if (spawnerII != null) { - spawnerII.getSpawnerLogic().setMobID("CaveSpider"); - } - world.setBlock(j1, k1 + 1, l1 + 2, 0); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 3, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); - world.setBlock(j1, k1 + 2, l1 + 3, 0); - world.setBlock(j1, k1 + 3, l1 + 3, 0); - } - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - if (l3 == 1) { - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); - } - if (l3 == 2) { - int k5 = random.nextInt(100); - if (k5 <= 30) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 3); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Creeper"); - } - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); - if (l3 == 1) { - int l5 = random.nextInt(100); - if (l5 <= 60) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 + 2); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Skeleton"); - } - world.setBlock(j1, k1 + 3, l1 + 2, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 3, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 3, l1 + 3, Block.bookShelf.blockID); - } - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); - } - int i6 = random.nextInt(100); - if (i6 <= 30) { - world.setBlock(j1 - 1, k1 + 4, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 4, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 - 3, Block.vine.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - if (l3 == 2) { - int l6 = random.nextInt(100); - if (l6 <= 30) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 2); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Blaze"); - } - world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 5, Block.cobblestone.blockID); - if (l3 == 1) { - int i7 = random.nextInt(100); - if (i7 <= 60) { - for (int y = 1; y < 4; y++) { - for (int z = 1; z < 4; z++) { - world.setBlock(j1, k1 + y, l1 + z, Block.bookShelf.blockID); - } - } - } - } - if (l3 == 2) { - int j7 = random.nextInt(100); - if (j7 <= 20) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockGold.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); - } - int j8 = random.nextInt(100); - if (j8 <= 30) { - world.setBlock(j1, k1 + 1, l1 - 1, 0); - world.setBlock(j1, k1 + 2, l1 - 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 - 1); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); - } - world.setBlock(j1, k1 + 1, l1 - 2, 0); - world.setBlock(j1, k1 + 2, l1 - 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 2, l1 - 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 - 2, 0); - } - int j9 = random.nextInt(100); - if (j9 <= 10) { - world.setBlock(j1 - 3, k1 + 1, l1 - 1, Block.blockDiamond.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); - } - int j10 = random.nextInt(100); - if (j10 <= 10) { - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); - } - int j11 = random.nextInt(100); - if (j11 <= 15) { - world.setBlock(j1 - 5, k1 + 1, l1 - 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 5, k1 + 1, l1 - 2)); - world.setBlock(j1 - 5, k1 + 1, l1 - 3, 0); - } - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - for (int u = 0; u < 5; u++) { - for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); - int k7 = random.nextInt(100); - if (k7 <= 30) { - world.setBlock(j1 - 2, k1 + 5, l1 - 3, 0); - world.setBlock(j1 - 2, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 5, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 5, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 6, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 7, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 8, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 8, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 8, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 9, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 9, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 9, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 10, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 10, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 1, l1 - 3, Block.gravel.blockID); - world.setBlock(j1 - 1, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 1, k1 + 1, l1 - 3, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 1, l1 - 1, Block.stone.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 2, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 2, l1 - 1, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.stone.blockID); - world.setBlock(j1 - 4, k1 + 3, l1 - 1, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 3, l1, Block.gravel.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 - 3, Block.stone.blockID); + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); } } - if (k3 == 2) { - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - for (int u = 0; u < 9; u++) { - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestoneMossy.blockID); + if (l3 == 1) { + int k4 = random.nextInt(100); + if (k4 <= 60) { + for (int u = 1; u < 4; u++) { + world.setBlock(j1, k1 + u, l1 + u, Block.bookShelf.blockID); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestoneMossy.blockID); - int i4 = random.nextInt(100); - if (i4 <= 60) { - for (int y = 0; y < 15; y++) { - world.setBlock(j1 + 7, k1 - y, l1, 0); - } - world.setBlock(j1, k1 - 13, l1 + 1, 0); - world.setBlock(j1, k1 - 13, l1 - 1, 0); - world.setBlock(j1, k1 - 14, l1 + 1, 0); - world.setBlock(j1, k1 - 14, l1 - 1, 0); - world.setBlock(j1 + 1, k1 - 13, l1 + 1, 0); - world.setBlock(j1 + 1, k1 - 13, l1 - 1, 0); - world.setBlock(j1 + 1, k1 - 14, l1 + 1, 0); - world.setBlock(j1 + 1, k1 - 14, l1 - 1, 0); + } + if (l3 == 2) { + int l4 = random.nextInt(100); + if (l4 <= 40) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.blockIron.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, 0); + world.setBlock(j1, k1 + 3, l1 + 2, 0); + world.setBlock(j1, k1 + 1, l1 + 3, 0); } - int j6 = random.nextInt(100); - if (j6 <= 70) { - for (int y = 0; y < 13; y++) { - world.setBlock(j1 + 7, k1 - y, l1 + 6, 0); - } - world.setBlock(j1, k1 - 11, l1 + 7, 0); - world.setBlock(j1, k1 - 11, l1 + 5, 0); - world.setBlock(j1, k1 - 12, l1 + 7, 0); - world.setBlock(j1, k1 - 12, l1 + 5, 0); - world.setBlock(j1 + 1, k1 - 11, l1 + 7, 0); - world.setBlock(j1 + 1, k1 - 11, l1 + 5, 0); - world.setBlock(j1 + 1, k1 - 12, l1 + 7, 0); - world.setBlock(j1 + 1, k1 - 12, l1 + 5, 0); - } - int l7 = random.nextInt(100); - if (l7 <= 50) { - for (int y = 0; y < 17; y++) { - world.setBlock(j1 + 7, k1 - y, l1 - 4, 0); - } - world.setBlock(j1 + 7, k1 - 15, l1 - 5, 0); - world.setBlock(j1 + 7, k1 - 15, l1 - 3, 0); - world.setBlock(j1 + 7, k1 - 16, l1 - 5, 0); - world.setBlock(j1 + 7, k1 - 16, l1 - 3, 0); - world.setBlock(j1 + 8, k1 - 15, l1 - 5, 0); - world.setBlock(j1 + 8, k1 - 15, l1 - 3, 0); - world.setBlock(j1 + 8, k1 - 16, l1 - 5, 0); - world.setBlock(j1 + 8, k1 - 16, l1 - 3, 0); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1 + 3, l1, 0); - world.setBlock(j1, k1 + 4, l1, 0); - world.setBlock(j1, k1 + 5, l1, 0); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int u = 1; u < 9; u++) { - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); - } - } - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); - } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); - } - int k8 = random.nextInt(100); - if (k8 <= 15) { - world.setBlock(j1, k1 + 1, l1 - 7, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1 - 7)); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 4, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1)); - for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); - if (z != 0) - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); - } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); - int k9 = random.nextInt(100); - if (k9 <= 75) { - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1 + 1, l1 + 1, 0); - world.setBlock(j1, k1 + 2, l1 + 1, 0); - world.setBlock(j1, k1 + 1, l1 - 1, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1 - 1, k1 + 1, l1, 0); - world.setBlock(j1 - 1, k1 + 2, l1, 0); - world.setBlock(j1 - 1, k1 + 2, l1 - 1, 0); - world.setBlock(j1 - 3, k1 + 1, l1 + 2, Block.obsidian.blockID); - world.setBlock(j1 - 2, k1 + 1, l1, Block.obsidian.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 3, Block.obsidian.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); - } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); - } - int k10 = random.nextInt(100); - if (k10 <= 50) { - world.setBlock(j1, k1 + 1, l1 + 7, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 2, k1 + 1, l1 + 8, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 + 1, l1 + 5, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + 2, l1 + 6, 0); - world.setBlock(j1, k1 + 3, l1 + 6, 0); - world.setBlock(j1, k1 + 4, l1 + 6, 0); - } - int k11 = random.nextInt(100); - if (k11 <= 30) { - world.setBlock(j1 + 1, k1 + 5, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 5, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 6, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 5, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 7, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 7, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 6, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 8, l1, Block.vine.blockID); - world.setBlock(j1 + 1, k1 + 5, l1 - 3, Block.vine.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 4, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); - for (int z = -3; z < 4; z++) { - world.setBlock(j1, k1 + 1, l1 + z, Block.stoneSingleSlab.blockID); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); - } - int j12 = random.nextInt(100); - if (j12 <= 50) { - world.setBlock(j1, k1 + 1, l1 - 7, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 + 1, l1 - 8, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 + 1, l1 - 5, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + 3, l1 - 6, 0); - world.setBlock(j1, k1 + 4, l1 - 6, 0); - world.setBlock(j1, k1 + 5, l1 - 6, 0); - } - j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); - for (int y = 1; y < 6; y++) { - for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); - } - } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); } j1++; - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); - j1++; - for (int y = 1; y < 4; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); } } + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + if (l3 == 2) { + int i5 = random.nextInt(100); + if (i5 <= 40) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, 0); + world.setBlock(j1, k1 + 1, l1 + 3, 0); + } + } + j1++; world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - j1++; - for (int y = 1; y < 4; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + if (l3 == 1) { + int j5 = random.nextInt(100); + if (j5 <= 15) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 1); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Zombie"); + } + world.setBlock(j1, k1 + 2, l1 + 1, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 + 2, l1 + 1)); + world.setBlock(j1, k1 + 3, l1 + 1, Block.mobSpawner.blockID); + TileEntityMobSpawner spawnerII = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 3, l1 + 1); + if (spawnerII != null) { + spawnerII.getSpawnerLogic().setMobID("CaveSpider"); + } + world.setBlock(j1, k1 + 1, l1 + 2, 0); + world.setBlock(j1, k1 + 2, l1 + 2, 0); + world.setBlock(j1, k1 + 3, l1 + 2, 0); + world.setBlock(j1, k1 + 1, l1 + 3, 0); + world.setBlock(j1, k1 + 2, l1 + 3, 0); + world.setBlock(j1, k1 + 3, l1 + 3, 0); + } + world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); + world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + } j1++; - world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + if (l3 == 1) { + world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); + world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + } + if (l3 == 2) { + int k5 = random.nextInt(100); + if (k5 <= 30) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.blockIron.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 3); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Creeper"); + } + } + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); + if (l3 == 1) { + int l5 = random.nextInt(100); + if (l5 <= 60) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 3, l1 + 1, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 + 2); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Skeleton"); + } + world.setBlock(j1, k1 + 3, l1 + 2, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 2, l1 + 3, Block.bookShelf.blockID); + world.setBlock(j1, k1 + 3, l1 + 3, Block.bookShelf.blockID); + } + world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); + world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + } + int i6 = random.nextInt(100); + if (i6 <= 30) { + world.setBlock(j1 - 1, k1 + 4, l1 + 3, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 4, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 4, l1 - 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 4, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 4, l1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 4, l1 - 3, Block.vine.blockID); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + if (l3 == 2) { + int l6 = random.nextInt(100); + if (l6 <= 30) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 2); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Blaze"); + } + world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); + } + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 - 5, Block.cobblestone.blockID); + if (l3 == 1) { + int i7 = random.nextInt(100); + if (i7 <= 60) { + for (int y = 1; y < 4; y++) { + for (int z = 1; z < 4; z++) { + world.setBlock(j1, k1 + y, l1 + z, Block.bookShelf.blockID); + } + } + } + } + if (l3 == 2) { + int j7 = random.nextInt(100); + if (j7 <= 20) { + world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.blockGold.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.blockGold.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.blockGold.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); + } + int j8 = random.nextInt(100); + if (j8 <= 30) { + world.setBlock(j1, k1 + 1, l1 - 1, 0); + world.setBlock(j1, k1 + 2, l1 - 1, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 - 1); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Zombie"); + } + world.setBlock(j1, k1 + 1, l1 - 2, 0); + world.setBlock(j1, k1 + 2, l1 - 2, 0); + world.setBlock(j1 - 1, k1 + 1, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 2, l1 - 2, 0); + world.setBlock(j1 - 1, k1 + 1, l1 - 2, 0); + } + int j9 = random.nextInt(100); + if (j9 <= 10) { + world.setBlock(j1 - 3, k1 + 1, l1 - 1, Block.blockDiamond.blockID); + world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); + } + int j10 = random.nextInt(100); + if (j10 <= 10) { + world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); + } + int j11 = random.nextInt(100); + if (j11 <= 15) { + world.setBlock(j1 - 5, k1 + 1, l1 - 2, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 5, k1 + 1, l1 - 2)); + world.setBlock(j1 - 5, k1 + 1, l1 - 3, 0); + } + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + for (int u = 0; u < 5; u++) { + for (int y = 1; y < 5; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + int k7 = random.nextInt(100); + if (k7 <= 30) { + world.setBlock(j1 - 2, k1 + 5, l1 - 3, 0); + world.setBlock(j1 - 2, k1 + 5, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 5, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 5, l1 - 2, 0); + world.setBlock(j1 - 3, k1 + 5, l1 - 2, 0); + world.setBlock(j1 - 5, k1 + 5, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 6, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 6, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 6, l1 - 2, 0); + world.setBlock(j1 - 3, k1 + 6, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 7, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 7, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 7, l1 - 2, 0); + world.setBlock(j1 - 3, k1 + 7, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 8, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 8, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 8, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 9, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 9, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 9, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 10, l1 - 1, 0); + world.setBlock(j1 - 1, k1 + 10, l1 - 2, 0); + world.setBlock(j1 - 2, k1 + 1, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 2, k1 + 1, l1 - 3, Block.gravel.blockID); + world.setBlock(j1 - 1, k1 + 1, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 1, k1 + 1, l1 - 3, Block.gravel.blockID); + world.setBlock(j1 - 2, k1 + 1, l1 - 1, Block.stone.blockID); + world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 2, k1 + 2, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 2, k1 + 2, l1 - 1, Block.gravel.blockID); + world.setBlock(j1 - 2, k1 + 3, l1 - 2, Block.stone.blockID); + world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.stone.blockID); + world.setBlock(j1 - 4, k1 + 3, l1 - 1, Block.gravel.blockID); + world.setBlock(j1 - 2, k1 + 3, l1, Block.gravel.blockID); + world.setBlock(j1 - 1, k1 + 3, l1 - 3, Block.stone.blockID); + } + } + if (k3 == 2) { + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + for (int u = 0; u < 9; u++) { + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestoneMossy.blockID); + int i4 = random.nextInt(100); + if (i4 <= 60) { + for (int y = 0; y < 15; y++) { + world.setBlock(j1 + 7, k1 - y, l1, 0); + } + world.setBlock(j1, k1 - 13, l1 + 1, 0); + world.setBlock(j1, k1 - 13, l1 - 1, 0); + world.setBlock(j1, k1 - 14, l1 + 1, 0); + world.setBlock(j1, k1 - 14, l1 - 1, 0); + world.setBlock(j1 + 1, k1 - 13, l1 + 1, 0); + world.setBlock(j1 + 1, k1 - 13, l1 - 1, 0); + world.setBlock(j1 + 1, k1 - 14, l1 + 1, 0); + world.setBlock(j1 + 1, k1 - 14, l1 - 1, 0); + } + int j6 = random.nextInt(100); + if (j6 <= 70) { + for (int y = 0; y < 13; y++) { + world.setBlock(j1 + 7, k1 - y, l1 + 6, 0); + } + world.setBlock(j1, k1 - 11, l1 + 7, 0); + world.setBlock(j1, k1 - 11, l1 + 5, 0); + world.setBlock(j1, k1 - 12, l1 + 7, 0); + world.setBlock(j1, k1 - 12, l1 + 5, 0); + world.setBlock(j1 + 1, k1 - 11, l1 + 7, 0); + world.setBlock(j1 + 1, k1 - 11, l1 + 5, 0); + world.setBlock(j1 + 1, k1 - 12, l1 + 7, 0); + world.setBlock(j1 + 1, k1 - 12, l1 + 5, 0); + } + int l7 = random.nextInt(100); + if (l7 <= 50) { + for (int y = 0; y < 17; y++) { + world.setBlock(j1 + 7, k1 - y, l1 - 4, 0); + } + world.setBlock(j1 + 7, k1 - 15, l1 - 5, 0); + world.setBlock(j1 + 7, k1 - 15, l1 - 3, 0); + world.setBlock(j1 + 7, k1 - 16, l1 - 5, 0); + world.setBlock(j1 + 7, k1 - 16, l1 - 3, 0); + world.setBlock(j1 + 8, k1 - 15, l1 - 5, 0); + world.setBlock(j1 + 8, k1 - 15, l1 - 3, 0); + world.setBlock(j1 + 8, k1 - 16, l1 - 5, 0); + world.setBlock(j1 + 8, k1 - 16, l1 - 3, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); world.setBlock(j1, k1 + 1, l1, 0); world.setBlock(j1, k1 + 2, l1, 0); world.setBlock(j1, k1 + 3, l1, 0); + world.setBlock(j1, k1 + 4, l1, 0); + world.setBlock(j1, k1 + 5, l1, 0); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int u = 1; u < 9; u++) { + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + u, 0); + world.setBlock(j1, k1 + y, l1 - u, 0); + } + } + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 + 1, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 - 1, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 - 2, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); j1++; - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + } + world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + } + int k8 = random.nextInt(100); + if (k8 <= 15) { + world.setBlock(j1, k1 + 1, l1 - 7, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1 - 7)); + } j1++; - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); - world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 4, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + world.setBlock(j1, k1 + 1, l1, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1)); + for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); + if (z != 0) + world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + } + world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + int k9 = random.nextInt(100); + if (k9 <= 75) { + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1 + 1, l1 + 1, 0); + world.setBlock(j1, k1 + 2, l1 + 1, 0); + world.setBlock(j1, k1 + 1, l1 - 1, 0); + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1 - 1, k1 + 1, l1, 0); + world.setBlock(j1 - 1, k1 + 2, l1, 0); + world.setBlock(j1 - 1, k1 + 2, l1 - 1, 0); + world.setBlock(j1 - 3, k1 + 1, l1 + 2, Block.obsidian.blockID); + world.setBlock(j1 - 2, k1 + 1, l1, Block.obsidian.blockID); + world.setBlock(j1 - 3, k1 + 1, l1 - 3, Block.obsidian.blockID); + } j1++; - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + for (int z = -2; z < 3; z++) { + world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); + world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + } + world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + } + int k10 = random.nextInt(100); + if (k10 <= 50) { + world.setBlock(j1, k1 + 1, l1 + 7, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 2, k1 + 1, l1 + 8, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 1, k1 + 1, l1 + 5, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + 2, l1 + 6, 0); + world.setBlock(j1, k1 + 3, l1 + 6, 0); + world.setBlock(j1, k1 + 4, l1 + 6, 0); + } + int k11 = random.nextInt(100); + if (k11 <= 30) { + world.setBlock(j1 + 1, k1 + 5, l1 + 3, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 5, l1 + 3, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 6, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 1, k1 + 5, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 7, l1 - 1, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 7, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 2, k1 + 6, l1 + 1, Block.vine.blockID); + world.setBlock(j1 - 3, k1 + 8, l1, Block.vine.blockID); + world.setBlock(j1 + 1, k1 + 5, l1 - 3, Block.vine.blockID); + } j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 4, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); + for (int z = -3; z < 4; z++) { + world.setBlock(j1, k1 + 1, l1 + z, Block.stoneSingleSlab.blockID); + } j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + for (int y = 1; y < 6; y++) { + world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + } + int j12 = random.nextInt(100); + if (j12 <= 50) { + world.setBlock(j1, k1 + 1, l1 - 7, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 1, k1 + 1, l1 - 8, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 3, k1 + 1, l1 - 5, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 + 3, l1 - 6, 0); + world.setBlock(j1, k1 + 4, l1 - 6, 0); + world.setBlock(j1, k1 + 5, l1 - 6, 0); + } + j1++; + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 6, l1, 0); + world.setBlock(j1, k1 + 6, l1 + 1, 0); + world.setBlock(j1, k1 + 6, l1 - 1, 0); + world.setBlock(j1, k1 + 6, l1 + 2, 0); + world.setBlock(j1, k1 + 6, l1 - 2, 0); + world.setBlock(j1, k1 + 7, l1, 0); + world.setBlock(j1, k1 + 7, l1 + 1, 0); + world.setBlock(j1, k1 + 7, l1 - 1, 0); + world.setBlock(j1, k1 + 8, l1, 0); + for (int y = 1; y < 6; y++) { + for (int z = -8; z < 9; z++) { + world.setBlock(j1, k1 + y, l1 + 1, 0); + } + } + world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); + } + j1++; + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 1, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); + j1++; + for (int y = 1; y < 4; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 + y, l1 + z, 0); + } + } + world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + j1++; + for (int y = 1; y < 4; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 + y, l1 + z, 0); + } + } + world.setBlock(j1, k1, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + world.setBlock(j1, k1 + 3, l1, 0); + j1++; + world.setBlock(j1, k1 - 1, l1, 0); + world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1 + 1, l1, 0); + world.setBlock(j1, k1 + 2, l1, 0); + j1++; + world.setBlock(j1, k1 - 2, l1, 0); + world.setBlock(j1, k1 - 1, l1, 0); + world.setBlock(j1, k1, l1, 0); + world.setBlock(j1, k1 + 1, l1, 0); + j1++; + world.setBlock(j1, k1 - 3, l1, 0); + world.setBlock(j1, k1 - 2, l1, 0); + world.setBlock(j1, k1 - 1, l1, 0); + world.setBlock(j1, k1, l1, 0); + j1++; + world.setBlock(j1, k1 - 4, l1, 0); + world.setBlock(j1, k1 - 3, l1, 0); + world.setBlock(j1, k1 - 2, l1, 0); + world.setBlock(j1, k1 - 1, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + world.setBlock(j1, k1 - 3, l1, 0); + world.setBlock(j1, k1 - 2, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 4, l1, 0); + j1++; + for (int z = 0; z < 21; z++) { world.setBlock(j1, k1 - 5, l1, 0); world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - j1++; - for (int z = 0; z < 21; z++) { - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + } + world.setBlock(j1, k1 - 4, l1 + 21, 0); + world.setBlock(j1, k1 - 5, l1 + 21, 0); + world.setBlock(j1, k1 - 6, l1 + 21, 0); + for (int z = 0; z < 8; z++) { + for (int y = 4; y < 7; y++) { + world.setBlock(j1, k1 - y - z, l1 + 22 + z, 0); } - world.setBlock(j1, k1 - 4, l1 + 21, 0); - world.setBlock(j1, k1 - 5, l1 + 21, 0); - world.setBlock(j1, k1 - 6, l1 + 21, 0); - for (int z = 0; z < 8; z++) { - for (int y = 4; y < 7; y++) { - world.setBlock(j1, k1 - y - z, l1 + 22 + z, 0); - } + } + int j4 = random.nextInt(100); + if (j4 <= 20) { + for (int x = -1; x < 2; x++) { + world.setBlock(j1 + x, k1 - 12, l1 + 31, 0); + world.setBlock(j1 + x, k1 - 13, l1 + 31, 0); + world.setBlock(j1 + x, k1 - 12, l1 + 32, 0); + world.setBlock(j1 + x, k1 - 13, l1 + 32, 0); + world.setBlock(j1 + x, k1 - 12, l1 + 33, 0); + world.setBlock(j1 + x, k1 - 13, l1 + 33, 0); } - int j4 = random.nextInt(100); - if (j4 <= 20) { - for (int x = -1; x < 2; x++) { - world.setBlock(j1 + x, k1 - 12, l1 + 31, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 31, 0); - world.setBlock(j1 + x, k1 - 12, l1 + 32, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 32, 0); - world.setBlock(j1 + x, k1 - 12, l1 + 33, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 33, 0); - } - world.setBlock(j1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1, k1 - 10, l1 + 32, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1, k1 - 11, l1 + 32, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 - 11, l1 + 32)); + world.setBlock(j1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + world.setBlock(j1, k1 - 10, l1 + 32, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + world.setBlock(j1 + 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + world.setBlock(j1 + 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); + world.setBlock(j1 + 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + world.setBlock(j1, k1 - 11, l1 + 32, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 - 11, l1 + 32)); + } + j1++; + world.setBlock(j1, k1 - 4, l1, 0); + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 6, l1, 0); + j1++; + world.setBlock(j1, k1 - 4, l1, 0); + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 6, l1, 0); + world.setBlock(j1, k1 - 7, l1, 0); + j1++; + world.setBlock(j1, k1 - 5, l1, 0); + world.setBlock(j1, k1 - 6, l1, 0); + world.setBlock(j1, k1 - 7, l1, 0); + world.setBlock(j1, k1 - 8, l1, 0); + j1++; + world.setBlock(j1, k1 - 6, l1, 0); + world.setBlock(j1, k1 - 7, l1, 0); + world.setBlock(j1, k1 - 8, l1, 0); + world.setBlock(j1, k1 - 9, l1, 0); + j1++; + world.setBlock(j1, k1 - 7, l1, 0); + world.setBlock(j1, k1 - 8, l1, 0); + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + j1++; + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + j1++; + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + j1++; + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + j1++; + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 10, l1, 0); + world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); - j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); - j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); - j1++; - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); - j1++; - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.stone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.stone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 3; y++) { + for (int z = -1; z < 2; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 3; y++) { - for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + } + world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 10, l1, 0); + world.setBlock(j1, k1 - 9, l1, 0); + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1, Block.cobblestoneMossy.blockID); + int k6 = random.nextInt(100); + if (k6 <= 30) { + world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.vine.blockID); + world.setBlock(j1 - 2, k1 - 8, l1, Block.vine.blockID); + world.setBlock(j1 - 2, k1 - 9, l1, Block.vine.blockID); + world.setBlock(j1 - 4, k1 - 8, l1 + 2, Block.vine.blockID); + world.setBlock(j1 - 6, k1 - 8, l1 - 1, Block.vine.blockID); + } + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 10, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1, Block.cobblestoneMossy.blockID); - int k6 = random.nextInt(100); - if (k6 <= 30) { - world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 2, k1 - 8, l1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 - 9, l1, Block.vine.blockID); - world.setBlock(j1 - 4, k1 - 8, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 6, k1 - 8, l1 - 1, Block.vine.blockID); + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); } - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + j1++; + world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int y = 0; y < 4; y++) { + for (int z = -4; z < 5; z++) { + world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + } + } + world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); + world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + int i8 = random.nextInt(2) + 1; + if (i8 == 1) { for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + world.setBlock(j1 - 2, k1 - 10 - y, l1, Block.cobblestone.blockID); + world.setBlock(j1 - 6, k1 - 10 - y, l1, Block.cobblestone.blockID); + world.setBlock(j1 - 10, k1 - 10 - y, l1, Block.cobblestone.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l8 = random.nextInt(100); + if (l8 <= 50) { + world.setBlock(j1 - 1, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.stoneDoubleSlab.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l9 = random.nextInt(100); + if (l9 <= 60) { + world.setBlock(j1 - 2, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 2, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 2, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 2, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 2, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l10 = random.nextInt(100); + if (l10 <= 70) { + world.setBlock(j1 - 3, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 3, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 3, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + world.setBlock(j1 - 3, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l11 = random.nextInt(100); + if (l11 <= 40) { + world.setBlock(j1 - 1, k1 - 10, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 1, k1 - 9, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 1, k1 - 8, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 1, k1 - 10, l1 - 3, Block.brick.blockID); + world.setBlock(j1 - 1, k1 - 9, l1 - 3, Block.brick.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int k12 = random.nextInt(100); + if (k12 <= 50) { + world.setBlock(j1 - 2, k1 - 10, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 9, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 8, l1 - 2, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 10, l1 - 3, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 9, l1 - 3, Block.brick.blockID); + world.setBlock(j1 - 2, k1 - 8, l1 - 3, Block.brick.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int l12 = random.nextInt(100); + if (l12 <= 40) { + world.setBlock(j1 - 4, k1 - 10, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 4, k1 - 9, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 4, k1 - 10, l1 - 3, Block.netherBrick.blockID); + world.setBlock(j1 - 4, k1 - 9, l1 - 3, Block.netherBrick.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int i13 = random.nextInt(100); + if (i13 <= 40) { + world.setBlock(j1 - 5, k1 - 10, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 5, k1 - 9, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 5, k1 - 10, l1 - 3, Block.netherBrick.blockID); + world.setBlock(j1 - 5, k1 - 9, l1 - 3, Block.netherBrick.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 6, k1 - 9, l1 - 2, Block.netherBrick.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 - 3, Block.netherBrick.blockID); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } + int j13 = random.nextInt(100); + if (j13 <= 15) { + world.setBlock(j1 - 9, k1 - 10, l1 + 2, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 + 2)); } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } - } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } - } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } - } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); - for (int y = 0; y < 4; y++) { - for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); - } - } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - int i8 = random.nextInt(2) + 1; - if (i8 == 1) { - for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 2, k1 - 10 - y, l1, Block.cobblestone.blockID); - world.setBlock(j1 - 6, k1 - 10 - y, l1, Block.cobblestone.blockID); - world.setBlock(j1 - 10, k1 - 10 - y, l1, Block.cobblestone.blockID); - } - int l8 = random.nextInt(100); - if (l8 <= 50) { - world.setBlock(j1 - 1, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.stoneDoubleSlab.blockID); - } - int l9 = random.nextInt(100); - if (l9 <= 60) { - world.setBlock(j1 - 2, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); - } - int l10 = random.nextInt(100); - if (l10 <= 70) { - world.setBlock(j1 - 3, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); - } - int l11 = random.nextInt(100); - if (l11 <= 40) { - world.setBlock(j1 - 1, k1 - 10, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 - 3, Block.brick.blockID); - } - int k12 = random.nextInt(100); - if (k12 <= 50) { - world.setBlock(j1 - 2, k1 - 10, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 10, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 - 3, Block.brick.blockID); - } - int l12 = random.nextInt(100); - if (l12 <= 40) { - world.setBlock(j1 - 4, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 10, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 9, l1 - 3, Block.netherBrick.blockID); - } - int i13 = random.nextInt(100); - if (i13 <= 40) { - world.setBlock(j1 - 5, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 9, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 3, Block.netherBrick.blockID); - } - int j13 = random.nextInt(100); - if (j13 <= 15) { - world.setBlock(j1 - 9, k1 - 10, l1 + 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 + 2)); - } - int k13 = random.nextInt(100); - if (k13 <= 15) { - world.setBlock(j1 - 9, k1 - 10, l1 - 2, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 - 2)); - } - } - if (i8 != 2) { - return true; - } - for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 1, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - } - world.setBlock(j1 - 4, k1 - 10, l1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 - 4, k1 - 10, l1); - if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); - } - world.setBlock(j1 - 8, k1 - 10, l1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 8, k1 - 10, l1 + 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 8, k1 - 10, l1 - 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 5, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1 - 1, Block.cobblestone.blockID); - int i9 = random.nextInt(100); - if (i9 <= 30) { - world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); - } - if (i9 <= 10) { - world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); - } - for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 9, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 9, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 9, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - } - int i10 = random.nextInt(100); - if (i10 <= 20) { - world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 2, k1 - 10, l1 + 4)); - } - int i11 = random.nextInt(100); - if (i11 <= 40) { - world.setBlock(j1 - 3, k1 - 9, l1 + 3, 0); - world.setBlock(j1 - 3, k1 - 8, l1 + 3, 0); - world.setBlock(j1 - 3, k1 - 7, l1 + 3, 0); - world.setBlock(j1 - 1, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 - 10, l1 + 2, Block.blockNetherQuartz.blockID, 2, 2); - } - int i12 = random.nextInt(100); - if (i12 <= 40) { - world.setBlock(j1 - 9, k1 - 9, l1 - 3, 0); - world.setBlock(j1 - 9, k1 - 8, l1 - 3, 0); - world.setBlock(j1 - 9, k1 - 7, l1 - 3, 0); - world.setBlock(j1 - 7, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); + int k13 = random.nextInt(100); + if (k13 <= 15) { + world.setBlock(j1 - 9, k1 - 10, l1 - 2, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 - 2)); } } + if (i8 != 2) { + return true; + } + for (int y = 0; y < 4; y++) { + world.setBlock(j1 - 1, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 1, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 1, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 3, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 3, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 3, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + } + world.setBlock(j1 - 4, k1 - 10, l1, Block.mobSpawner.blockID); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 - 4, k1 - 10, l1); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID("Zombie"); + } + world.setBlock(j1 - 8, k1 - 10, l1, Block.stoneSingleSlab.blockID); + world.setBlock(j1 - 8, k1 - 10, l1 + 1, Block.stoneSingleSlab.blockID); + world.setBlock(j1 - 8, k1 - 10, l1 - 1, Block.stoneSingleSlab.blockID); + world.setBlock(j1 - 5, k1 - 10, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 5, k1 - 10, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1 - 5, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 6, k1 - 10, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 + 1, Block.cobblestone.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 7, k1 - 10, l1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 7, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); + world.setBlock(j1 - 7, k1 - 10, l1 - 1, Block.cobblestone.blockID); + int i9 = random.nextInt(100); + if (i9 <= 30) { + world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); + } + if (i9 <= 10) { + world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); + ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); + } + for (int y = 0; y < 4; y++) { + world.setBlock(j1 - 9, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 9, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 9, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 11, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 11, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 11, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + } + int i10 = random.nextInt(100); + if (i10 <= 20) { + world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.chest.blockID); + ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 2, k1 - 10, l1 + 4)); + } + int i11 = random.nextInt(100); + if (i11 <= 40) { + world.setBlock(j1 - 3, k1 - 9, l1 + 3, 0); + world.setBlock(j1 - 3, k1 - 8, l1 + 3, 0); + world.setBlock(j1 - 3, k1 - 7, l1 + 3, 0); + world.setBlock(j1 - 1, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1, k1 - 10, l1 + 2, Block.blockNetherQuartz.blockID, 2, 2); + } + int i12 = random.nextInt(100); + if (i12 <= 40) { + world.setBlock(j1 - 9, k1 - 9, l1 - 3, 0); + world.setBlock(j1 - 9, k1 - 8, l1 - 3, 0); + world.setBlock(j1 - 9, k1 - 7, l1 - 3, 0); + world.setBlock(j1 - 7, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2, 2); + world.setBlock(j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); + } return true; } } diff --git a/common/mysticruins/WorldGenMystic.java b/common/mysticruins/WorldGenMystic.java index 62b74f0..0ccb1d9 100644 --- a/common/mysticruins/WorldGenMystic.java +++ b/common/mysticruins/WorldGenMystic.java @@ -1,10 +1,14 @@ package mysticruins; +import java.util.Arrays; import java.util.Random; import net.minecraft.world.World; +import net.minecraft.world.WorldType; +import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenerator; +import net.minecraftforge.common.BiomeDictionary; import cpw.mods.fml.common.IWorldGenerator; public class WorldGenMystic implements IWorldGenerator { @@ -17,6 +21,9 @@ public class WorldGenMystic implements IWorldGenerator { if (Config.allowId[0].contains(world.provider.dimensionId)) { generateRuins(world, random, chunkX * 16, chunkZ * 16); } + if (world.getWorldInfo().getTerrainType() == WorldType.FLAT) { + return; + } if (Config.allowId[1].contains(world.provider.dimensionId)) { generateDungeon(world, random, chunkX * 16, chunkZ * 16); } @@ -24,29 +31,31 @@ public class WorldGenMystic implements IWorldGenerator { private void generateDungeon(World world, Random random, int blockX, int blockZ) { int Xcoord1, Ycoord1, Zcoord1; + BiomeGenBase biome; for (int i = 0; i < Config.DunRarity; i++) { Xcoord1 = blockX + random.nextInt(16) + 8; Ycoord1 = random.nextInt(9) + 28; Zcoord1 = blockZ + random.nextInt(16) + 8; - if (!Config.allowId[3].contains(world.getBiomeGenForCoords(Xcoord1, Zcoord1).biomeID)) { - continue; + biome = world.getBiomeGenForCoords(Xcoord1, Zcoord1); + if (Config.allowId[3].contains(biome.biomeID) && Config.allowType[1].containsAll(Arrays.asList(BiomeDictionary.getTypesForBiome(biome)))) { + if (dungeon.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) + break; } - if (dungeon.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) - break; } } private void generateRuins(World world, Random random, int blockX, int blockZ) { int Xcoord1, Ycoord1, Zcoord1; + BiomeGenBase biome; for (int i = 0; i < Config.RuinRarity; i++) { Xcoord1 = blockX + random.nextInt(16) + 8; Ycoord1 = random.nextInt(11) + 60; Zcoord1 = blockZ + random.nextInt(16) + 8; - if (!Config.allowId[2].contains(world.getBiomeGenForCoords(Xcoord1, Zcoord1).biomeID)) { - continue; + biome = world.getBiomeGenForCoords(Xcoord1, Zcoord1); + if (Config.allowId[2].contains(biome.biomeID) && Config.allowType[0].containsAll(Arrays.asList(BiomeDictionary.getTypesForBiome(biome)))) { + if (ruin.generate(world, random, Xcoord1, Ycoord1, Zcoord1) || ruin1.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) + break; } - if (ruin.generate(world, random, Xcoord1, Ycoord1, Zcoord1) || ruin1.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) - break; } } } \ No newline at end of file From 0ca980780013ead7ec0d7f7d23bdfff7c835124a Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 28 Oct 2013 13:37:48 +0100 Subject: [PATCH 13/59] Added mob spawner config option --- common/MysticRuins/Config.java | 34 +++++++++++++++++++ .../MysticRuins/StructureMysticDungeon.java | 18 +++++----- 2 files changed, 43 insertions(+), 9 deletions(-) diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 8a4353f..5d98579 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -1,13 +1,17 @@ package mysticruins; import java.io.File; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; +import java.util.Random; import java.util.Set; +import net.minecraft.util.WeightedRandom; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; +import net.minecraftforge.common.DungeonHooks.DungeonMob; import net.minecraftforge.common.Configuration; public class Config { @@ -17,10 +21,40 @@ public class Config { public static Set[] allowId = new HashSet[4]; public static final String[] allows = { "Ruin allowed dimension id", "Dungeon allowed dimension id", "Ruin allowed biome id", "Dungeon allowed biome id" }; public static Set[] allowType = new HashSet[2]; + public static ArrayList dungeonMobs = new ArrayList(); + + public static void addDungeonMob(String name, int rarity) { + for (DungeonMob mob : dungeonMobs) { + if (name.equals(mob.type)) { + mob.itemWeight += rarity; + return; + } + } + dungeonMobs.add(new DungeonMob(rarity, name)); + } + + public static String getRandomDungeonMob(Random rand) { + DungeonMob mob = (DungeonMob) WeightedRandom.getRandomItem(rand, dungeonMobs); + if (mob == null) { + return ""; + } + return mob.type; + } public static void initialize(File file) { config = new Configuration(file); config.load(); + String[] mobs = config.get("DungeonMobs", "Spawner Type & Relative Chance", "Skeleton-50,Spider-50,Zombie-20,Cavepider-10,Blaze-1").getString().split(","); + String[] mob; + for (String txt : mobs) { + mob = txt.split("-"); + if (mob.length == 2) { + try { + addDungeonMob(mob[0].trim(), Integer.parseInt(mob[1].trim())); + } catch (NumberFormatException e) { + } + } + } StringBuilder build = new StringBuilder("Available biome tags are: "); for (Type t : Type.values()) { build.append(t); diff --git a/common/MysticRuins/StructureMysticDungeon.java b/common/MysticRuins/StructureMysticDungeon.java index 8400adb..dd83609 100644 --- a/common/MysticRuins/StructureMysticDungeon.java +++ b/common/MysticRuins/StructureMysticDungeon.java @@ -393,14 +393,14 @@ public class StructureMysticDungeon extends WorldGenerator { world.setBlock(j1, k1 + 1, l1 + 1, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 1); if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); + spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } world.setBlock(j1, k1 + 2, l1 + 1, Block.chest.blockID); ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 + 2, l1 + 1)); world.setBlock(j1, k1 + 3, l1 + 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawnerII = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 3, l1 + 1); - if (spawnerII != null) { - spawnerII.getSpawnerLogic().setMobID("CaveSpider"); + spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 3, l1 + 1); + if (spawner != null) { + spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } world.setBlock(j1, k1 + 1, l1 + 2, 0); world.setBlock(j1, k1 + 2, l1 + 2, 0); @@ -444,7 +444,7 @@ public class StructureMysticDungeon extends WorldGenerator { world.setBlock(j1, k1 + 1, l1 + 3, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 3); if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Creeper"); + spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } } } @@ -477,7 +477,7 @@ public class StructureMysticDungeon extends WorldGenerator { world.setBlock(j1, k1 + 2, l1 + 2, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 + 2); if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Skeleton"); + spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } world.setBlock(j1, k1 + 3, l1 + 2, Block.bookShelf.blockID); world.setBlock(j1, k1 + 1, l1 + 3, Block.bookShelf.blockID); @@ -523,7 +523,7 @@ public class StructureMysticDungeon extends WorldGenerator { world.setBlock(j1, k1 + 1, l1 + 2, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 2); if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Blaze"); + spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); } @@ -573,7 +573,7 @@ public class StructureMysticDungeon extends WorldGenerator { world.setBlock(j1, k1 + 2, l1 - 1, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 - 1); if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); + spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } world.setBlock(j1, k1 + 1, l1 - 2, 0); world.setBlock(j1, k1 + 2, l1 - 2, 0); @@ -1808,7 +1808,7 @@ public class StructureMysticDungeon extends WorldGenerator { world.setBlock(j1 - 4, k1 - 10, l1, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 - 4, k1 - 10, l1); if (spawner != null) { - spawner.getSpawnerLogic().setMobID("Zombie"); + spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } world.setBlock(j1 - 8, k1 - 10, l1, Block.stoneSingleSlab.blockID); world.setBlock(j1 - 8, k1 - 10, l1 + 1, Block.stoneSingleSlab.blockID); From 1f385fecc78795bf7d55b3b74754e72343326718 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 28 Oct 2013 19:45:48 +0100 Subject: [PATCH 14/59] Moved localization to vanilla language files --- common/MysticOres/MysticOres.java | 8 +- common/MysticOres/Util/Localizations.java | 96 ---------- common/MysticStones/MysticStones.java | 2 - common/MysticStones/Util/Localizations.java | 96 ---------- common/MysticWorld/MysticWorld.java | 2 - common/MysticWorld/Util/Localizations.java | 96 ---------- common/assets/mysticmods/lang/de_DE.lang | 182 +++++++++++++++++++ common/assets/mysticmods/lang/de_DE.xml | 190 -------------------- common/assets/mysticmods/lang/en_US.lang | 179 ++++++++++++++++++ common/assets/mysticmods/lang/en_US.xml | 190 -------------------- 10 files changed, 364 insertions(+), 677 deletions(-) delete mode 100644 common/MysticOres/Util/Localizations.java delete mode 100644 common/MysticStones/Util/Localizations.java delete mode 100644 common/MysticWorld/Util/Localizations.java create mode 100644 common/assets/mysticmods/lang/de_DE.lang delete mode 100644 common/assets/mysticmods/lang/de_DE.xml create mode 100644 common/assets/mysticmods/lang/en_US.lang delete mode 100644 common/assets/mysticmods/lang/en_US.xml diff --git a/common/MysticOres/MysticOres.java b/common/MysticOres/MysticOres.java index c5f268b..e0edf15 100644 --- a/common/MysticOres/MysticOres.java +++ b/common/MysticOres/MysticOres.java @@ -3,7 +3,6 @@ package mysticores; import mysticores.blocks.BlockHandler; import mysticores.items.Items; import mysticores.util.ConfigurationManager; -import mysticores.util.Localizations; import mysticores.util.OreDictManager; import mysticores.util.RecipeManager; import mysticores.util.TabMysticOres; @@ -18,10 +17,10 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; -@Mod(modid = "MysticOres", name = "Mystic Ores", version = "0.1") +@Mod(modid = "mysticores", name = "Mystic Ores", version = "0.1") @NetworkMod(clientSideRequired = true) public class MysticOres implements IFuelHandler { - @Instance("MysticOres") + @Instance("mysticores") public static MysticOres instance; public static final CreativeTabs MysticOresTab = new TabMysticOres("MysticOresTab"); @@ -41,7 +40,6 @@ public class MysticOres implements IFuelHandler { OreDictManager.initialize(); RecipeManager.initialize(); GeneratorManager.initialize(); - Localizations.initialize(); GameRegistry.registerFuelHandler(this); } -} +} \ No newline at end of file diff --git a/common/MysticOres/Util/Localizations.java b/common/MysticOres/Util/Localizations.java deleted file mode 100644 index 9a1b326..0000000 --- a/common/MysticOres/Util/Localizations.java +++ /dev/null @@ -1,96 +0,0 @@ -package mysticores.util; - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Enumeration; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import java.util.zip.ZipEntry; -import java.util.zip.ZipException; -import java.util.zip.ZipFile; - -import mysticores.MysticOres; -import cpw.mods.fml.common.Loader; -import cpw.mods.fml.common.registry.LanguageRegistry; - -/* - * - * All credits go to copygirl (or copy....boy) for this one - * Couldn't have done any of this without your - * repository, many thanks friend c: - * - */ -@Deprecated(/* replaced by vanilla */) -public class Localizations { - private Localizations() { - } - - public static void initialize() { - File source = Loader.instance().getReversedModObjectList().get(MysticOres.instance).getSource(); - Pattern pattern = Pattern.compile(".*(assets/" + "mysticmods/lang/(.+)\\.(.+))"); - for (String file : getResources(source, pattern)) { - Matcher matcher = pattern.matcher(file); - matcher.find(); - String resource = "/" + matcher.group(1); - String lang = matcher.group(2); - boolean isXML = matcher.group(3).equalsIgnoreCase("XML"); - LanguageRegistry.instance().loadLocalization(resource, lang, isXML); - } - } - - private static Collection getResources(File file, Pattern pattern) { - ArrayList retval = new ArrayList(); - if (file.isDirectory()) - retval.addAll(getResourcesFromDirectory(file, pattern)); - else - retval.addAll(getResourcesFromJarFile(file, pattern)); - return retval; - } - - private static Collection getResourcesFromDirectory(File directory, Pattern pattern) { - ArrayList retval = new ArrayList(); - File[] FileList = directory.listFiles(); - for (File file : FileList) { - if (file.isDirectory()) { - retval.addAll(getResourcesFromDirectory(file, pattern)); - } else - try { - String fileName = file.getCanonicalPath().replace('\\', '/'); - boolean accept = pattern.matcher(fileName).matches(); - if (accept) - retval.add(fileName); - } catch (final IOException e) { - throw new Error(e); - } - } - return retval; - } - - private static Collection getResourcesFromJarFile(File file, Pattern pattern) { - ArrayList retval = new ArrayList(); - ZipFile Zip; - try { - Zip = new ZipFile(file); - } catch (ZipException Ex) { - throw new Error(Ex); - } catch (IOException Ex) { - throw new Error(Ex); - } - Enumeration entries = Zip.entries(); - while (entries.hasMoreElements()) { - ZipEntry ZipE = entries.nextElement(); - String FileName = ZipE.getName(); - boolean accept = pattern.matcher(FileName).matches(); - if (accept) - retval.add(FileName); - } - try { - Zip.close(); - } catch (IOException Ex) { - throw new Error(Ex); - } - return retval; - } -} diff --git a/common/MysticStones/MysticStones.java b/common/MysticStones/MysticStones.java index 5c97828..2626508 100644 --- a/common/MysticStones/MysticStones.java +++ b/common/MysticStones/MysticStones.java @@ -9,7 +9,6 @@ import mysticstones.blocks.ItemReinforced; import mysticstones.blocks.ItemStoneBricks; import mysticstones.blocks.ItemStones; import mysticstones.util.Config; -import mysticstones.util.Localizations; import mysticstones.util.RecipeHandler; import mysticstones.util.TabMysticStones; import mysticstones.worldgen.WorldGeneratorStones; @@ -41,7 +40,6 @@ public class MysticStones { GameRegistry.registerBlock(stones, ItemStones.class, "Stones"); GameRegistry.registerBlock(stoneBricks, ItemStoneBricks.class, "StoneBricks"); GameRegistry.registerBlock(reinforcedBricks, ItemReinforced.class, "Reinforcedbricks"); - Localizations.Initialize(); RecipeHandler.craftPlanks(); RecipeHandler.craftStoneBricks(); RecipeHandler.craftReinforced(); diff --git a/common/MysticStones/Util/Localizations.java b/common/MysticStones/Util/Localizations.java deleted file mode 100644 index 7cf0d79..0000000 --- a/common/MysticStones/Util/Localizations.java +++ /dev/null @@ -1,96 +0,0 @@ -package mysticstones.util; - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Enumeration; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import java.util.zip.ZipEntry; -import java.util.zip.ZipException; -import java.util.zip.ZipFile; - -import mysticstones.MysticStones; -import cpw.mods.fml.common.Loader; -import cpw.mods.fml.common.registry.LanguageRegistry; - -/* - * - * All credits go to copygirl (or copy....boy) for this one - * Couldn't have done any of this without your - * repository, many thanks friend c: - * - */ -@Deprecated(/* replaced by vanilla */) -public class Localizations { - private Localizations() { - } - - public static void Initialize() { - File source = Loader.instance().getReversedModObjectList().get(MysticStones.instance).getSource(); - Pattern pattern = Pattern.compile(".*(assets/" + "mysticmods/lang/(.+)\\.(.+))"); - for (String file : getResources(source, pattern)) { - Matcher matcher = pattern.matcher(file); - matcher.find(); - String resource = "/" + matcher.group(1); - String lang = matcher.group(2); - boolean isXML = matcher.group(3).equalsIgnoreCase("XML"); - LanguageRegistry.instance().loadLocalization(resource, lang, isXML); - } - } - - private static Collection getResources(File file, Pattern pattern) { - ArrayList retval = new ArrayList(); - if (file.isDirectory()) - retval.addAll(getResourcesFromDirectory(file, pattern)); - else - retval.addAll(getResourcesFromJarFile(file, pattern)); - return retval; - } - - private static Collection getResourcesFromDirectory(File directory, Pattern pattern) { - ArrayList retval = new ArrayList(); - File[] FileList = directory.listFiles(); - for (File file : FileList) { - if (file.isDirectory()) { - retval.addAll(getResourcesFromDirectory(file, pattern)); - } else - try { - String fileName = file.getCanonicalPath().replace('\\', '/'); - boolean accept = pattern.matcher(fileName).matches(); - if (accept) - retval.add(fileName); - } catch (final IOException e) { - throw new Error(e); - } - } - return retval; - } - - private static Collection getResourcesFromJarFile(File file, Pattern pattern) { - ArrayList retval = new ArrayList(); - ZipFile Zip; - try { - Zip = new ZipFile(file); - } catch (ZipException Ex) { - throw new Error(Ex); - } catch (IOException Ex) { - throw new Error(Ex); - } - Enumeration entries = Zip.entries(); - while (entries.hasMoreElements()) { - ZipEntry ZipE = entries.nextElement(); - String FileName = ZipE.getName(); - boolean accept = pattern.matcher(FileName).matches(); - if (accept) - retval.add(FileName); - } - try { - Zip.close(); - } catch (IOException Ex) { - throw new Error(Ex); - } - return retval; - } -} diff --git a/common/MysticWorld/MysticWorld.java b/common/MysticWorld/MysticWorld.java index aebc0cf..6b95fa0 100644 --- a/common/MysticWorld/MysticWorld.java +++ b/common/MysticWorld/MysticWorld.java @@ -8,7 +8,6 @@ import mysticworld.lib.Booleans; import mysticworld.tiles.TileEntityHandler; import mysticworld.util.CommonProxy; import mysticworld.util.Config; -import mysticworld.util.Localizations; import mysticworld.util.RecipeHandler; import mysticworld.util.Reference; import mysticworld.util.TabMysticWorld; @@ -47,7 +46,6 @@ public class MysticWorld { GameRegistry.registerWorldGenerator(new WorldGenStones()); EntityHandler.init(); RecipeHandler.init(); - Localizations.Initialize(); proxy.registerRenders(); } diff --git a/common/MysticWorld/Util/Localizations.java b/common/MysticWorld/Util/Localizations.java deleted file mode 100644 index 7117fd1..0000000 --- a/common/MysticWorld/Util/Localizations.java +++ /dev/null @@ -1,96 +0,0 @@ -package mysticworld.util; - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Enumeration; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import java.util.zip.ZipEntry; -import java.util.zip.ZipException; -import java.util.zip.ZipFile; - -import mysticworld.MysticWorld; -import cpw.mods.fml.common.Loader; -import cpw.mods.fml.common.registry.LanguageRegistry; - -/* - * - * All credits go to copygirl (or copy....boy) for this one - * Couldn't have done any of this without your - * repository, many thanks friend c: - * - */ -@Deprecated(/* replaced by vanilla */) -public class Localizations { - private Localizations() { - } - - public static void Initialize() { - File source = Loader.instance().getReversedModObjectList().get(MysticWorld.instance).getSource(); - Pattern pattern = Pattern.compile(".*(assets/" + "mysticmods/lang/(.+)\\.(.+))"); - for (String file : getResources(source, pattern)) { - Matcher matcher = pattern.matcher(file); - matcher.find(); - String resource = "/" + matcher.group(1); - String lang = matcher.group(2); - boolean isXML = matcher.group(3).equalsIgnoreCase("XML"); - LanguageRegistry.instance().loadLocalization(resource, lang, isXML); - } - } - - private static Collection getResources(File file, Pattern pattern) { - ArrayList retval = new ArrayList(); - if (file.isDirectory()) - retval.addAll(getResourcesFromDirectory(file, pattern)); - else - retval.addAll(getResourcesFromJarFile(file, pattern)); - return retval; - } - - private static Collection getResourcesFromDirectory(File directory, Pattern pattern) { - ArrayList retval = new ArrayList(); - File[] FileList = directory.listFiles(); - for (File file : FileList) { - if (file.isDirectory()) { - retval.addAll(getResourcesFromDirectory(file, pattern)); - } else - try { - String fileName = file.getCanonicalPath().replace('\\', '/'); - boolean accept = pattern.matcher(fileName).matches(); - if (accept) - retval.add(fileName); - } catch (final IOException e) { - throw new Error(e); - } - } - return retval; - } - - private static Collection getResourcesFromJarFile(File file, Pattern pattern) { - ArrayList retval = new ArrayList(); - ZipFile Zip; - try { - Zip = new ZipFile(file); - } catch (ZipException Ex) { - throw new Error(Ex); - } catch (IOException Ex) { - throw new Error(Ex); - } - Enumeration entries = Zip.entries(); - while (entries.hasMoreElements()) { - ZipEntry ZipE = entries.nextElement(); - String FileName = ZipE.getName(); - boolean accept = pattern.matcher(FileName).matches(); - if (accept) - retval.add(FileName); - } - try { - Zip.close(); - } catch (IOException Ex) { - throw new Error(Ex); - } - return retval; - } -} diff --git a/common/assets/mysticmods/lang/de_DE.lang b/common/assets/mysticmods/lang/de_DE.lang new file mode 100644 index 0000000..be6fb9d --- /dev/null +++ b/common/assets/mysticmods/lang/de_DE.lang @@ -0,0 +1,182 @@ +item.VerditeSword.name=Verditschwert +item.VerditePickaxe.name=Verditspitzhacke +item.VerditeShovel.name=Verditschaufel +item.VerditeAxe.name=Verditaxt +item.VerditeHoe.name=Verdithacke + +item.MithrilSword.name=Mithrilschwert +item.MithrilPickaxe.name=Mithrilspitzhacke +item.MithrilShovel.name=Mithrilschaufel +item.MithrilAxe.name=Mithrilaxt +item.MithrilHoe.name=Mithrilhacke + +item.AdamantineSword.name=Adamantines Schwert +item.AdamantinePickaxe.name=Adamantine Spitzhacke +item.AdamantineShovel.name=Adamantine Schaufel +item.AdamantineAxe.name=Adamantine Axt +item.AdamantineHoe.name=Adamantine Hacke + +item.IridiumSword.name=Iridiumschwert +item.IridiumPickaxe.name=Iridiumspitzhacke +item.IridiumShovel.name=Iridiumschaufel +item.IridiumAxe.name=Iridiumaxt +item.IridiumHoe.name=Iridiumhacke + +item.ObsidianSword.name=Obsidianschwert +item.ObsidianPickaxe.name=Obsidianspitzhacke +item.ObsidianShovel.name=Obsidianschaufel +item.ObsidianAxe.name=Obsidianaxt +item.ObsidianHoe.name=Obsidianhacke + +item.BloodstoneSword.name=Blutsteinschwert +item.BloodstonePickaxe.name=Blutsteinspitzhacke +item.BloodstoneShovel.name=Blutsteinschaufel +item.BloodstoneAxe.name=Blutsteinaxt +item.BloodstoneHoe.name=Blutsteinhacke + +Verdite Ingot.name=Verditbarren +Mithril Ingot.name=Mithrilbarren +Adamantine Ingot.name=Adamantiner Barren +Iridium Ingot.name=Iridiumbarren +Iridium Nugget.name=Iridiumnugget +Tourmaline Gem.name=Turmalin +Agate Gem.name=Achat +Topaz Gem.name=Topas +Amethyst Gem.name=Amethyst +Mystic Powder.name=Mystisches Pulver +Bloodstone Shard.name=Blutsteinscherbe +Glass Shard.name=Glasscherbe +Obsidian Shard.name=Obsidianscherbe +Obsidian Rod.name=Obsidianstab +item.Satchel.name=Magischer Beutel + +Adamantine Ore.name=Adamantines Erz +Amethyst Ore.name=Amethysterz +Iridium Ore.name=Iridiumerz +Mithril Ore.name=Mithrilerz +Tourmaline Ore.name=Turmalinerz +Topaz Ore.name=Topaserz +Verdite Ore.name=Verditerz +Bloodstone.name=Blutstein +Black Soulstone.name=Schwarzer Seelenstein +Blue Soulstone.name=Blauer Seelenstein +Red Soulstone.name=Roter Seelenstein +Agate Ore.name=Achaterz +Tempered Glass.name=Gehärtetes Glas + +itemGroup.MysticOresTab=Mystic Ores + +Purple Planks.name=Violette Planken +Green Planks.name=Grüne Planken +Black Planks.name=Schwarze Planken +Orange Planks.name=Orange Planken +Red Planks.name=Rote Planken +Blue Planks.name=Blaue Planken +Yellow Planks.name=Gelbe Planken + +Smooth Anorthosite.name=Glattes Anorthosit +Smooth Limestone.name=Glatter Kalkstein +Smooth Slate.name=Glatter Schiefer +Smooth Migmatite.name=Glattes Migmatit +Smooth Orthogneiss.name=Glattes Orthogneis +Smooth Marble.name=Glatter Marmor +Smooth Travertine.name=Glattes Travertin + +Anorthosite.name=Anorthosit +Limestone.name=Kalkstein +Slate.name=Schiefer +Migmatite.name=Migmatit +Orthogneiss.name=Orthogneis +Marble.name=Marmor +Travertine.name=Travertin + +Anorthosite Bricks.name=Anorthositziegel +Limestone Bricks.name=Kalksteinziegel +Slate Bricks.name=Schieferziegel +Migmatite Bricks.name=Migmatitziegel +Orthogneiss Bricks.name=Orthogneisziegel +Marble Bricks.name=Marmorziegel +Travertine Bricks.name=Travertinziegel + +Verdite Bricks.name=Verdit-verstärkte Ziegel +Mithril Bricks.name=Mithril-verstärkte Ziegel +Adamantine Bricks.name=Adamantine Verstärkte Ziegel +Iridium Bricks.name=Iridium-verstärkte Ziegel +Topaz Bricks.name=Topas-verstärkte Ziegel +Tourmaline Bricks.name=Turmalin-verstärkte Ziegel +Amethyst Bricks.name=Amethyst-verstärkte Ziegel +Agate Bricks.name=Achat-verstärkte Ziegel + +itemGroup.MysticStonesTab=Mystic Stones + +tile.imbuedStoneFire.name=Magmatischer Felsbrocken +tile.imbuedStoneWater.name=Aquatischer Felsbrocken +tile.imbuedStoneEarth.name=Fruchtbarer Felsbrocken +tile.imbuedStoneAir.name=Durchlüfteter Felsbrocken +tile.imbuedStoneEnergy.name=Kinetischer Felsbrocken + +Bush.name=Gewöhnlicher Busch +Poisonous Bush.name=Giftiger Busch +Weakness Bush.name=Schwächender Busch +Slowness Bush.name=Langsamkeitsbusch +Harming Bush.name=Schadender Busch +Wither Bush.name=Verzehrender Busch +Health Bush.name=Heilender Busch +Speed Bush.name=Geschwindigkeitsbusch +Fire Resistance Bush.name=Löschender Busch +Regen Bush.name=Regenerationsbusch +Night Vision Bush.name=Nachtsichtbusch +Invisibility Bush.name=Unsichtbarkeitsbusch + +tile.platform.name=Säulenplattform +tile.pillar.name=Säulenturm +tile.pillarInsert.name=Säuleneinlage + +Staff.name=Stab +Hilt.name=Stabheft +Handle.name=Stabgriff +Head.name=Stabspitze + +item.imbuedShardFire.name=Magmatische Scherbe +item.imbuedShardWater.name=Aquatische Scherbe +item.imbuedShardEarth.name=Fruchtbare Scherbe +item.imbuedShardAir.name=Durchlüftete Scherbe +item.imbuedShardEnergy.name=Kinetische Scherbe + +item.fireStaff.name=Magmastab +item.waterStaff.name=Aquastab +item.earthStaff.name=Fruchtbarer Stab +item.airStaff.name=Durchlüftungsstab +item.energyStaff.name=Kinesisstab + +item.bushFruit.name=Mysteriöse Frucht + +item.verditeHelmet.name=Verdithelm +item.verditeChestplate.name=Verditbrustplatte +item.verditeLeggings.name=Verditehose +item.verditeBoots.name=Verditestiefel + +item.mithrilHelmet.name=Mithrilhelm +item.mithrilChestplate.name=Mithrilbrustplatte +item.mithrilLeggings.name=Mithrilhose +item.mithrilBoots.name=Mithrilstiefel + +item.adamantineHelmet.name=Adamantiner Helmet +item.adamantineChestplate.name=Adamantine Brustplatte +item.adamantineLeggings.name=Adamantine Hose +item.adamantineBoots.name=Adamantine Stiefel + +item.iridiumHelmet.name=Iridiumhelm +item.iridiumChestplate.name=Iridiumbrustplatte +item.iridiumLeggings.name=Iridiumhose +item.iridiumBoots.name=Iridiumstiefel + +item.fireOrb.name=Magmatischer Orb +item.waterOrb.name=Aquatischer Orb +item.earthOrb.name=Orb der Fruchtbarkeit +item.airOrb.name=Durchlüftender Orb +item.energyOrb.name=Kinesis-Orb + +item.voidShard.name=Scherbe der Leere + +itemGroup.MysticWorldTab=Mystc World \ No newline at end of file diff --git a/common/assets/mysticmods/lang/de_DE.xml b/common/assets/mysticmods/lang/de_DE.xml deleted file mode 100644 index 197d699..0000000 --- a/common/assets/mysticmods/lang/de_DE.xml +++ /dev/null @@ -1,190 +0,0 @@ - - - - German (de_DE) Localization File - - Verditschwert - Verditspitzhacke - Verditschaufel - Verditaxt - Verdithacke - - Mithrilschwert - Mithrilspitzhacke - Mithrilschaufel - Mithrilaxt - Mithrilhacke - - Adamantines Schwert - Adamantine Spitzhacke - Adamantine Schaufel - Adamantine Axt - Adamantine Hacke - - Iridiumschwert - Iridiumspitzhacke - Iridiumschaufel - Iridiumaxt - Iridiumhacke - - Obsidianschwert - Obsidianspitzhacke - Obsidianschaufel - Obsidianaxt - Obsidianhacke - - Blutsteinschwert - Blutsteinspitzhacke - Blutsteinschaufel - Blutsteinaxt - Blutsteinhacke - - Verditbarren - Mithrilbarren - Adamantiner Barren - Iridiumbarren - Iridiumnugget - Turmalin - Achat - Topas - Amethyst - Mystisches Pulver - Blutsteinscherbe - Glasscherbe - Obsidianscherbe - Obsidianstab - Magischer Beutel - - Adamantines Erz - Amethysterz - Iridiumerz - Mithrilerz - Turmalinerz - Topaserz - Verditerz - Blutstein - Schwarzer Seelenstein - Blauer Seelenstein - Roter Seelenstein - Achaterz - Gehärtetes Glas - - Mystic Ores - - Violette Planken - Grüne Planken - Schwarze Planken - Orange Planken - Rote Planken - Blaue Planken - Gelbe Planken - - Glattes Anorthosit - Glatter Kalkstein - Glatter Schiefer - Glattes Migmatit - Glattes Orthogneis - Glatter Marmor - Glattes Travertin - - Anorthosit - Kalkstein - Schiefer - Migmatit - Orthogneis - Marmor - Travertin - - Anorthositziegel - Kalksteinziegel - Schieferziegel - Migmatitziegel - Orthogneisziegel - Marmorziegel - Travertinziegel - - Verdit-verstärkte Ziegel - Mithril-verstärkte Ziegel - Adamantine Verstärkte Ziegel - Iridium-verstärkte Ziegel - Topas-verstärkte Ziegel - Turmalin-verstärkte Ziegel - Amethyst-verstärkte Ziegel - Achat-verstärkte Ziegel - - Mystic Stones - - Magmatischer Felsbrocken - Aquatischer Felsbrocken - Fruchtbarer Felsbrocken - Durchlüfteter Felsbrocken - Kinetischer Felsbrocken - - Gewöhnlicher Busch - Giftiger Busch - Schwächender Busch - Langsamkeitsbusch - Schadender Busch - Verzehrender Busch - Heilender Busch - Geschwindigkeitsbusch - Löschender Busch - Regenerationsbusch - Nachtsichtbusch - Unsichtbarkeitsbusch - - Säulenplattform - Säulenturm - Säuleneinlage - - Stab - Stabheft - Stabgriff - Stabspitze - - Magmatische Scherbe - Aquatische Scherbe - Fruchtbare Scherbe - Durchlüftete Scherbe - Kinetische Scherbe - - Magmastab - Aquastab - Fruchtbarer Stab - Durchlüftungsstab - Kinesisstab - - Mysteriöse Frucht - - Verdithelm - Verditbrustplatte - Verditehose - Verditestiefel - - Mithrilhelm - Mithrilbrustplatte - Mithrilhose - Mithrilstiefel - - Adamantiner Helmet - Adamantine Brustplatte - Adamantine Hose - Adamantine Stiefel - - Iridiumhelm - Iridiumbrustplatte - Iridiumhose - Iridiumstiefel - - Magmatischer Orb - Aquatischer Orb - Orb der Fruchtbarkeit - Durchlüftender Orb - Kinesis-Orb - - Scherbe der Leere - - Mystc World - - - diff --git a/common/assets/mysticmods/lang/en_US.lang b/common/assets/mysticmods/lang/en_US.lang new file mode 100644 index 0000000..dc70e66 --- /dev/null +++ b/common/assets/mysticmods/lang/en_US.lang @@ -0,0 +1,179 @@ +item.VerditeSword.name=Verdite Sword +item.VerditePickaxe.name=Verdite Pickaxe +item.VerditeShovel.name=Verdite Shovel +item.VerditeAxe.name=Verdite Axe +item.VerditeHoe.name=Verdite Hoe + +item.MithrilSword.name=Mithril Sword +item.MithrilPickaxe.name=Mithril Pickaxe +item.MithrilShovel.name=Mithril Shovel +item.MithrilAxe.name=Mithril Axe +item.MithrilHoe.name=Mithril Hoe + +item.AdamantineSword.name=Adamantine Sword +item.AdamantinePickaxe.name=Adamantine Pickaxe +item.AdamantineShovel.name=Adamantine Shovel +item.AdamantineAxe.name=Adamantine Axe +item.AdamantineHoe.name=Adamantine Hoe + +item.IridiumSword.name=Iridium Sword +item.IridiumPickaxe.name=Iridium Pickaxe +item.IridiumShovel.name=Iridium Shovel +item.IridiumAxe.name=Iridium Axe +item.IridiumHoe.name=Iridium Hoe + +item.ObsidianSword.name=Obsidian Sword +item.ObsidianPickaxe.name=Obsidian Pickaxe +item.ObsidianShovel.name=Obsidian Shovel +item.ObsidianAxe.name=Obsidian Axe +item.ObsidianHoe.name=Obsidian Hoe + +item.BloodstoneSword.name=Bloodstone Sword +item.BloodstonePickaxe.name=Bloodstone Pickaxe +item.BloodstoneShovel.name=Bloodstone Shovel +item.BloodstoneAxe.name=Bloodstone Axe +item.BloodstoneHoe.name=Bloodstone Hoe + +Verdite Ingot.name=Verdite Ingot +Mithril Ingot.name=Mithril Ingot +Adamantine Ingot.name=Adamantine Ingot +Iridium Ingot.name=Iridium Ingot +Iridium Nugget.name=Iridium Nugget +Tourmaline Gem.name=Tourmaline Gemstone +Agate Gem.name=Agate Gemstone +Topaz Gem.name=Topaz Gemstone +Amethyst Gem.name=Amethyst Gemstone +Mystic Powder.name=Mystic Powder +Bloodstone Shard.name=Bloodstone Shard +Glass Shard.name=Glass Shard +Obsidian Shard.name=Obsidian Shard +Obsidian Rod.name=Obsidian Rod +item.Satchel.name=Magical Bag + +Adamantine Ore.name=Adamantine Ore +Amethyst Ore.name=Amethyst Ore +Iridium Ore.name=Iridium Ore +Mithril Ore.name=Mithril Ore +Tourmaline Ore.name=Tourmaline Ore +Topaz Ore.name=Topaz Ore +Verdite Ore.name=Verdite Ore +Bloodstone.name=Bloodstone +Black Soulstone.name=Black Soulstone +Blue Soulstone.name=Blue Soulstone +Red Soulstone.name=Red Soulstone +Agate Ore.name=Agate Ore +Tempered Glass.name=Tempered Glass + +itemGroup.MysticOresTab=Mystic Ores + +Purple Planks.name=Purple Planks +Green Planks.name=Green Planks +Black Planks.name=Black Planks +Orange Planks.name=Orange Planks +Red Planks.name=Red Planks +Blue Planks.name=Blue Planks +Yellow Planks.name=Yellow Planks + +Smooth Anorthosite.name=Smooth Anorthosite +Smooth Limestone.name=Smooth Limestone +Smooth Slate.name=Smooth Slate +Smooth Migmatite.name=Smooth Migmatite +Smooth Orthogneiss.name=Smooth Orthogneiss +Smooth Marble.name=Smooth Marble +Smooth Travertine.name=Smooth Travertine + +Anorthosite.name=Anorthosite +Limestone.name=Limestone +Slate.name=Slate +Migmatite.name=Migmatite +Orthogneiss.name=Orthogneiss +Marble.name=Marble +Travertine.name=Travertine + +Anorthosite Bricks.name=Anorthosite Bricks +Limestone Bricks.name=Limestone Bricks +Slate Bricks.name=Slate Bricks +Migmatite Bricks.name=Migmatite Bricks +Orthogneiss Bricks.name=Orthogneiss Bricks +Marble Bricks.name=Marble Bricks +Travertine Bricks.name=Travertine Bricks + +Verdite Bricks.name=Verdite Reinforced Bricks +Mithril Bricks.name=Mithril Reinforced Bricks +Adamantine Bricks.name=Adamantine Reinforced Bricks +Iridium Bricks.name=Iridium Reinfroced Bricks +Topaz Bricks.name=Topaz Reinforced Bricks +Tourmaline Bricks.name=Tourmaline Reinforced Bricks +Amethyst Bricks.name=Amethyst Reinforced Bricks +Agate Bricks.name=Agate Reinforced Bricks + +itemGroup.MysticStonesTab=Mystic Stones + +tile.imbuedStoneFire.name=Magmatic Stone Chunk +tile.imbuedStoneWater.name=Aquatic Stone Chunk +tile.imbuedStoneEarth.name=Fertile Stone Chunk +tile.imbuedStoneAir.name=Aerated Stone Chunk +tile.imbuedStoneEnergy.name=Kinetic Stone Chunk + +Bush.name=Mundane Bush +Poisonous Bush.name=Poisonous Bush +Weakness Bush.name=Weakening Bush +Slowness Bush.name=Slowness Bush +Harming Bush.name=Harming Bush +Wither Bush.name=Withering Bush +Health Bush.name=Healing Bush +Speed Bush.name=Speed Bush +Fire Resistance Bush.name=Extinguishing Bush +Regen Bush.name=Regeneration Bush +Night Vision Bush.name=Night Vision Bush +Invisibility Bush.name=Invisibility Bush + +tile.platform.name=Pillar Platform +tile.pillar.name=Pillar Tower +tile.pillarInsert.name=Pillarinsert + +Staff.name=Staff +Hilt.name=Staff Hilt +Handle.name=Staff Handle +Head.name=Staff Topper + +item.imbuedShardFire.name=Magmatic Shard +item.imbuedShardWater.name=Aquatic Shard +item.imbuedShardEarth.name=Fertile Shard +item.imbuedShardAir.name=Aerated Shard +item.imbuedShardEnergy.name=Kinetic Shard +item.fireStaff.name=Magma Staff +item.waterStaff.name=Aqua Staff +item.earthStaff.name=Fertile Staff +item.airStaff.name=Aeration Staff +item.energyStaff.name=Kinesis Staff +item.bushFruit.name=Mysterious Fruit + +item.verditeHelmet.name=Verdite Helmet +item.verditeChestplate.name=Verdite Chestplate +item.verditeLeggings.name=Verdite Leggings +item.verditeBoots.name=Verdite Boots + +item.mithrilHelmet.name=Mithril Helmet +item.mithrilChestplate.name=Mithril Chestplate +item.mithrilLeggings.name=Mithril Leggings +item.mithrilBoots.name=Mithril Boots + +item.adamantineHelmet.name=Adamantine Helmet +item.adamantineChestplate.name=Adamantine Chestplate +item.adamantineLeggings.name=Adamantine Leggings +item.adamantineBoots.name=Adamantine Boots + +item.iridiumHelmet.name=Iridium Helmet +item.iridiumChestplate.name=Iridium Chestplate +item.iridiumLeggings.name=Iridium Leggings +item.iridiumBoots.name=Iridium Boots + +item.fireOrb.name=Magmatic Orb +item.waterOrb.name=Aquatic Orb +item.earthOrb.name=Orb of Fertility +item.airOrb.name=Aerating Orb +item.energyOrb.name=Kinesis Orb +item.voidShard.name=Void Shard + +itemGroup.MysticWorldTab=Mystic World \ No newline at end of file diff --git a/common/assets/mysticmods/lang/en_US.xml b/common/assets/mysticmods/lang/en_US.xml deleted file mode 100644 index 4195022..0000000 --- a/common/assets/mysticmods/lang/en_US.xml +++ /dev/null @@ -1,190 +0,0 @@ - - - - English (en_US) Localization File - - Verdite Sword - Verdite Pickaxe - Verdite Shovel - Verdite Axe - Verdite Hoe - - Mithril Sword - Mithril Pickaxe - Mithril Shovel - Mithril Axe - Mithril Hoe - - Adamantine Sword - Adamantine Pickaxe - Adamantine Shovel - Adamantine Axe - Adamantine Hoe - - Iridium Sword - Iridium Pickaxe - Iridium Shovel - Iridium Axe - Iridium Hoe - - Obsidian Sword - Obsidian Pickaxe - Obsidian Shovel - Obsidian Axe - Obsidian Hoe - - Bloodstone Sword - Bloodstone Pickaxe - Bloodstone Shovel - Bloodstone Axe - Bloodstone Hoe - - Verdite Ingot - Mithril Ingot - Adamantine Ingot - Iridium Ingot - Iridium Nugget - Tourmaline Gemstone - Agate Gemstone - Topaz Gemstone - Amethyst Gemstone - Mystic Powder - Bloodstone Shard - Glass Shard - Obsidian Shard - Obsidian Rod - Magical Bag - - Adamantine Ore - Amethyst Ore - Iridium Ore - Mithril Ore - Tourmaline Ore - Topaz Ore - Verdite Ore - Bloodstone - Black Soulstone - Blue Soulstone - Red Soulstone - Agate Ore - Tempered Glass - - Mystic Ores - - Purple Planks - Green Planks - Black Planks - Orange Planks - Red Planks - Blue Planks - Yellow Planks - - Smooth Anorthosite - Smooth Limestone - Smooth Slate - Smooth Migmatite - Smooth Orthogneiss - Smooth Marble - Smooth Travertine - - Anorthosite - Limestone - Slate - Migmatite - Orthogneiss - Marble - Travertine - - Anorthosite Bricks - Limestone Bricks - Slate Bricks - Migmatite Bricks - Orthogneiss Bricks - Marble Bricks - Travertine Bricks - - Verdite Reinforced Bricks - Mithril Reinforced Bricks - Adamantine Reinforced Bricks - Iridium Reinfroced Bricks - Topaz Reinforced Bricks - Tourmaline Reinforced Bricks - Amethyst Reinforced Bricks - Agate Reinforced Bricks - - Mystic Stones - - Magmatic Stone Chunk - Aquatic Stone Chunk - Fertile Stone Chunk - Aerated Stone Chunk - Kinetic Stone Chunk - - Mundane Bush - Poisonous Bush - Weakening Bush - Slowness Bush - Harming Bush - Withering Bush - Healing Bush - Speed Bush - Extinguishing Bush - Regeneration Bush - Night Vision Bush - Invisibility Bush - - Pillar Platform - Pillar Tower - Pillar Insert - - Staff - Staff Hilt - Staff Handle - Staff Topper - - Magmatic Shard - Aquatic Shard - Fertile Shard - Aerated Shard - Kinetic Shard - - Magma Staff - Aqua Staff - Fertile Staff - Aeration Staff - Kinesis Staff - - Mysterious Fruit - - Verdite Helmet - Verdite Chestplate - Verdite Leggings - Verdite Boots - - Mithril Helmet - Mithril Chestplate - Mithril Leggings - Mithril Boots - - Adamantine Helmet - Adamantine Chestplate - Adamantine Leggings - Adamantine Boots - - Iridium Helmet - Iridium Chestplate - Iridium Leggings - Iridium Boots - - Magmatic Orb - Aquatic Orb - Orb of Fertility - Aerating Orb - Kinesis Orb - - Void Shard - - Mystic World - - - From 1358a5d8f7d738038412471c1adb1fb25d902902 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 28 Oct 2013 20:39:52 +0100 Subject: [PATCH 15/59] Use lower case domain, as expected from Minecraft --- common/MysticOres/Blocks/BlockBase.java | 2 +- common/MysticOres/Items/ItemAxes.java | 2 +- common/MysticOres/Items/ItemHoes.java | 2 +- common/MysticOres/Items/ItemPickaxes.java | 2 +- common/MysticOres/Items/ItemResource.java | 2 +- common/MysticOres/Items/ItemSatchel.java | 2 +- common/MysticOres/Items/ItemShovels.java | 2 +- common/MysticOres/Items/ItemSwords.java | 2 +- common/MysticStones/Blocks/BlockPlanks.java | 2 +- .../MysticStones/Blocks/BlockReinforced.java | 2 +- .../MysticStones/Blocks/BlockStoneBricks.java | 2 +- common/MysticStones/Blocks/BlockStones.java | 2 +- common/MysticWorld/Blocks/BlockBush.java | 2 +- .../MysticWorld/Blocks/BlockImbuedStone.java | 7 +------ common/MysticWorld/Blocks/BlockLightCube.java | 2 +- common/MysticWorld/Blocks/BlockPillar.java | 2 +- common/MysticWorld/Blocks/BlockPlatform.java | 8 +------ .../Items/ItemArmorAdamantine.java | 21 ++----------------- .../MysticWorld/Items/ItemArmorIridium.java | 21 ++----------------- .../MysticWorld/Items/ItemArmorMithril.java | 21 ++----------------- .../MysticWorld/Items/ItemArmorVerdite.java | 21 ++----------------- common/MysticWorld/Items/ItemBushFruit.java | 2 +- common/MysticWorld/Items/ItemImbuedShard.java | 2 +- common/MysticWorld/Util/Reference.java | 2 +- 24 files changed, 28 insertions(+), 107 deletions(-) diff --git a/common/MysticOres/Blocks/BlockBase.java b/common/MysticOres/Blocks/BlockBase.java index ccd85f0..a73a66d 100644 --- a/common/MysticOres/Blocks/BlockBase.java +++ b/common/MysticOres/Blocks/BlockBase.java @@ -167,7 +167,7 @@ public class BlockBase extends Block { public void registerIcons(IconRegister register) { textures = new Icon[16]; for (int i = 0; i < ItemBase.BLOCK_NAMES.length; i++) { - textures[i] = register.registerIcon("MysticMods:" + ItemBase.BLOCK_NAMES[i]); + textures[i] = register.registerIcon("mysticmods:" + ItemBase.BLOCK_NAMES[i]); } } diff --git a/common/MysticOres/Items/ItemAxes.java b/common/MysticOres/Items/ItemAxes.java index 6f46021..39aa84d 100644 --- a/common/MysticOres/Items/ItemAxes.java +++ b/common/MysticOres/Items/ItemAxes.java @@ -13,6 +13,6 @@ public class ItemAxes extends ItemAxe { @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); + itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); } } diff --git a/common/MysticOres/Items/ItemHoes.java b/common/MysticOres/Items/ItemHoes.java index c08e3a9..fd0b21b 100644 --- a/common/MysticOres/Items/ItemHoes.java +++ b/common/MysticOres/Items/ItemHoes.java @@ -13,6 +13,6 @@ public class ItemHoes extends ItemHoe { @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); + itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); } } diff --git a/common/MysticOres/Items/ItemPickaxes.java b/common/MysticOres/Items/ItemPickaxes.java index da669cc..fe364c3 100644 --- a/common/MysticOres/Items/ItemPickaxes.java +++ b/common/MysticOres/Items/ItemPickaxes.java @@ -13,6 +13,6 @@ public class ItemPickaxes extends ItemPickaxe { @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); + itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); } } diff --git a/common/MysticOres/Items/ItemResource.java b/common/MysticOres/Items/ItemResource.java index efaa710..2215d44 100644 --- a/common/MysticOres/Items/ItemResource.java +++ b/common/MysticOres/Items/ItemResource.java @@ -48,6 +48,6 @@ public class ItemResource extends Item { public void registerIcons(IconRegister iconRegister) { icons = new Icon[RESOURCE_TYPES.length]; for (int i = 0; i < RESOURCE_TYPES.length; ++i) - icons[i] = iconRegister.registerIcon("MysticMods:" + RESOURCE_TYPES[i]); + icons[i] = iconRegister.registerIcon("mysticmods:" + RESOURCE_TYPES[i]); } } diff --git a/common/MysticOres/Items/ItemSatchel.java b/common/MysticOres/Items/ItemSatchel.java index 13e44e2..ed457e6 100644 --- a/common/MysticOres/Items/ItemSatchel.java +++ b/common/MysticOres/Items/ItemSatchel.java @@ -35,6 +35,6 @@ public class ItemSatchel extends Item { @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); + itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); } } diff --git a/common/MysticOres/Items/ItemShovels.java b/common/MysticOres/Items/ItemShovels.java index 7020991..5deb12e 100644 --- a/common/MysticOres/Items/ItemShovels.java +++ b/common/MysticOres/Items/ItemShovels.java @@ -13,6 +13,6 @@ public class ItemShovels extends ItemSpade { @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); + itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); } } diff --git a/common/MysticOres/Items/ItemSwords.java b/common/MysticOres/Items/ItemSwords.java index 0cdc1f0..62d3757 100644 --- a/common/MysticOres/Items/ItemSwords.java +++ b/common/MysticOres/Items/ItemSwords.java @@ -13,6 +13,6 @@ public class ItemSwords extends ItemSword { @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("MysticMods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); + itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); } } \ No newline at end of file diff --git a/common/MysticStones/Blocks/BlockPlanks.java b/common/MysticStones/Blocks/BlockPlanks.java index 7b73250..418556c 100644 --- a/common/MysticStones/Blocks/BlockPlanks.java +++ b/common/MysticStones/Blocks/BlockPlanks.java @@ -21,7 +21,7 @@ public class BlockPlanks extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemPlanks.PLANK_TYPE.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemPlanks.PLANK_TYPE[i]); + textures[i] = iconRegister.registerIcon("mysticmods:" + ItemPlanks.PLANK_TYPE[i]); } } } diff --git a/common/MysticStones/Blocks/BlockReinforced.java b/common/MysticStones/Blocks/BlockReinforced.java index 94f0800..e5f39dd 100644 --- a/common/MysticStones/Blocks/BlockReinforced.java +++ b/common/MysticStones/Blocks/BlockReinforced.java @@ -27,7 +27,7 @@ public class BlockReinforced extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemReinforced.BRICK_TYPE.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemReinforced.BRICK_TYPE[i]); + textures[i] = iconRegister.registerIcon("mysticmods:" + ItemReinforced.BRICK_TYPE[i]); } } } diff --git a/common/MysticStones/Blocks/BlockStoneBricks.java b/common/MysticStones/Blocks/BlockStoneBricks.java index 85e4695..2311f8a 100644 --- a/common/MysticStones/Blocks/BlockStoneBricks.java +++ b/common/MysticStones/Blocks/BlockStoneBricks.java @@ -21,7 +21,7 @@ public class BlockStoneBricks extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemStoneBricks.STONEBRICK_TYPES.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemStoneBricks.STONEBRICK_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticmods:" + ItemStoneBricks.STONEBRICK_TYPES[i]); } } } diff --git a/common/MysticStones/Blocks/BlockStones.java b/common/MysticStones/Blocks/BlockStones.java index 9f1b2c5..71c18fe 100644 --- a/common/MysticStones/Blocks/BlockStones.java +++ b/common/MysticStones/Blocks/BlockStones.java @@ -51,7 +51,7 @@ public class BlockStones extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemStones.STONE_TYPES.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemStones.STONE_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticmods:" + ItemStones.STONE_TYPES[i]); } } diff --git a/common/MysticWorld/Blocks/BlockBush.java b/common/MysticWorld/Blocks/BlockBush.java index 7a5d89e..2e0cc4f 100644 --- a/common/MysticWorld/Blocks/BlockBush.java +++ b/common/MysticWorld/Blocks/BlockBush.java @@ -103,7 +103,7 @@ public class BlockBush extends BlockFlower { public void registerIcons(IconRegister iconRegister) { textures = new Icon[16]; for (int i = 0; i < 12; i++) { - textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemBush.BUSH_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticmods:" + ItemBush.BUSH_TYPES[i]); } } diff --git a/common/MysticWorld/Blocks/BlockImbuedStone.java b/common/MysticWorld/Blocks/BlockImbuedStone.java index a47d591..ce4456e 100644 --- a/common/MysticWorld/Blocks/BlockImbuedStone.java +++ b/common/MysticWorld/Blocks/BlockImbuedStone.java @@ -60,11 +60,6 @@ public class BlockImbuedStone extends Block { return ItemHandler.imbuedShard.itemID; } - @Override - public int idPicked(World par1World, int par2, int par3, int par4) { - return blockID; - } - @Override public boolean isOpaqueCube() { return false; @@ -92,7 +87,7 @@ public class BlockImbuedStone extends Block { public void registerIcons(IconRegister iconRegister) { textures = new Icon[16]; for (int i = 0; i < 5; i++) { - textures[i] = iconRegister.registerIcon("MysticMods" + ":" + ItemImbuedStone.IMBUED_STONE_TYPE[i] + " Imbued Stone"); + textures[i] = iconRegister.registerIcon("mysticmods" + ":" + ItemImbuedStone.IMBUED_STONE_TYPE[i] + " Imbued Stone"); } } diff --git a/common/MysticWorld/Blocks/BlockLightCube.java b/common/MysticWorld/Blocks/BlockLightCube.java index 87e1d8b..17d8e8f 100644 --- a/common/MysticWorld/Blocks/BlockLightCube.java +++ b/common/MysticWorld/Blocks/BlockLightCube.java @@ -37,7 +37,7 @@ public class BlockLightCube extends Block { @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister iconRegister) { - this.blockIcon = iconRegister.registerIcon("MysticMods" + ":" + "lightCube"); + this.blockIcon = iconRegister.registerIcon("mysticmods:" + "lightCube"); } @Override diff --git a/common/MysticWorld/Blocks/BlockPillar.java b/common/MysticWorld/Blocks/BlockPillar.java index 0ac068d..3dab25b 100644 --- a/common/MysticWorld/Blocks/BlockPillar.java +++ b/common/MysticWorld/Blocks/BlockPillar.java @@ -24,7 +24,7 @@ public class BlockPillar extends Block { @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister iconRegister) { - this.blockIcon = iconRegister.registerIcon("MysticMods" + ":" + "Pillar"); + this.blockIcon = iconRegister.registerIcon("mysticmods:" + "Pillar"); } @Override diff --git a/common/MysticWorld/Blocks/BlockPlatform.java b/common/MysticWorld/Blocks/BlockPlatform.java index dcebb63..d35c09c 100644 --- a/common/MysticWorld/Blocks/BlockPlatform.java +++ b/common/MysticWorld/Blocks/BlockPlatform.java @@ -6,7 +6,6 @@ import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.entity.Entity; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -26,11 +25,6 @@ public class BlockPlatform extends Block { return false; } - @Override - public void onEntityWalking(World world, int x, int y, int z, Entity entity) { - super.onEntityWalking(world, x, y, z, entity); - } - @Override public void randomDisplayTick(World world, int x, int y, int z, Random rand) { int block = BlockHandler.pillar.blockID; @@ -51,7 +45,7 @@ public class BlockPlatform extends Block { @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister iconRegister) { - this.blockIcon = iconRegister.registerIcon("MysticMods" + ":" + "Platform"); + this.blockIcon = iconRegister.registerIcon("mysticmods:" + "Platform"); } @Override diff --git a/common/MysticWorld/Items/ItemArmorAdamantine.java b/common/MysticWorld/Items/ItemArmorAdamantine.java index 7dd45b0..0a0b653 100644 --- a/common/MysticWorld/Items/ItemArmorAdamantine.java +++ b/common/MysticWorld/Items/ItemArmorAdamantine.java @@ -9,39 +9,22 @@ import net.minecraft.item.ItemStack; public class ItemArmorAdamantine extends ItemArmor { int ArmorType; - String ArmorFile_1; - String ArmorFile_2; public ItemArmorAdamantine(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { super(par1, par2EnumArmorMaterial, par3, par4); this.ArmorType = par4; this.setMaxDamage(3000); this.setCreativeTab(MysticWorld.MysticWorldTab); - this.ArmorFile_1 = "/MysticMods/textures/armor/adamantine_1.png"; - this.ArmorFile_2 = "/MysticMods/textures/armor/adamantine_2.png"; } @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { int suffix = this.armorType == 2 ? 2 : 1; - return "MysticMods:textures" + "/models/armor/Adamantine_layer_" + suffix + ".png"; + return "mysticmods:textures" + "/models/armor/Adamantine_layer_" + suffix + ".png"; } @Override public void registerIcons(IconRegister iconRegister) { - switch (ArmorType) { - case 0: - itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_0"); - break; - case 1: - itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_1"); - break; - case 2: - itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_2"); - break; - case 3: - itemIcon = iconRegister.registerIcon("MysticMods:AdamantineArmor_3"); - break; - } + itemIcon = iconRegister.registerIcon("mysticmods:AdamantineArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemArmorIridium.java b/common/MysticWorld/Items/ItemArmorIridium.java index 6c0746c..ba37193 100644 --- a/common/MysticWorld/Items/ItemArmorIridium.java +++ b/common/MysticWorld/Items/ItemArmorIridium.java @@ -13,22 +13,18 @@ import net.minecraft.world.World; public class ItemArmorIridium extends ItemArmor { int ArmorType; - String ArmorFile_1; - String ArmorFile_2; public ItemArmorIridium(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { super(par1, par2EnumArmorMaterial, par3, par4); this.ArmorType = par4; this.setMaxDamage(4000); this.setCreativeTab(MysticWorld.MysticWorldTab); - this.ArmorFile_1 = "/assets/MysticMods/textures/armor/iridium_1.png"; - this.ArmorFile_2 = "/assets/MysticMods/textures/armor/iridium_2.png"; } @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { int suffix = this.armorType == 2 ? 2 : 1; - return "MysticMods:textures" + "/models/armor/Iridium_layer_" + suffix + ".png"; + return "mysticmods:textures" + "/models/armor/Iridium_layer_" + suffix + ".png"; } @Override @@ -64,19 +60,6 @@ public class ItemArmorIridium extends ItemArmor { @Override public void registerIcons(IconRegister iconRegister) { - switch (ArmorType) { - case 0: - itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_0"); - break; - case 1: - itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_1"); - break; - case 2: - itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_2"); - break; - case 3: - itemIcon = iconRegister.registerIcon("MysticMods:IridiumArmor_3"); - break; - } + itemIcon = iconRegister.registerIcon("mysticmods:IridiumArmor_" + ArmorType); } } \ No newline at end of file diff --git a/common/MysticWorld/Items/ItemArmorMithril.java b/common/MysticWorld/Items/ItemArmorMithril.java index 4706c40..f5d4093 100644 --- a/common/MysticWorld/Items/ItemArmorMithril.java +++ b/common/MysticWorld/Items/ItemArmorMithril.java @@ -9,39 +9,22 @@ import net.minecraft.item.ItemStack; public class ItemArmorMithril extends ItemArmor { int ArmorType; - String ArmorFile_1; - String ArmorFile_2; public ItemArmorMithril(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { super(par1, par2EnumArmorMaterial, par3, par4); this.ArmorType = par4; this.setMaxDamage(500); this.setCreativeTab(MysticWorld.MysticWorldTab); - this.ArmorFile_1 = "/assets/MysticMods/textures/armor/mithril_1.png"; - this.ArmorFile_2 = "/assets/MysticMods/textures/armor/mithril_2.png"; } @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { int suffix = this.armorType == 2 ? 2 : 1; - return "MysticMods:textures" + "/models/armor/Mithril_layer_" + suffix + ".png"; + return "mysticmods:textures" + "/models/armor/Mithril_layer_" + suffix + ".png"; } @Override public void registerIcons(IconRegister iconRegister) { - switch (ArmorType) { - case 0: - itemIcon = iconRegister.registerIcon("MysticMods:MithrilArmor_0"); - break; - case 1: - itemIcon = iconRegister.registerIcon("MysticMods:MithrilArmor_1"); - break; - case 2: - itemIcon = iconRegister.registerIcon("MysticMods:MithrilArmor_2"); - break; - case 3: - itemIcon = iconRegister.registerIcon("MysticMods:MithrilArmor_3"); - break; - } + itemIcon = iconRegister.registerIcon("mysticmods:MithrilArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemArmorVerdite.java b/common/MysticWorld/Items/ItemArmorVerdite.java index aed9f4f..5010b6c 100644 --- a/common/MysticWorld/Items/ItemArmorVerdite.java +++ b/common/MysticWorld/Items/ItemArmorVerdite.java @@ -9,39 +9,22 @@ import net.minecraft.item.ItemStack; public class ItemArmorVerdite extends ItemArmor { int ArmorType; - String ArmorFile_1; - String ArmorFile_2; public ItemArmorVerdite(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { super(par1, par2EnumArmorMaterial, par3, par4); this.ArmorType = par4; this.setMaxDamage(262); this.setCreativeTab(MysticWorld.MysticWorldTab); - this.ArmorFile_1 = "/assets/MysticMods/textures/armor/verdite_1.png"; - this.ArmorFile_2 = "/assets/MysticMods/textures/armor/verdite_2.png"; } @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { int suffix = this.armorType == 2 ? 2 : 1; - return "MysticMods:textures" + "/models/armor/Verdite_layer_" + suffix + ".png"; + return "mysticmods:textures" + "/models/armor/Verdite_layer_" + suffix + ".png"; } @Override public void registerIcons(IconRegister iconRegister) { - switch (ArmorType) { - case 0: - itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_0"); - break; - case 1: - itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_1"); - break; - case 2: - itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_2"); - break; - case 3: - itemIcon = iconRegister.registerIcon("MysticMods:VerditeArmor_3"); - break; - } + itemIcon = iconRegister.registerIcon("mysticmods:VerditeArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemBushFruit.java b/common/MysticWorld/Items/ItemBushFruit.java index f1f5808..cdd33e9 100644 --- a/common/MysticWorld/Items/ItemBushFruit.java +++ b/common/MysticWorld/Items/ItemBushFruit.java @@ -63,7 +63,7 @@ public class ItemBushFruit extends ItemFood { public void registerIcons(IconRegister iconRegister) { icons = new Icon[FRUIT_TYPES.length]; for (int i = 0; i < FRUIT_TYPES.length; ++i) { - icons[i] = iconRegister.registerIcon("MysticMods:Fruit" + FRUIT_TYPES[i]); + icons[i] = iconRegister.registerIcon("mysticmods:Fruit" + FRUIT_TYPES[i]); } } diff --git a/common/MysticWorld/Items/ItemImbuedShard.java b/common/MysticWorld/Items/ItemImbuedShard.java index 2c14c2b..6e20788 100644 --- a/common/MysticWorld/Items/ItemImbuedShard.java +++ b/common/MysticWorld/Items/ItemImbuedShard.java @@ -50,7 +50,7 @@ public class ItemImbuedShard extends Item { public void registerIcons(IconRegister iconRegister) { icons = new Icon[SHARD_TYPES.length]; for (int i = 0; i < SHARD_TYPES.length; ++i) { - icons[i] = iconRegister.registerIcon("MysticMods:Shard" + SHARD_TYPES[i]); + icons[i] = iconRegister.registerIcon("mysticmods:Shard" + SHARD_TYPES[i]); } } } diff --git a/common/MysticWorld/Util/Reference.java b/common/MysticWorld/Util/Reference.java index 152a097..429f264 100644 --- a/common/MysticWorld/Util/Reference.java +++ b/common/MysticWorld/Util/Reference.java @@ -1,7 +1,7 @@ package mysticworld.util; public class Reference { - public static final String MOD_ID = "MysticWorld"; + public static final String MOD_ID = "mysticworld"; public static final String MOD_NAME = "Mystic World"; public static final String VERSION_NUMBER = "0.1a"; public static final String SERVER_PROXY_CLASS = "mysticworld.CommonProxy"; From d4b71af9cb55d9883a1f2910b89182adff3a3470 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 28 Oct 2013 20:40:21 +0100 Subject: [PATCH 16/59] Condensing custom tabs code --- common/MysticOres/MysticOres.java | 8 ++++++-- common/MysticOres/Util/TabMysticOres.java | 16 ---------------- common/MysticStones/MysticStones.java | 13 +++++++++---- common/MysticStones/Util/TabMysticStones.java | 16 ---------------- common/MysticWorld/MysticWorld.java | 9 +++++++-- common/MysticWorld/Util/TabMysticWorld.java | 16 ---------------- 6 files changed, 22 insertions(+), 56 deletions(-) delete mode 100644 common/MysticOres/Util/TabMysticOres.java delete mode 100644 common/MysticStones/Util/TabMysticStones.java delete mode 100644 common/MysticWorld/Util/TabMysticWorld.java diff --git a/common/MysticOres/MysticOres.java b/common/MysticOres/MysticOres.java index e0edf15..725f328 100644 --- a/common/MysticOres/MysticOres.java +++ b/common/MysticOres/MysticOres.java @@ -5,7 +5,6 @@ import mysticores.items.Items; import mysticores.util.ConfigurationManager; import mysticores.util.OreDictManager; import mysticores.util.RecipeManager; -import mysticores.util.TabMysticOres; import mysticores.worldgen.GeneratorManager; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemStack; @@ -22,7 +21,12 @@ import cpw.mods.fml.common.registry.GameRegistry; public class MysticOres implements IFuelHandler { @Instance("mysticores") public static MysticOres instance; - public static final CreativeTabs MysticOresTab = new TabMysticOres("MysticOresTab"); + public static final CreativeTabs MysticOresTab = new CreativeTabs("MysticOresTab") { + @Override + public ItemStack getIconItemStack() { + return new ItemStack(BlockHandler.BlockBase, 1, 7); + } + }; @Override public int getBurnTime(ItemStack fuel) { diff --git a/common/MysticOres/Util/TabMysticOres.java b/common/MysticOres/Util/TabMysticOres.java deleted file mode 100644 index 0cf0c80..0000000 --- a/common/MysticOres/Util/TabMysticOres.java +++ /dev/null @@ -1,16 +0,0 @@ -package mysticores.util; - -import mysticores.blocks.BlockHandler; -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.item.ItemStack; - -public class TabMysticOres extends CreativeTabs { - public TabMysticOres(String par2Str) { - super(par2Str); - } - - @Override - public ItemStack getIconItemStack() { - return new ItemStack(BlockHandler.BlockBase, 1, 7); - } -} diff --git a/common/MysticStones/MysticStones.java b/common/MysticStones/MysticStones.java index 2626508..66303fe 100644 --- a/common/MysticStones/MysticStones.java +++ b/common/MysticStones/MysticStones.java @@ -10,10 +10,10 @@ import mysticstones.blocks.ItemStoneBricks; import mysticstones.blocks.ItemStones; import mysticstones.util.Config; import mysticstones.util.RecipeHandler; -import mysticstones.util.TabMysticStones; import mysticstones.worldgen.WorldGeneratorStones; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.ItemStack; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; @@ -21,13 +21,18 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; -@Mod(modid = "MysticStones", name = "Mystic Stones", version = "0.1") +@Mod(modid = "mysticstones", name = "Mystic Stones", version = "0.1") @NetworkMod(clientSideRequired = true) public class MysticStones { - @Instance("MysticStones") + @Instance("mysticstones") public static MysticStones instance; public static Block planks, stones, stoneBricks, reinforcedBricks; - public static final CreativeTabs MysticStonesTab = new TabMysticStones("MysticStonesTab"); + public static final CreativeTabs MysticStonesTab = new CreativeTabs("MysticStonesTab") { + @Override + public ItemStack getIconItemStack() { + return new ItemStack(MysticStones.reinforcedBricks, 1, 4); + } + }; @EventHandler public void preInit(FMLPreInitializationEvent event) { diff --git a/common/MysticStones/Util/TabMysticStones.java b/common/MysticStones/Util/TabMysticStones.java deleted file mode 100644 index 1c4b4ab..0000000 --- a/common/MysticStones/Util/TabMysticStones.java +++ /dev/null @@ -1,16 +0,0 @@ -package mysticstones.util; - -import mysticstones.MysticStones; -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.item.ItemStack; - -public class TabMysticStones extends CreativeTabs { - public TabMysticStones(String par2Str) { - super(par2Str); - } - - @Override - public ItemStack getIconItemStack() { - return new ItemStack(MysticStones.reinforcedBricks, 1, 4); - } -} diff --git a/common/MysticWorld/MysticWorld.java b/common/MysticWorld/MysticWorld.java index 6b95fa0..c08abab 100644 --- a/common/MysticWorld/MysticWorld.java +++ b/common/MysticWorld/MysticWorld.java @@ -10,11 +10,11 @@ import mysticworld.util.CommonProxy; import mysticworld.util.Config; import mysticworld.util.RecipeHandler; import mysticworld.util.Reference; -import mysticworld.util.TabMysticWorld; import mysticworld.util.TickHandler; import mysticworld.worldgen.WorldGenBushes; import mysticworld.worldgen.WorldGenStones; import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.ItemStack; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; @@ -33,7 +33,12 @@ public class MysticWorld { public static MysticWorld instance; @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; - public static final CreativeTabs MysticWorldTab = new TabMysticWorld("MysticWorldTab"); + public static final CreativeTabs MysticWorldTab = new CreativeTabs("MysticWorldTab") { + @Override + public ItemStack getIconItemStack() { + return new ItemStack(ItemHandler.earthStaff, 1); + } + }; @EventHandler public void load(FMLInitializationEvent event) { diff --git a/common/MysticWorld/Util/TabMysticWorld.java b/common/MysticWorld/Util/TabMysticWorld.java deleted file mode 100644 index c9c0e71..0000000 --- a/common/MysticWorld/Util/TabMysticWorld.java +++ /dev/null @@ -1,16 +0,0 @@ -package mysticworld.util; - -import mysticworld.items.ItemHandler; -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.item.ItemStack; - -public class TabMysticWorld extends CreativeTabs { - public TabMysticWorld(String par2Str) { - super(par2Str); - } - - @Override - public ItemStack getIconItemStack() { - return new ItemStack(ItemHandler.earthStaff, 1); - } -} \ No newline at end of file From e8c86a8c92b74591f39b245d6364f4b04eb60300 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 28 Oct 2013 20:40:54 +0100 Subject: [PATCH 17/59] Caching textures for more efficiency --- common/MysticWorld/Client/ClientProxy.java | 16 +++------------- common/MysticWorld/Client/FX/LightCubeFX.java | 7 +++++-- common/MysticWorld/Client/FX/PowerAirFX.java | 7 +++++-- common/MysticWorld/Client/FX/PowerEarthFX.java | 7 +++++-- common/MysticWorld/Client/FX/PowerEnergyFX.java | 7 +++++-- common/MysticWorld/Client/FX/PowerFireFX.java | 7 +++++-- common/MysticWorld/Client/FX/PowerWaterFX.java | 7 +++++-- 7 files changed, 33 insertions(+), 25 deletions(-) diff --git a/common/MysticWorld/Client/ClientProxy.java b/common/MysticWorld/Client/ClientProxy.java index 9a8ff63..819e3e9 100644 --- a/common/MysticWorld/Client/ClientProxy.java +++ b/common/MysticWorld/Client/ClientProxy.java @@ -14,22 +14,11 @@ import mysticworld.entity.EntityChargeEnergy; import mysticworld.entity.EntityChargeFire; import mysticworld.entity.EntityChargeWater; import mysticworld.items.ItemHandler; -import mysticworld.renderer.BlockPillarInsertRenderer; -import mysticworld.renderer.ItemOrbAirRenderer; -import mysticworld.renderer.ItemOrbEarthRenderer; -import mysticworld.renderer.ItemOrbEnergyRenderer; -import mysticworld.renderer.ItemOrbFireRenderer; -import mysticworld.renderer.ItemOrbWaterRenderer; -import mysticworld.renderer.ItemStaffAirRenderer; -import mysticworld.renderer.ItemStaffEarthRenderer; -import mysticworld.renderer.ItemStaffEnergyRenderer; -import mysticworld.renderer.ItemStaffFireRenderer; -import mysticworld.renderer.ItemStaffWaterRenderer; -import mysticworld.renderer.RenderStaffPower; -import mysticworld.renderer.TileEntityPillarInsertRenderer; +import mysticworld.renderer.*; import mysticworld.tiles.TileEntityPillarInsert; import mysticworld.util.CommonProxy; import net.minecraft.client.Minecraft; +import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import net.minecraftforge.client.MinecraftForgeClient; import cpw.mods.fml.client.registry.ClientRegistry; @@ -37,6 +26,7 @@ import cpw.mods.fml.client.registry.RenderingRegistry; public class ClientProxy extends CommonProxy { public final Minecraft mc = Minecraft.getMinecraft(); + public static final ResourceLocation particle = new ResourceLocation("textures/particle/particles.png"); @Override public int addArmor(String armor) { diff --git a/common/MysticWorld/Client/FX/LightCubeFX.java b/common/MysticWorld/Client/FX/LightCubeFX.java index 27afd94..1a86f0b 100644 --- a/common/MysticWorld/Client/FX/LightCubeFX.java +++ b/common/MysticWorld/Client/FX/LightCubeFX.java @@ -1,5 +1,6 @@ package mysticworld.client.fx; +import mysticworld.client.ClientProxy; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.ResourceLocation; @@ -10,6 +11,8 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; public class LightCubeFX extends EntityFX { + public static final ResourceLocation lightFX = new ResourceLocation("mysticmods", "textures/misc/lightCubeFX.png"); + public LightCubeFX(World world, double x, double y, double z) { super(world, x, y, z); } @@ -60,7 +63,7 @@ public class LightCubeFX extends EntityFX { GL11.glDepthMask(false); GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("MysticMods:textures" + "/misc/lightCubeFX.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(lightFX); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); float scale = 0.1F * this.particleScale; float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); @@ -77,7 +80,7 @@ public class LightCubeFX extends EntityFX { GL11.glDisable(3042); GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("minecraft:textures" + "/particle/particles.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/Client/FX/PowerAirFX.java b/common/MysticWorld/Client/FX/PowerAirFX.java index 392f391..376bd01 100644 --- a/common/MysticWorld/Client/FX/PowerAirFX.java +++ b/common/MysticWorld/Client/FX/PowerAirFX.java @@ -1,5 +1,6 @@ package mysticworld.client.fx; +import mysticworld.client.ClientProxy; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.MathHelper; @@ -11,6 +12,8 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; public class PowerAirFX extends EntityFX { + public static final ResourceLocation airFX = new ResourceLocation("mysticmods", "textures/misc/airFX.png"); + public PowerAirFX(World world, double x, double y, double z) { super(world, x, y, z); } @@ -80,7 +83,7 @@ public class PowerAirFX extends EntityFX { GL11.glDepthMask(false); GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("MysticMods:textures" + "/misc/airFX.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(airFX); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); float scale = 0.1F * this.particleScale; float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); @@ -97,7 +100,7 @@ public class PowerAirFX extends EntityFX { GL11.glDisable(3042); GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("minecraft:textures" + "/particle/particles.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); tessellator.startDrawingQuads(); } } \ No newline at end of file diff --git a/common/MysticWorld/Client/FX/PowerEarthFX.java b/common/MysticWorld/Client/FX/PowerEarthFX.java index c319c31..450ca30 100644 --- a/common/MysticWorld/Client/FX/PowerEarthFX.java +++ b/common/MysticWorld/Client/FX/PowerEarthFX.java @@ -1,5 +1,6 @@ package mysticworld.client.fx; +import mysticworld.client.ClientProxy; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.ResourceLocation; @@ -10,6 +11,8 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; public class PowerEarthFX extends EntityFX { + public static final ResourceLocation earthFX = new ResourceLocation("mysticmods", "textures/misc/earthFX.png"); + public PowerEarthFX(World world, double x, double y, double z) { super(world, x, y, z); } @@ -60,7 +63,7 @@ public class PowerEarthFX extends EntityFX { GL11.glDepthMask(false); GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("MysticMods:textures" + "/misc/earthFX.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(earthFX); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); float scale = 0.1F * this.particleScale; float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); @@ -77,7 +80,7 @@ public class PowerEarthFX extends EntityFX { GL11.glDisable(3042); GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("minecraft:textures" + "/particle/particles.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/Client/FX/PowerEnergyFX.java b/common/MysticWorld/Client/FX/PowerEnergyFX.java index 6df6bde..680d134 100644 --- a/common/MysticWorld/Client/FX/PowerEnergyFX.java +++ b/common/MysticWorld/Client/FX/PowerEnergyFX.java @@ -1,5 +1,6 @@ package mysticworld.client.fx; +import mysticworld.client.ClientProxy; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.ResourceLocation; @@ -10,6 +11,8 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; public class PowerEnergyFX extends EntityFX { + public static final ResourceLocation energyFX = new ResourceLocation("mysticmods", "textures/misc/energyFX.png"); + public PowerEnergyFX(World world, double x, double y, double z) { super(world, x, y, z); } @@ -60,7 +63,7 @@ public class PowerEnergyFX extends EntityFX { GL11.glDepthMask(false); GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("MysticMods:textures" + "/misc/energyFX.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(energyFX); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); float scale = 0.1F * this.particleScale; float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); @@ -77,7 +80,7 @@ public class PowerEnergyFX extends EntityFX { GL11.glDisable(3042); GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("minecraft:textures" + "/particle/particles.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/Client/FX/PowerFireFX.java b/common/MysticWorld/Client/FX/PowerFireFX.java index 1ebdb17..7ddc07e 100644 --- a/common/MysticWorld/Client/FX/PowerFireFX.java +++ b/common/MysticWorld/Client/FX/PowerFireFX.java @@ -1,5 +1,6 @@ package mysticworld.client.fx; +import mysticworld.client.ClientProxy; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.ResourceLocation; @@ -10,6 +11,8 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; public class PowerFireFX extends EntityFX { + public static final ResourceLocation fireFX = new ResourceLocation("mysticmods", "textures/misc/fireFX.png"); + public PowerFireFX(World world, double x, double y, double z) { super(world, x, y, z); } @@ -60,7 +63,7 @@ public class PowerFireFX extends EntityFX { GL11.glDepthMask(false); GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("MysticMods:textures" + "/misc/fireFX.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(fireFX); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); float scale = 0.1F * this.particleScale; float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); @@ -77,7 +80,7 @@ public class PowerFireFX extends EntityFX { GL11.glDisable(3042); GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("minecraft:textures" + "/particle/particles.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); tessellator.startDrawingQuads(); } } diff --git a/common/MysticWorld/Client/FX/PowerWaterFX.java b/common/MysticWorld/Client/FX/PowerWaterFX.java index a8917de..65a1c1b 100644 --- a/common/MysticWorld/Client/FX/PowerWaterFX.java +++ b/common/MysticWorld/Client/FX/PowerWaterFX.java @@ -1,5 +1,6 @@ package mysticworld.client.fx; +import mysticworld.client.ClientProxy; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.ResourceLocation; @@ -10,6 +11,8 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; public class PowerWaterFX extends EntityFX { + public static final ResourceLocation waterFX = new ResourceLocation("mysticmods", "textures/misc/waterFX.png"); + public PowerWaterFX(World world, double x, double y, double z) { super(world, x, y, z); } @@ -60,7 +63,7 @@ public class PowerWaterFX extends EntityFX { GL11.glDepthMask(false); GL11.glEnable(3042); GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("MysticMods:textures" + "/misc/waterFX.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(waterFX); GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); float scale = 0.1F * this.particleScale; float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); @@ -77,7 +80,7 @@ public class PowerWaterFX extends EntityFX { GL11.glDisable(3042); GL11.glDepthMask(true); GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("minecraft:textures" + "/particle/particles.png")); + FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); tessellator.startDrawingQuads(); } } From 578051b530c6901743fe3685bc52564d772f54cf Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 28 Oct 2013 20:41:41 +0100 Subject: [PATCH 18/59] Use given variables to condense code --- common/MysticWorld/Items/ItemOrbAir.java | 6 +++--- common/MysticWorld/Items/ItemOrbEarth.java | 9 ++------- common/MysticWorld/Items/ItemOrbEnergy.java | 10 +++------- common/MysticWorld/Items/ItemOrbFire.java | 19 +++---------------- common/MysticWorld/Items/ItemOrbWater.java | 9 ++------- common/MysticWorld/Items/ItemStaffAir.java | 2 +- common/MysticWorld/Items/ItemStaffEarth.java | 9 ++------- common/MysticWorld/Items/ItemStaffEnegy.java | 11 +++-------- common/MysticWorld/Items/ItemStaffFire.java | 11 +++-------- common/MysticWorld/Items/ItemStaffParts.java | 2 +- common/MysticWorld/Items/ItemStaffPower.java | 2 +- common/MysticWorld/Items/ItemStaffWater.java | 9 ++------- common/MysticWorld/Items/ItemVoidShard.java | 2 +- 13 files changed, 27 insertions(+), 74 deletions(-) diff --git a/common/MysticWorld/Items/ItemOrbAir.java b/common/MysticWorld/Items/ItemOrbAir.java index e5249eb..9a6868b 100644 --- a/common/MysticWorld/Items/ItemOrbAir.java +++ b/common/MysticWorld/Items/ItemOrbAir.java @@ -19,7 +19,7 @@ public class ItemOrbAir extends ItemOrb { public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { if (itemStack.stackTagCompound == null) itemStack.setTagCompound(new NBTTagCompound()); - if (itemStack.stackTagCompound.getBoolean("charging") == false) { + if (!itemStack.stackTagCompound.getBoolean("charging")) { itemStack.stackTagCompound.setBoolean("charging", true); } return itemStack; @@ -33,7 +33,7 @@ public class ItemOrbAir extends ItemOrb { ItemStack currentItem = player.inventory.getCurrentItem(); itemStack.stackTagCompound.setInteger("maxChargeTime", 5 * 20); if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { + if (par5) { player.fallDistance = 0.0F; chargeEffect(itemStack, world, player); if (!Mouse.isButtonDown(1)) { @@ -46,7 +46,7 @@ public class ItemOrbAir extends ItemOrb { } resetData(itemStack); } else { - if (itemStack.stackTagCompound.getBoolean("charging") == true) { + if (itemStack.stackTagCompound.getBoolean("charging")) { incrementData(itemStack); } spiralEffect(itemStack, world, player); diff --git a/common/MysticWorld/Items/ItemOrbEarth.java b/common/MysticWorld/Items/ItemOrbEarth.java index 77b6da5..c796ce0 100644 --- a/common/MysticWorld/Items/ItemOrbEarth.java +++ b/common/MysticWorld/Items/ItemOrbEarth.java @@ -41,13 +41,8 @@ public class ItemOrbEarth extends ItemOrb { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - if (!world.isRemote) { - if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { - MysticWorld.proxy.earthFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); - } - } + if (!world.isRemote && par5) { + MysticWorld.proxy.earthFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } diff --git a/common/MysticWorld/Items/ItemOrbEnergy.java b/common/MysticWorld/Items/ItemOrbEnergy.java index 83f3b6f..1a9bae3 100644 --- a/common/MysticWorld/Items/ItemOrbEnergy.java +++ b/common/MysticWorld/Items/ItemOrbEnergy.java @@ -51,13 +51,9 @@ public class ItemOrbEnergy extends ItemOrb { public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; ItemStack currentItem = player.inventory.getCurrentItem(); - if (!world.isRemote) { - if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { - player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); - MysticWorld.proxy.energyFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); - } - } + if (!world.isRemote && par5) { + player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); + MysticWorld.proxy.energyFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemOrbFire.java b/common/MysticWorld/Items/ItemOrbFire.java index 405f85b..8d76490 100644 --- a/common/MysticWorld/Items/ItemOrbFire.java +++ b/common/MysticWorld/Items/ItemOrbFire.java @@ -3,7 +3,6 @@ package mysticworld.items; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.entity.Entity; -import net.minecraft.entity.EntityLiving; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; @@ -16,13 +15,6 @@ public class ItemOrbFire extends ItemOrb { super(id); } - public boolean itemInteractionForEntity(ItemStack itemStack, EntityLiving entityLiving) { - entityLiving.setFire(5); - entityLiving.attackEntityFrom(DamageSource.magic, 7); - itemStack.damageItem(1, entityLiving); - return true; - } - @Override public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (par7 == 0) { @@ -66,14 +58,9 @@ public class ItemOrbFire extends ItemOrb { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - if (!world.isRemote) { - if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { - player.addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); - MysticWorld.proxy.fireFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); - } - } + if (!world.isRemote && par5) { + player.addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); + MysticWorld.proxy.fireFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemOrbWater.java b/common/MysticWorld/Items/ItemOrbWater.java index 8ea45e7..dad06f5 100644 --- a/common/MysticWorld/Items/ItemOrbWater.java +++ b/common/MysticWorld/Items/ItemOrbWater.java @@ -75,13 +75,8 @@ public class ItemOrbWater extends ItemOrb { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - if (itemStack != null) { - if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { - MysticWorld.proxy.waterFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); - } - } + if (!world.isRemote && par5) { + MysticWorld.proxy.waterFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaffAir.java b/common/MysticWorld/Items/ItemStaffAir.java index 10a856d..85b3da2 100644 --- a/common/MysticWorld/Items/ItemStaffAir.java +++ b/common/MysticWorld/Items/ItemStaffAir.java @@ -19,7 +19,7 @@ public class ItemStaffAir extends ItemStaff { public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { if (itemStack.stackTagCompound == null) itemStack.setTagCompound(new NBTTagCompound()); - if (itemStack.stackTagCompound.getBoolean("charging") == false) { + if (!itemStack.stackTagCompound.getBoolean("charging")) { itemStack.stackTagCompound.setBoolean("charging", true); } return itemStack; diff --git a/common/MysticWorld/Items/ItemStaffEarth.java b/common/MysticWorld/Items/ItemStaffEarth.java index e744c47..4798e1e 100644 --- a/common/MysticWorld/Items/ItemStaffEarth.java +++ b/common/MysticWorld/Items/ItemStaffEarth.java @@ -68,13 +68,8 @@ public class ItemStaffEarth extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - if (!world.isRemote) { - if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { - MysticWorld.proxy.earthFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); - } - } + if (!world.isRemote && par5) { + MysticWorld.proxy.earthFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } diff --git a/common/MysticWorld/Items/ItemStaffEnegy.java b/common/MysticWorld/Items/ItemStaffEnegy.java index 47c5544..54f3edc 100644 --- a/common/MysticWorld/Items/ItemStaffEnegy.java +++ b/common/MysticWorld/Items/ItemStaffEnegy.java @@ -81,14 +81,9 @@ public class ItemStaffEnegy extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - if (!world.isRemote) { - if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { - player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); - MysticWorld.proxy.energyFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); - } - } + if (!world.isRemote && par5) { + player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); + MysticWorld.proxy.energyFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaffFire.java b/common/MysticWorld/Items/ItemStaffFire.java index adf3916..2079ae0 100644 --- a/common/MysticWorld/Items/ItemStaffFire.java +++ b/common/MysticWorld/Items/ItemStaffFire.java @@ -83,14 +83,9 @@ public class ItemStaffFire extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - if (!world.isRemote) { - if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { - player.addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); - MysticWorld.proxy.fireFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); - } - } + if (!world.isRemote && par5) { + player.addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); + MysticWorld.proxy.fireFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaffParts.java b/common/MysticWorld/Items/ItemStaffParts.java index 0ce6633..caff955 100644 --- a/common/MysticWorld/Items/ItemStaffParts.java +++ b/common/MysticWorld/Items/ItemStaffParts.java @@ -54,7 +54,7 @@ public class ItemStaffParts extends Item { public void registerIcons(IconRegister iconRegister) { icons = new Icon[STAFF_PARTS.length]; for (int i = 0; i < STAFF_PARTS.length; ++i) { - icons[i] = iconRegister.registerIcon("MysticMods:StaffPart_" + STAFF_PARTS[i]); + icons[i] = iconRegister.registerIcon("mysticmods:StaffPart_" + STAFF_PARTS[i]); } } } diff --git a/common/MysticWorld/Items/ItemStaffPower.java b/common/MysticWorld/Items/ItemStaffPower.java index 86736ca..01ba740 100644 --- a/common/MysticWorld/Items/ItemStaffPower.java +++ b/common/MysticWorld/Items/ItemStaffPower.java @@ -37,7 +37,7 @@ public class ItemStaffPower extends Item { public void registerIcons(IconRegister iconRegister) { icons = new Icon[CHARGE_NAMES.length]; for (int i = 0; i < CHARGE_NAMES.length; ++i) { - icons[i] = iconRegister.registerIcon("MysticMods:Charge" + CHARGE_NAMES[i]); + icons[i] = iconRegister.registerIcon("mysticmods:Charge" + CHARGE_NAMES[i]); } } } diff --git a/common/MysticWorld/Items/ItemStaffWater.java b/common/MysticWorld/Items/ItemStaffWater.java index 1f2264f..84b3b21 100644 --- a/common/MysticWorld/Items/ItemStaffWater.java +++ b/common/MysticWorld/Items/ItemStaffWater.java @@ -90,13 +90,8 @@ public class ItemStaffWater extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - if (!world.isRemote) { - if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { - MysticWorld.proxy.waterFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); - } - } + if (!world.isRemote && par5) { + MysticWorld.proxy.waterFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } \ No newline at end of file diff --git a/common/MysticWorld/Items/ItemVoidShard.java b/common/MysticWorld/Items/ItemVoidShard.java index efeae6f..fc4e7bc 100644 --- a/common/MysticWorld/Items/ItemVoidShard.java +++ b/common/MysticWorld/Items/ItemVoidShard.java @@ -67,6 +67,6 @@ public class ItemVoidShard extends Item { @Override @SideOnly(Side.CLIENT) public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("MysticMods:ShardVoid"); + itemIcon = iconRegister.registerIcon("mysticmods:ShardVoid"); } } From 47dc1ed335422a97057fb75e34cb3cb9dedeb07e Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 28 Oct 2013 20:42:04 +0100 Subject: [PATCH 19/59] Removed unecessary caching --- common/MysticWorld/Util/TickHandler.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/MysticWorld/Util/TickHandler.java b/common/MysticWorld/Util/TickHandler.java index a0810b3..48a79b7 100644 --- a/common/MysticWorld/Util/TickHandler.java +++ b/common/MysticWorld/Util/TickHandler.java @@ -47,12 +47,8 @@ public class TickHandler implements IScheduledTickHandler { @Override public void tickStart(EnumSet type, Object... tickData) { - Random rand = new Random(); EntityPlayer player = (EntityPlayer) tickData[0]; - World world = player.worldObj; - InventoryPlayer inventory = player.inventory; - ItemStack itemstack = inventory.getCurrentItem(); - pillarTick(player, world, inventory, rand); + pillarTick(player, player.worldObj, player.inventory, new Random()); } private static void pillarTick(EntityPlayer player, World world, InventoryPlayer inventory, Random rand) { From d86bc028a6864e879f072e34c768f265c4506ecb Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 29 Oct 2013 01:41:25 +0100 Subject: [PATCH 20/59] Condensed items code --- common/MysticOres/Items/ItemAxes.java | 18 ----- common/MysticOres/Items/ItemHoes.java | 18 ----- common/MysticOres/Items/ItemPickaxes.java | 18 ----- common/MysticOres/Items/ItemSatchel.java | 12 ++- common/MysticOres/Items/ItemShovels.java | 18 ----- common/MysticOres/Items/ItemSwords.java | 18 ----- common/MysticOres/Items/Items.java | 90 +++++++++++++++-------- 7 files changed, 65 insertions(+), 127 deletions(-) delete mode 100644 common/MysticOres/Items/ItemAxes.java delete mode 100644 common/MysticOres/Items/ItemHoes.java delete mode 100644 common/MysticOres/Items/ItemPickaxes.java delete mode 100644 common/MysticOres/Items/ItemShovels.java delete mode 100644 common/MysticOres/Items/ItemSwords.java diff --git a/common/MysticOres/Items/ItemAxes.java b/common/MysticOres/Items/ItemAxes.java deleted file mode 100644 index 39aa84d..0000000 --- a/common/MysticOres/Items/ItemAxes.java +++ /dev/null @@ -1,18 +0,0 @@ -package mysticores.items; - -import mysticores.MysticOres; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.item.EnumToolMaterial; -import net.minecraft.item.ItemAxe; - -public class ItemAxes extends ItemAxe { - public ItemAxes(int par1, EnumToolMaterial par2EnumToolMaterial) { - super(par1, par2EnumToolMaterial); - setCreativeTab(MysticOres.MysticOresTab); - } - - @Override - public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); - } -} diff --git a/common/MysticOres/Items/ItemHoes.java b/common/MysticOres/Items/ItemHoes.java deleted file mode 100644 index fd0b21b..0000000 --- a/common/MysticOres/Items/ItemHoes.java +++ /dev/null @@ -1,18 +0,0 @@ -package mysticores.items; - -import mysticores.MysticOres; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.item.EnumToolMaterial; -import net.minecraft.item.ItemHoe; - -public class ItemHoes extends ItemHoe { - public ItemHoes(int par1, EnumToolMaterial par2EnumToolMaterial) { - super(par1, par2EnumToolMaterial); - this.setCreativeTab(MysticOres.MysticOresTab); - } - - @Override - public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); - } -} diff --git a/common/MysticOres/Items/ItemPickaxes.java b/common/MysticOres/Items/ItemPickaxes.java deleted file mode 100644 index fe364c3..0000000 --- a/common/MysticOres/Items/ItemPickaxes.java +++ /dev/null @@ -1,18 +0,0 @@ -package mysticores.items; - -import mysticores.MysticOres; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.item.EnumToolMaterial; -import net.minecraft.item.ItemPickaxe; - -public class ItemPickaxes extends ItemPickaxe { - public ItemPickaxes(int par1, EnumToolMaterial par2EnumToolMaterial) { - super(par1, par2EnumToolMaterial); - this.setCreativeTab(MysticOres.MysticOresTab); - } - - @Override - public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); - } -} diff --git a/common/MysticOres/Items/ItemSatchel.java b/common/MysticOres/Items/ItemSatchel.java index ed457e6..3ea6d7d 100644 --- a/common/MysticOres/Items/ItemSatchel.java +++ b/common/MysticOres/Items/ItemSatchel.java @@ -3,7 +3,6 @@ package mysticores.items; import mysticores.MysticOres; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.inventory.IInventory; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; @@ -14,7 +13,7 @@ public class ItemSatchel extends Item { public ItemSatchel(int par1) { super(par1); setCreativeTab(MysticOres.MysticOresTab); - maxStackSize = 1; + setMaxStackSize(1); } @Override @@ -26,15 +25,14 @@ public class ItemSatchel extends Item { @Override public ItemStack onItemRightClick(ItemStack is, World world, EntityPlayer player) { if (!player.isSneaking()) { - IInventory inv; - inv = player.getInventoryEnderChest(); - player.displayGUIChest(inv); + player.displayGUIChest(player.getInventoryEnderChest()); } return is; } @Override - public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); + @SideOnly(Side.CLIENT) + protected String getIconString(){ + return "mysticmods:" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1); } } diff --git a/common/MysticOres/Items/ItemShovels.java b/common/MysticOres/Items/ItemShovels.java deleted file mode 100644 index 5deb12e..0000000 --- a/common/MysticOres/Items/ItemShovels.java +++ /dev/null @@ -1,18 +0,0 @@ -package mysticores.items; - -import mysticores.MysticOres; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.item.EnumToolMaterial; -import net.minecraft.item.ItemSpade; - -public class ItemShovels extends ItemSpade { - public ItemShovels(int par1, EnumToolMaterial par2EnumToolMaterial) { - super(par1, par2EnumToolMaterial); - this.setCreativeTab(MysticOres.MysticOresTab); - } - - @Override - public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); - } -} diff --git a/common/MysticOres/Items/ItemSwords.java b/common/MysticOres/Items/ItemSwords.java deleted file mode 100644 index 62d3757..0000000 --- a/common/MysticOres/Items/ItemSwords.java +++ /dev/null @@ -1,18 +0,0 @@ -package mysticores.items; - -import mysticores.MysticOres; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.item.EnumToolMaterial; -import net.minecraft.item.ItemSword; - -public class ItemSwords extends ItemSword { - public ItemSwords(int par1, EnumToolMaterial par2EnumToolMaterial) { - super(par1, par2EnumToolMaterial); - setCreativeTab(MysticOres.MysticOresTab); - } - - @Override - public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods" + ":" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1)); - } -} \ No newline at end of file diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index e4b0028..8e25f2c 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -1,7 +1,13 @@ package mysticores.items; +import mysticores.MysticOres; import mysticores.lib.ItemID; import net.minecraft.item.Item; +import net.minecraft.item.ItemAxe; +import net.minecraft.item.ItemHoe; +import net.minecraft.item.ItemPickaxe; +import net.minecraft.item.ItemSpade; +import net.minecraft.item.ItemSword; public class Items { public static Item VerditeSword, VerditePickaxe, VerditeShovel, VerditeAxe, VerditeHoe; @@ -15,36 +21,60 @@ public class Items { public static void initialize() { Resource = new ItemResource(ItemID.RESOURCES); - VerditeSword = new ItemSwords(ItemID.VERDITESWORD, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword"); - VerditePickaxe = new ItemPickaxes(ItemID.VERDITEPICKAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe"); - VerditeShovel = new ItemShovels(ItemID.VERDITESHOVEL, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeShovel"); - VerditeAxe = new ItemAxes(ItemID.VERDITEAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeAxe"); - VerditeHoe = new ItemHoes(ItemID.VERDITEHOE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeHoe"); - MithrilSword = new ItemSwords(ItemID.MITHRILSWORD, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilSword"); - MithrilPickaxe = new ItemPickaxes(ItemID.MITHRILPICKAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilPickaxe"); - MithrilShovel = new ItemShovels(ItemID.MITHRILSHOVEL, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilShovel"); - MithrilAxe = new ItemAxes(ItemID.MITHRILAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilAxe"); - MithrilHoe = new ItemHoes(ItemID.MITHRILHOE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilHoe"); - AdamantineSword = new ItemSwords(ItemID.ADAMANTINESWORD, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineSword"); - AdamantinePickaxe = new ItemPickaxes(ItemID.ADAMANTINEPICKAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantinePickaxe"); - AdamantineShovel = new ItemShovels(ItemID.ADAMANTINESHOVEL, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineShovel"); - AdamantineAxe = new ItemAxes(ItemID.ADAMANTINEAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineAxe"); - AdamantineHoe = new ItemHoes(ItemID.ADAMANTINEHOE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineHoe"); - IridiumSword = new ItemSwords(ItemID.IRIDIUMSWORD, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumSword"); - IridiumPickaxe = new ItemPickaxes(ItemID.IRIDIUMPICKAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumPickaxe"); - IridiumShovel = new ItemShovels(ItemID.IRIDIUMSHOVEL, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumShovel"); - IridiumAxe = new ItemAxes(ItemID.IRIDIUMAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumAxe"); - IridiumHoe = new ItemHoes(ItemID.IRIDIUMHOE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumHoe"); - BloodstoneSword = new ItemSwords(ItemID.BLOODSTONESWORD, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneSword"); - BloodstonePickaxe = new ItemPickaxes(ItemID.BLOODSTONEPICKAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstonePickaxe"); - BloodstoneShovel = new ItemShovels(ItemID.BLOODSTONESHOVEL, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneShovel"); - BloodstoneAxe = new ItemAxes(ItemID.BLOODSTONEAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneAxe"); - BloodstoneHoe = new ItemHoes(ItemID.BLOODSTONEHOE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneHoe"); - ObsidianSword = new ItemSwords(ItemID.OBSIDIANSWORD, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianSword"); - ObsidianPickaxe = new ItemPickaxes(ItemID.OBSIDIANPICKAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianPickaxe"); - ObsidianShovel = new ItemShovels(ItemID.OBSIDIANSHOVEL, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianShovel"); - ObsidianAxe = new ItemAxes(ItemID.OBSIDIANAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianAxe"); - ObsidianHoe = new ItemHoes(ItemID.OBSIDIANHOE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe"); + VerditeSword = new ItemSword(ItemID.VERDITESWORD, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticmods:VerditeSword") + .setCreativeTab(MysticOres.MysticOresTab); + VerditePickaxe = new ItemPickaxe(ItemID.VERDITEPICKAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticmods:VerditePickaxe") + .setCreativeTab(MysticOres.MysticOresTab); + VerditeShovel = new ItemSpade(ItemID.VERDITESHOVEL, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeShovel").setTextureName("mysticmods:VerditeShovel") + .setCreativeTab(MysticOres.MysticOresTab); + VerditeAxe = new ItemAxe(ItemID.VERDITEAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeAxe").setTextureName("mysticmods:VerditeAxe").setCreativeTab(MysticOres.MysticOresTab); + VerditeHoe = new ItemHoe(ItemID.VERDITEHOE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeHoe").setTextureName("mysticmods:VerditeHoe").setCreativeTab(MysticOres.MysticOresTab); + MithrilSword = new ItemSword(ItemID.MITHRILSWORD, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilSword").setTextureName("mysticmods:MithrilSword") + .setCreativeTab(MysticOres.MysticOresTab); + MithrilPickaxe = new ItemPickaxe(ItemID.MITHRILPICKAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilPickaxe").setTextureName("mysticmods:MithrilPickaxe") + .setCreativeTab(MysticOres.MysticOresTab); + MithrilShovel = new ItemSpade(ItemID.MITHRILSHOVEL, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilShovel").setTextureName("mysticmods:MithrilShovel") + .setCreativeTab(MysticOres.MysticOresTab); + MithrilAxe = new ItemAxe(ItemID.MITHRILAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilAxe").setTextureName("mysticmods:MithrilAxe").setCreativeTab(MysticOres.MysticOresTab); + MithrilHoe = new ItemHoe(ItemID.MITHRILHOE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilHoe").setTextureName("mysticmods:MithrilHoe").setCreativeTab(MysticOres.MysticOresTab); + AdamantineSword = new ItemSword(ItemID.ADAMANTINESWORD, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineSword").setTextureName("mysticmods:AdamantineSword") + .setCreativeTab(MysticOres.MysticOresTab); + AdamantinePickaxe = new ItemPickaxe(ItemID.ADAMANTINEPICKAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantinePickaxe").setTextureName("mysticmods:AdamantinePickaxe") + .setCreativeTab(MysticOres.MysticOresTab); + AdamantineShovel = new ItemSpade(ItemID.ADAMANTINESHOVEL, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineShovel").setTextureName("mysticmods:AdamantineShovel") + .setCreativeTab(MysticOres.MysticOresTab); + AdamantineAxe = new ItemAxe(ItemID.ADAMANTINEAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineAxe").setTextureName("mysticmods:AdamantineAxe") + .setCreativeTab(MysticOres.MysticOresTab); + AdamantineHoe = new ItemHoe(ItemID.ADAMANTINEHOE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineHoe").setTextureName("mysticmods:AdamantineHoe") + .setCreativeTab(MysticOres.MysticOresTab); + IridiumSword = new ItemSword(ItemID.IRIDIUMSWORD, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumSword").setTextureName("mysticmods:IridiumSword") + .setCreativeTab(MysticOres.MysticOresTab); + IridiumPickaxe = new ItemPickaxe(ItemID.IRIDIUMPICKAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumPickaxe").setTextureName("mysticmods:IridiumPickaxe") + .setCreativeTab(MysticOres.MysticOresTab); + IridiumShovel = new ItemSpade(ItemID.IRIDIUMSHOVEL, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumShovel").setTextureName("mysticmods:IridiumShovel") + .setCreativeTab(MysticOres.MysticOresTab); + IridiumAxe = new ItemAxe(ItemID.IRIDIUMAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumAxe").setTextureName("mysticmods:IridiumAxe").setCreativeTab(MysticOres.MysticOresTab); + IridiumHoe = new ItemHoe(ItemID.IRIDIUMHOE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumHoe").setTextureName("mysticmods:IridiumHoe").setCreativeTab(MysticOres.MysticOresTab); + BloodstoneSword = new ItemSword(ItemID.BLOODSTONESWORD, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneSword").setTextureName("mysticmods:BloodstoneSword") + .setCreativeTab(MysticOres.MysticOresTab); + BloodstonePickaxe = new ItemPickaxe(ItemID.BLOODSTONEPICKAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstonePickaxe").setTextureName("mysticmods:BloodstonePickaxe") + .setCreativeTab(MysticOres.MysticOresTab); + BloodstoneShovel = new ItemSpade(ItemID.BLOODSTONESHOVEL, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneShovel").setTextureName("mysticmods:BloodstoneShovel") + .setCreativeTab(MysticOres.MysticOresTab); + BloodstoneAxe = new ItemAxe(ItemID.BLOODSTONEAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneAxe").setTextureName("mysticmods:BloodstoneAxe") + .setCreativeTab(MysticOres.MysticOresTab); + BloodstoneHoe = new ItemHoe(ItemID.BLOODSTONEHOE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneHoe").setTextureName("mysticmods:BloodstoneHoe") + .setCreativeTab(MysticOres.MysticOresTab); + ObsidianSword = new ItemSword(ItemID.OBSIDIANSWORD, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianSword").setTextureName("mysticmods:ObsidianSword") + .setCreativeTab(MysticOres.MysticOresTab); + ObsidianPickaxe = new ItemPickaxe(ItemID.OBSIDIANPICKAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianPickaxe").setTextureName("mysticmods:ObsidianPickaxe") + .setCreativeTab(MysticOres.MysticOresTab); + ObsidianShovel = new ItemSpade(ItemID.OBSIDIANSHOVEL, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianShovel").setTextureName("mysticmods:ObsidianShovel") + .setCreativeTab(MysticOres.MysticOresTab); + ObsidianAxe = new ItemAxe(ItemID.OBSIDIANAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianAxe").setTextureName("mysticmods:ObsidianAxe") + .setCreativeTab(MysticOres.MysticOresTab); + ObsidianHoe = new ItemHoe(ItemID.OBSIDIANHOE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe").setTextureName("mysticmods:ObsidianHoe") + .setCreativeTab(MysticOres.MysticOresTab); Satchel = new ItemSatchel(ItemID.SATCHEL).setUnlocalizedName("Satchel"); } } From 00e1f2d216c0f07ad5ebc71bd9ad11952d45f290 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 29 Oct 2013 01:41:37 +0100 Subject: [PATCH 21/59] Fixed language files --- common/assets/mysticmods/lang/de_DE.lang | 3 ++- common/assets/mysticmods/lang/en_US.lang | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/assets/mysticmods/lang/de_DE.lang b/common/assets/mysticmods/lang/de_DE.lang index be6fb9d..e57bd0d 100644 --- a/common/assets/mysticmods/lang/de_DE.lang +++ b/common/assets/mysticmods/lang/de_DE.lang @@ -1,4 +1,5 @@ -item.VerditeSword.name=Verditschwert + +item.VerditeSword.name=Verditschwert item.VerditePickaxe.name=Verditspitzhacke item.VerditeShovel.name=Verditschaufel item.VerditeAxe.name=Verditaxt diff --git a/common/assets/mysticmods/lang/en_US.lang b/common/assets/mysticmods/lang/en_US.lang index dc70e66..1e3bb54 100644 --- a/common/assets/mysticmods/lang/en_US.lang +++ b/common/assets/mysticmods/lang/en_US.lang @@ -1,4 +1,5 @@ -item.VerditeSword.name=Verdite Sword + +item.VerditeSword.name=Verdite Sword item.VerditePickaxe.name=Verdite Pickaxe item.VerditeShovel.name=Verdite Shovel item.VerditeAxe.name=Verdite Axe From b3796c4a3fbc5d57b0baf398e3c36d9c6499cba3 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 29 Oct 2013 13:47:23 +0100 Subject: [PATCH 22/59] Fixed rare crash on ore generation --- common/mysticores/worldgen/WorldGenOres.java | 32 +++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/common/mysticores/worldgen/WorldGenOres.java b/common/mysticores/worldgen/WorldGenOres.java index 07a4e2e..1457293 100644 --- a/common/mysticores/worldgen/WorldGenOres.java +++ b/common/mysticores/worldgen/WorldGenOres.java @@ -33,49 +33,65 @@ public class WorldGenOres implements IWorldGenerator { int Xcoord = blockX + random.nextInt(8); int Ycoord = random.nextInt(16); int Zcoord = blockZ + random.nextInt(8); - adamantine.generate(world, random, Xcoord, Ycoord, Zcoord); + if (Ycoord > 2) { + adamantine.generate(world, random, Xcoord, Ycoord, Zcoord); + } } for (int i = 0; i < Rarity.AGATE; i++) { int Xcoord = blockX + random.nextInt(32); int Ycoord = random.nextInt(60); int Zcoord = blockZ + random.nextInt(32); - agate.generate(world, random, Xcoord, Ycoord, Zcoord); + if (Ycoord > 2) { + agate.generate(world, random, Xcoord, Ycoord, Zcoord); + } } for (int i = 0; i < Rarity.AMETHYST; i++) { int Xcoord = blockX + random.nextInt(24); int Ycoord = random.nextInt(60); int Zcoord = blockZ + random.nextInt(24); - amethyst.generate(world, random, Xcoord, Ycoord, Zcoord); + if (Ycoord > 2) { + amethyst.generate(world, random, Xcoord, Ycoord, Zcoord); + } } for (int i = 0; i < Rarity.IRIDIUM; i++) { int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(12); int Zcoord = blockZ + random.nextInt(16); - iridium.generate(world, random, Xcoord, Ycoord, Zcoord); + if (Ycoord > 2) { + iridium.generate(world, random, Xcoord, Ycoord, Zcoord); + } } for (int i = 0; i < Rarity.MITHRIL; i++) { int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(64); int Zcoord = blockZ + random.nextInt(16); - mithril.generate(world, random, Xcoord, Ycoord, Zcoord); + if (Ycoord > 2) { + mithril.generate(world, random, Xcoord, Ycoord, Zcoord); + } } for (int i = 0; i < Rarity.TOPAZ; i++) { int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(60); int Zcoord = blockZ + random.nextInt(16); - topaz.generate(world, random, Xcoord, Ycoord, Zcoord); + if (Ycoord > 2) { + topaz.generate(world, random, Xcoord, Ycoord, Zcoord); + } } for (int i = 0; i < Rarity.TOURMALINE; i++) { int Xcoord = blockX + random.nextInt(32); int Ycoord = random.nextInt(60); int Zcoord = blockZ + random.nextInt(32); - tourmaline.generate(world, random, Xcoord, Ycoord, Zcoord); + if (Ycoord > 2) { + tourmaline.generate(world, random, Xcoord, Ycoord, Zcoord); + } } for (int i = 0; i < Rarity.VERDITE; i++) { int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(20) + 80; int Zcoord = blockZ + random.nextInt(16); - verdite.generate(world, random, Xcoord, Ycoord, Zcoord); + if (Ycoord > 2) { + verdite.generate(world, random, Xcoord, Ycoord, Zcoord); + } } } } \ No newline at end of file From 75a25c74158b7fe7e568cf35dd4dee71f741199e Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 29 Oct 2013 13:47:54 +0100 Subject: [PATCH 23/59] Updated method --- common/MysticWorld/Items/ItemOrbFire.java | 9 +++++++++ common/MysticWorld/Items/ItemStaffFire.java | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/common/MysticWorld/Items/ItemOrbFire.java b/common/MysticWorld/Items/ItemOrbFire.java index 8d76490..ea63028 100644 --- a/common/MysticWorld/Items/ItemOrbFire.java +++ b/common/MysticWorld/Items/ItemOrbFire.java @@ -3,6 +3,7 @@ package mysticworld.items; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; @@ -15,6 +16,14 @@ public class ItemOrbFire extends ItemOrb { super(id); } + @Override + public boolean itemInteractionForEntity(ItemStack itemStack, EntityPlayer entityPlayer, EntityLivingBase entity) { + entity.setFire(5); + entity.attackEntityFrom(DamageSource.magic, 7); + itemStack.damageItem(1, entityPlayer); + return true; + } + @Override public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (par7 == 0) { diff --git a/common/MysticWorld/Items/ItemStaffFire.java b/common/MysticWorld/Items/ItemStaffFire.java index 2079ae0..fa6b100 100644 --- a/common/MysticWorld/Items/ItemStaffFire.java +++ b/common/MysticWorld/Items/ItemStaffFire.java @@ -3,7 +3,7 @@ package mysticworld.items; import mysticworld.MysticWorld; import mysticworld.entity.EntityChargeFire; import net.minecraft.entity.Entity; -import net.minecraft.entity.EntityLiving; +import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; @@ -22,7 +22,8 @@ public class ItemStaffFire extends ItemStaff { super(id); } - public boolean itemInteractionForEntity(ItemStack itemStack, EntityLiving entityLiving) { + @Override + public boolean itemInteractionForEntity(ItemStack itemStack, EntityPlayer entityPlayer, EntityLivingBase entityLiving) { if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { entityLiving.setFire(5); entityLiving.attackEntityFrom(DamageSource.magic, 7); From a1026d738470f80f29b655503f5a3bab3e824690 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 29 Oct 2013 13:48:46 +0100 Subject: [PATCH 24/59] Prevented block updates, for faster generation --- .../MysticRuins/StructureMysticDungeon.java | 2438 ++++++++--------- common/MysticRuins/StructureRuin$1.java | 388 +-- common/MysticRuins/StructureRuin.java | 390 +-- 3 files changed, 1571 insertions(+), 1645 deletions(-) diff --git a/common/MysticRuins/StructureMysticDungeon.java b/common/MysticRuins/StructureMysticDungeon.java index dd83609..25f5122 100644 --- a/common/MysticRuins/StructureMysticDungeon.java +++ b/common/MysticRuins/StructureMysticDungeon.java @@ -28,420 +28,420 @@ public class StructureMysticDungeon extends WorldGenerator { if (!flag) { return false; } - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1 - 1, k1 + 1, l1 + 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 + 3, 0); - world.setBlock(j1 - 1, k1 + 2, l1 + 2, 0); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1 - 1, k1 + 1, l1 + 2, 0); + setBlock(world, j1 - 1, k1 + 1, l1 + 3, 0); + setBlock(world, j1 - 1, k1 + 2, l1 + 2, 0); for (int y = k1 + 1; y < k1 + 4; y++) { for (int x = 1; x < 6; x++) { - world.setBlock(j1 - x, y, l1, 0); - world.setBlock(j1 - x, y, l1 + 1, 0); - world.setBlock(j1 - x, y, l1 - 1, 0); + setBlock(world, j1 - x, y, l1, 0); + setBlock(world, j1 - x, y, l1 + 1, 0); + setBlock(world, j1 - x, y, l1 - 1, 0); } } - world.setBlock(j1 - 2, k1 + 1, l1 + 2, 0); + setBlock(world, j1 - 2, k1 + 1, l1 + 2, 0); for (int x = 6; x < 17; x++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1 - x, k1 + y, l1, 0); + setBlock(world, j1 - x, k1 + y, l1, 0); } } - world.setBlock(j1 - 15, k1 + 14, l1, 0); + setBlock(world, j1 - 15, k1 + 14, l1, 0); int i2 = random.nextInt(100); if (i2 <= 40) { for (int z = 1; z < 9; z++) { - world.setBlock(j1 - 16, k1 + 11, l1 - z, 0); - world.setBlock(j1 - 16, k1 + 12, l1 - z, 0); + setBlock(world, j1 - 16, k1 + 11, l1 - z, 0); + setBlock(world, j1 - 16, k1 + 12, l1 - z, 0); } - world.setBlock(j1 - 16, k1 + 13, l1 - 8, 0); - world.setBlock(j1 - 16, k1 + 14, l1 - 8, 0); + setBlock(world, j1 - 16, k1 + 13, l1 - 8, 0); + setBlock(world, j1 - 16, k1 + 14, l1 - 8, 0); for (int z = 0; z < 5; z++) { for (int y = 12; y < 16; y++) { - world.setBlock(j1 - 16, k1 + y + z, l1 - 9 + z, 0); + setBlock(world, j1 - 16, k1 + y + z, l1 - 9 + z, 0); } } - world.setBlock(j1 - 16, k1 + 20, l1 - 13, 0); + setBlock(world, j1 - 16, k1 + 20, l1 - 13, 0); int j2 = random.nextInt(100); if (j2 <= 20) { for (int x = 0; x < 3; x++) { for (int z = 15; z < 18; z++) { - world.setBlock(j1 - 15 - x, k1 + 17, l1 - z, 0); - world.setBlock(j1 - 15 - x, k1 + 18, l1 - z, 0); + setBlock(world, j1 - 15 - x, k1 + 17, l1 - z, 0); + setBlock(world, j1 - 15 - x, k1 + 18, l1 - z, 0); } } - world.setBlock(j1 - 16, k1 + 16, l1 - 15, Block.blockLapis.blockID); - world.setBlock(j1 - 16, k1 + 16, l1 - 16, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 16, k1 + 16, l1 - 17, Block.blockLapis.blockID); + setBlock(world, j1 - 16, k1 + 16, l1 - 15, Block.blockLapis.blockID); + setBlock(world, j1 - 16, k1 + 16, l1 - 16, pickBlock(random)); + setBlock(world, j1 - 16, k1 + 16, l1 - 17, Block.blockLapis.blockID); for (int z = 15; z < 18; z++) { - world.setBlock(j1 - 15, k1 + 16, l1 - z, Block.blockLapis.blockID); - world.setBlock(j1 - 17, k1 + 16, l1 - z, Block.blockLapis.blockID); + setBlock(world, j1 - 15, k1 + 16, l1 - z, Block.blockLapis.blockID); + setBlock(world, j1 - 17, k1 + 16, l1 - z, Block.blockLapis.blockID); } - world.setBlock(j1 - 16, k1 + 17, l1 - 16, Block.chest.blockID); + setBlock(world, j1 - 16, k1 + 17, l1 - 16, Block.chest.blockID); ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 16, k1 + 17, l1 - 16)); } } for (int z = 0; z < 12; z++) { for (int y = k1 + 12 + z; y < k1 + 16 + z; y++) { - world.setBlock(j1 - 16, y, l1 + 1 + z, 0); + setBlock(world, j1 - 16, y, l1 + 1 + z, 0); } } - world.setBlock(j1 - 16, k1 + 24, l1 + 9, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); + setBlock(world, j1 - 16, k1 + 24, l1 + 9, 0); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1, pickBlock(random)); int k2 = random.nextInt(100); if (k2 <= 40) { - world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 3, l1 + 2, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 3, l1, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 3, l1 + 1, Block.vine.blockID); + setBlock(world, j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); + setBlock(world, j1 - 3, k1 + 3, l1 + 2, Block.vine.blockID); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 2, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 2, pickBlock(random)); j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, pickBlock(random)); j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } int l2 = random.nextInt(100); if (l2 <= 30) { - world.setBlock(j1 - 1, k1 + 3, l1, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 3, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 5, k1 + 3, l1, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 3, l1, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 3, l1 + 2, Block.vine.blockID); + setBlock(world, j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); + setBlock(world, j1 - 3, k1 + 3, l1 + 1, Block.vine.blockID); + setBlock(world, j1 - 5, k1 + 3, l1, Block.vine.blockID); } int i3 = random.nextInt(100); if (i3 <= 40) { for (int z = 2; z < 10; z++) { - world.setBlock(j1, k1 + 1, l1 - z, 0); - world.setBlock(j1, k1 + 2, l1 - z, 0); + setBlock(world, j1, k1 + 1, l1 - z, 0); + setBlock(world, j1, k1 + 2, l1 - z, 0); } for (int z = 0; z < 14; z++) { for (int y = k1 + 1 + z; y < k + 5 + z; y++) { - world.setBlock(j1, y, l1 - 10 - z, 0); + setBlock(world, j1, y, l1 - 10 - z, 0); } } - world.setBlock(j1, k1 + 15, l1 - 20, 0); - world.setBlock(j1, k1 + 16, l1 - 21, 0); + setBlock(world, j1, k1 + 15, l1 - 20, 0); + setBlock(world, j1, k1 + 16, l1 - 21, 0); int j3 = random.nextInt(100); if (j3 <= 20) { for (int x = -1; x < 2; x++) { - world.setBlock(j1 + x, k1 + 15, l1 - 25, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 25, 0); - world.setBlock(j1 + x, k1 + 15, l1 - 26, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 26, 0); - world.setBlock(j1 + x, k1 + 15, l1 - 27, 0); - world.setBlock(j1 + x, k1 + 16, l1 - 27, 0); + setBlock(world, j1 + x, k1 + 15, l1 - 25, 0); + setBlock(world, j1 + x, k1 + 16, l1 - 25, 0); + setBlock(world, j1 + x, k1 + 15, l1 - 26, 0); + setBlock(world, j1 + x, k1 + 16, l1 - 26, 0); + setBlock(world, j1 + x, k1 + 15, l1 - 27, 0); + setBlock(world, j1 + x, k1 + 16, l1 - 27, 0); } - world.setBlock(j1 - 16, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 16, k1 + 14, l1 - 16, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 16, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 16, 0); - world.setBlock(j1 - 15, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 15, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 16, 0); - world.setBlock(j1 - 17, k1 + 14, l1 - 17, 0); - world.setBlock(j1 - 16, k1 + 15, l1 - 16, Block.chest.blockID); + setBlock(world, j1 - 16, k1 + 14, l1 - 15, 0); + setBlock(world, j1 - 16, k1 + 14, l1 - 16, pickBlock(random)); + setBlock(world, j1 - 16, k1 + 14, l1 - 17, 0); + setBlock(world, j1 - 15, k1 + 14, l1 - 15, 0); + setBlock(world, j1 - 15, k1 + 14, l1 - 16, 0); + setBlock(world, j1 - 15, k1 + 14, l1 - 17, 0); + setBlock(world, j1 - 17, k1 + 14, l1 - 15, 0); + setBlock(world, j1 - 17, k1 + 14, l1 - 16, 0); + setBlock(world, j1 - 17, k1 + 14, l1 - 17, 0); + setBlock(world, j1 - 16, k1 + 15, l1 - 16, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 16, k1 + 15, l1 - 16)); } } j1++; - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, pickBlock(random)); j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } - world.setBlock(j1, k1 + 3, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 3, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - world.setBlock(j1, k1 + y, l1, 0); - world.setBlock(j1, k1 + y, l1 + 1, 0); - world.setBlock(j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 - 1, 0); } - world.setBlock(j1, k1 + 1, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 - 2, 0); - world.setBlock(j1, k1 + 2, l1 + 2, 0); + setBlock(world, j1, k1 + 1, l1 + 2, 0); + setBlock(world, j1, k1 + 1, l1 - 2, 0); + setBlock(world, j1, k1 + 2, l1 + 2, 0); j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); + setBlock(world, j1, k1 + y, l1 + z, 0); } } - world.setBlock(j1, k1 + 1, l1 + 3, 0); - world.setBlock(j1, k1 + 3, l1 - 3, 0); - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, 0); + setBlock(world, j1, k1 + 3, l1 - 3, 0); + setBlock(world, j1, k1 + 1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1, pickBlock(random)); j1++; int k3 = random.nextInt(2) + 1; if (k3 == 1) { int l3 = random.nextInt(2) + 1; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int y = 1; y < 5; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); + setBlock(world, j1, k1 + y, l1 + z, 0); } } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 5, pickBlock(random)); if (l3 == 1) { int k4 = random.nextInt(100); if (k4 <= 60) { for (int u = 1; u < 4; u++) { - world.setBlock(j1, k1 + u, l1 + u, Block.bookShelf.blockID); + setBlock(world, j1, k1 + u, l1 + u, Block.bookShelf.blockID); } } } if (l3 == 2) { int l4 = random.nextInt(100); if (l4 <= 40) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 3, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); + setBlock(world, j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + setBlock(world, j1, k1 + 2, l1 + 1, Block.blockIron.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + setBlock(world, j1, k1 + 2, l1 + 2, 0); + setBlock(world, j1, k1 + 3, l1 + 2, 0); + setBlock(world, j1, k1 + 1, l1 + 3, 0); } } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 5, pickBlock(random)); if (l3 == 2) { int i5 = random.nextInt(100); if (i5 <= 40) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); + setBlock(world, j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + setBlock(world, j1, k1 + 2, l1 + 2, 0); + setBlock(world, j1, k1 + 1, l1 + 3, 0); } } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 5, pickBlock(random)); if (l3 == 1) { int j5 = random.nextInt(100); if (j5 <= 15) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.mobSpawner.blockID); + setBlock(world, j1, k1 + 1, l1 + 1, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 1); if (spawner != null) { spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } - world.setBlock(j1, k1 + 2, l1 + 1, Block.chest.blockID); + setBlock(world, j1, k1 + 2, l1 + 1, Block.chest.blockID); ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 + 2, l1 + 1)); - world.setBlock(j1, k1 + 3, l1 + 1, Block.mobSpawner.blockID); + setBlock(world, j1, k1 + 3, l1 + 1, Block.mobSpawner.blockID); spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 3, l1 + 1); if (spawner != null) { spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } - world.setBlock(j1, k1 + 1, l1 + 2, 0); - world.setBlock(j1, k1 + 2, l1 + 2, 0); - world.setBlock(j1, k1 + 3, l1 + 2, 0); - world.setBlock(j1, k1 + 1, l1 + 3, 0); - world.setBlock(j1, k1 + 2, l1 + 3, 0); - world.setBlock(j1, k1 + 3, l1 + 3, 0); + setBlock(world, j1, k1 + 1, l1 + 2, 0); + setBlock(world, j1, k1 + 2, l1 + 2, 0); + setBlock(world, j1, k1 + 3, l1 + 2, 0); + setBlock(world, j1, k1 + 1, l1 + 3, 0); + setBlock(world, j1, k1 + 2, l1 + 3, 0); + setBlock(world, j1, k1 + 3, l1 + 3, 0); } - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Block.planks.blockID); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 5, pickBlock(random)); if (l3 == 1) { - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Block.planks.blockID); } if (l3 == 2) { int k5 = random.nextInt(100); if (k5 <= 30) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.blockIron.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.mobSpawner.blockID); + setBlock(world, j1, k1 + 1, l1 + 1, Block.blockIron.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, Block.blockIron.blockID); + setBlock(world, j1, k1 + 2, l1 + 2, Block.blockIron.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 3); if (spawner != null) { spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); @@ -449,111 +449,111 @@ public class StructureMysticDungeon extends WorldGenerator { } } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 5, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 5, pickBlock(random)); if (l3 == 1) { int l5 = random.nextInt(100); if (l5 <= 60) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.mobSpawner.blockID); + setBlock(world, j1, k1 + 1, l1 + 1, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 2, l1 + 1, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 3, l1 + 1, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 2, l1 + 2, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 + 2); if (spawner != null) { spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } - world.setBlock(j1, k1 + 3, l1 + 2, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 2, l1 + 3, Block.bookShelf.blockID); - world.setBlock(j1, k1 + 3, l1 + 3, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 3, l1 + 2, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 2, l1 + 3, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 3, l1 + 3, Block.bookShelf.blockID); } - world.setBlock(j1, k1 + 1, l1 - 2, Block.planks.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Block.planks.blockID); } int i6 = random.nextInt(100); if (i6 <= 30) { - world.setBlock(j1 - 1, k1 + 4, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 4, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 4, l1 - 3, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 4, l1 + 3, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 4, l1 + 2, Block.vine.blockID); + setBlock(world, j1 - 3, k1 + 4, l1 - 1, Block.vine.blockID); + setBlock(world, j1 - 3, k1 + 4, l1 + 1, Block.vine.blockID); + setBlock(world, j1 - 3, k1 + 4, l1, Block.vine.blockID); + setBlock(world, j1 - 3, k1 + 4, l1 - 3, Block.vine.blockID); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 5, pickBlock(random)); if (l3 == 2) { int l6 = random.nextInt(100); if (l6 <= 30) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.mobSpawner.blockID); + setBlock(world, j1, k1 + 1, l1 + 1, Block.blockGold.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 2); if (spawner != null) { spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } - world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, Block.blockGold.blockID); } } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 - 5, pickBlock(random)); if (l3 == 1) { int i7 = random.nextInt(100); if (i7 <= 60) { for (int y = 1; y < 4; y++) { for (int z = 1; z < 4; z++) { - world.setBlock(j1, k1 + y, l1 + z, Block.bookShelf.blockID); + setBlock(world, j1, k1 + y, l1 + z, Block.bookShelf.blockID); } } } @@ -561,1236 +561,1156 @@ public class StructureMysticDungeon extends WorldGenerator { if (l3 == 2) { int j7 = random.nextInt(100); if (j7 <= 20) { - world.setBlock(j1, k1 + 1, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.blockGold.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.blockGold.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.blockGold.blockID); + setBlock(world, j1, k1 + 1, l1 + 1, Block.blockGold.blockID); + setBlock(world, j1, k1 + 2, l1 + 1, Block.blockGold.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, Block.blockGold.blockID); + setBlock(world, j1, k1 + 2, l1 + 2, Block.blockGold.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, Block.blockGold.blockID); } int j8 = random.nextInt(100); if (j8 <= 30) { - world.setBlock(j1, k1 + 1, l1 - 1, 0); - world.setBlock(j1, k1 + 2, l1 - 1, Block.mobSpawner.blockID); + setBlock(world, j1, k1 + 1, l1 - 1, 0); + setBlock(world, j1, k1 + 2, l1 - 1, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 - 1); if (spawner != null) { spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } - world.setBlock(j1, k1 + 1, l1 - 2, 0); - world.setBlock(j1, k1 + 2, l1 - 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 2, l1 - 2, 0); - world.setBlock(j1 - 1, k1 + 1, l1 - 2, 0); + setBlock(world, j1, k1 + 1, l1 - 2, 0); + setBlock(world, j1, k1 + 2, l1 - 2, 0); + setBlock(world, j1 - 1, k1 + 1, l1 - 1, 0); + setBlock(world, j1 - 1, k1 + 2, l1 - 2, 0); + setBlock(world, j1 - 1, k1 + 1, l1 - 2, 0); } int j9 = random.nextInt(100); if (j9 <= 10) { - world.setBlock(j1 - 3, k1 + 1, l1 - 1, Block.blockDiamond.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); + setBlock(world, j1 - 3, k1 + 1, l1 - 1, Block.blockDiamond.blockID); + setBlock(world, j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); } int j10 = random.nextInt(100); if (j10 <= 10) { - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); + setBlock(world, j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); } int j11 = random.nextInt(100); if (j11 <= 15) { - world.setBlock(j1 - 5, k1 + 1, l1 - 2, Block.chest.blockID); + setBlock(world, j1 - 5, k1 + 1, l1 - 2, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 5, k1 + 1, l1 - 2)); - world.setBlock(j1 - 5, k1 + 1, l1 - 3, 0); + setBlock(world, j1 - 5, k1 + 1, l1 - 3, 0); } } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 2, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 2, l1 - 5, pickBlock(random)); int k7 = random.nextInt(100); if (k7 <= 30) { - world.setBlock(j1 - 2, k1 + 5, l1 - 3, 0); - world.setBlock(j1 - 2, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 5, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 5, k1 + 5, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 6, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 6, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 7, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 3, k1 + 7, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 8, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 8, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 8, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 9, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 9, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 9, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 10, l1 - 1, 0); - world.setBlock(j1 - 1, k1 + 10, l1 - 2, 0); - world.setBlock(j1 - 2, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 1, l1 - 3, Block.gravel.blockID); - world.setBlock(j1 - 1, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 1, k1 + 1, l1 - 3, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 1, l1 - 1, Block.stone.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 2, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 2, l1 - 1, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 2, Block.stone.blockID); - world.setBlock(j1 - 2, k1 + 3, l1 - 1, Block.stone.blockID); - world.setBlock(j1 - 4, k1 + 3, l1 - 1, Block.gravel.blockID); - world.setBlock(j1 - 2, k1 + 3, l1, Block.gravel.blockID); - world.setBlock(j1 - 1, k1 + 3, l1 - 3, Block.stone.blockID); + setBlock(world, j1 - 2, k1 + 5, l1 - 3, 0); + setBlock(world, j1 - 2, k1 + 5, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 5, l1 - 1, 0); + setBlock(world, j1 - 1, k1 + 5, l1 - 2, 0); + setBlock(world, j1 - 3, k1 + 5, l1 - 2, 0); + setBlock(world, j1 - 5, k1 + 5, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 6, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 6, l1 - 1, 0); + setBlock(world, j1 - 1, k1 + 6, l1 - 2, 0); + setBlock(world, j1 - 3, k1 + 6, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 7, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 7, l1 - 1, 0); + setBlock(world, j1 - 1, k1 + 7, l1 - 2, 0); + setBlock(world, j1 - 3, k1 + 7, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 8, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 8, l1 - 1, 0); + setBlock(world, j1 - 1, k1 + 8, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 9, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 9, l1 - 1, 0); + setBlock(world, j1 - 1, k1 + 9, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 10, l1 - 1, 0); + setBlock(world, j1 - 1, k1 + 10, l1 - 2, 0); + setBlock(world, j1 - 2, k1 + 1, l1 - 2, Block.stone.blockID); + setBlock(world, j1 - 2, k1 + 1, l1 - 3, Block.gravel.blockID); + setBlock(world, j1 - 1, k1 + 1, l1 - 2, Block.stone.blockID); + setBlock(world, j1 - 1, k1 + 1, l1 - 3, Block.gravel.blockID); + setBlock(world, j1 - 2, k1 + 1, l1 - 1, Block.stone.blockID); + setBlock(world, j1 - 3, k1 + 1, l1 - 2, Block.stone.blockID); + setBlock(world, j1 - 2, k1 + 2, l1 - 2, Block.stone.blockID); + setBlock(world, j1 - 2, k1 + 2, l1 - 1, Block.gravel.blockID); + setBlock(world, j1 - 2, k1 + 3, l1 - 2, Block.stone.blockID); + setBlock(world, j1 - 2, k1 + 3, l1 - 1, Block.stone.blockID); + setBlock(world, j1 - 4, k1 + 3, l1 - 1, Block.gravel.blockID); + setBlock(world, j1 - 2, k1 + 3, l1, Block.gravel.blockID); + setBlock(world, j1 - 1, k1 + 3, l1 - 3, Block.stone.blockID); } } if (k3 == 2) { - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); for (int u = 0; u < 9; u++) { for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 - 9, pickBlock(random)); int i4 = random.nextInt(100); if (i4 <= 60) { for (int y = 0; y < 15; y++) { - world.setBlock(j1 + 7, k1 - y, l1, 0); + setBlock(world, j1 + 7, k1 - y, l1, 0); } - world.setBlock(j1, k1 - 13, l1 + 1, 0); - world.setBlock(j1, k1 - 13, l1 - 1, 0); - world.setBlock(j1, k1 - 14, l1 + 1, 0); - world.setBlock(j1, k1 - 14, l1 - 1, 0); - world.setBlock(j1 + 1, k1 - 13, l1 + 1, 0); - world.setBlock(j1 + 1, k1 - 13, l1 - 1, 0); - world.setBlock(j1 + 1, k1 - 14, l1 + 1, 0); - world.setBlock(j1 + 1, k1 - 14, l1 - 1, 0); + setBlock(world, j1, k1 - 13, l1 + 1, 0); + setBlock(world, j1, k1 - 13, l1 - 1, 0); + setBlock(world, j1, k1 - 14, l1 + 1, 0); + setBlock(world, j1, k1 - 14, l1 - 1, 0); + setBlock(world, j1 + 1, k1 - 13, l1 + 1, 0); + setBlock(world, j1 + 1, k1 - 13, l1 - 1, 0); + setBlock(world, j1 + 1, k1 - 14, l1 + 1, 0); + setBlock(world, j1 + 1, k1 - 14, l1 - 1, 0); } int j6 = random.nextInt(100); if (j6 <= 70) { for (int y = 0; y < 13; y++) { - world.setBlock(j1 + 7, k1 - y, l1 + 6, 0); + setBlock(world, j1 + 7, k1 - y, l1 + 6, 0); } - world.setBlock(j1, k1 - 11, l1 + 7, 0); - world.setBlock(j1, k1 - 11, l1 + 5, 0); - world.setBlock(j1, k1 - 12, l1 + 7, 0); - world.setBlock(j1, k1 - 12, l1 + 5, 0); - world.setBlock(j1 + 1, k1 - 11, l1 + 7, 0); - world.setBlock(j1 + 1, k1 - 11, l1 + 5, 0); - world.setBlock(j1 + 1, k1 - 12, l1 + 7, 0); - world.setBlock(j1 + 1, k1 - 12, l1 + 5, 0); + setBlock(world, j1, k1 - 11, l1 + 7, 0); + setBlock(world, j1, k1 - 11, l1 + 5, 0); + setBlock(world, j1, k1 - 12, l1 + 7, 0); + setBlock(world, j1, k1 - 12, l1 + 5, 0); + setBlock(world, j1 + 1, k1 - 11, l1 + 7, 0); + setBlock(world, j1 + 1, k1 - 11, l1 + 5, 0); + setBlock(world, j1 + 1, k1 - 12, l1 + 7, 0); + setBlock(world, j1 + 1, k1 - 12, l1 + 5, 0); } int l7 = random.nextInt(100); if (l7 <= 50) { for (int y = 0; y < 17; y++) { - world.setBlock(j1 + 7, k1 - y, l1 - 4, 0); + setBlock(world, j1 + 7, k1 - y, l1 - 4, 0); } - world.setBlock(j1 + 7, k1 - 15, l1 - 5, 0); - world.setBlock(j1 + 7, k1 - 15, l1 - 3, 0); - world.setBlock(j1 + 7, k1 - 16, l1 - 5, 0); - world.setBlock(j1 + 7, k1 - 16, l1 - 3, 0); - world.setBlock(j1 + 8, k1 - 15, l1 - 5, 0); - world.setBlock(j1 + 8, k1 - 15, l1 - 3, 0); - world.setBlock(j1 + 8, k1 - 16, l1 - 5, 0); - world.setBlock(j1 + 8, k1 - 16, l1 - 3, 0); + setBlock(world, j1 + 7, k1 - 15, l1 - 5, 0); + setBlock(world, j1 + 7, k1 - 15, l1 - 3, 0); + setBlock(world, j1 + 7, k1 - 16, l1 - 5, 0); + setBlock(world, j1 + 7, k1 - 16, l1 - 3, 0); + setBlock(world, j1 + 8, k1 - 15, l1 - 5, 0); + setBlock(world, j1 + 8, k1 - 15, l1 - 3, 0); + setBlock(world, j1 + 8, k1 - 16, l1 - 5, 0); + setBlock(world, j1 + 8, k1 - 16, l1 - 3, 0); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); + setBlock(world, j1, k1 + 6, l1, 0); + setBlock(world, j1, k1 + 6, l1 + 1, 0); + setBlock(world, j1, k1 + 6, l1 - 1, 0); + setBlock(world, j1, k1 + 6, l1 + 2, 0); + setBlock(world, j1, k1 + 6, l1 - 2, 0); + setBlock(world, j1, k1 + 7, l1 + 1, 0); + setBlock(world, j1, k1 + 7, l1, 0); + setBlock(world, j1, k1 + 7, l1 - 1, 0); + setBlock(world, j1, k1 + 8, l1, 0); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1 + 3, l1, 0); - world.setBlock(j1, k1 + 4, l1, 0); - world.setBlock(j1, k1 + 5, l1, 0); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1 + 3, l1, 0); + setBlock(world, j1, k1 + 4, l1, 0); + setBlock(world, j1, k1 + 5, l1, 0); + setBlock(world, j1, k1 + 6, l1, 0); + setBlock(world, j1, k1 + 7, l1, 0); + setBlock(world, j1, k1 + 6, l1 + 1, 0); + setBlock(world, j1, k1 + 6, l1 - 1, 0); + setBlock(world, j1, k1 + 6, l1 + 2, 0); + setBlock(world, j1, k1 + 6, l1 - 2, 0); + setBlock(world, j1, k1 + 7, l1 + 1, 0); + setBlock(world, j1, k1 + 7, l1 - 1, 0); + setBlock(world, j1, k1 + 8, l1, 0); for (int u = 1; u < 9; u++) { for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + u, 0); - world.setBlock(j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u, 0); + setBlock(world, j1, k1 + y, l1 - u, 0); } } - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 2, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + 1, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + 2, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 1, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); + setBlock(world, j1, k1 + 6, l1, 0); + setBlock(world, j1, k1 + 6, l1 + 1, 0); + setBlock(world, j1, k1 + 6, l1 - 1, 0); + setBlock(world, j1, k1 + 6, l1 + 2, 0); + setBlock(world, j1, k1 + 6, l1 - 2, 0); + setBlock(world, j1, k1 + 7, l1, 0); + setBlock(world, j1, k1 + 7, l1 + 1, 0); + setBlock(world, j1, k1 + 7, l1 - 1, 0); + setBlock(world, j1, k1 + 8, l1, 0); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1 + 1, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1 + 2, l1 + z, Block.obsidian.blockID); } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2); } int k8 = random.nextInt(100); if (k8 <= 15) { - world.setBlock(j1, k1 + 1, l1 - 7, Block.chest.blockID); + setBlock(world, j1, k1 + 1, l1 - 7, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1 - 7)); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); + setBlock(world, j1, k1 + 6, l1, 0); + setBlock(world, j1, k1 + 6, l1 + 1, 0); + setBlock(world, j1, k1 + 6, l1 - 1, 0); + setBlock(world, j1, k1 + 6, l1 + 2, 0); + setBlock(world, j1, k1 + 6, l1 - 2, 0); + setBlock(world, j1, k1 + 7, l1, 0); + setBlock(world, j1, k1 + 7, l1 + 1, 0); + setBlock(world, j1, k1 + 7, l1 - 1, 0); + setBlock(world, j1, k1 + 8, l1, 0); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); } } - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 4, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - world.setBlock(j1, k1 + 1, l1, Block.chest.blockID); + setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 4, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1)); for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1, l1 + z, Block.obsidian.blockID); if (z != 0) - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1 + 1, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1 + 2, l1 + z, Block.obsidian.blockID); } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); int k9 = random.nextInt(100); if (k9 <= 75) { - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1 + 1, l1 + 1, 0); - world.setBlock(j1, k1 + 2, l1 + 1, 0); - world.setBlock(j1, k1 + 1, l1 - 1, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1 - 1, k1 + 1, l1, 0); - world.setBlock(j1 - 1, k1 + 2, l1, 0); - world.setBlock(j1 - 1, k1 + 2, l1 - 1, 0); - world.setBlock(j1 - 3, k1 + 1, l1 + 2, Block.obsidian.blockID); - world.setBlock(j1 - 2, k1 + 1, l1, Block.obsidian.blockID); - world.setBlock(j1 - 3, k1 + 1, l1 - 3, Block.obsidian.blockID); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1 + 1, l1 + 1, 0); + setBlock(world, j1, k1 + 2, l1 + 1, 0); + setBlock(world, j1, k1 + 1, l1 - 1, 0); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1 - 1, k1 + 1, l1, 0); + setBlock(world, j1 - 1, k1 + 2, l1, 0); + setBlock(world, j1 - 1, k1 + 2, l1 - 1, 0); + setBlock(world, j1 - 3, k1 + 1, l1 + 2, Block.obsidian.blockID); + setBlock(world, j1 - 2, k1 + 1, l1, Block.obsidian.blockID); + setBlock(world, j1 - 3, k1 + 1, l1 - 3, Block.obsidian.blockID); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); + setBlock(world, j1, k1 + 6, l1, 0); + setBlock(world, j1, k1 + 6, l1 + 1, 0); + setBlock(world, j1, k1 + 6, l1 - 1, 0); + setBlock(world, j1, k1 + 6, l1 + 2, 0); + setBlock(world, j1, k1 + 6, l1 - 2, 0); + setBlock(world, j1, k1 + 7, l1, 0); + setBlock(world, j1, k1 + 7, l1 + 1, 0); + setBlock(world, j1, k1 + 7, l1 - 1, 0); + setBlock(world, j1, k1 + 8, l1, 0); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); for (int z = -2; z < 3; z++) { - world.setBlock(j1, k1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 1, l1 + z, Block.obsidian.blockID); - world.setBlock(j1, k1 + 2, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1 + 1, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1 + 2, l1 + z, Block.obsidian.blockID); } - world.setBlock(j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2); } int k10 = random.nextInt(100); if (k10 <= 50) { - world.setBlock(j1, k1 + 1, l1 + 7, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 2, k1 + 1, l1 + 8, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 + 1, l1 + 5, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + 2, l1 + 6, 0); - world.setBlock(j1, k1 + 3, l1 + 6, 0); - world.setBlock(j1, k1 + 4, l1 + 6, 0); + setBlockAndMetadata(world, j1, k1 + 1, l1 + 7, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 2, k1 + 1, l1 + 8, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 1, k1 + 1, l1 + 5, Block.blockNetherQuartz.blockID, 2); + setBlock(world, j1, k1 + 2, l1 + 6, 0); + setBlock(world, j1, k1 + 3, l1 + 6, 0); + setBlock(world, j1, k1 + 4, l1 + 6, 0); } int k11 = random.nextInt(100); if (k11 <= 30) { - world.setBlock(j1 + 1, k1 + 5, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 5, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 6, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 1, k1 + 5, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 7, l1 - 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 7, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 + 6, l1 + 1, Block.vine.blockID); - world.setBlock(j1 - 3, k1 + 8, l1, Block.vine.blockID); - world.setBlock(j1 + 1, k1 + 5, l1 - 3, Block.vine.blockID); + setBlock(world, j1 + 1, k1 + 5, l1 + 3, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 5, l1 + 3, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 6, l1 + 2, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 5, l1 + 2, Block.vine.blockID); + setBlock(world, j1 - 2, k1 + 7, l1 - 1, Block.vine.blockID); + setBlock(world, j1 - 2, k1 + 7, l1 + 1, Block.vine.blockID); + setBlock(world, j1 - 2, k1 + 6, l1 + 1, Block.vine.blockID); + setBlock(world, j1 - 3, k1 + 8, l1, Block.vine.blockID); + setBlock(world, j1 + 1, k1 + 5, l1 - 3, Block.vine.blockID); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); + setBlock(world, j1, k1 + 6, l1, 0); + setBlock(world, j1, k1 + 6, l1 + 1, 0); + setBlock(world, j1, k1 + 6, l1 - 1, 0); + setBlock(world, j1, k1 + 6, l1 + 2, 0); + setBlock(world, j1, k1 + 6, l1 - 2, 0); + setBlock(world, j1, k1 + 7, l1, 0); + setBlock(world, j1, k1 + 7, l1 + 1, 0); + setBlock(world, j1, k1 + 7, l1 - 1, 0); + setBlock(world, j1, k1 + 8, l1, 0); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 4, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 4, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 - 9, pickBlock(random)); for (int z = -3; z < 4; z++) { - world.setBlock(j1, k1 + 1, l1 + z, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + z, Block.stoneSingleSlab.blockID); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); + setBlock(world, j1, k1 + 6, l1, 0); + setBlock(world, j1, k1 + 6, l1 + 1, 0); + setBlock(world, j1, k1 + 6, l1 - 1, 0); + setBlock(world, j1, k1 + 6, l1 + 2, 0); + setBlock(world, j1, k1 + 6, l1 - 2, 0); + setBlock(world, j1, k1 + 7, l1, 0); + setBlock(world, j1, k1 + 7, l1 + 1, 0); + setBlock(world, j1, k1 + 7, l1 - 1, 0); + setBlock(world, j1, k1 + 8, l1, 0); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); for (int y = 1; y < 6; y++) { - world.setBlock(j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2); } int j12 = random.nextInt(100); if (j12 <= 50) { - world.setBlock(j1, k1 + 1, l1 - 7, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 + 1, l1 - 8, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 + 1, l1 - 5, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 + 3, l1 - 6, 0); - world.setBlock(j1, k1 + 4, l1 - 6, 0); - world.setBlock(j1, k1 + 5, l1 - 6, 0); + setBlockAndMetadata(world, j1, k1 + 1, l1 - 7, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 1, k1 + 1, l1 - 8, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 3, k1 + 1, l1 - 5, Block.blockNetherQuartz.blockID, 2); + setBlock(world, j1, k1 + 3, l1 - 6, 0); + setBlock(world, j1, k1 + 4, l1 - 6, 0); + setBlock(world, j1, k1 + 5, l1 - 6, 0); } j1++; - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 8, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 6, l1, 0); - world.setBlock(j1, k1 + 6, l1 + 1, 0); - world.setBlock(j1, k1 + 6, l1 - 1, 0); - world.setBlock(j1, k1 + 6, l1 + 2, 0); - world.setBlock(j1, k1 + 6, l1 - 2, 0); - world.setBlock(j1, k1 + 7, l1, 0); - world.setBlock(j1, k1 + 7, l1 + 1, 0); - world.setBlock(j1, k1 + 7, l1 - 1, 0); - world.setBlock(j1, k1 + 8, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1, l1 + 4, pickBlock(random)); + setBlock(world, j1, k1, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1, l1 + 6, pickBlock(random)); + setBlock(world, j1, k1, l1 + 7, pickBlock(random)); + setBlock(world, j1, k1, l1 + 8, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1, l1 - 3, pickBlock(random)); + setBlock(world, j1, k1, l1 - 4, pickBlock(random)); + setBlock(world, j1, k1, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1, l1 - 6, pickBlock(random)); + setBlock(world, j1, k1, l1 - 7, pickBlock(random)); + setBlock(world, j1, k1, l1 - 8, pickBlock(random)); + setBlock(world, j1, k1 + 6, l1, 0); + setBlock(world, j1, k1 + 6, l1 + 1, 0); + setBlock(world, j1, k1 + 6, l1 - 1, 0); + setBlock(world, j1, k1 + 6, l1 + 2, 0); + setBlock(world, j1, k1 + 6, l1 - 2, 0); + setBlock(world, j1, k1 + 7, l1, 0); + setBlock(world, j1, k1 + 7, l1 + 1, 0); + setBlock(world, j1, k1 + 7, l1 - 1, 0); + setBlock(world, j1, k1 + 8, l1, 0); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - world.setBlock(j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1, 0); } } - world.setBlock(j1, k1 + 1, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 - 9, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 9, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 - 9, Block.cobblestone.blockID); + setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 - 9, pickBlock(random)); } j1++; - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 1, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 2, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 3, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 3, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 + 1, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 + 2, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 + 3, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 + 3, l1, pickBlock(random)); + setBlock(world, j1, k1 + 1, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 + 2, l1 - 1, pickBlock(random)); j1++; for (int y = 1; y < 4; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); + setBlock(world, j1, k1 + y, l1 + z, 0); } } - world.setBlock(j1, k1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); j1++; for (int y = 1; y < 4; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 + y, l1 + z, 0); + setBlock(world, j1, k1 + y, l1 + z, 0); } } - world.setBlock(j1, k1, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1, l1, pickBlock(random)); + setBlock(world, j1, k1, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1, l1 - 1, pickBlock(random)); j1++; - world.setBlock(j1, k1, l1, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); - world.setBlock(j1, k1 + 3, l1, 0); + setBlock(world, j1, k1, l1, 0); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1 + 3, l1, 0); j1++; - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); - world.setBlock(j1, k1 + 1, l1, 0); - world.setBlock(j1, k1 + 2, l1, 0); + setBlock(world, j1, k1 - 1, l1, 0); + setBlock(world, j1, k1, l1, 0); + setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 + 2, l1, 0); j1++; - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); - world.setBlock(j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 - 2, l1, 0); + setBlock(world, j1, k1 - 1, l1, 0); + setBlock(world, j1, k1, l1, 0); + setBlock(world, j1, k1 + 1, l1, 0); j1++; - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); - world.setBlock(j1, k1, l1, 0); + setBlock(world, j1, k1 - 3, l1, 0); + setBlock(world, j1, k1 - 2, l1, 0); + setBlock(world, j1, k1 - 1, l1, 0); + setBlock(world, j1, k1, l1, 0); j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); - world.setBlock(j1, k1 - 1, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 3, l1, 0); + setBlock(world, j1, k1 - 2, l1, 0); + setBlock(world, j1, k1 - 1, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 3, l1, 0); - world.setBlock(j1, k1 - 2, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 3, l1, 0); + setBlock(world, j1, k1 - 2, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); j1++; for (int z = 0; z < 21; z++) { - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); } - world.setBlock(j1, k1 - 4, l1 + 21, 0); - world.setBlock(j1, k1 - 5, l1 + 21, 0); - world.setBlock(j1, k1 - 6, l1 + 21, 0); + setBlock(world, j1, k1 - 4, l1 + 21, 0); + setBlock(world, j1, k1 - 5, l1 + 21, 0); + setBlock(world, j1, k1 - 6, l1 + 21, 0); for (int z = 0; z < 8; z++) { for (int y = 4; y < 7; y++) { - world.setBlock(j1, k1 - y - z, l1 + 22 + z, 0); + setBlock(world, j1, k1 - y - z, l1 + 22 + z, 0); } } int j4 = random.nextInt(100); if (j4 <= 20) { for (int x = -1; x < 2; x++) { - world.setBlock(j1 + x, k1 - 12, l1 + 31, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 31, 0); - world.setBlock(j1 + x, k1 - 12, l1 + 32, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 32, 0); - world.setBlock(j1 + x, k1 - 12, l1 + 33, 0); - world.setBlock(j1 + x, k1 - 13, l1 + 33, 0); + setBlock(world, j1 + x, k1 - 12, l1 + 31, 0); + setBlock(world, j1 + x, k1 - 13, l1 + 31, 0); + setBlock(world, j1 + x, k1 - 12, l1 + 32, 0); + setBlock(world, j1 + x, k1 - 13, l1 + 32, 0); + setBlock(world, j1 + x, k1 - 12, l1 + 33, 0); + setBlock(world, j1 + x, k1 - 13, l1 + 33, 0); } - world.setBlock(j1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1, k1 - 10, l1 + 32, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); - world.setBlock(j1 + 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - world.setBlock(j1, k1 - 11, l1 + 32, Block.chest.blockID); + setBlock(world, j1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + setBlock(world, j1, k1 - 10, l1 + 32, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + setBlock(world, j1 + 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + setBlock(world, j1 + 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); + setBlock(world, j1 + 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); + setBlock(world, j1, k1 - 11, l1 + 32, Block.chest.blockID); ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 - 11, l1 + 32)); } j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 6, l1, 0); j1++; - world.setBlock(j1, k1 - 4, l1, 0); - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); + setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 6, l1, 0); + setBlock(world, j1, k1 - 7, l1, 0); j1++; - world.setBlock(j1, k1 - 5, l1, 0); - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); + setBlock(world, j1, k1 - 5, l1, 0); + setBlock(world, j1, k1 - 6, l1, 0); + setBlock(world, j1, k1 - 7, l1, 0); + setBlock(world, j1, k1 - 8, l1, 0); j1++; - world.setBlock(j1, k1 - 6, l1, 0); - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 6, l1, 0); + setBlock(world, j1, k1 - 7, l1, 0); + setBlock(world, j1, k1 - 8, l1, 0); + setBlock(world, j1, k1 - 9, l1, 0); j1++; - world.setBlock(j1, k1 - 7, l1, 0); - world.setBlock(j1, k1 - 8, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 7, l1, 0); + setBlock(world, j1, k1 - 8, l1, 0); + setBlock(world, j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 10, l1, 0); j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 10, l1, 0); j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 10, l1, 0); j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 10, l1, 0); j1++; - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 10, l1, 0); - world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 8, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.stone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, Block.stone.blockID); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 2, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 - 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 2, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 2, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 10, l1, 0); - world.setBlock(j1, k1 - 9, l1, 0); - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 11, l1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 1, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 - 1, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1, pickBlock(random)); int k6 = random.nextInt(100); if (k6 <= 30) { - world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.vine.blockID); - world.setBlock(j1 - 2, k1 - 8, l1, Block.vine.blockID); - world.setBlock(j1 - 2, k1 - 9, l1, Block.vine.blockID); - world.setBlock(j1 - 4, k1 - 8, l1 + 2, Block.vine.blockID); - world.setBlock(j1 - 6, k1 - 8, l1 - 1, Block.vine.blockID); + setBlock(world, j1 - 1, k1 - 8, l1 + 3, Block.vine.blockID); + setBlock(world, j1 - 2, k1 - 8, l1, Block.vine.blockID); + setBlock(world, j1 - 2, k1 - 9, l1, Block.vine.blockID); + setBlock(world, j1 - 4, k1 - 8, l1 + 2, Block.vine.blockID); + setBlock(world, j1 - 6, k1 - 8, l1 - 1, Block.vine.blockID); } j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 10, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 10, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 - 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 - 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 - 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestone.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); j1++; - world.setBlock(j1, k1 - 11, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 11, l1 - 2, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 11, l1 - 4, Block.cobblestoneMossy.blockID); + for (int z = -4; z < 5; z++) { + setBlock(world, j1, k1 - 11, l1 + z, pickBlock(random)); + } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - world.setBlock(j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z, 0); } } - world.setBlock(j1, k1 - 10, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1, k1 - 9, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - 8, l1 + 5, Block.cobblestone.blockID); + setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 9, l1 + 5, pickBlock(random)); + setBlock(world, j1, k1 - 8, l1 + 5, pickBlock(random)); int i8 = random.nextInt(2) + 1; if (i8 == 1) { for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 2, k1 - 10 - y, l1, Block.cobblestone.blockID); - world.setBlock(j1 - 6, k1 - 10 - y, l1, Block.cobblestone.blockID); - world.setBlock(j1 - 10, k1 - 10 - y, l1, Block.cobblestone.blockID); + setBlock(world, j1 - 2, k1 - 10 - y, l1, pickBlock(random)); + setBlock(world, j1 - 6, k1 - 10 - y, l1, pickBlock(random)); + setBlock(world, j1 - 10, k1 - 10 - y, l1, pickBlock(random)); } int l8 = random.nextInt(100); if (l8 <= 50) { - world.setBlock(j1 - 1, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 1, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 1, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 1, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 1, k1 - 8, l1 + 3, Block.stoneDoubleSlab.blockID); } int l9 = random.nextInt(100); if (l9 <= 60) { - world.setBlock(j1 - 2, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 2, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 2, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 2, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 2, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 2, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); } int l10 = random.nextInt(100); if (l10 <= 70) { - world.setBlock(j1 - 3, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - world.setBlock(j1 - 3, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 3, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 3, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 3, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 3, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); } int l11 = random.nextInt(100); if (l11 <= 40) { - world.setBlock(j1 - 1, k1 - 10, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 8, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 10, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 1, k1 - 9, l1 - 3, Block.brick.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 - 2, Block.brick.blockID); + setBlock(world, j1 - 1, k1 - 9, l1 - 2, Block.brick.blockID); + setBlock(world, j1 - 1, k1 - 8, l1 - 2, Block.brick.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 - 3, Block.brick.blockID); + setBlock(world, j1 - 1, k1 - 9, l1 - 3, Block.brick.blockID); } int k12 = random.nextInt(100); if (k12 <= 50) { - world.setBlock(j1 - 2, k1 - 10, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 - 2, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 10, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 9, l1 - 3, Block.brick.blockID); - world.setBlock(j1 - 2, k1 - 8, l1 - 3, Block.brick.blockID); + setBlock(world, j1 - 2, k1 - 10, l1 - 2, Block.brick.blockID); + setBlock(world, j1 - 2, k1 - 9, l1 - 2, Block.brick.blockID); + setBlock(world, j1 - 2, k1 - 8, l1 - 2, Block.brick.blockID); + setBlock(world, j1 - 2, k1 - 10, l1 - 3, Block.brick.blockID); + setBlock(world, j1 - 2, k1 - 9, l1 - 3, Block.brick.blockID); + setBlock(world, j1 - 2, k1 - 8, l1 - 3, Block.brick.blockID); } int l12 = random.nextInt(100); if (l12 <= 40) { - world.setBlock(j1 - 4, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 10, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 4, k1 - 9, l1 - 3, Block.netherBrick.blockID); + setBlock(world, j1 - 4, k1 - 10, l1 - 2, Block.netherBrick.blockID); + setBlock(world, j1 - 4, k1 - 9, l1 - 2, Block.netherBrick.blockID); + setBlock(world, j1 - 4, k1 - 10, l1 - 3, Block.netherBrick.blockID); + setBlock(world, j1 - 4, k1 - 9, l1 - 3, Block.netherBrick.blockID); } int i13 = random.nextInt(100); if (i13 <= 40) { - world.setBlock(j1 - 5, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 5, k1 - 9, l1 - 3, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 9, l1 - 2, Block.netherBrick.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 3, Block.netherBrick.blockID); + setBlock(world, j1 - 5, k1 - 10, l1 - 2, Block.netherBrick.blockID); + setBlock(world, j1 - 5, k1 - 9, l1 - 2, Block.netherBrick.blockID); + setBlock(world, j1 - 5, k1 - 10, l1 - 3, Block.netherBrick.blockID); + setBlock(world, j1 - 5, k1 - 9, l1 - 3, Block.netherBrick.blockID); + setBlock(world, j1 - 6, k1 - 10, l1 - 2, Block.netherBrick.blockID); + setBlock(world, j1 - 6, k1 - 9, l1 - 2, Block.netherBrick.blockID); + setBlock(world, j1 - 6, k1 - 10, l1 - 3, Block.netherBrick.blockID); } int j13 = random.nextInt(100); if (j13 <= 15) { - world.setBlock(j1 - 9, k1 - 10, l1 + 2, Block.chest.blockID); + setBlock(world, j1 - 9, k1 - 10, l1 + 2, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 + 2)); } - int k13 = random.nextInt(100); - if (k13 <= 15) { - world.setBlock(j1 - 9, k1 - 10, l1 - 2, Block.chest.blockID); + if (j13 >= 85) { + setBlock(world, j1 - 9, k1 - 10, l1 - 2, Block.chest.blockID); ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 - 2)); } } @@ -1798,72 +1718,76 @@ public class StructureMysticDungeon extends WorldGenerator { return true; } for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 1, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 1, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 3, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2); } - world.setBlock(j1 - 4, k1 - 10, l1, Block.mobSpawner.blockID); + setBlock(world, j1 - 4, k1 - 10, l1, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 - 4, k1 - 10, l1); if (spawner != null) { spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); } - world.setBlock(j1 - 8, k1 - 10, l1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 8, k1 - 10, l1 + 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 8, k1 - 10, l1 - 1, Block.stoneSingleSlab.blockID); - world.setBlock(j1 - 5, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1 - 5, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 6, k1 - 10, l1 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 7, k1 - 10, l1 - 1, Block.cobblestone.blockID); + setBlock(world, j1 - 8, k1 - 10, l1, Block.stoneSingleSlab.blockID); + setBlock(world, j1 - 8, k1 - 10, l1 + 1, Block.stoneSingleSlab.blockID); + setBlock(world, j1 - 8, k1 - 10, l1 - 1, Block.stoneSingleSlab.blockID); + setBlock(world, j1 - 5, k1 - 10, l1, pickBlock(random)); + setBlock(world, j1 - 5, k1 - 10, l1 + 1, pickBlock(random)); + setBlock(world, j1 - 5, k1 - 10, l1 - 1, pickBlock(random)); + setBlock(world, j1 - 6, k1 - 10, l1, pickBlock(random)); + setBlock(world, j1 - 6, k1 - 10, l1 + 1, pickBlock(random)); + setBlock(world, j1 - 6, k1 - 10, l1 - 1, pickBlock(random)); + setBlock(world, j1 - 6, k1 - 10, l1 + 2, pickBlock(random)); + setBlock(world, j1 - 6, k1 - 10, l1 - 2, pickBlock(random)); + setBlock(world, j1 - 7, k1 - 10, l1, pickBlock(random)); + setBlock(world, j1 - 7, k1 - 10, l1 + 1, pickBlock(random)); + setBlock(world, j1 - 7, k1 - 10, l1 - 1, pickBlock(random)); int i9 = random.nextInt(100); if (i9 <= 30) { - world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); + setBlock(world, j1 - 6, k1 - 9, l1, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); } if (i9 <= 10) { - world.setBlock(j1 - 6, k1 - 9, l1, Block.chest.blockID); + setBlock(world, j1 - 6, k1 - 9, l1, Block.chest.blockID); ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); } for (int y = 0; y < 4; y++) { - world.setBlock(j1 - 9, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 9, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 9, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 11, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2, 2); + setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2); } int i10 = random.nextInt(100); if (i10 <= 20) { - world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.chest.blockID); + setBlock(world, j1 - 2, k1 - 10, l1 + 4, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 2, k1 - 10, l1 + 4)); } int i11 = random.nextInt(100); if (i11 <= 40) { - world.setBlock(j1 - 3, k1 - 9, l1 + 3, 0); - world.setBlock(j1 - 3, k1 - 8, l1 + 3, 0); - world.setBlock(j1 - 3, k1 - 7, l1 + 3, 0); - world.setBlock(j1 - 1, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 2, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1, k1 - 10, l1 + 2, Block.blockNetherQuartz.blockID, 2, 2); + setBlock(world, j1 - 3, k1 - 9, l1 + 3, 0); + setBlock(world, j1 - 3, k1 - 8, l1 + 3, 0); + setBlock(world, j1 - 3, k1 - 7, l1 + 3, 0); + setBlockAndMetadata(world, j1 - 1, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 2, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 - 10, l1 + 2, Block.blockNetherQuartz.blockID, 2); } int i12 = random.nextInt(100); if (i12 <= 40) { - world.setBlock(j1 - 9, k1 - 9, l1 - 3, 0); - world.setBlock(j1 - 9, k1 - 8, l1 - 3, 0); - world.setBlock(j1 - 9, k1 - 7, l1 - 3, 0); - world.setBlock(j1 - 7, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2, 2); - world.setBlock(j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); + setBlock(world, j1 - 9, k1 - 9, l1 - 3, 0); + setBlock(world, j1 - 9, k1 - 8, l1 - 3, 0); + setBlock(world, j1 - 9, k1 - 7, l1 - 3, 0); + setBlockAndMetadata(world, j1 - 7, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2); } return true; } + + private static int pickBlock(Random random) { + return random.nextBoolean() ? Block.cobblestone.blockID : Block.cobblestoneMossy.blockID; + } } diff --git a/common/MysticRuins/StructureRuin$1.java b/common/MysticRuins/StructureRuin$1.java index 51e7536..9013797 100644 --- a/common/MysticRuins/StructureRuin$1.java +++ b/common/MysticRuins/StructureRuin$1.java @@ -40,21 +40,21 @@ public class StructureRuin$1 extends WorldGenerator { } else { j5 = random.nextInt(4) + 5; } - world.setBlock(j1, k1 - j5, l1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 1, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 2, l1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 3, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 4, l1 + 1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 5, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 2, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 3, l1 + 2, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 4, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - j5, l1 + 3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - j5) + 1, l1 + 3, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 3, Block.stoneBrick.blockID); - world.setBlock(j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); - world.setBlock(j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); + setBlock(world, j1, k1 - j5, l1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1, (k1 - j5) + 1, l1, Block.stoneBrick.blockID, 1); + setBlock(world, j1, (k1 - j5) + 2, l1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1, (k1 - j5) + 2, l1 + 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - j5) + 3, l1 + 1, Block.stoneBrick.blockID, 1); + setBlock(world, j1, (k1 - j5) + 4, l1 + 1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1, (k1 - j5) + 5, l1 + 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - j5) + 2, l1 + 2, Block.stoneBrick.blockID, 1); + setBlock(world, j1, (k1 - j5) + 3, l1 + 2, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1, (k1 - j5) + 4, l1 + 2, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, k1 - j5, l1 + 3, Block.stoneBrick.blockID, 1); + setBlock(world, j1, (k1 - j5) + 1, l1 + 3, Block.stoneBrick.blockID); + setBlock(world, j1, (k1 - j5) + 2, l1 + 3, Block.stoneBrick.blockID); + setBlock(world, j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); + setBlock(world, j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 - j5 - k4, l1 + 2)); l6 = 1; i6 = 0; @@ -68,29 +68,29 @@ public class StructureRuin$1 extends WorldGenerator { flag = true; } } while (!flag && l6++ < 12); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Block.stoneBrick.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Block.stoneBrick.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1, 2); + setBlock(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1); k7 = random.nextInt(100); if (k7 <= 30) { - world.setBlock(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); + setBlock(world, j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); if (spawner != null) { spawner.getSpawnerLogic().setMobID(DungeonHooks.getRandomDungeonMob(random)); } - world.setBlock(j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); + setBlock(world, j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); } l6 = 1; i6 = 0; @@ -104,17 +104,17 @@ public class StructureRuin$1 extends WorldGenerator { flag = true; } } while (!flag && l6++ < 12); - world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 4, Block.stoneBrick.blockID); - world.setBlock(j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); - world.setBlock(j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); + setBlock(world, j1 - i3, k1 - j5 - i6, l1 - 4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - i3, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); k7 = random.nextInt(100); if (k7 <= 60) { - world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); - world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); + setBlock(world, j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); + setBlock(world, j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); } } if (i2 == 2) { @@ -133,19 +133,19 @@ public class StructureRuin$1 extends WorldGenerator { } else { k5 = random.nextInt(4) + 5; } - world.setBlock(j1, k1 - k5, l1, Block.stoneBrick.blockID); - world.setBlock(j1, k1 - k5, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - k5, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - k5, l1 + 3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - k5, l1 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - k5) + 1, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - k5) + 2, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - k5) + 3, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - k5) + 1, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + 1, k1 - k5, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + 2, k1 - k5, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); - world.setBlock(j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); + setBlock(world, j1, k1 - k5, l1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1, k1 - k5, l1 + 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, k1 - k5, l1 + 2, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, k1 - k5, l1 + 3, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, k1 - k5, l1 + 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - k5) + 1, l1 + 2, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - k5) + 2, l1 + 2, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - k5) + 3, l1 + 2, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - k5) + 1, l1 + 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + 1, k1 - k5, l1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + 2, k1 - k5, l1, Block.stoneBrick.blockID, 1); + setBlock(world, j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); + setBlock(world, j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); i7 = 1; j6 = 0; flag1 = false; @@ -158,23 +158,23 @@ public class StructureRuin$1 extends WorldGenerator { flag1 = true; } } while (!flag1 && i7++ < 12); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); - world.setBlock(j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); + setBlock(world, j1 - k2, k1 - k5 - j6, l1 - 3, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - k2, k1 - k5 - j6, l1 - 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); l7 = random.nextInt(100); if (l7 <= 30) { - world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); - world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); + setBlock(world, j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); + setBlock(world, j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); } i7 = 1; j6 = 0; @@ -188,28 +188,28 @@ public class StructureRuin$1 extends WorldGenerator { flag1 = true; } } while (!flag1 && i7++ < 12); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 5, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 8, Block.stoneBrick.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 9, Block.stoneBrick.blockID, 1, 2); + setBlock(world, j1 + i4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + setBlock(world, j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + setBlock(world, j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID); + setBlock(world, j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + setBlock(world, j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 5, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 7, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + i4, k1 - k5 - j6, l1 + 8, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 9, Block.stoneBrick.blockID, 1); l7 = random.nextInt(100); if (l7 <= 60) { - world.setBlock(j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); + setBlock(world, j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); + setBlock(world, j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); } i7 = 1; j6 = 0; @@ -223,27 +223,27 @@ public class StructureRuin$1 extends WorldGenerator { flag1 = true; } } while (!flag1 && i7++ < 12); - world.setBlock((j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID); - world.setBlock((j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); - world.setBlock((j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); - world.setBlock((j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID, 1, 2); + setBlock(world, (j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, (j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, (j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, (j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); + setBlock(world, j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); + setBlock(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID, 1); l7 = random.nextInt(100); if (l7 <= 30) { - world.setBlock(j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); - world.setBlock(j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); + setBlock(world, j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); + setBlock(world, j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); } i7 = 1; j6 = 0; @@ -257,19 +257,19 @@ public class StructureRuin$1 extends WorldGenerator { flag1 = true; } } while (!flag1 && i7++ < 12); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Block.stoneBrick.blockID); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); - world.setBlock(j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); + setBlock(world, j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); l7 = random.nextInt(100); if (l7 <= 30) { - world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); + setBlock(world, j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); + setBlock(world, j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); } } if (i2 != 3) { @@ -290,22 +290,22 @@ public class StructureRuin$1 extends WorldGenerator { } else { l5 = random.nextInt(4) + 5; } - world.setBlock(j1, k1 - l5, l1, Block.stoneBrick.blockID); - world.setBlock(j1 - 1, k1 - l5, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - l5) + 4, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, (k1 - l5) + 5, l1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - l5, l1 + 1, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - l5) + 2, l1 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - l5, l1 + 2, Block.stoneBrick.blockID); - world.setBlock(j1, (k1 - l5) + 1, l1 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); - world.setBlock(j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); + setBlock(world, j1, k1 - l5, l1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - 1, k1 - l5, l1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1); + setBlock(world, j1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - l5) + 4, l1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1, (k1 - l5) + 5, l1, Block.stoneBrick.blockID, 1); + setBlock(world, j1, k1 - l5, l1 + 1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1, (k1 - l5) + 2, l1 + 1, Block.stoneBrick.blockID, 1); + setBlock(world, j1, k1 - l5, l1 + 2, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1, (k1 - l5) + 1, l1 + 2, Block.stoneBrick.blockID, 1); + setBlock(world, j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); + setBlock(world, j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); j7 = 1; k6 = 0; flag2 = false; @@ -318,26 +318,26 @@ public class StructureRuin$1 extends WorldGenerator { flag2 = true; } } while (!flag2 && j7++ < 12); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Block.stoneBrick.blockID); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Block.stoneBrick.blockID); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Block.stoneBrick.blockID); i8 = random.nextInt(100); if (i8 <= 30) { - world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); } j7 = 1; k6 = 0; @@ -351,22 +351,22 @@ public class StructureRuin$1 extends WorldGenerator { flag2 = true; } } while (!flag2 && j7++ < 12); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Block.stoneBrick.blockID); - world.setBlock(j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Block.stoneBrick.blockID); - world.setBlock(j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Block.stoneBrick.blockID); - world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); - world.setBlock(j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Block.stoneBrick.blockID); - world.setBlock(j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); + setBlock(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Block.stoneBrick.blockID); + setBlock(world, j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); + setBlock(world, j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Block.stoneBrick.blockID); + setBlock(world, j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); i8 = random.nextInt(100); if (i8 <= 60) { - world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); - world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); + setBlock(world, j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); + setBlock(world, j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); } j7 = 1; k6 = 0; @@ -380,22 +380,22 @@ public class StructureRuin$1 extends WorldGenerator { flag2 = true; } } while (!flag2 && j7++ < 12); - world.setBlock(j1 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); - world.setBlock(j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1, 2); + setBlock(world, j1 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); + setBlock(world, j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); i8 = random.nextInt(100); if (i8 <= 30) { - world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); - world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); + setBlock(world, j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); + setBlock(world, j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); } j7 = 1; k6 = 0; @@ -409,21 +409,21 @@ public class StructureRuin$1 extends WorldGenerator { flag2 = true; } } while (!flag2 && j7++ < 12); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Block.stoneBrick.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Block.stoneBrick.blockID, 1, 2); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Block.stoneBrick.blockID, 1, 2); + setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Block.stoneBrick.blockID); + setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Block.stoneBrick.blockID); + setBlock(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Block.stoneBrick.blockID); + setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Block.stoneBrick.blockID); + setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Block.stoneBrick.blockID, 1); + setBlockAndMetadata(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Block.stoneBrick.blockID, 1); i8 = random.nextInt(100); if (i8 <= 30) { - world.setBlock(j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); + setBlock(world, j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); + setBlock(world, j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); } return true; diff --git a/common/MysticRuins/StructureRuin.java b/common/MysticRuins/StructureRuin.java index f1140ed..a4da89e 100644 --- a/common/MysticRuins/StructureRuin.java +++ b/common/MysticRuins/StructureRuin.java @@ -40,21 +40,19 @@ public class StructureRuin extends WorldGenerator { } else { j5 = random.nextInt(4) + 5; } - world.setBlock(j1, k1 - j5, l1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 3, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 4, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 5, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 3, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 4, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - j5, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - j5) + 1, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - j5) + 2, l1 + 3, Block.cobblestone.blockID); - world.setBlock(j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); - world.setBlock(j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); + for (int y = k1 - j5; y < k1 - j5 + 5; y++) { + if (y < k1 - j5 + 3) { + setBlock(world,j1, y, l1, pickBlock(random)); + setBlock(world,j1, y, l1 + 3, pickBlock(random)); + } + if (y > k1 - j5 + 1) { + setBlock(world,j1, y, l1 + 1, pickBlock(random)); + setBlock(world,j1, y, l1 + 2, pickBlock(random)); + } + } + setBlock(world,j1, (k1 - j5) + 5, l1 + 1, pickBlock(random)); + setBlock(world,j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); + setBlock(world,j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 - j5 - k4, l1 + 2)); l6 = 1; i6 = 0; @@ -68,29 +66,29 @@ public class StructureRuin extends WorldGenerator { flag = true; } } while (!flag && l6++ < 12); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Block.cobblestone.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Block.cobblestone.blockID); - world.setBlock(j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Block.cobblestoneMossy.blockID); + setBlock(world,j1 + l3, k1 - j5 - i6, l1 + l3 + 4, pickBlock(random)); + setBlock(world,j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, pickBlock(random)); + setBlock(world,j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, pickBlock(random)); + setBlock(world,j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, pickBlock(random)); + setBlock(world,j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, pickBlock(random)); + setBlock(world,j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, pickBlock(random)); + setBlock(world,j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, pickBlock(random)); + setBlock(world,j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, pickBlock(random)); + setBlock(world,j1 + l3, k1 - j5 - i6, l1 + l3 + 5, pickBlock(random)); + setBlock(world,j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, pickBlock(random)); + setBlock(world,j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, pickBlock(random)); + setBlock(world,j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, pickBlock(random)); + setBlock(world,j1 + l3, k1 - j5 - i6, l1 + l3 + 7, pickBlock(random)); + setBlock(world,j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, pickBlock(random)); + setBlock(world,j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, pickBlock(random)); k7 = random.nextInt(100); if (k7 <= 30) { - world.setBlock(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); + setBlock(world,j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); if (spawner != null) { spawner.getSpawnerLogic().setMobID(DungeonHooks.getRandomDungeonMob(random)); } - world.setBlock(j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); + setBlock(world,j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); } l6 = 1; i6 = 0; @@ -104,17 +102,17 @@ public class StructureRuin extends WorldGenerator { flag = true; } } while (!flag && l6++ < 12); - world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 4, Block.cobblestone.blockID); - world.setBlock(j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - i3, k1 - j5 - i6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Block.cobblestone.blockID); + setBlock(world,j1 - i3, k1 - j5 - i6, l1 - 4, pickBlock(random)); + setBlock(world,j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, pickBlock(random)); + setBlock(world,j1 - i3, k1 - j5 - i6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - i3 - 1, k1 - j5 - i6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - i3 - 2, k1 - j5 - i6, l1 - 5, pickBlock(random)); k7 = random.nextInt(100); if (k7 <= 60) { - world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); - world.setBlock(j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); + setBlock(world,j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); + setBlock(world,j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); } } else if (i2 == 2) { int k2 = random.nextInt(8) + 5; @@ -132,19 +130,19 @@ public class StructureRuin extends WorldGenerator { } else { k5 = random.nextInt(4) + 5; } - world.setBlock(j1, k1 - k5, l1, Block.cobblestone.blockID); - world.setBlock(j1, k1 - k5, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - k5, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - k5, l1 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - k5, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - k5) + 1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - k5) + 2, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - k5) + 3, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - k5) + 1, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + 1, k1 - k5, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + 2, k1 - k5, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); - world.setBlock(j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); + setBlock(world,j1, k1 - k5, l1, pickBlock(random)); + setBlock(world,j1, k1 - k5, l1 + 1, pickBlock(random)); + setBlock(world,j1, k1 - k5, l1 + 2, pickBlock(random)); + setBlock(world,j1, k1 - k5, l1 + 3, pickBlock(random)); + setBlock(world,j1, k1 - k5, l1 + 4, pickBlock(random)); + setBlock(world,j1, (k1 - k5) + 1, l1 + 2, pickBlock(random)); + setBlock(world,j1, (k1 - k5) + 2, l1 + 2, pickBlock(random)); + setBlock(world,j1, (k1 - k5) + 3, l1 + 2, pickBlock(random)); + setBlock(world,j1, (k1 - k5) + 1, l1 + 1, pickBlock(random)); + setBlock(world,j1 + 1, k1 - k5, l1, pickBlock(random)); + setBlock(world,j1 + 2, k1 - k5, l1, pickBlock(random)); + setBlock(world,j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); + setBlock(world,j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); i7 = 1; j6 = 0; flag1 = false; @@ -157,23 +155,23 @@ public class StructureRuin extends WorldGenerator { flag1 = true; } } while (!flag1 && i7++ < 12); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 3, Block.cobblestone.blockID); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, k1 - k5 - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Block.cobblestone.blockID); - world.setBlock(j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Block.cobblestone.blockID); + setBlock(world,j1 - k2, k1 - k5 - j6, l1 - 3, pickBlock(random)); + setBlock(world,j1 - k2, k1 - k5 - j6, l1 - 4, pickBlock(random)); + setBlock(world,j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, pickBlock(random)); + setBlock(world,j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, pickBlock(random)); + setBlock(world,j1 - k2, k1 - k5 - j6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - k2 - 1, k1 - k5 - j6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, pickBlock(random)); + setBlock(world,j1 - k2 - 2, k1 - k5 - j6, l1 - 5, pickBlock(random)); l7 = random.nextInt(100); if (l7 <= 30) { - world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); - world.setBlock(j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); + setBlock(world,j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); + setBlock(world,j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); } i7 = 1; j6 = 0; @@ -187,28 +185,28 @@ public class StructureRuin extends WorldGenerator { flag1 = true; } } while (!flag1 && i7++ < 12); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 5, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Block.cobblestone.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Block.cobblestone.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 8, Block.cobblestone.blockID); - world.setBlock(j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6, l1 + 9, Block.cobblestoneMossy.blockID); + setBlock(world,j1 + i4, k1 - k5 - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4 + 1, k1 - k5 - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4 + 2, k1 - k5 - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4 + 3, k1 - k5 - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4 + 4, k1 - k5 - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4 + 5, k1 - k5 - j6, l1 + 4, pickBlock(random)); + setBlock(world,j1 + i4, k1 - k5 - j6, l1 + 5, pickBlock(random)); + setBlock(world,j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, pickBlock(random)); + setBlock(world,j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, pickBlock(random)); + setBlock(world,j1 + i4, k1 - k5 - j6, l1 + 7, pickBlock(random)); + setBlock(world,j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, pickBlock(random)); + setBlock(world,j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, pickBlock(random)); + setBlock(world,j1 + i4, k1 - k5 - j6, l1 + 8, pickBlock(random)); + setBlock(world,j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, pickBlock(random)); + setBlock(world,j1 + i4, k1 - k5 - j6, l1 + 9, pickBlock(random)); l7 = random.nextInt(100); if (l7 <= 60) { - world.setBlock(j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); - world.setBlock(j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); + setBlock(world,j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); + setBlock(world,j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); } i7 = 1; j6 = 0; @@ -222,27 +220,27 @@ public class StructureRuin extends WorldGenerator { flag1 = true; } } while (!flag1 && i7++ < 12); - world.setBlock((j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Block.cobblestone.blockID); - world.setBlock((j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Block.cobblestoneMossy.blockID); - world.setBlock((j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Block.cobblestoneMossy.blockID); - world.setBlock((j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Block.cobblestone.blockID); - world.setBlock(j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Block.cobblestoneMossy.blockID); + setBlock(world,(j1 - j3) + 1, k1 - k5 - j6, l1 + i4, pickBlock(random)); + setBlock(world,(j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, pickBlock(random)); + setBlock(world,(j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, pickBlock(random)); + setBlock(world,(j1 - j3) + 2, k1 - k5 - j6, l1 + i4, pickBlock(random)); + setBlock(world,j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, pickBlock(random)); + setBlock(world,j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, pickBlock(random)); + setBlock(world,j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, pickBlock(random)); l7 = random.nextInt(100); if (l7 <= 30) { - world.setBlock(j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); - world.setBlock(j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); + setBlock(world,j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); + setBlock(world,j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); } i7 = 1; j6 = 0; @@ -256,19 +254,19 @@ public class StructureRuin extends WorldGenerator { flag1 = true; } } while (!flag1 && i7++ < 12); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Block.cobblestone.blockID); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Block.cobblestone.blockID); - world.setBlock(j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Block.cobblestone.blockID); + setBlock(world,j1 + j3 + 4, k1 - k5 - j6, l1 - 6, pickBlock(random)); + setBlock(world,j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, pickBlock(random)); + setBlock(world,j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, pickBlock(random)); + setBlock(world,j1 + j3 + 4, k1 - k5 - j6, l1 - 7, pickBlock(random)); + setBlock(world,j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, pickBlock(random)); + setBlock(world,j1 + j3 + 5, k1 - k5 - j6, l1 - 7, pickBlock(random)); + setBlock(world,j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, pickBlock(random)); + setBlock(world,j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, pickBlock(random)); + setBlock(world,j1 + j3 + 6, k1 - k5 - j6, l1 - 7, pickBlock(random)); l7 = random.nextInt(100); if (l7 <= 30) { - world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); - world.setBlock(j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); + setBlock(world,j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); + setBlock(world,j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); } } if (i2 != 3) { @@ -289,22 +287,22 @@ public class StructureRuin extends WorldGenerator { } else { l5 = random.nextInt(4) + 5; } - world.setBlock(j1, k1 - l5, l1, Block.cobblestone.blockID); - world.setBlock(j1 - 1, k1 - l5, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 1, (k1 - l5) + 1, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 1, (k1 - l5) + 2, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 1, (k1 - l5) + 3, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - l5) + 1, l1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - l5) + 2, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - l5) + 3, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - l5) + 4, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, (k1 - l5) + 5, l1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - l5, l1 + 1, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - l5) + 2, l1 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - l5, l1 + 2, Block.cobblestone.blockID); - world.setBlock(j1, (k1 - l5) + 1, l1 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); - world.setBlock(j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); + setBlock(world,j1, k1 - l5, l1, pickBlock(random)); + setBlock(world,j1 - 1, k1 - l5, l1, pickBlock(random)); + setBlock(world,j1 - 1, (k1 - l5) + 1, l1, pickBlock(random)); + setBlock(world,j1 - 1, (k1 - l5) + 2, l1, pickBlock(random)); + setBlock(world,j1 - 1, (k1 - l5) + 3, l1, pickBlock(random)); + setBlock(world,j1, (k1 - l5) + 1, l1, pickBlock(random)); + setBlock(world,j1, (k1 - l5) + 2, l1, pickBlock(random)); + setBlock(world,j1, (k1 - l5) + 3, l1, pickBlock(random)); + setBlock(world,j1, (k1 - l5) + 4, l1, pickBlock(random)); + setBlock(world,j1, (k1 - l5) + 5, l1, pickBlock(random)); + setBlock(world,j1, k1 - l5, l1 + 1, pickBlock(random)); + setBlock(world,j1, (k1 - l5) + 2, l1 + 1, pickBlock(random)); + setBlock(world,j1, k1 - l5, l1 + 2, pickBlock(random)); + setBlock(world,j1, (k1 - l5) + 1, l1 + 2, pickBlock(random)); + setBlock(world,j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); + setBlock(world,j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); j7 = 1; k6 = 0; flag2 = false; @@ -317,26 +315,26 @@ public class StructureRuin extends WorldGenerator { flag2 = true; } } while (!flag2 && j7++ < 12); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Block.cobblestone.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Block.cobblestone.blockID); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, pickBlock(random)); + setBlock(world,j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, pickBlock(random)); + setBlock(world,j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, pickBlock(random)); + setBlock(world,j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, pickBlock(random)); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, pickBlock(random)); + setBlock(world,j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, pickBlock(random)); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, pickBlock(random)); + setBlock(world,j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, pickBlock(random)); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, pickBlock(random)); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, pickBlock(random)); i8 = random.nextInt(100); if (i8 <= 30) { - world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); - world.setBlock(j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); } j7 = 1; k6 = 0; @@ -350,22 +348,22 @@ public class StructureRuin extends WorldGenerator { flag2 = true; } } while (!flag2 && j7++ < 12); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Block.cobblestone.blockID); - world.setBlock(j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Block.cobblestone.blockID); - world.setBlock(j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Block.cobblestone.blockID); - world.setBlock(j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestone.blockID); - world.setBlock(j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Block.cobblestone.blockID); - world.setBlock(j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Block.cobblestone.blockID); + setBlock(world,j1 - k3, k1 - l5 - k6, l1 - l2 - 1, pickBlock(random)); + setBlock(world,j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, pickBlock(random)); + setBlock(world,j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, pickBlock(random)); + setBlock(world,j1 - k3, k1 - l5 - k6, l1 - l2 - 2, pickBlock(random)); + setBlock(world,j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, pickBlock(random)); + setBlock(world,j1 - k3, k1 - l5 - k6, l1 - l2 - 3, pickBlock(random)); + setBlock(world,j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, pickBlock(random)); + setBlock(world,j1 - k3, k1 - l5 - k6, l1 - l2 - 4, pickBlock(random)); + setBlock(world,j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, pickBlock(random)); + setBlock(world,j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, pickBlock(random)); + setBlock(world,j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, pickBlock(random)); + setBlock(world,j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, pickBlock(random)); i8 = random.nextInt(100); if (i8 <= 60) { - world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); - world.setBlock(j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); + setBlock(world,j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); + setBlock(world,j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); } j7 = 1; k6 = 0; @@ -379,22 +377,22 @@ public class StructureRuin extends WorldGenerator { flag2 = true; } } while (!flag2 && j7++ < 12); - world.setBlock(j1 + l2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Block.cobblestone.blockID); - world.setBlock(j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Block.cobblestoneMossy.blockID); + setBlock(world,j1 + l2, k1 - l5 - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 1, k1 - l5 - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 2, k1 - l5 - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 4, k1 - l5 - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, pickBlock(random)); + setBlock(world,j1 + l2 + 5, k1 - l5 - k6, l1 + j4, pickBlock(random)); i8 = random.nextInt(100); if (i8 <= 30) { - world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); - world.setBlock(j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); + setBlock(world,j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); + setBlock(world,j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); } j7 = 1; k6 = 0; @@ -408,23 +406,27 @@ public class StructureRuin extends WorldGenerator { flag2 = true; } } while (!flag2 && j7++ < 12); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3, Block.cobblestone.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Block.cobblestone.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Block.cobblestone.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Block.cobblestone.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Block.cobblestone.blockID); - world.setBlock(j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Block.cobblestoneMossy.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Block.cobblestoneMossy.blockID); + setBlock(world,j1 - 3, k1 - l5 - k6, l1 + k3, pickBlock(random)); + setBlock(world,j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, pickBlock(random)); + setBlock(world,j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, pickBlock(random)); + setBlock(world,j1 - 3, k1 - l5 - k6, l1 + k3 + 2, pickBlock(random)); + setBlock(world,j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, pickBlock(random)); + setBlock(world,j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, pickBlock(random)); + setBlock(world,j1 - 3, k1 - l5 - k6, l1 + k3 + 3, pickBlock(random)); + setBlock(world,j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, pickBlock(random)); + setBlock(world,j1 - 3, k1 - l5 - k6, l1 + k3 + 4, pickBlock(random)); + setBlock(world,j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, pickBlock(random)); + setBlock(world,j1 - 3, k1 - l5 - k6, l1 + k3 + 5, pickBlock(random)); i8 = random.nextInt(100); if (i8 <= 30) { - world.setBlock(j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); - world.setBlock(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); + setBlock(world,j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); + setBlock(world,j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); } return true; } + + private static int pickBlock(Random random) { + return random.nextBoolean() ? Block.cobblestone.blockID : Block.cobblestoneMossy.blockID; + } } From a3f0914be301b0082043f20605f542ae9e5fbd9a Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 29 Oct 2013 13:49:14 +0100 Subject: [PATCH 25/59] Added config option for chests content --- common/MysticRuins/Config.java | 42 +++++++++++++++++++-- common/mysticruins/ChestFiller.java | 58 +++++++---------------------- 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 5d98579..8e30b1a 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -4,15 +4,18 @@ import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; +import java.util.List; import java.util.Random; import java.util.Set; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; import net.minecraft.util.WeightedRandom; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; -import net.minecraftforge.common.DungeonHooks.DungeonMob; import net.minecraftforge.common.Configuration; +import net.minecraftforge.common.DungeonHooks.DungeonMob; public class Config { public static Configuration config; @@ -21,7 +24,11 @@ public class Config { public static Set[] allowId = new HashSet[4]; public static final String[] allows = { "Ruin allowed dimension id", "Dungeon allowed dimension id", "Ruin allowed biome id", "Dungeon allowed biome id" }; public static Set[] allowType = new HashSet[2]; - public static ArrayList dungeonMobs = new ArrayList(); + public static List dungeonMobs = new ArrayList(); + public static final String commonItems = Item.pickaxeIron.itemID + "," + Item.axeIron.itemID + "," + Item.swordIron.itemID + "," + Item.shovelIron.itemID + "," + Item.ingotGold.itemID + "," + + Item.ingotIron.itemID; + public static final String rareItems = Item.enderPearl.itemID + ":4," + Item.diamond.itemID + "," + Item.emerald.itemID + "," + Item.appleGold.itemID + "," + Item.ingotGold.itemID + "," + + Item.ingotIron.itemID; public static void addDungeonMob(String name, int rarity) { for (DungeonMob mob : dungeonMobs) { @@ -44,7 +51,7 @@ public class Config { public static void initialize(File file) { config = new Configuration(file); config.load(); - String[] mobs = config.get("DungeonMobs", "Spawner Type & Relative Chance", "Skeleton-50,Spider-50,Zombie-20,Cavepider-10,Blaze-1").getString().split(","); + String[] mobs = config.get("DungeonMobs", "Spawner Type & Relative Chance", "Skeleton-50,Spider-50,Zombie-20,Cavepider-10,Blaze-1", "MobName-RelativeWeight").getString().split(","); String[] mob; for (String txt : mobs) { mob = txt.split("-"); @@ -55,6 +62,8 @@ public class Config { } } } + setChest("Common Items", commonItems, ChestFiller.valuables); + setChest("Rare Items", rareItems, ChestFiller.rares); StringBuilder build = new StringBuilder("Available biome tags are: "); for (Type t : Type.values()) { build.append(t); @@ -115,4 +124,31 @@ public class Config { } config.save(); } + + private static void setChest(String type, String list, List valuables) { + String[] items = config.get("Chests", type, list, "itemid:stacksize:damage").getString().split(","); + String[] item; + for (String txt : items) { + item = txt.split(":"); + int id = -1, amount = 1, data = 0; + try { + switch (item.length) { + case 3: + data = Integer.parseInt(item[2]); + case 2: + amount = Integer.parseInt(item[1]); + case 1: + id = Integer.parseInt(item[0]); + break; + default: + continue; + } + } catch (NumberFormatException n) { + continue; + } + if (id > 0 && amount > 0 && data >= 0) { + valuables.add(new ItemStack(id, amount, data)); + } + } + } } \ No newline at end of file diff --git a/common/mysticruins/ChestFiller.java b/common/mysticruins/ChestFiller.java index 372a79a..3849e6e 100644 --- a/common/mysticruins/ChestFiller.java +++ b/common/mysticruins/ChestFiller.java @@ -1,66 +1,34 @@ package mysticruins; +import java.util.ArrayList; +import java.util.List; import java.util.Random; import net.minecraft.inventory.IInventory; -import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; public class ChestFiller { + public static List rares = new ArrayList(); + public static List valuables = new ArrayList(); + public static void fillWithRares(TileEntity tile) { - if (tile instanceof IInventory) { - IInventory chest = (IInventory) tile; - Random rand = new Random(); - int num; - for (int slot = 0; slot < chest.getSizeInventory(); slot++) { - num = rand.nextInt(16); - if (num == 1) { - chest.setInventorySlotContents(slot, new ItemStack(Item.enderPearl, 4, 0)); - } - if (num == 2) { - chest.setInventorySlotContents(slot, new ItemStack(Item.diamond, 1, 0)); - } - if (num == 3) { - chest.setInventorySlotContents(slot, new ItemStack(Item.emerald, 1, 0)); - } - if (num == 4) { - chest.setInventorySlotContents(slot, new ItemStack(Item.appleGold, 1, 0)); - } - if (num == 5) { - chest.setInventorySlotContents(slot, new ItemStack(Item.ingotGold, 1, 0)); - } - if (num == 6) { - chest.setInventorySlotContents(slot, new ItemStack(Item.ingotIron, 1, 0)); - } - } - } + fill(tile, rares, 2.5D); } public static void fillWithValuables(TileEntity tile) { + fill(tile, valuables, 5D); + } + + private static void fill(TileEntity tile, List stacks, double factor) { if (tile instanceof IInventory) { IInventory chest = (IInventory) tile; Random rand = new Random(); int num; for (int slot = 0; slot < chest.getSizeInventory(); slot++) { - num = rand.nextInt(32); - if (num == 1) { - chest.setInventorySlotContents(slot, new ItemStack(Item.pickaxeIron, 1, 0)); - } - if (num == 2) { - chest.setInventorySlotContents(slot, new ItemStack(Item.axeIron, 1, 0)); - } - if (num == 3) { - chest.setInventorySlotContents(slot, new ItemStack(Item.swordIron, 1, 0)); - } - if (num == 4) { - chest.setInventorySlotContents(slot, new ItemStack(Item.shovelIron, 1, 0)); - } - if (num == 5) { - chest.setInventorySlotContents(slot, new ItemStack(Item.ingotGold, 1, 0)); - } - if (num == 6) { - chest.setInventorySlotContents(slot, new ItemStack(Item.ingotIron, 1, 0)); + num = rand.nextInt((int) (stacks.size() * factor)); + if (num < stacks.size()) { + chest.setInventorySlotContents(slot, stacks.get(num)); } } } From cd01a41ae11280265feaed48f3627cd777c097c1 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Wed, 30 Oct 2013 17:25:46 +0100 Subject: [PATCH 26/59] Added dimension id config by range --- common/MysticRuins/Config.java | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 8e30b1a..22a8a50 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -74,14 +74,16 @@ public class Config { DunRarity = config.get("General", "Mystic Dungeon Rarity", 1, "Tries per chunk : lower to make rarer").getInt(); String[] ID; for (int i = 0; i < allows.length; i++) { - ID = config.get("General", allows[i], i < 2 ? "0," : "ALL,-WATER", i < 2 ? "" : "Use ALL or * for all biomes, select with biome id or biome tags, prefix with - to exclude").getString() - .split(","); + ID = config + .get("General", allows[i], i < 2 ? "0,[2;10]" : "ALL,-WATER", + i < 2 ? "Use [id1;id2] to add a range of id, prefix with - to exclude" : "Use ALL or * for all biomes, select with biome id or biome tags, prefix with - to exclude") + .getString().split(","); allowId[i] = new HashSet(); if (i > 1) { allowType[i - 2] = new HashSet(); } for (String txt : ID) { - if (txt.startsWith("-") && i > 1) { + if (i > 1 && txt.startsWith("-")) { txt = txt.substring(1).trim(); try { allowId[i].remove(Integer.parseInt(txt)); @@ -91,6 +93,29 @@ public class Config { } catch (IllegalArgumentException l) { } } + } else if (i < 1 && txt.contains("[") && txt.contains("]")) { + boolean remove = txt.startsWith("-"); + txt = txt.substring(txt.indexOf("["), txt.indexOf("]")); + if (txt.split(";").length == 2) { + try { + int a = Integer.parseInt(txt.split(";")[0]); + int b = Integer.parseInt(txt.split(";")[1]); + int c; + if (a > b) { + c = a; + a = b; + b = c; + } + for (int x = a; x <= b; x++) { + if (remove) { + allowId[i].remove(x); + } else { + allowId[i].add(x); + } + } + } catch (NumberFormatException n) { + } + } } else { try { int j = Integer.parseInt(txt.trim()); From 7cf77cdad08eed1cd8fb06e21a5344d16ef1bfbf Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 4 Nov 2013 00:02:10 +0100 Subject: [PATCH 27/59] Separated assets in 3 parts-Condensed rendering code --- common/MysticOres/Blocks/BlockBase.java | 2 +- common/MysticOres/Items/ItemResource.java | 2 +- common/MysticOres/Items/ItemSatchel.java | 5 +- common/MysticOres/Items/Items.java | 60 +++--- common/MysticStones/Blocks/BlockPlanks.java | 2 +- .../MysticStones/Blocks/BlockReinforced.java | 2 +- .../MysticStones/Blocks/BlockStoneBricks.java | 2 +- common/MysticStones/Blocks/BlockStones.java | 2 +- common/MysticWorld/Blocks/BlockBush.java | 2 +- common/MysticWorld/Blocks/BlockHandler.java | 6 +- .../MysticWorld/Blocks/BlockImbuedStone.java | 2 +- common/MysticWorld/Blocks/BlockLightCube.java | 9 - common/MysticWorld/Blocks/BlockPillar.java | 9 - .../MysticWorld/Blocks/BlockPillarInsert.java | 8 + common/MysticWorld/Blocks/BlockPlatform.java | 9 - common/MysticWorld/Client/ClientProxy.java | 35 ++-- common/MysticWorld/Client/FX/LightCubeFX.java | 66 +------ common/MysticWorld/Client/FX/PowerAirFX.java | 65 +------ .../MysticWorld/Client/FX/PowerEnergyFX.java | 86 -------- common/MysticWorld/Client/FX/PowerFireFX.java | 86 -------- .../MysticWorld/Client/FX/PowerWaterFX.java | 86 -------- .../Items/ItemArmorAdamantine.java | 4 +- .../MysticWorld/Items/ItemArmorIridium.java | 4 +- .../MysticWorld/Items/ItemArmorMithril.java | 4 +- .../MysticWorld/Items/ItemArmorVerdite.java | 4 +- common/MysticWorld/Items/ItemBushFruit.java | 2 +- common/MysticWorld/Items/ItemImbuedShard.java | 2 +- common/MysticWorld/Items/ItemOrb.java | 9 + common/MysticWorld/Items/ItemStaff.java | 6 + common/MysticWorld/Items/ItemStaffParts.java | 2 +- common/MysticWorld/Items/ItemStaffPower.java | 2 +- common/MysticWorld/Items/ItemVoidShard.java | 7 - common/MysticWorld/Model/ModelOrb.java | 2 +- .../Renderer/BlockPillarInsertRenderer.java | 2 +- .../Renderer/ItemOrbEarthRenderer.java | 82 -------- .../Renderer/ItemOrbEnergyRenderer.java | 82 -------- .../Renderer/ItemOrbFireRenderer.java | 82 -------- .../Renderer/ItemOrbWaterRenderer.java | 82 -------- .../Renderer/ItemStaffEarthRenderer.java | 95 --------- .../Renderer/ItemStaffEnergyRenderer.java | 95 --------- .../Renderer/ItemStaffFireRenderer.java | 95 --------- .../Renderer/ItemStaffWaterRenderer.java | 95 --------- .../TileEntityPillarInsertRenderer.java | 2 +- common/assets/mysticmods/lang/de_DE.lang | 183 ------------------ common/assets/mysticmods/lang/en_US.lang | 180 ----------------- common/assets/mysticores/lang/de_DE.lang | 68 +++++++ common/assets/mysticores/lang/en_US.lang | 68 +++++++ .../textures/blocks/Adamantine Ore.png | Bin .../textures/blocks/Agate Ore.png | Bin .../textures/blocks/Amethyst Ore.png | Bin .../textures/blocks/Black Soulstone.png | Bin .../textures/blocks/Bloodstone.png | Bin .../textures/blocks/Blue Soulstone.png | Bin .../textures/blocks/Iridium Ore.png | Bin .../textures/blocks/Mithril Ore.png | Bin .../textures/blocks/Red Soulstone.png | Bin .../textures/blocks/Tempered Glass.png | Bin .../textures/blocks/Topaz Ore.png | Bin .../textures/blocks/Tourmaline Ore.png | Bin .../textures/blocks/Verdite Ore.png | Bin .../textures/items/Adamantine Ingot.png | Bin .../textures/items/AdamantineAxe.png | Bin .../textures/items/AdamantineHoe.png | Bin .../textures/items/AdamantinePickaxe.png | Bin .../textures/items/AdamantineShovel.png | Bin .../textures/items/AdamantineSword.png | Bin .../textures/items/Agate Gem.png | Bin .../textures/items/Amethyst Gem.png | Bin .../textures/items/Bloodstone Shard.png | Bin .../textures/items/BloodstoneAxe.png | Bin .../textures/items/BloodstoneHoe.png | Bin .../textures/items/BloodstonePickaxe.png | Bin .../textures/items/BloodstoneShovel.png | Bin .../textures/items/BloodstoneSword.png | Bin .../textures/items/Glass Shard.png | Bin .../textures/items/Iridium Ingot.png | Bin .../textures/items/Iridium Nugget.png | Bin .../textures/items/IridiumAxe.png | Bin .../textures/items/IridiumHoe.png | Bin .../textures/items/IridiumPickaxe.png | Bin .../textures/items/IridiumShovel.png | Bin .../textures/items/IridiumSword.png | Bin .../textures/items/Mithril Ingot.png | Bin .../textures/items/MithrilAxe.png | Bin .../textures/items/MithrilHoe.png | Bin .../textures/items/MithrilPickaxe.png | Bin .../textures/items/MithrilShovel.png | Bin .../textures/items/MithrilSword.png | Bin .../textures/items/Mystic Powder.png | Bin .../textures/items/Obsidian Rod.png | Bin .../textures/items/Obsidian Shard.png | Bin .../textures/items/ObsidianAxe.png | Bin .../textures/items/ObsidianHoe.png | Bin .../textures/items/ObsidianPickaxe.png | Bin .../textures/items/ObsidianShovel.png | Bin .../textures/items/ObsidianSword.png | Bin .../textures/items/Satchel.png | Bin .../textures/items/Topaz Gem.png | Bin .../textures/items/Tourmaline Gem.png | Bin .../textures/items/Verdite Ingot.png | Bin .../textures/items/VerditeAxe.png | Bin .../textures/items/VerditeHoe.png | Bin .../textures/items/VerditePickaxe.png | Bin .../textures/items/VerditeShovel.png | Bin .../textures/items/VerditeSword.png | Bin common/assets/mysticstones/lang/de_DE.lang | 43 ++++ common/assets/mysticstones/lang/en_US.lang | 43 ++++ .../textures/blocks/Adamantine Bricks.png | Bin .../textures/blocks/Agate Bricks.png | Bin .../textures/blocks/Amethyst Bricks.png | Bin .../textures/blocks/Anorthosite Bricks.png | Bin .../textures/blocks/Anorthosite.png | Bin .../textures/blocks/Black Planks.png | Bin .../textures/blocks/Blue Planks.png | Bin .../textures/blocks/Green Planks.png | Bin .../textures/blocks/Iridium Bricks.png | Bin .../textures/blocks/Iridium Ore.png | Bin 0 -> 608 bytes .../textures/blocks/Limestone Bricks.png | Bin .../textures/blocks/Limestone.png | Bin .../textures/blocks/Marble Bricks.png | Bin .../textures/blocks/Marble.png | Bin .../textures/blocks/Migmatite Bricks.png | Bin .../textures/blocks/Migmatite.png | Bin .../textures/blocks/Mithril Bricks.png | Bin .../textures/blocks/MysticDirt.png | Bin .../textures/blocks/Orange Planks.png | Bin .../textures/blocks/Orthogneiss Bricks.png | Bin .../textures/blocks/Orthogneiss.png | Bin .../textures/blocks/Purple Planks.png | Bin .../textures/blocks/Red Planks.png | Bin .../textures/blocks/Slate Bricks.png | Bin .../textures/blocks/Slate.png | Bin .../textures/blocks/Smooth Anorthosite.png | Bin .../textures/blocks/Smooth Limestone.png | Bin .../textures/blocks/Smooth Marble.png | Bin .../textures/blocks/Smooth Migmatite.png | Bin .../textures/blocks/Smooth Orthogneiss.png | Bin .../textures/blocks/Smooth Slate.png | Bin .../textures/blocks/Smooth Travertine.png | Bin .../textures/blocks/Topaz Bricks.png | Bin .../textures/blocks/Tourmaline Bricks.png | Bin .../textures/blocks/Travertine Bricks.png | Bin .../textures/blocks/Travertine.png | Bin .../textures/blocks/Verdite Bricks.png | Bin .../textures/blocks/Yellow Planks.png | Bin common/assets/mysticworld/lang/de_DE.lang | 72 +++++++ common/assets/mysticworld/lang/en_US.lang | 69 +++++++ .../textures/blocks/Air Imbued Stone.png | Bin .../blocks/Air Imbued Stone.png.mcmeta | 0 .../textures/blocks/Bush.png | Bin .../textures/blocks/Earth Imbued Stone.png | Bin .../blocks/Earth Imbued Stone.png.mcmeta | 0 .../textures/blocks/Energy Imbued Stone.png | Bin .../blocks/Energy Imbued Stone.png.mcmeta | 0 .../textures/blocks/Fire Imbued Stone.png | Bin .../blocks/Fire Imbued Stone.png.mcmeta | 0 .../textures/blocks/Fire Resistance Bush.png | Bin .../textures/blocks/Harming Bush.png | Bin .../textures/blocks/Health Bush.png | Bin .../textures/blocks/Invisibility Bush.png | Bin .../textures/blocks/MysticDirt.png | Bin 0 -> 3002 bytes .../blocks/MysticGrass__side_snowed.png | Bin .../textures/blocks/MysticGrass__top.png | Bin .../textures/blocks/MysticGrass_side.png | Bin .../blocks/MysticGrass_side_overlay.png | Bin .../textures/blocks/Night Vision Bush.png | Bin .../textures/blocks/Pillar.png | Bin .../textures/blocks/Platform.png | Bin .../textures/blocks/Poisonous Bush.png | Bin .../textures/blocks/Regen Bush.png | Bin .../textures/blocks/Slowness Bush.png | Bin .../textures/blocks/Speed Bush.png | Bin .../textures/blocks/Water Imbued Stone.png | Bin .../blocks/Water Imbued Stone.png.mcmeta | 0 .../textures/blocks/Weakness Bush.png | Bin .../textures/blocks/Wither Bush.png | Bin .../textures/blocks/lightCube.png | Bin .../textures/items/AdamantineArmor_0.png | Bin .../textures/items/AdamantineArmor_1.png | Bin .../textures/items/AdamantineArmor_2.png | Bin .../textures/items/AdamantineArmor_3.png | Bin .../textures/items/ChargeAir.png | Bin .../textures/items/ChargeEarth.png | Bin .../textures/items/ChargeEnergy.png | Bin .../textures/items/ChargeFire.png | Bin .../textures/items/ChargeWater.png | Bin .../textures/items/FruitFireResistance.png | Bin .../textures/items/FruitHarming.png | Bin .../textures/items/FruitHealth.png | Bin .../textures/items/FruitInvisibility.png | Bin .../textures/items/FruitMundane.png | Bin .../textures/items/FruitNightVision.png | Bin .../textures/items/FruitPoison.png | Bin .../textures/items/FruitRegen.png | Bin .../textures/items/FruitSlowness.png | Bin .../textures/items/FruitSpeed.png | Bin .../textures/items/FruitWeakness.png | Bin .../textures/items/FruitWither.png | Bin .../textures/items/IridiumArmor_0.png | Bin .../textures/items/IridiumArmor_1.png | Bin .../textures/items/IridiumArmor_2.png | Bin .../textures/items/IridiumArmor_3.png | Bin .../textures/items/MithrilArmor_0.png | Bin .../textures/items/MithrilArmor_1.png | Bin .../textures/items/MithrilArmor_2.png | Bin .../textures/items/MithrilArmor_3.png | Bin .../textures/items/ShardAir.png | Bin .../textures/items/ShardEarth.png | Bin .../textures/items/ShardEnergy.png | Bin .../textures/items/ShardFire.png | Bin .../textures/items/ShardVoid.png | Bin .../textures/items/ShardWater.png | Bin .../textures/items/StaffPart_Handle.png | Bin .../textures/items/StaffPart_Head.png | Bin .../textures/items/StaffPart_Hilt.png | Bin .../textures/items/StaffPart_Staff.png | Bin .../textures/items/VerditeArmor_0.png | Bin .../textures/items/VerditeArmor_1.png | Bin .../textures/items/VerditeArmor_2.png | Bin .../textures/items/VerditeArmor_3.png | Bin .../textures/misc/airFX.png | Bin .../textures/misc/earthFX.png | Bin .../textures/misc/energyFX.png | Bin .../textures/misc/fireFX.png | Bin .../textures/misc/lightCubeFX.png | Bin .../textures/misc/waterFX.png | Bin .../textures/mob/MysticVillager.png | Bin .../textures/models/AirStaff.png | Bin .../textures/models/EarthStaff.png | Bin .../textures/models/EnergyStaff.png | Bin .../textures/models/FireStaff.png | Bin .../textures/models/OrbAir.png | Bin .../textures/models/OrbEarth.png | Bin .../textures/models/OrbEnergy.png | Bin .../textures/models/OrbFire.png | Bin .../textures/models/OrbWater.png | Bin .../textures/models/PillarInsert.png | Bin .../textures/models/PillarInsertFilled.png | Bin .../textures/models/StaffAir.png | Bin .../textures/models/StaffEarth.png | Bin .../textures/models/StaffEnergy.png | Bin .../textures/models/StaffFire.png | Bin .../textures/models/StaffWater.png | Bin .../textures/models/WaterStaff.png | Bin .../models/armor/Adamantine_layer_1.png | Bin .../models/armor/Adamantine_layer_2.png | Bin .../textures/models/armor/Iridium_layer_1.png | Bin .../textures/models/armor/Iridium_layer_2.png | Bin .../textures/models/armor/Mithril_layer_1.png | Bin .../textures/models/armor/Mithril_layer_2.png | Bin .../textures/models/armor/Verdite_layer_1.png | Bin .../textures/models/armor/Verdite_layer_2.png | Bin .../client/fx/PowerFX.java} | 22 ++- common/mysticworld/items/ItemHandler.java | 2 +- .../renderer/BaseItemRenderer.java | 39 ++++ .../renderer/OrbItemRenderer.java} | 49 +---- .../renderer/StaffItemRenderer.java} | 40 +--- 257 files changed, 536 insertions(+), 1648 deletions(-) delete mode 100644 common/MysticWorld/Client/FX/PowerEnergyFX.java delete mode 100644 common/MysticWorld/Client/FX/PowerFireFX.java delete mode 100644 common/MysticWorld/Client/FX/PowerWaterFX.java delete mode 100644 common/MysticWorld/Renderer/ItemOrbEarthRenderer.java delete mode 100644 common/MysticWorld/Renderer/ItemOrbEnergyRenderer.java delete mode 100644 common/MysticWorld/Renderer/ItemOrbFireRenderer.java delete mode 100644 common/MysticWorld/Renderer/ItemOrbWaterRenderer.java delete mode 100644 common/MysticWorld/Renderer/ItemStaffEarthRenderer.java delete mode 100644 common/MysticWorld/Renderer/ItemStaffEnergyRenderer.java delete mode 100644 common/MysticWorld/Renderer/ItemStaffFireRenderer.java delete mode 100644 common/MysticWorld/Renderer/ItemStaffWaterRenderer.java delete mode 100644 common/assets/mysticmods/lang/de_DE.lang delete mode 100644 common/assets/mysticmods/lang/en_US.lang create mode 100644 common/assets/mysticores/lang/de_DE.lang create mode 100644 common/assets/mysticores/lang/en_US.lang rename common/assets/{mysticmods => mysticores}/textures/blocks/Adamantine Ore.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Agate Ore.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Amethyst Ore.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Black Soulstone.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Bloodstone.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Blue Soulstone.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Iridium Ore.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Mithril Ore.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Red Soulstone.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Tempered Glass.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Topaz Ore.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Tourmaline Ore.png (100%) rename common/assets/{mysticmods => mysticores}/textures/blocks/Verdite Ore.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Adamantine Ingot.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/AdamantineAxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/AdamantineHoe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/AdamantinePickaxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/AdamantineShovel.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/AdamantineSword.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Agate Gem.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Amethyst Gem.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Bloodstone Shard.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/BloodstoneAxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/BloodstoneHoe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/BloodstonePickaxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/BloodstoneShovel.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/BloodstoneSword.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Glass Shard.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Iridium Ingot.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Iridium Nugget.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/IridiumAxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/IridiumHoe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/IridiumPickaxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/IridiumShovel.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/IridiumSword.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Mithril Ingot.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/MithrilAxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/MithrilHoe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/MithrilPickaxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/MithrilShovel.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/MithrilSword.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Mystic Powder.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Obsidian Rod.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Obsidian Shard.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/ObsidianAxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/ObsidianHoe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/ObsidianPickaxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/ObsidianShovel.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/ObsidianSword.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Satchel.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Topaz Gem.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Tourmaline Gem.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/Verdite Ingot.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/VerditeAxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/VerditeHoe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/VerditePickaxe.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/VerditeShovel.png (100%) rename common/assets/{mysticmods => mysticores}/textures/items/VerditeSword.png (100%) create mode 100644 common/assets/mysticstones/lang/de_DE.lang create mode 100644 common/assets/mysticstones/lang/en_US.lang rename common/assets/{mysticmods => mysticstones}/textures/blocks/Adamantine Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Agate Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Amethyst Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Anorthosite Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Anorthosite.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Black Planks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Blue Planks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Green Planks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Iridium Bricks.png (100%) create mode 100644 common/assets/mysticstones/textures/blocks/Iridium Ore.png rename common/assets/{mysticmods => mysticstones}/textures/blocks/Limestone Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Limestone.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Marble Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Marble.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Migmatite Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Migmatite.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Mithril Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/MysticDirt.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Orange Planks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Orthogneiss Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Orthogneiss.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Purple Planks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Red Planks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Slate Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Slate.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Smooth Anorthosite.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Smooth Limestone.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Smooth Marble.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Smooth Migmatite.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Smooth Orthogneiss.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Smooth Slate.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Smooth Travertine.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Topaz Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Tourmaline Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Travertine Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Travertine.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Verdite Bricks.png (100%) rename common/assets/{mysticmods => mysticstones}/textures/blocks/Yellow Planks.png (100%) create mode 100644 common/assets/mysticworld/lang/de_DE.lang create mode 100644 common/assets/mysticworld/lang/en_US.lang rename common/assets/{mysticmods => mysticworld}/textures/blocks/Air Imbued Stone.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Air Imbued Stone.png.mcmeta (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Earth Imbued Stone.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Earth Imbued Stone.png.mcmeta (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Energy Imbued Stone.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Energy Imbued Stone.png.mcmeta (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Fire Imbued Stone.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Fire Imbued Stone.png.mcmeta (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Fire Resistance Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Harming Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Health Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Invisibility Bush.png (100%) create mode 100644 common/assets/mysticworld/textures/blocks/MysticDirt.png rename common/assets/{mysticmods => mysticworld}/textures/blocks/MysticGrass__side_snowed.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/MysticGrass__top.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/MysticGrass_side.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/MysticGrass_side_overlay.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Night Vision Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Pillar.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Platform.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Poisonous Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Regen Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Slowness Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Speed Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Water Imbued Stone.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Water Imbued Stone.png.mcmeta (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Weakness Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/Wither Bush.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/blocks/lightCube.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/AdamantineArmor_0.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/AdamantineArmor_1.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/AdamantineArmor_2.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/AdamantineArmor_3.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ChargeAir.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ChargeEarth.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ChargeEnergy.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ChargeFire.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ChargeWater.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitFireResistance.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitHarming.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitHealth.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitInvisibility.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitMundane.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitNightVision.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitPoison.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitRegen.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitSlowness.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitSpeed.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitWeakness.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/FruitWither.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/IridiumArmor_0.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/IridiumArmor_1.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/IridiumArmor_2.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/IridiumArmor_3.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/MithrilArmor_0.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/MithrilArmor_1.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/MithrilArmor_2.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/MithrilArmor_3.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ShardAir.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ShardEarth.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ShardEnergy.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ShardFire.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ShardVoid.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/ShardWater.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/StaffPart_Handle.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/StaffPart_Head.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/StaffPart_Hilt.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/StaffPart_Staff.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/VerditeArmor_0.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/VerditeArmor_1.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/VerditeArmor_2.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/items/VerditeArmor_3.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/misc/airFX.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/misc/earthFX.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/misc/energyFX.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/misc/fireFX.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/misc/lightCubeFX.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/misc/waterFX.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/mob/MysticVillager.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/AirStaff.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/EarthStaff.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/EnergyStaff.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/FireStaff.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/OrbAir.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/OrbEarth.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/OrbEnergy.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/OrbFire.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/OrbWater.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/PillarInsert.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/PillarInsertFilled.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/StaffAir.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/StaffEarth.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/StaffEnergy.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/StaffFire.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/StaffWater.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/WaterStaff.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/armor/Adamantine_layer_1.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/armor/Adamantine_layer_2.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/armor/Iridium_layer_1.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/armor/Iridium_layer_2.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/armor/Mithril_layer_1.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/armor/Mithril_layer_2.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/armor/Verdite_layer_1.png (100%) rename common/assets/{mysticmods => mysticworld}/textures/models/armor/Verdite_layer_2.png (100%) rename common/{MysticWorld/Client/FX/PowerEarthFX.java => mysticworld/client/fx/PowerFX.java} (88%) create mode 100644 common/mysticworld/renderer/BaseItemRenderer.java rename common/{MysticWorld/Renderer/ItemOrbAirRenderer.java => mysticworld/renderer/OrbItemRenderer.java} (51%) rename common/{MysticWorld/Renderer/ItemStaffAirRenderer.java => mysticworld/renderer/StaffItemRenderer.java} (68%) diff --git a/common/MysticOres/Blocks/BlockBase.java b/common/MysticOres/Blocks/BlockBase.java index a73a66d..1160302 100644 --- a/common/MysticOres/Blocks/BlockBase.java +++ b/common/MysticOres/Blocks/BlockBase.java @@ -167,7 +167,7 @@ public class BlockBase extends Block { public void registerIcons(IconRegister register) { textures = new Icon[16]; for (int i = 0; i < ItemBase.BLOCK_NAMES.length; i++) { - textures[i] = register.registerIcon("mysticmods:" + ItemBase.BLOCK_NAMES[i]); + textures[i] = register.registerIcon("mysticores:" + ItemBase.BLOCK_NAMES[i]); } } diff --git a/common/MysticOres/Items/ItemResource.java b/common/MysticOres/Items/ItemResource.java index 2215d44..b19eb4f 100644 --- a/common/MysticOres/Items/ItemResource.java +++ b/common/MysticOres/Items/ItemResource.java @@ -48,6 +48,6 @@ public class ItemResource extends Item { public void registerIcons(IconRegister iconRegister) { icons = new Icon[RESOURCE_TYPES.length]; for (int i = 0; i < RESOURCE_TYPES.length; ++i) - icons[i] = iconRegister.registerIcon("mysticmods:" + RESOURCE_TYPES[i]); + icons[i] = iconRegister.registerIcon("mysticores:" + RESOURCE_TYPES[i]); } } diff --git a/common/MysticOres/Items/ItemSatchel.java b/common/MysticOres/Items/ItemSatchel.java index 3ea6d7d..754b242 100644 --- a/common/MysticOres/Items/ItemSatchel.java +++ b/common/MysticOres/Items/ItemSatchel.java @@ -1,7 +1,6 @@ package mysticores.items; import mysticores.MysticOres; -import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -32,7 +31,7 @@ public class ItemSatchel extends Item { @Override @SideOnly(Side.CLIENT) - protected String getIconString(){ - return "mysticmods:" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1); + protected String getIconString() { + return "mysticores:" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1); } } diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index 8e25f2c..3286896 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -21,59 +21,59 @@ public class Items { public static void initialize() { Resource = new ItemResource(ItemID.RESOURCES); - VerditeSword = new ItemSword(ItemID.VERDITESWORD, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticmods:VerditeSword") + VerditeSword = new ItemSword(ItemID.VERDITESWORD, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticores:VerditeSword") .setCreativeTab(MysticOres.MysticOresTab); - VerditePickaxe = new ItemPickaxe(ItemID.VERDITEPICKAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticmods:VerditePickaxe") + VerditePickaxe = new ItemPickaxe(ItemID.VERDITEPICKAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticores:VerditePickaxe") .setCreativeTab(MysticOres.MysticOresTab); - VerditeShovel = new ItemSpade(ItemID.VERDITESHOVEL, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeShovel").setTextureName("mysticmods:VerditeShovel") + VerditeShovel = new ItemSpade(ItemID.VERDITESHOVEL, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeShovel").setTextureName("mysticores:VerditeShovel") .setCreativeTab(MysticOres.MysticOresTab); - VerditeAxe = new ItemAxe(ItemID.VERDITEAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeAxe").setTextureName("mysticmods:VerditeAxe").setCreativeTab(MysticOres.MysticOresTab); - VerditeHoe = new ItemHoe(ItemID.VERDITEHOE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeHoe").setTextureName("mysticmods:VerditeHoe").setCreativeTab(MysticOres.MysticOresTab); - MithrilSword = new ItemSword(ItemID.MITHRILSWORD, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilSword").setTextureName("mysticmods:MithrilSword") + VerditeAxe = new ItemAxe(ItemID.VERDITEAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeAxe").setTextureName("mysticores:VerditeAxe").setCreativeTab(MysticOres.MysticOresTab); + VerditeHoe = new ItemHoe(ItemID.VERDITEHOE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeHoe").setTextureName("mysticores:VerditeHoe").setCreativeTab(MysticOres.MysticOresTab); + MithrilSword = new ItemSword(ItemID.MITHRILSWORD, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilSword").setTextureName("mysticores:MithrilSword") .setCreativeTab(MysticOres.MysticOresTab); - MithrilPickaxe = new ItemPickaxe(ItemID.MITHRILPICKAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilPickaxe").setTextureName("mysticmods:MithrilPickaxe") + MithrilPickaxe = new ItemPickaxe(ItemID.MITHRILPICKAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilPickaxe").setTextureName("mysticores:MithrilPickaxe") .setCreativeTab(MysticOres.MysticOresTab); - MithrilShovel = new ItemSpade(ItemID.MITHRILSHOVEL, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilShovel").setTextureName("mysticmods:MithrilShovel") + MithrilShovel = new ItemSpade(ItemID.MITHRILSHOVEL, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilShovel").setTextureName("mysticores:MithrilShovel") .setCreativeTab(MysticOres.MysticOresTab); - MithrilAxe = new ItemAxe(ItemID.MITHRILAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilAxe").setTextureName("mysticmods:MithrilAxe").setCreativeTab(MysticOres.MysticOresTab); - MithrilHoe = new ItemHoe(ItemID.MITHRILHOE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilHoe").setTextureName("mysticmods:MithrilHoe").setCreativeTab(MysticOres.MysticOresTab); - AdamantineSword = new ItemSword(ItemID.ADAMANTINESWORD, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineSword").setTextureName("mysticmods:AdamantineSword") + MithrilAxe = new ItemAxe(ItemID.MITHRILAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilAxe").setTextureName("mysticores:MithrilAxe").setCreativeTab(MysticOres.MysticOresTab); + MithrilHoe = new ItemHoe(ItemID.MITHRILHOE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilHoe").setTextureName("mysticores:MithrilHoe").setCreativeTab(MysticOres.MysticOresTab); + AdamantineSword = new ItemSword(ItemID.ADAMANTINESWORD, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineSword").setTextureName("mysticores:AdamantineSword") .setCreativeTab(MysticOres.MysticOresTab); - AdamantinePickaxe = new ItemPickaxe(ItemID.ADAMANTINEPICKAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantinePickaxe").setTextureName("mysticmods:AdamantinePickaxe") + AdamantinePickaxe = new ItemPickaxe(ItemID.ADAMANTINEPICKAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantinePickaxe").setTextureName("mysticores:AdamantinePickaxe") .setCreativeTab(MysticOres.MysticOresTab); - AdamantineShovel = new ItemSpade(ItemID.ADAMANTINESHOVEL, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineShovel").setTextureName("mysticmods:AdamantineShovel") + AdamantineShovel = new ItemSpade(ItemID.ADAMANTINESHOVEL, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineShovel").setTextureName("mysticores:AdamantineShovel") .setCreativeTab(MysticOres.MysticOresTab); - AdamantineAxe = new ItemAxe(ItemID.ADAMANTINEAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineAxe").setTextureName("mysticmods:AdamantineAxe") + AdamantineAxe = new ItemAxe(ItemID.ADAMANTINEAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineAxe").setTextureName("mysticores:AdamantineAxe") .setCreativeTab(MysticOres.MysticOresTab); - AdamantineHoe = new ItemHoe(ItemID.ADAMANTINEHOE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineHoe").setTextureName("mysticmods:AdamantineHoe") + AdamantineHoe = new ItemHoe(ItemID.ADAMANTINEHOE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineHoe").setTextureName("mysticores:AdamantineHoe") .setCreativeTab(MysticOres.MysticOresTab); - IridiumSword = new ItemSword(ItemID.IRIDIUMSWORD, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumSword").setTextureName("mysticmods:IridiumSword") + IridiumSword = new ItemSword(ItemID.IRIDIUMSWORD, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumSword").setTextureName("mysticores:IridiumSword") .setCreativeTab(MysticOres.MysticOresTab); - IridiumPickaxe = new ItemPickaxe(ItemID.IRIDIUMPICKAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumPickaxe").setTextureName("mysticmods:IridiumPickaxe") + IridiumPickaxe = new ItemPickaxe(ItemID.IRIDIUMPICKAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumPickaxe").setTextureName("mysticores:IridiumPickaxe") .setCreativeTab(MysticOres.MysticOresTab); - IridiumShovel = new ItemSpade(ItemID.IRIDIUMSHOVEL, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumShovel").setTextureName("mysticmods:IridiumShovel") + IridiumShovel = new ItemSpade(ItemID.IRIDIUMSHOVEL, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumShovel").setTextureName("mysticores:IridiumShovel") .setCreativeTab(MysticOres.MysticOresTab); - IridiumAxe = new ItemAxe(ItemID.IRIDIUMAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumAxe").setTextureName("mysticmods:IridiumAxe").setCreativeTab(MysticOres.MysticOresTab); - IridiumHoe = new ItemHoe(ItemID.IRIDIUMHOE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumHoe").setTextureName("mysticmods:IridiumHoe").setCreativeTab(MysticOres.MysticOresTab); - BloodstoneSword = new ItemSword(ItemID.BLOODSTONESWORD, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneSword").setTextureName("mysticmods:BloodstoneSword") + IridiumAxe = new ItemAxe(ItemID.IRIDIUMAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumAxe").setTextureName("mysticores:IridiumAxe").setCreativeTab(MysticOres.MysticOresTab); + IridiumHoe = new ItemHoe(ItemID.IRIDIUMHOE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumHoe").setTextureName("mysticores:IridiumHoe").setCreativeTab(MysticOres.MysticOresTab); + BloodstoneSword = new ItemSword(ItemID.BLOODSTONESWORD, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneSword").setTextureName("mysticores:BloodstoneSword") .setCreativeTab(MysticOres.MysticOresTab); - BloodstonePickaxe = new ItemPickaxe(ItemID.BLOODSTONEPICKAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstonePickaxe").setTextureName("mysticmods:BloodstonePickaxe") + BloodstonePickaxe = new ItemPickaxe(ItemID.BLOODSTONEPICKAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstonePickaxe").setTextureName("mysticores:BloodstonePickaxe") .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneShovel = new ItemSpade(ItemID.BLOODSTONESHOVEL, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneShovel").setTextureName("mysticmods:BloodstoneShovel") + BloodstoneShovel = new ItemSpade(ItemID.BLOODSTONESHOVEL, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneShovel").setTextureName("mysticores:BloodstoneShovel") .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneAxe = new ItemAxe(ItemID.BLOODSTONEAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneAxe").setTextureName("mysticmods:BloodstoneAxe") + BloodstoneAxe = new ItemAxe(ItemID.BLOODSTONEAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneAxe").setTextureName("mysticores:BloodstoneAxe") .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneHoe = new ItemHoe(ItemID.BLOODSTONEHOE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneHoe").setTextureName("mysticmods:BloodstoneHoe") + BloodstoneHoe = new ItemHoe(ItemID.BLOODSTONEHOE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneHoe").setTextureName("mysticores:BloodstoneHoe") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianSword = new ItemSword(ItemID.OBSIDIANSWORD, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianSword").setTextureName("mysticmods:ObsidianSword") + ObsidianSword = new ItemSword(ItemID.OBSIDIANSWORD, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianSword").setTextureName("mysticores:ObsidianSword") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianPickaxe = new ItemPickaxe(ItemID.OBSIDIANPICKAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianPickaxe").setTextureName("mysticmods:ObsidianPickaxe") + ObsidianPickaxe = new ItemPickaxe(ItemID.OBSIDIANPICKAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianPickaxe").setTextureName("mysticores:ObsidianPickaxe") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianShovel = new ItemSpade(ItemID.OBSIDIANSHOVEL, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianShovel").setTextureName("mysticmods:ObsidianShovel") + ObsidianShovel = new ItemSpade(ItemID.OBSIDIANSHOVEL, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianShovel").setTextureName("mysticores:ObsidianShovel") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianAxe = new ItemAxe(ItemID.OBSIDIANAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianAxe").setTextureName("mysticmods:ObsidianAxe") + ObsidianAxe = new ItemAxe(ItemID.OBSIDIANAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianAxe").setTextureName("mysticores:ObsidianAxe") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianHoe = new ItemHoe(ItemID.OBSIDIANHOE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe").setTextureName("mysticmods:ObsidianHoe") + ObsidianHoe = new ItemHoe(ItemID.OBSIDIANHOE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe").setTextureName("mysticores:ObsidianHoe") .setCreativeTab(MysticOres.MysticOresTab); Satchel = new ItemSatchel(ItemID.SATCHEL).setUnlocalizedName("Satchel"); } diff --git a/common/MysticStones/Blocks/BlockPlanks.java b/common/MysticStones/Blocks/BlockPlanks.java index 418556c..f7bd63a 100644 --- a/common/MysticStones/Blocks/BlockPlanks.java +++ b/common/MysticStones/Blocks/BlockPlanks.java @@ -21,7 +21,7 @@ public class BlockPlanks extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemPlanks.PLANK_TYPE.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("mysticmods:" + ItemPlanks.PLANK_TYPE[i]); + textures[i] = iconRegister.registerIcon("mysticstones:" + ItemPlanks.PLANK_TYPE[i]); } } } diff --git a/common/MysticStones/Blocks/BlockReinforced.java b/common/MysticStones/Blocks/BlockReinforced.java index e5f39dd..59bb11d 100644 --- a/common/MysticStones/Blocks/BlockReinforced.java +++ b/common/MysticStones/Blocks/BlockReinforced.java @@ -27,7 +27,7 @@ public class BlockReinforced extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemReinforced.BRICK_TYPE.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("mysticmods:" + ItemReinforced.BRICK_TYPE[i]); + textures[i] = iconRegister.registerIcon("mysticstones:" + ItemReinforced.BRICK_TYPE[i]); } } } diff --git a/common/MysticStones/Blocks/BlockStoneBricks.java b/common/MysticStones/Blocks/BlockStoneBricks.java index 2311f8a..d1bdce0 100644 --- a/common/MysticStones/Blocks/BlockStoneBricks.java +++ b/common/MysticStones/Blocks/BlockStoneBricks.java @@ -21,7 +21,7 @@ public class BlockStoneBricks extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemStoneBricks.STONEBRICK_TYPES.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("mysticmods:" + ItemStoneBricks.STONEBRICK_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticstones:" + ItemStoneBricks.STONEBRICK_TYPES[i]); } } } diff --git a/common/MysticStones/Blocks/BlockStones.java b/common/MysticStones/Blocks/BlockStones.java index 71c18fe..54f5c50 100644 --- a/common/MysticStones/Blocks/BlockStones.java +++ b/common/MysticStones/Blocks/BlockStones.java @@ -51,7 +51,7 @@ public class BlockStones extends BlockMulti { public void registerIcons(IconRegister iconRegister) { textures = new Icon[ItemStones.STONE_TYPES.length]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("mysticmods:" + ItemStones.STONE_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticstones:" + ItemStones.STONE_TYPES[i]); } } diff --git a/common/MysticWorld/Blocks/BlockBush.java b/common/MysticWorld/Blocks/BlockBush.java index 2e0cc4f..19f10bf 100644 --- a/common/MysticWorld/Blocks/BlockBush.java +++ b/common/MysticWorld/Blocks/BlockBush.java @@ -103,7 +103,7 @@ public class BlockBush extends BlockFlower { public void registerIcons(IconRegister iconRegister) { textures = new Icon[16]; for (int i = 0; i < 12; i++) { - textures[i] = iconRegister.registerIcon("mysticmods:" + ItemBush.BUSH_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticworld:" + ItemBush.BUSH_TYPES[i]); } } diff --git a/common/MysticWorld/Blocks/BlockHandler.java b/common/MysticWorld/Blocks/BlockHandler.java index cbc0abe..4e36807 100644 --- a/common/MysticWorld/Blocks/BlockHandler.java +++ b/common/MysticWorld/Blocks/BlockHandler.java @@ -16,9 +16,9 @@ public class BlockHandler { public static void init() { oreImbuedStone = new BlockImbuedStone(BlockIds.ORE_STONE_1).setUnlocalizedName(Strings.IMBUED_STONE_NAME); bush = new BlockBush(BlockIds.BUSH).setUnlocalizedName(Strings.BUSH_NAME); - lightCube = new BlockLightCube(BlockIds.LIGHT_CUBE).setUnlocalizedName(Strings.LIGHT_CUBE_NAME); - pillarPlatform = new BlockPlatform(BlockIds.PLATFORM).setUnlocalizedName(Strings.PLATFORM_NAME); - pillar = new BlockPillar(BlockIds.PILLAR).setUnlocalizedName(Strings.PILLAR_NAME); + lightCube = new BlockLightCube(BlockIds.LIGHT_CUBE).setUnlocalizedName(Strings.LIGHT_CUBE_NAME).setTextureName("mysticworld:lightCube"); + pillarPlatform = new BlockPlatform(BlockIds.PLATFORM).setUnlocalizedName(Strings.PLATFORM_NAME).setTextureName("mysticworld:Platform"); + pillar = new BlockPillar(BlockIds.PILLAR).setUnlocalizedName(Strings.PILLAR_NAME).setTextureName("mysticworld:Pillar"); pillarInsert = new BlockPillarInsert(BlockIds.PILLAR_INSERT).setUnlocalizedName(Strings.PILLAR_INSERT_NAME); registerBlocks(); setBlockHarvestLevels(); diff --git a/common/MysticWorld/Blocks/BlockImbuedStone.java b/common/MysticWorld/Blocks/BlockImbuedStone.java index ce4456e..25912fe 100644 --- a/common/MysticWorld/Blocks/BlockImbuedStone.java +++ b/common/MysticWorld/Blocks/BlockImbuedStone.java @@ -87,7 +87,7 @@ public class BlockImbuedStone extends Block { public void registerIcons(IconRegister iconRegister) { textures = new Icon[16]; for (int i = 0; i < 5; i++) { - textures[i] = iconRegister.registerIcon("mysticmods" + ":" + ItemImbuedStone.IMBUED_STONE_TYPE[i] + " Imbued Stone"); + textures[i] = iconRegister.registerIcon("mysticworld:" + ItemImbuedStone.IMBUED_STONE_TYPE[i] + " Imbued Stone"); } } diff --git a/common/MysticWorld/Blocks/BlockLightCube.java b/common/MysticWorld/Blocks/BlockLightCube.java index 17d8e8f..64f528f 100644 --- a/common/MysticWorld/Blocks/BlockLightCube.java +++ b/common/MysticWorld/Blocks/BlockLightCube.java @@ -5,10 +5,7 @@ import java.util.Random; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockLightCube extends Block { public BlockLightCube(int id) { @@ -34,12 +31,6 @@ public class BlockLightCube extends Block { MysticWorld.proxy.lightCubeFX(world, x + random.nextDouble(), y + 0.75D, z + random.nextDouble(), 0.0D, 0.0D, 0.0D, 1.0F); } - @Override - @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - this.blockIcon = iconRegister.registerIcon("mysticmods:" + "lightCube"); - } - @Override public boolean renderAsNormalBlock() { return false; diff --git a/common/MysticWorld/Blocks/BlockPillar.java b/common/MysticWorld/Blocks/BlockPillar.java index 3dab25b..89a7c90 100644 --- a/common/MysticWorld/Blocks/BlockPillar.java +++ b/common/MysticWorld/Blocks/BlockPillar.java @@ -3,9 +3,6 @@ package mysticworld.blocks; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockPillar extends Block { public BlockPillar(int id) { @@ -21,12 +18,6 @@ public class BlockPillar extends Block { return false; } - @Override - @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - this.blockIcon = iconRegister.registerIcon("mysticmods:" + "Pillar"); - } - @Override public boolean renderAsNormalBlock() { return false; diff --git a/common/MysticWorld/Blocks/BlockPillarInsert.java b/common/MysticWorld/Blocks/BlockPillarInsert.java index 9fd0841..82f0ed2 100644 --- a/common/MysticWorld/Blocks/BlockPillarInsert.java +++ b/common/MysticWorld/Blocks/BlockPillarInsert.java @@ -1,9 +1,12 @@ package mysticworld.blocks; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import mysticworld.tiles.TileEntityPillarInsert; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; +import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; @@ -51,6 +54,11 @@ public class BlockPillarInsert extends BlockContainer { return false; } + @Override + @SideOnly(Side.CLIENT) + public void registerIcons(IconRegister par1IconRegister) { + } + @Override public boolean renderAsNormalBlock() { return false; diff --git a/common/MysticWorld/Blocks/BlockPlatform.java b/common/MysticWorld/Blocks/BlockPlatform.java index d35c09c..953e105 100644 --- a/common/MysticWorld/Blocks/BlockPlatform.java +++ b/common/MysticWorld/Blocks/BlockPlatform.java @@ -5,10 +5,7 @@ import java.util.Random; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockPlatform extends Block { public BlockPlatform(int id) { @@ -42,12 +39,6 @@ public class BlockPlatform extends Block { } } - @Override - @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - this.blockIcon = iconRegister.registerIcon("mysticmods:" + "Platform"); - } - @Override public boolean renderAsNormalBlock() { return false; diff --git a/common/MysticWorld/Client/ClientProxy.java b/common/MysticWorld/Client/ClientProxy.java index 819e3e9..7221d40 100644 --- a/common/MysticWorld/Client/ClientProxy.java +++ b/common/MysticWorld/Client/ClientProxy.java @@ -4,10 +4,7 @@ import mysticworld.blocks.BlockHandler; import mysticworld.blocks.BlockPillarInsert; import mysticworld.client.fx.LightCubeFX; import mysticworld.client.fx.PowerAirFX; -import mysticworld.client.fx.PowerEarthFX; -import mysticworld.client.fx.PowerEnergyFX; -import mysticworld.client.fx.PowerFireFX; -import mysticworld.client.fx.PowerWaterFX; +import mysticworld.client.fx.PowerFX; import mysticworld.entity.EntityChargeAir; import mysticworld.entity.EntityChargeEarth; import mysticworld.entity.EntityChargeEnergy; @@ -36,25 +33,25 @@ public class ClientProxy extends CommonProxy { //particles @Override public void airFeetFX(World worldObj, double x, double y, double z, float scale, int age) { - PowerAirFX airFX = new PowerAirFX(worldObj, x, y, z, scale, age); + PowerFX airFX = new PowerAirFX(worldObj, x, y, z, scale, age); mc.effectRenderer.addEffect(airFX); } @Override public void earthFX(World worldObj, double x, double y, double z, float scale) { - PowerEarthFX earthFX = new PowerEarthFX(worldObj, x, y, z, scale); + PowerFX earthFX = new PowerFX(worldObj, x, y, z, scale).setTexture("earth"); mc.effectRenderer.addEffect(earthFX); } @Override public void energyFX(World worldObj, double x, double y, double z, float scale) { - PowerEnergyFX energyFX = new PowerEnergyFX(worldObj, x, y, z, scale); + PowerFX energyFX = new PowerFX(worldObj, x, y, z, scale).setTexture("energy"); mc.effectRenderer.addEffect(energyFX); } @Override public void fireFX(World worldObj, double x, double y, double z, float scale) { - PowerFireFX fireFX = new PowerFireFX(worldObj, x, y, z, scale); + PowerFX fireFX = new PowerFX(worldObj, x, y, z, scale).setTexture("fire"); mc.effectRenderer.addEffect(fireFX); } @@ -68,16 +65,16 @@ public class ClientProxy extends CommonProxy { public void registerRenders() { BlockPillarInsert.RENDER_PILLAR_INSERT = RenderingRegistry.getNextAvailableRenderId(); MinecraftForgeClient.registerItemRenderer(BlockHandler.pillarInsert.blockID, new BlockPillarInsertRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.fireStaff.itemID, new ItemStaffFireRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.earthStaff.itemID, new ItemStaffEarthRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.airStaff.itemID, new ItemStaffAirRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.energyStaff.itemID, new ItemStaffEnergyRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.waterStaff.itemID, new ItemStaffWaterRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.fireOrb.itemID, new ItemOrbFireRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.earthOrb.itemID, new ItemOrbEarthRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.airOrb.itemID, new ItemOrbAirRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.energyOrb.itemID, new ItemOrbEnergyRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.waterOrb.itemID, new ItemOrbWaterRenderer()); + MinecraftForgeClient.registerItemRenderer(ItemHandler.fireStaff.itemID, new StaffItemRenderer("Fire")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.earthStaff.itemID, new StaffItemRenderer("Earth")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.airStaff.itemID, new StaffItemRenderer("Air")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.energyStaff.itemID, new StaffItemRenderer("Energy")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.waterStaff.itemID, new StaffItemRenderer("Water")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.fireOrb.itemID, new OrbItemRenderer("Fire")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.earthOrb.itemID, new OrbItemRenderer("Earth")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.airOrb.itemID, new OrbItemRenderer("Air")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.energyOrb.itemID, new OrbItemRenderer("Energy")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.waterOrb.itemID, new OrbItemRenderer("Water")); RenderingRegistry.registerEntityRenderingHandler(EntityChargeFire.class, new RenderStaffPower(0)); RenderingRegistry.registerEntityRenderingHandler(EntityChargeWater.class, new RenderStaffPower(1)); RenderingRegistry.registerEntityRenderingHandler(EntityChargeEarth.class, new RenderStaffPower(2)); @@ -88,7 +85,7 @@ public class ClientProxy extends CommonProxy { @Override public void waterFX(World worldObj, double x, double y, double z, float scale) { - PowerWaterFX waterFX = new PowerWaterFX(worldObj, x, y, z, scale); + PowerFX waterFX = new PowerFX(worldObj, x, y, z, scale).setTexture("water"); mc.effectRenderer.addEffect(waterFX); } } diff --git a/common/MysticWorld/Client/FX/LightCubeFX.java b/common/MysticWorld/Client/FX/LightCubeFX.java index 1a86f0b..2dae6ee 100644 --- a/common/MysticWorld/Client/FX/LightCubeFX.java +++ b/common/MysticWorld/Client/FX/LightCubeFX.java @@ -1,24 +1,15 @@ package mysticworld.client.fx; -import mysticworld.client.ClientProxy; -import net.minecraft.client.particle.EntityFX; -import net.minecraft.client.renderer.Tessellator; -import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class LightCubeFX extends EntityFX { - public static final ResourceLocation lightFX = new ResourceLocation("mysticmods", "textures/misc/lightCubeFX.png"); - +public class LightCubeFX extends PowerFX { public LightCubeFX(World world, double x, double y, double z) { super(world, x, y, z); + this.setTexture("lightCube"); } public LightCubeFX(World world, double x, double y, double z, double motionX, double motionY, double motionZ, float scale) { - super(world, x, y, z); + this(world, x, y, z); this.motionX *= 0.10000000149011612D; this.motionY *= 0.10000000149011612D; this.motionZ *= 0.10000000149011612D; @@ -32,55 +23,4 @@ public class LightCubeFX extends EntityFX { this.noClip = true; this.particleMaxAge = rand.nextInt(25); } - - @Override - public void onUpdate() { - this.prevPosX = this.posX; - this.prevPosY = this.posY; - this.prevPosZ = this.posZ; - if (this.particleAge++ >= this.particleMaxAge) { - this.setDead(); - } - this.motionY += 0.004D; - this.moveEntity(this.motionX, this.motionY, this.motionZ); - if (this.posY == this.prevPosY) { - this.motionX *= 1.1D; - this.motionZ *= 1.1D; - } - this.motionX *= 0.9599999785423279D; - this.motionY *= 0.9599999785423279D; - this.motionZ *= 0.9599999785423279D; - if (this.onGround) { - this.motionX *= 0.699999988079071D; - this.motionZ *= 0.699999988079071D; - } - } - - @Override - public void renderParticle(Tessellator tessellator, float par2, float par3, float par4, float par5, float par6, float par7) { - tessellator.draw(); - GL11.glPushMatrix(); - GL11.glDepthMask(false); - GL11.glEnable(3042); - GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(lightFX); - GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); - float scale = 0.1F * this.particleScale; - float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); - float yPos = (float) (this.prevPosY + (this.posY - this.prevPosY) * par2 - interpPosY); - float zPos = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * par2 - interpPosZ); - tessellator.startDrawingQuads(); - tessellator.setBrightness(240); - tessellator.setColorOpaque_F(this.particleRed, this.particleGreen, this.particleBlue); - tessellator.addVertexWithUV(xPos - par3 * scale - par6 * scale, yPos - par4 * scale, zPos - par5 * scale - par7 * scale, 0D, 1D); - tessellator.addVertexWithUV(xPos - par3 * scale + par6 * scale, yPos + par4 * scale, zPos - par5 * scale + par7 * scale, 1D, 1D); - tessellator.addVertexWithUV(xPos + par3 * scale + par6 * scale, yPos + par4 * scale, zPos + par5 * scale + par7 * scale, 1D, 0D); - tessellator.addVertexWithUV(xPos + par3 * scale - par6 * scale, yPos - par4 * scale, zPos + par5 * scale - par7 * scale, 0D, 0D); - tessellator.draw(); - GL11.glDisable(3042); - GL11.glDepthMask(true); - GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); - tessellator.startDrawingQuads(); - } } diff --git a/common/MysticWorld/Client/FX/PowerAirFX.java b/common/MysticWorld/Client/FX/PowerAirFX.java index 376bd01..1d3ffaa 100644 --- a/common/MysticWorld/Client/FX/PowerAirFX.java +++ b/common/MysticWorld/Client/FX/PowerAirFX.java @@ -1,25 +1,16 @@ package mysticworld.client.fx; -import mysticworld.client.ClientProxy; -import net.minecraft.client.particle.EntityFX; -import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.MathHelper; -import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class PowerAirFX extends EntityFX { - public static final ResourceLocation airFX = new ResourceLocation("mysticmods", "textures/misc/airFX.png"); - +public class PowerAirFX extends PowerFX { public PowerAirFX(World world, double x, double y, double z) { super(world, x, y, z); + this.setTexture("air"); } public PowerAirFX(World world, double x, double y, double z, double motionX, double motionY, double motionZ, float rotPitch, float rotYaw) { - super(world, x, y, z); + this(world, x, y, z); this.motionX = -MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); this.motionY = (-MathHelper.sin((this.rotationPitch) / 180.0F * (float) Math.PI)); this.motionZ = MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); @@ -34,7 +25,7 @@ public class PowerAirFX extends EntityFX { } public PowerAirFX(World world, double x, double y, double z, float scale, int age) { - super(world, x, y, z); + this(world, x, y, z); this.motionX += motionX; this.motionY += motionY; this.motionZ += motionZ; @@ -51,56 +42,10 @@ public class PowerAirFX extends EntityFX { @Override public void onUpdate() { - this.prevPosX = this.posX; - this.prevPosY = this.posY; - this.prevPosZ = this.posZ; - if (this.particleAge++ >= this.particleMaxAge) { - this.setDead(); - } - this.motionY += 0.004D; - this.moveEntity(this.motionX, this.motionY, this.motionZ); - if (this.posY == this.prevPosY) { - this.motionX *= 1.1D; - this.motionZ *= 1.1D; - } - this.motionX *= 0.9599999785423279D; - this.motionY *= 0.9599999785423279D; - this.motionZ *= 0.9599999785423279D; - if (this.onGround) { - this.motionX *= 0.699999988079071D; - this.motionZ *= 0.699999988079071D; - } + super.onUpdate(); this.posX += this.motionX; this.posY += this.motionY; this.posZ += this.motionZ; this.setPosition(this.posX, this.posY, this.posZ); } - - @Override - public void renderParticle(Tessellator tessellator, float par2, float par3, float par4, float par5, float par6, float par7) { - tessellator.draw(); - GL11.glPushMatrix(); - GL11.glDepthMask(false); - GL11.glEnable(3042); - GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(airFX); - GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); - float scale = 0.1F * this.particleScale; - float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); - float yPos = (float) (this.prevPosY + (this.posY - this.prevPosY) * par2 - interpPosY); - float zPos = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * par2 - interpPosZ); - tessellator.startDrawingQuads(); - tessellator.setBrightness(240); - tessellator.setColorOpaque_F(this.particleRed, this.particleGreen, this.particleBlue); - tessellator.addVertexWithUV(xPos - par3 * scale - par6 * scale, yPos - par4 * scale, zPos - par5 * scale - par7 * scale, 0D, 1D); - tessellator.addVertexWithUV(xPos - par3 * scale + par6 * scale, yPos + par4 * scale, zPos - par5 * scale + par7 * scale, 1D, 1D); - tessellator.addVertexWithUV(xPos + par3 * scale + par6 * scale, yPos + par4 * scale, zPos + par5 * scale + par7 * scale, 1D, 0D); - tessellator.addVertexWithUV(xPos + par3 * scale - par6 * scale, yPos - par4 * scale, zPos + par5 * scale - par7 * scale, 0D, 0D); - tessellator.draw(); - GL11.glDisable(3042); - GL11.glDepthMask(true); - GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); - tessellator.startDrawingQuads(); - } } \ No newline at end of file diff --git a/common/MysticWorld/Client/FX/PowerEnergyFX.java b/common/MysticWorld/Client/FX/PowerEnergyFX.java deleted file mode 100644 index 680d134..0000000 --- a/common/MysticWorld/Client/FX/PowerEnergyFX.java +++ /dev/null @@ -1,86 +0,0 @@ -package mysticworld.client.fx; - -import mysticworld.client.ClientProxy; -import net.minecraft.client.particle.EntityFX; -import net.minecraft.client.renderer.Tessellator; -import net.minecraft.util.ResourceLocation; -import net.minecraft.world.World; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class PowerEnergyFX extends EntityFX { - public static final ResourceLocation energyFX = new ResourceLocation("mysticmods", "textures/misc/energyFX.png"); - - public PowerEnergyFX(World world, double x, double y, double z) { - super(world, x, y, z); - } - - public PowerEnergyFX(World world, double x, double y, double z, float scale) { - super(world, x, y, z); - this.motionX *= 0.019999999552965164D; - this.motionY *= 0.019999999552965164D; - this.motionZ *= 0.019999999552965164D; - this.motionX += motionX; - this.motionY += motionY; - this.motionZ += motionZ; - this.particleRed = 1.0F; - this.particleGreen = 1.0F; - this.particleBlue = 1.0F; - this.particleScale = scale; - this.noClip = true; - this.particleMaxAge = 15; - } - - @Override - public void onUpdate() { - this.prevPosX = this.posX; - this.prevPosY = this.posY; - this.prevPosZ = this.posZ; - if (this.particleAge++ >= this.particleMaxAge) { - this.setDead(); - } - this.motionY += 0.004D; - this.moveEntity(this.motionX, this.motionY, this.motionZ); - if (this.posY == this.prevPosY) { - this.motionX *= 1.1D; - this.motionZ *= 1.1D; - } - this.motionX *= 0.9599999785423279D; - this.motionY *= 0.9599999785423279D; - this.motionZ *= 0.9599999785423279D; - if (this.onGround) { - this.motionX *= 0.699999988079071D; - this.motionZ *= 0.699999988079071D; - } - } - - @Override - public void renderParticle(Tessellator tessellator, float par2, float par3, float par4, float par5, float par6, float par7) { - tessellator.draw(); - GL11.glPushMatrix(); - GL11.glDepthMask(false); - GL11.glEnable(3042); - GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(energyFX); - GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); - float scale = 0.1F * this.particleScale; - float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); - float yPos = (float) (this.prevPosY + (this.posY - this.prevPosY) * par2 - interpPosY); - float zPos = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * par2 - interpPosZ); - tessellator.startDrawingQuads(); - tessellator.setBrightness(240); - tessellator.setColorOpaque_F(this.particleRed, this.particleGreen, this.particleBlue); - tessellator.addVertexWithUV(xPos - par3 * scale - par6 * scale, yPos - par4 * scale, zPos - par5 * scale - par7 * scale, 0D, 1D); - tessellator.addVertexWithUV(xPos - par3 * scale + par6 * scale, yPos + par4 * scale, zPos - par5 * scale + par7 * scale, 1D, 1D); - tessellator.addVertexWithUV(xPos + par3 * scale + par6 * scale, yPos + par4 * scale, zPos + par5 * scale + par7 * scale, 1D, 0D); - tessellator.addVertexWithUV(xPos + par3 * scale - par6 * scale, yPos - par4 * scale, zPos + par5 * scale - par7 * scale, 0D, 0D); - tessellator.draw(); - GL11.glDisable(3042); - GL11.glDepthMask(true); - GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); - tessellator.startDrawingQuads(); - } -} diff --git a/common/MysticWorld/Client/FX/PowerFireFX.java b/common/MysticWorld/Client/FX/PowerFireFX.java deleted file mode 100644 index 7ddc07e..0000000 --- a/common/MysticWorld/Client/FX/PowerFireFX.java +++ /dev/null @@ -1,86 +0,0 @@ -package mysticworld.client.fx; - -import mysticworld.client.ClientProxy; -import net.minecraft.client.particle.EntityFX; -import net.minecraft.client.renderer.Tessellator; -import net.minecraft.util.ResourceLocation; -import net.minecraft.world.World; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class PowerFireFX extends EntityFX { - public static final ResourceLocation fireFX = new ResourceLocation("mysticmods", "textures/misc/fireFX.png"); - - public PowerFireFX(World world, double x, double y, double z) { - super(world, x, y, z); - } - - public PowerFireFX(World world, double x, double y, double z, float scale) { - super(world, x, y, z); - this.motionX *= 0.019999999552965164D; - this.motionY *= 0.019999999552965164D; - this.motionZ *= 0.019999999552965164D; - this.motionX += motionX; - this.motionY += motionY; - this.motionZ += motionZ; - this.particleRed = 1.0F; - this.particleGreen = 1.0F; - this.particleBlue = 1.0F; - this.particleScale = scale; - this.noClip = true; - this.particleMaxAge = 15; - } - - @Override - public void onUpdate() { - this.prevPosX = this.posX; - this.prevPosY = this.posY; - this.prevPosZ = this.posZ; - if (this.particleAge++ >= this.particleMaxAge) { - this.setDead(); - } - this.motionY += 0.004D; - this.moveEntity(this.motionX, this.motionY, this.motionZ); - if (this.posY == this.prevPosY) { - this.motionX *= 1.1D; - this.motionZ *= 1.1D; - } - this.motionX *= 0.9599999785423279D; - this.motionY *= 0.9599999785423279D; - this.motionZ *= 0.9599999785423279D; - if (this.onGround) { - this.motionX *= 0.699999988079071D; - this.motionZ *= 0.699999988079071D; - } - } - - @Override - public void renderParticle(Tessellator tessellator, float par2, float par3, float par4, float par5, float par6, float par7) { - tessellator.draw(); - GL11.glPushMatrix(); - GL11.glDepthMask(false); - GL11.glEnable(3042); - GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(fireFX); - GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); - float scale = 0.1F * this.particleScale; - float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); - float yPos = (float) (this.prevPosY + (this.posY - this.prevPosY) * par2 - interpPosY); - float zPos = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * par2 - interpPosZ); - tessellator.startDrawingQuads(); - tessellator.setBrightness(240); - tessellator.setColorOpaque_F(this.particleRed, this.particleGreen, this.particleBlue); - tessellator.addVertexWithUV(xPos - par3 * scale - par6 * scale, yPos - par4 * scale, zPos - par5 * scale - par7 * scale, 0D, 1D); - tessellator.addVertexWithUV(xPos - par3 * scale + par6 * scale, yPos + par4 * scale, zPos - par5 * scale + par7 * scale, 1D, 1D); - tessellator.addVertexWithUV(xPos + par3 * scale + par6 * scale, yPos + par4 * scale, zPos + par5 * scale + par7 * scale, 1D, 0D); - tessellator.addVertexWithUV(xPos + par3 * scale - par6 * scale, yPos - par4 * scale, zPos + par5 * scale - par7 * scale, 0D, 0D); - tessellator.draw(); - GL11.glDisable(3042); - GL11.glDepthMask(true); - GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); - tessellator.startDrawingQuads(); - } -} diff --git a/common/MysticWorld/Client/FX/PowerWaterFX.java b/common/MysticWorld/Client/FX/PowerWaterFX.java deleted file mode 100644 index 65a1c1b..0000000 --- a/common/MysticWorld/Client/FX/PowerWaterFX.java +++ /dev/null @@ -1,86 +0,0 @@ -package mysticworld.client.fx; - -import mysticworld.client.ClientProxy; -import net.minecraft.client.particle.EntityFX; -import net.minecraft.client.renderer.Tessellator; -import net.minecraft.util.ResourceLocation; -import net.minecraft.world.World; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class PowerWaterFX extends EntityFX { - public static final ResourceLocation waterFX = new ResourceLocation("mysticmods", "textures/misc/waterFX.png"); - - public PowerWaterFX(World world, double x, double y, double z) { - super(world, x, y, z); - } - - public PowerWaterFX(World world, double x, double y, double z, float scale) { - super(world, x, y, z); - this.motionX *= 0.019999999552965164D; - this.motionY *= 0.019999999552965164D; - this.motionZ *= 0.019999999552965164D; - this.motionX += motionX; - this.motionY += motionY; - this.motionZ += motionZ; - this.particleRed = 1.0F; - this.particleGreen = 1.0F; - this.particleBlue = 1.0F; - this.particleScale = scale; - this.noClip = true; - this.particleMaxAge = 15; - } - - @Override - public void onUpdate() { - this.prevPosX = this.posX; - this.prevPosY = this.posY; - this.prevPosZ = this.posZ; - if (this.particleAge++ >= this.particleMaxAge) { - this.setDead(); - } - this.motionY += 0.004D; - this.moveEntity(this.motionX, this.motionY, this.motionZ); - if (this.posY == this.prevPosY) { - this.motionX *= 1.1D; - this.motionZ *= 1.1D; - } - this.motionX *= 0.9599999785423279D; - this.motionY *= 0.9599999785423279D; - this.motionZ *= 0.9599999785423279D; - if (this.onGround) { - this.motionX *= 0.699999988079071D; - this.motionZ *= 0.699999988079071D; - } - } - - @Override - public void renderParticle(Tessellator tessellator, float par2, float par3, float par4, float par5, float par6, float par7) { - tessellator.draw(); - GL11.glPushMatrix(); - GL11.glDepthMask(false); - GL11.glEnable(3042); - GL11.glBlendFunc(770, 1); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(waterFX); - GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.75F); - float scale = 0.1F * this.particleScale; - float xPos = (float) (this.prevPosX + (this.posX - this.prevPosX) * par2 - interpPosX); - float yPos = (float) (this.prevPosY + (this.posY - this.prevPosY) * par2 - interpPosY); - float zPos = (float) (this.prevPosZ + (this.posZ - this.prevPosZ) * par2 - interpPosZ); - tessellator.startDrawingQuads(); - tessellator.setBrightness(240); - tessellator.setColorOpaque_F(this.particleRed, this.particleGreen, this.particleBlue); - tessellator.addVertexWithUV(xPos - par3 * scale - par6 * scale, yPos - par4 * scale, zPos - par5 * scale - par7 * scale, 0D, 1D); - tessellator.addVertexWithUV(xPos - par3 * scale + par6 * scale, yPos + par4 * scale, zPos - par5 * scale + par7 * scale, 1D, 1D); - tessellator.addVertexWithUV(xPos + par3 * scale + par6 * scale, yPos + par4 * scale, zPos + par5 * scale + par7 * scale, 1D, 0D); - tessellator.addVertexWithUV(xPos + par3 * scale - par6 * scale, yPos - par4 * scale, zPos + par5 * scale - par7 * scale, 0D, 0D); - tessellator.draw(); - GL11.glDisable(3042); - GL11.glDepthMask(true); - GL11.glPopMatrix(); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(ClientProxy.particle); - tessellator.startDrawingQuads(); - } -} diff --git a/common/MysticWorld/Items/ItemArmorAdamantine.java b/common/MysticWorld/Items/ItemArmorAdamantine.java index 0a0b653..a7b4a00 100644 --- a/common/MysticWorld/Items/ItemArmorAdamantine.java +++ b/common/MysticWorld/Items/ItemArmorAdamantine.java @@ -20,11 +20,11 @@ public class ItemArmorAdamantine extends ItemArmor { @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { int suffix = this.armorType == 2 ? 2 : 1; - return "mysticmods:textures" + "/models/armor/Adamantine_layer_" + suffix + ".png"; + return "mysticworld:textures/models/armor/Adamantine_layer_" + suffix + ".png"; } @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods:AdamantineArmor_" + ArmorType); + itemIcon = iconRegister.registerIcon("mysticworld:AdamantineArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemArmorIridium.java b/common/MysticWorld/Items/ItemArmorIridium.java index ba37193..cbd96b3 100644 --- a/common/MysticWorld/Items/ItemArmorIridium.java +++ b/common/MysticWorld/Items/ItemArmorIridium.java @@ -24,7 +24,7 @@ public class ItemArmorIridium extends ItemArmor { @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { int suffix = this.armorType == 2 ? 2 : 1; - return "mysticmods:textures" + "/models/armor/Iridium_layer_" + suffix + ".png"; + return "mysticworld:textures/models/armor/Iridium_layer_" + suffix + ".png"; } @Override @@ -60,6 +60,6 @@ public class ItemArmorIridium extends ItemArmor { @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods:IridiumArmor_" + ArmorType); + itemIcon = iconRegister.registerIcon("mysticworld:IridiumArmor_" + ArmorType); } } \ No newline at end of file diff --git a/common/MysticWorld/Items/ItemArmorMithril.java b/common/MysticWorld/Items/ItemArmorMithril.java index f5d4093..e649f9e 100644 --- a/common/MysticWorld/Items/ItemArmorMithril.java +++ b/common/MysticWorld/Items/ItemArmorMithril.java @@ -20,11 +20,11 @@ public class ItemArmorMithril extends ItemArmor { @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { int suffix = this.armorType == 2 ? 2 : 1; - return "mysticmods:textures" + "/models/armor/Mithril_layer_" + suffix + ".png"; + return "mysticworld:textures/models/armor/Mithril_layer_" + suffix + ".png"; } @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods:MithrilArmor_" + ArmorType); + itemIcon = iconRegister.registerIcon("mysticworld:MithrilArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemArmorVerdite.java b/common/MysticWorld/Items/ItemArmorVerdite.java index 5010b6c..0e7553b 100644 --- a/common/MysticWorld/Items/ItemArmorVerdite.java +++ b/common/MysticWorld/Items/ItemArmorVerdite.java @@ -20,11 +20,11 @@ public class ItemArmorVerdite extends ItemArmor { @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { int suffix = this.armorType == 2 ? 2 : 1; - return "mysticmods:textures" + "/models/armor/Verdite_layer_" + suffix + ".png"; + return "mysticworld:textures/models/armor/Verdite_layer_" + suffix + ".png"; } @Override public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods:VerditeArmor_" + ArmorType); + itemIcon = iconRegister.registerIcon("mysticworld:VerditeArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemBushFruit.java b/common/MysticWorld/Items/ItemBushFruit.java index cdd33e9..755fab1 100644 --- a/common/MysticWorld/Items/ItemBushFruit.java +++ b/common/MysticWorld/Items/ItemBushFruit.java @@ -63,7 +63,7 @@ public class ItemBushFruit extends ItemFood { public void registerIcons(IconRegister iconRegister) { icons = new Icon[FRUIT_TYPES.length]; for (int i = 0; i < FRUIT_TYPES.length; ++i) { - icons[i] = iconRegister.registerIcon("mysticmods:Fruit" + FRUIT_TYPES[i]); + icons[i] = iconRegister.registerIcon("mysticworld:Fruit" + FRUIT_TYPES[i]); } } diff --git a/common/MysticWorld/Items/ItemImbuedShard.java b/common/MysticWorld/Items/ItemImbuedShard.java index 6e20788..1e234b9 100644 --- a/common/MysticWorld/Items/ItemImbuedShard.java +++ b/common/MysticWorld/Items/ItemImbuedShard.java @@ -50,7 +50,7 @@ public class ItemImbuedShard extends Item { public void registerIcons(IconRegister iconRegister) { icons = new Icon[SHARD_TYPES.length]; for (int i = 0; i < SHARD_TYPES.length; ++i) { - icons[i] = iconRegister.registerIcon("mysticmods:Shard" + SHARD_TYPES[i]); + icons[i] = iconRegister.registerIcon("mysticworld:Shard" + SHARD_TYPES[i]); } } } diff --git a/common/MysticWorld/Items/ItemOrb.java b/common/MysticWorld/Items/ItemOrb.java index fc80577..7cb7af7 100644 --- a/common/MysticWorld/Items/ItemOrb.java +++ b/common/MysticWorld/Items/ItemOrb.java @@ -2,7 +2,11 @@ package mysticworld.items; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + import mysticworld.MysticWorld; +import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.Item; public class ItemOrb extends Item { @@ -14,4 +18,9 @@ public class ItemOrb extends Item { this.setMaxDamage(200); this.setCreativeTab(MysticWorld.MysticWorldTab); } + + @Override + @SideOnly(Side.CLIENT) + public void registerIcons(IconRegister par1IconRegister) { + } } diff --git a/common/MysticWorld/Items/ItemStaff.java b/common/MysticWorld/Items/ItemStaff.java index c2ec23d..692cffb 100644 --- a/common/MysticWorld/Items/ItemStaff.java +++ b/common/MysticWorld/Items/ItemStaff.java @@ -3,6 +3,7 @@ package mysticworld.items; import java.util.Random; import mysticworld.MysticWorld; +import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.Item; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -22,4 +23,9 @@ public class ItemStaff extends Item { public boolean isFull3D() { return true; } + + @Override + @SideOnly(Side.CLIENT) + public void registerIcons(IconRegister par1IconRegister) { + } } diff --git a/common/MysticWorld/Items/ItemStaffParts.java b/common/MysticWorld/Items/ItemStaffParts.java index caff955..b1206ec 100644 --- a/common/MysticWorld/Items/ItemStaffParts.java +++ b/common/MysticWorld/Items/ItemStaffParts.java @@ -54,7 +54,7 @@ public class ItemStaffParts extends Item { public void registerIcons(IconRegister iconRegister) { icons = new Icon[STAFF_PARTS.length]; for (int i = 0; i < STAFF_PARTS.length; ++i) { - icons[i] = iconRegister.registerIcon("mysticmods:StaffPart_" + STAFF_PARTS[i]); + icons[i] = iconRegister.registerIcon("mysticworld:StaffPart_" + STAFF_PARTS[i]); } } } diff --git a/common/MysticWorld/Items/ItemStaffPower.java b/common/MysticWorld/Items/ItemStaffPower.java index 01ba740..a9ad7e9 100644 --- a/common/MysticWorld/Items/ItemStaffPower.java +++ b/common/MysticWorld/Items/ItemStaffPower.java @@ -37,7 +37,7 @@ public class ItemStaffPower extends Item { public void registerIcons(IconRegister iconRegister) { icons = new Icon[CHARGE_NAMES.length]; for (int i = 0; i < CHARGE_NAMES.length; ++i) { - icons[i] = iconRegister.registerIcon("mysticmods:Charge" + CHARGE_NAMES[i]); + icons[i] = iconRegister.registerIcon("mysticworld:Charge" + CHARGE_NAMES[i]); } } } diff --git a/common/MysticWorld/Items/ItemVoidShard.java b/common/MysticWorld/Items/ItemVoidShard.java index fc4e7bc..9e9f250 100644 --- a/common/MysticWorld/Items/ItemVoidShard.java +++ b/common/MysticWorld/Items/ItemVoidShard.java @@ -3,7 +3,6 @@ package mysticworld.items; import java.util.List; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -63,10 +62,4 @@ public class ItemVoidShard extends Item { } return itemStack; } - - @Override - @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticmods:ShardVoid"); - } } diff --git a/common/MysticWorld/Model/ModelOrb.java b/common/MysticWorld/Model/ModelOrb.java index 9d007eb..6a985ec 100644 --- a/common/MysticWorld/Model/ModelOrb.java +++ b/common/MysticWorld/Model/ModelOrb.java @@ -8,7 +8,7 @@ public class ModelOrb extends ModelBase { private IModelCustom modelOrb; public ModelOrb() { - modelOrb = AdvancedModelLoader.loadModel("/assets/mysticmods/models/orb.obj"); + modelOrb = AdvancedModelLoader.loadModel("/assets/mysticworld/models/orb.obj"); } public void render() { diff --git a/common/MysticWorld/Renderer/BlockPillarInsertRenderer.java b/common/MysticWorld/Renderer/BlockPillarInsertRenderer.java index 4f9354c..3ab56c7 100644 --- a/common/MysticWorld/Renderer/BlockPillarInsertRenderer.java +++ b/common/MysticWorld/Renderer/BlockPillarInsertRenderer.java @@ -10,7 +10,7 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; public class BlockPillarInsertRenderer implements IItemRenderer { - private static final ResourceLocation texture = new ResourceLocation("mysticmods:textures" + "/models/PillarInsert.png"); + private static final ResourceLocation texture = new ResourceLocation("mysticworld", "textures/models/PillarInsert.png"); private final ModelPillarInsert model; public BlockPillarInsertRenderer() { diff --git a/common/MysticWorld/Renderer/ItemOrbEarthRenderer.java b/common/MysticWorld/Renderer/ItemOrbEarthRenderer.java deleted file mode 100644 index 2a6c826..0000000 --- a/common/MysticWorld/Renderer/ItemOrbEarthRenderer.java +++ /dev/null @@ -1,82 +0,0 @@ -package mysticworld.renderer; - -import mysticworld.model.ModelOrb; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.IItemRenderer; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class ItemOrbEarthRenderer implements IItemRenderer { - private ModelOrb modelOrb; - - public ItemOrbEarthRenderer() { - modelOrb = new ModelOrb(); - } - - @Override - public boolean handleRenderType(ItemStack item, ItemRenderType type) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - case INVENTORY: - return true; - default: - return false; - } - } - - @Override - public void renderItem(ItemRenderType type, ItemStack item, Object... data) { - switch (type) { - case ENTITY: - renderOrb(0.0f, 0.5f, 0.0f, 0.4f); - break; - case EQUIPPED: - renderOrb(0.5f, 1.0f, 0.5f, 0.5f); - break; - case INVENTORY: - renderOrb(0.0f, 0.0f, 0.0f, 0.5f); - break; - case EQUIPPED_FIRST_PERSON: - renderOrb(0.0f, 1.0f, 1.0f, 0.5f); - break; - default: - break; - } - } - - public void renderOrb(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glTranslatef(x, y, z); - GL11.glScalef(scale, scale, scale); - GL11.glRotatef(180f, 0f, 1f, 0f); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/OrbEarth.png")); - modelOrb.render(); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } - - @Override - public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case INVENTORY: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - default: - return false; - } - } -} diff --git a/common/MysticWorld/Renderer/ItemOrbEnergyRenderer.java b/common/MysticWorld/Renderer/ItemOrbEnergyRenderer.java deleted file mode 100644 index 0022f0c..0000000 --- a/common/MysticWorld/Renderer/ItemOrbEnergyRenderer.java +++ /dev/null @@ -1,82 +0,0 @@ -package mysticworld.renderer; - -import mysticworld.model.ModelOrb; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.IItemRenderer; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class ItemOrbEnergyRenderer implements IItemRenderer { - private ModelOrb modelOrb; - - public ItemOrbEnergyRenderer() { - modelOrb = new ModelOrb(); - } - - @Override - public boolean handleRenderType(ItemStack item, ItemRenderType type) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - case INVENTORY: - return true; - default: - return false; - } - } - - @Override - public void renderItem(ItemRenderType type, ItemStack item, Object... data) { - switch (type) { - case ENTITY: - renderOrb(0.0f, 0.5f, 0.0f, 0.4f); - break; - case EQUIPPED: - renderOrb(0.5f, 1.0f, 0.5f, 0.5f); - break; - case INVENTORY: - renderOrb(0.0f, 0.0f, 0.0f, 0.5f); - break; - case EQUIPPED_FIRST_PERSON: - renderOrb(0.0f, 1.0f, 1.0f, 0.5f); - break; - default: - break; - } - } - - public void renderOrb(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glTranslatef(x, y, z); - GL11.glScalef(scale, scale, scale); - GL11.glRotatef(180f, 0f, 1f, 0f); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/OrbEnergy.png")); - modelOrb.render(); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } - - @Override - public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case INVENTORY: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - default: - return false; - } - } -} diff --git a/common/MysticWorld/Renderer/ItemOrbFireRenderer.java b/common/MysticWorld/Renderer/ItemOrbFireRenderer.java deleted file mode 100644 index 48c3adc..0000000 --- a/common/MysticWorld/Renderer/ItemOrbFireRenderer.java +++ /dev/null @@ -1,82 +0,0 @@ -package mysticworld.renderer; - -import mysticworld.model.ModelOrb; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.IItemRenderer; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class ItemOrbFireRenderer implements IItemRenderer { - private ModelOrb modelOrb; - - public ItemOrbFireRenderer() { - modelOrb = new ModelOrb(); - } - - @Override - public boolean handleRenderType(ItemStack item, ItemRenderType type) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - case INVENTORY: - return true; - default: - return false; - } - } - - @Override - public void renderItem(ItemRenderType type, ItemStack item, Object... data) { - switch (type) { - case ENTITY: - renderOrb(0.0f, 0.5f, 0.0f, 0.4f); - break; - case EQUIPPED: - renderOrb(0.5f, 1.0f, 0.5f, 0.5f); - break; - case INVENTORY: - renderOrb(0.0f, 0.0f, 0.0f, 0.5f); - break; - case EQUIPPED_FIRST_PERSON: - renderOrb(0.0f, 1.0f, 1.0f, 0.5f); - break; - default: - break; - } - } - - public void renderOrb(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glTranslatef(x, y, z); - GL11.glScalef(scale, scale, scale); - GL11.glRotatef(180f, 0f, 1f, 0f); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/OrbFire.png")); - modelOrb.render(); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } - - @Override - public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case INVENTORY: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - default: - return false; - } - } -} diff --git a/common/MysticWorld/Renderer/ItemOrbWaterRenderer.java b/common/MysticWorld/Renderer/ItemOrbWaterRenderer.java deleted file mode 100644 index d756667..0000000 --- a/common/MysticWorld/Renderer/ItemOrbWaterRenderer.java +++ /dev/null @@ -1,82 +0,0 @@ -package mysticworld.renderer; - -import mysticworld.model.ModelOrb; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.IItemRenderer; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class ItemOrbWaterRenderer implements IItemRenderer { - private ModelOrb modelOrb; - - public ItemOrbWaterRenderer() { - modelOrb = new ModelOrb(); - } - - @Override - public boolean handleRenderType(ItemStack item, ItemRenderType type) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - case INVENTORY: - return true; - default: - return false; - } - } - - @Override - public void renderItem(ItemRenderType type, ItemStack item, Object... data) { - switch (type) { - case ENTITY: - renderOrb(0.0f, 0.5f, 0.0f, 0.4f); - break; - case EQUIPPED: - renderOrb(0.5f, 1.0f, 0.5f, 0.5f); - break; - case INVENTORY: - renderOrb(0.0f, 0.0f, 0.0f, 0.5f); - break; - case EQUIPPED_FIRST_PERSON: - renderOrb(0.0f, 1.0f, 1.0f, 0.5f); - break; - default: - break; - } - } - - public void renderOrb(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glTranslatef(x, y, z); - GL11.glScalef(scale, scale, scale); - GL11.glRotatef(180f, 0f, 1f, 0f); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/OrbWater.png")); - modelOrb.render(); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } - - @Override - public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case INVENTORY: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - default: - return false; - } - } -} diff --git a/common/MysticWorld/Renderer/ItemStaffEarthRenderer.java b/common/MysticWorld/Renderer/ItemStaffEarthRenderer.java deleted file mode 100644 index 46f9853..0000000 --- a/common/MysticWorld/Renderer/ItemStaffEarthRenderer.java +++ /dev/null @@ -1,95 +0,0 @@ -package mysticworld.renderer; - -import mysticworld.model.ModelStaff; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.IItemRenderer; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class ItemStaffEarthRenderer implements IItemRenderer { - private final ModelStaff model; - - public ItemStaffEarthRenderer() { - this.model = new ModelStaff(); - } - - @Override - public boolean handleRenderType(ItemStack item, ItemRenderType type) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - case INVENTORY: - return true; - default: - return false; - } - } - - @Override - public void renderItem(ItemRenderType type, ItemStack item, Object... data) { - switch (type) { - case ENTITY: - renderModel(0.0F, 1.2F, 0.0F, 1.0F); - break; - case INVENTORY: - renderModel(0.5F, 0.95F, 0.5F, 1.0F); - break; - case EQUIPPED_FIRST_PERSON: - renderModel(1.0F, 1.2f, 0.0f, 1.0f); - break; - case EQUIPPED: - renderModelEquipped(0.0F, 0.9f, 0.0f, 1.0f); - break; - default: - break; - } - } - - @Override - public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return false; - case INVENTORY: - return true; - case EQUIPPED_FIRST_PERSON: - return false; - default: - return false; - } - } - - private void renderModel(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glScalef(scale, scale, scale); - GL11.glTranslatef(x, y, z); - GL11.glRotatef(180.0F, 0.0F, 0.0F, 0.0F); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/StaffEarth.png")); - model.renderModel(0.0625f); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } - - private void renderModelEquipped(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glScalef(scale, scale, scale); - GL11.glTranslatef(x, y, z); - GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F); - GL11.glRotatef(-45.0F, 0.0F, 0.0F, 1.0F); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/StaffEarth.png")); - model.renderModel(0.0625f); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } -} diff --git a/common/MysticWorld/Renderer/ItemStaffEnergyRenderer.java b/common/MysticWorld/Renderer/ItemStaffEnergyRenderer.java deleted file mode 100644 index c34cace..0000000 --- a/common/MysticWorld/Renderer/ItemStaffEnergyRenderer.java +++ /dev/null @@ -1,95 +0,0 @@ -package mysticworld.renderer; - -import mysticworld.model.ModelStaff; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.IItemRenderer; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class ItemStaffEnergyRenderer implements IItemRenderer { - private final ModelStaff model; - - public ItemStaffEnergyRenderer() { - this.model = new ModelStaff(); - } - - @Override - public boolean handleRenderType(ItemStack item, ItemRenderType type) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - case INVENTORY: - return true; - default: - return false; - } - } - - @Override - public void renderItem(ItemRenderType type, ItemStack item, Object... data) { - switch (type) { - case ENTITY: - renderModel(0.0F, 1.2F, 0.0F, 1.0F); - break; - case INVENTORY: - renderModel(0.5F, 0.95F, 0.5F, 1.0F); - break; - case EQUIPPED_FIRST_PERSON: - renderModel(1.0F, 1.2f, 0.0f, 1.0f); - break; - case EQUIPPED: - renderModelEquipped(0.0F, 0.9f, 0.0f, 1.0f); - break; - default: - break; - } - } - - @Override - public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return false; - case INVENTORY: - return true; - case EQUIPPED_FIRST_PERSON: - return false; - default: - return false; - } - } - - private void renderModel(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glScalef(scale, scale, scale); - GL11.glTranslatef(x, y, z); - GL11.glRotatef(180.0F, 0.0F, 0.0F, 0.0F); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/StaffEnergy.png")); - model.renderModel(0.0625f); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } - - private void renderModelEquipped(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glScalef(scale, scale, scale); - GL11.glTranslatef(x, y, z); - GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F); - GL11.glRotatef(-45.0F, 0.0F, 0.0F, 1.0F); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/StaffEnergy.png")); - model.renderModel(0.0625f); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } -} diff --git a/common/MysticWorld/Renderer/ItemStaffFireRenderer.java b/common/MysticWorld/Renderer/ItemStaffFireRenderer.java deleted file mode 100644 index 92a6508..0000000 --- a/common/MysticWorld/Renderer/ItemStaffFireRenderer.java +++ /dev/null @@ -1,95 +0,0 @@ -package mysticworld.renderer; - -import mysticworld.model.ModelStaff; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.IItemRenderer; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class ItemStaffFireRenderer implements IItemRenderer { - private final ModelStaff model; - - public ItemStaffFireRenderer() { - this.model = new ModelStaff(); - } - - @Override - public boolean handleRenderType(ItemStack item, ItemRenderType type) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - case INVENTORY: - return true; - default: - return false; - } - } - - @Override - public void renderItem(ItemRenderType type, ItemStack item, Object... data) { - switch (type) { - case ENTITY: - renderModel(0.0F, 1.2F, 0.0F, 1.0F); - break; - case INVENTORY: - renderModel(0.5F, 0.95F, 0.5F, 1.0F); - break; - case EQUIPPED_FIRST_PERSON: - renderModel(1.0F, 1.2f, 0.0f, 1.0f); - break; - case EQUIPPED: - renderModelEquipped(0.0F, 0.9f, 0.0f, 1.0f); - break; - default: - break; - } - } - - @Override - public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return false; - case INVENTORY: - return true; - case EQUIPPED_FIRST_PERSON: - return false; - default: - return false; - } - } - - private void renderModel(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glScalef(scale, scale, scale); - GL11.glTranslatef(x, y, z); - GL11.glRotatef(180.0F, 0.0F, 0.0F, 0.0F); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/StaffFire.png")); - model.renderModel(0.0625f); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } - - private void renderModelEquipped(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glScalef(scale, scale, scale); - GL11.glTranslatef(x, y, z); - GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F); - GL11.glRotatef(-45.0F, 0.0F, 0.0F, 1.0F); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/StaffFire.png")); - model.renderModel(0.0625f); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } -} diff --git a/common/MysticWorld/Renderer/ItemStaffWaterRenderer.java b/common/MysticWorld/Renderer/ItemStaffWaterRenderer.java deleted file mode 100644 index 5f14fe0..0000000 --- a/common/MysticWorld/Renderer/ItemStaffWaterRenderer.java +++ /dev/null @@ -1,95 +0,0 @@ -package mysticworld.renderer; - -import mysticworld.model.ModelStaff; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.IItemRenderer; - -import org.lwjgl.opengl.GL11; - -import cpw.mods.fml.client.FMLClientHandler; - -public class ItemStaffWaterRenderer implements IItemRenderer { - private final ModelStaff model; - - public ItemStaffWaterRenderer() { - this.model = new ModelStaff(); - } - - @Override - public boolean handleRenderType(ItemStack item, ItemRenderType type) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return true; - case EQUIPPED_FIRST_PERSON: - return true; - case INVENTORY: - return true; - default: - return false; - } - } - - @Override - public void renderItem(ItemRenderType type, ItemStack item, Object... data) { - switch (type) { - case ENTITY: - renderModel(0.0F, 1.2F, 0.0F, 1.0F); - break; - case INVENTORY: - renderModel(0.5F, 0.95F, 0.5F, 1.0F); - break; - case EQUIPPED_FIRST_PERSON: - renderModel(1.0F, 1.2f, 0.0f, 1.0f); - break; - case EQUIPPED: - renderModelEquipped(0.0F, 0.9f, 0.0f, 1.0f); - break; - default: - break; - } - } - - @Override - public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { - switch (type) { - case ENTITY: - return true; - case EQUIPPED: - return false; - case INVENTORY: - return true; - case EQUIPPED_FIRST_PERSON: - return false; - default: - return false; - } - } - - private void renderModel(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glScalef(scale, scale, scale); - GL11.glTranslatef(x, y, z); - GL11.glRotatef(180.0F, 0.0F, 0.0F, 0.0F); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/StaffWater.png")); - model.renderModel(0.0625f); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } - - private void renderModelEquipped(float x, float y, float z, float scale) { - GL11.glPushMatrix(); - GL11.glDisable(GL11.GL_LIGHTING); - GL11.glScalef(scale, scale, scale); - GL11.glTranslatef(x, y, z); - GL11.glRotatef(180.0F, 1.0F, 0.0F, 0.0F); - GL11.glRotatef(-45.0F, 0.0F, 0.0F, 1.0F); - FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("mysticmods:textures" + "/models/StaffWater.png")); - model.renderModel(0.0625f); - GL11.glEnable(GL11.GL_LIGHTING); - GL11.glPopMatrix(); - } -} diff --git a/common/MysticWorld/Renderer/TileEntityPillarInsertRenderer.java b/common/MysticWorld/Renderer/TileEntityPillarInsertRenderer.java index b6046b6..ceb28db 100644 --- a/common/MysticWorld/Renderer/TileEntityPillarInsertRenderer.java +++ b/common/MysticWorld/Renderer/TileEntityPillarInsertRenderer.java @@ -11,7 +11,7 @@ import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; public class TileEntityPillarInsertRenderer extends TileEntitySpecialRenderer { - private static final ResourceLocation texture = new ResourceLocation("mysticmods:textures" + "/models/PillarInsert.png"); + private static final ResourceLocation texture = new ResourceLocation("mysticworld", "textures/models/PillarInsert.png"); private ModelPillarInsert model; public TileEntityPillarInsertRenderer() { diff --git a/common/assets/mysticmods/lang/de_DE.lang b/common/assets/mysticmods/lang/de_DE.lang deleted file mode 100644 index e57bd0d..0000000 --- a/common/assets/mysticmods/lang/de_DE.lang +++ /dev/null @@ -1,183 +0,0 @@ - -item.VerditeSword.name=Verditschwert -item.VerditePickaxe.name=Verditspitzhacke -item.VerditeShovel.name=Verditschaufel -item.VerditeAxe.name=Verditaxt -item.VerditeHoe.name=Verdithacke - -item.MithrilSword.name=Mithrilschwert -item.MithrilPickaxe.name=Mithrilspitzhacke -item.MithrilShovel.name=Mithrilschaufel -item.MithrilAxe.name=Mithrilaxt -item.MithrilHoe.name=Mithrilhacke - -item.AdamantineSword.name=Adamantines Schwert -item.AdamantinePickaxe.name=Adamantine Spitzhacke -item.AdamantineShovel.name=Adamantine Schaufel -item.AdamantineAxe.name=Adamantine Axt -item.AdamantineHoe.name=Adamantine Hacke - -item.IridiumSword.name=Iridiumschwert -item.IridiumPickaxe.name=Iridiumspitzhacke -item.IridiumShovel.name=Iridiumschaufel -item.IridiumAxe.name=Iridiumaxt -item.IridiumHoe.name=Iridiumhacke - -item.ObsidianSword.name=Obsidianschwert -item.ObsidianPickaxe.name=Obsidianspitzhacke -item.ObsidianShovel.name=Obsidianschaufel -item.ObsidianAxe.name=Obsidianaxt -item.ObsidianHoe.name=Obsidianhacke - -item.BloodstoneSword.name=Blutsteinschwert -item.BloodstonePickaxe.name=Blutsteinspitzhacke -item.BloodstoneShovel.name=Blutsteinschaufel -item.BloodstoneAxe.name=Blutsteinaxt -item.BloodstoneHoe.name=Blutsteinhacke - -Verdite Ingot.name=Verditbarren -Mithril Ingot.name=Mithrilbarren -Adamantine Ingot.name=Adamantiner Barren -Iridium Ingot.name=Iridiumbarren -Iridium Nugget.name=Iridiumnugget -Tourmaline Gem.name=Turmalin -Agate Gem.name=Achat -Topaz Gem.name=Topas -Amethyst Gem.name=Amethyst -Mystic Powder.name=Mystisches Pulver -Bloodstone Shard.name=Blutsteinscherbe -Glass Shard.name=Glasscherbe -Obsidian Shard.name=Obsidianscherbe -Obsidian Rod.name=Obsidianstab -item.Satchel.name=Magischer Beutel - -Adamantine Ore.name=Adamantines Erz -Amethyst Ore.name=Amethysterz -Iridium Ore.name=Iridiumerz -Mithril Ore.name=Mithrilerz -Tourmaline Ore.name=Turmalinerz -Topaz Ore.name=Topaserz -Verdite Ore.name=Verditerz -Bloodstone.name=Blutstein -Black Soulstone.name=Schwarzer Seelenstein -Blue Soulstone.name=Blauer Seelenstein -Red Soulstone.name=Roter Seelenstein -Agate Ore.name=Achaterz -Tempered Glass.name=Gehärtetes Glas - -itemGroup.MysticOresTab=Mystic Ores - -Purple Planks.name=Violette Planken -Green Planks.name=Grüne Planken -Black Planks.name=Schwarze Planken -Orange Planks.name=Orange Planken -Red Planks.name=Rote Planken -Blue Planks.name=Blaue Planken -Yellow Planks.name=Gelbe Planken - -Smooth Anorthosite.name=Glattes Anorthosit -Smooth Limestone.name=Glatter Kalkstein -Smooth Slate.name=Glatter Schiefer -Smooth Migmatite.name=Glattes Migmatit -Smooth Orthogneiss.name=Glattes Orthogneis -Smooth Marble.name=Glatter Marmor -Smooth Travertine.name=Glattes Travertin - -Anorthosite.name=Anorthosit -Limestone.name=Kalkstein -Slate.name=Schiefer -Migmatite.name=Migmatit -Orthogneiss.name=Orthogneis -Marble.name=Marmor -Travertine.name=Travertin - -Anorthosite Bricks.name=Anorthositziegel -Limestone Bricks.name=Kalksteinziegel -Slate Bricks.name=Schieferziegel -Migmatite Bricks.name=Migmatitziegel -Orthogneiss Bricks.name=Orthogneisziegel -Marble Bricks.name=Marmorziegel -Travertine Bricks.name=Travertinziegel - -Verdite Bricks.name=Verdit-verstärkte Ziegel -Mithril Bricks.name=Mithril-verstärkte Ziegel -Adamantine Bricks.name=Adamantine Verstärkte Ziegel -Iridium Bricks.name=Iridium-verstärkte Ziegel -Topaz Bricks.name=Topas-verstärkte Ziegel -Tourmaline Bricks.name=Turmalin-verstärkte Ziegel -Amethyst Bricks.name=Amethyst-verstärkte Ziegel -Agate Bricks.name=Achat-verstärkte Ziegel - -itemGroup.MysticStonesTab=Mystic Stones - -tile.imbuedStoneFire.name=Magmatischer Felsbrocken -tile.imbuedStoneWater.name=Aquatischer Felsbrocken -tile.imbuedStoneEarth.name=Fruchtbarer Felsbrocken -tile.imbuedStoneAir.name=Durchlüfteter Felsbrocken -tile.imbuedStoneEnergy.name=Kinetischer Felsbrocken - -Bush.name=Gewöhnlicher Busch -Poisonous Bush.name=Giftiger Busch -Weakness Bush.name=Schwächender Busch -Slowness Bush.name=Langsamkeitsbusch -Harming Bush.name=Schadender Busch -Wither Bush.name=Verzehrender Busch -Health Bush.name=Heilender Busch -Speed Bush.name=Geschwindigkeitsbusch -Fire Resistance Bush.name=Löschender Busch -Regen Bush.name=Regenerationsbusch -Night Vision Bush.name=Nachtsichtbusch -Invisibility Bush.name=Unsichtbarkeitsbusch - -tile.platform.name=Säulenplattform -tile.pillar.name=Säulenturm -tile.pillarInsert.name=Säuleneinlage - -Staff.name=Stab -Hilt.name=Stabheft -Handle.name=Stabgriff -Head.name=Stabspitze - -item.imbuedShardFire.name=Magmatische Scherbe -item.imbuedShardWater.name=Aquatische Scherbe -item.imbuedShardEarth.name=Fruchtbare Scherbe -item.imbuedShardAir.name=Durchlüftete Scherbe -item.imbuedShardEnergy.name=Kinetische Scherbe - -item.fireStaff.name=Magmastab -item.waterStaff.name=Aquastab -item.earthStaff.name=Fruchtbarer Stab -item.airStaff.name=Durchlüftungsstab -item.energyStaff.name=Kinesisstab - -item.bushFruit.name=Mysteriöse Frucht - -item.verditeHelmet.name=Verdithelm -item.verditeChestplate.name=Verditbrustplatte -item.verditeLeggings.name=Verditehose -item.verditeBoots.name=Verditestiefel - -item.mithrilHelmet.name=Mithrilhelm -item.mithrilChestplate.name=Mithrilbrustplatte -item.mithrilLeggings.name=Mithrilhose -item.mithrilBoots.name=Mithrilstiefel - -item.adamantineHelmet.name=Adamantiner Helmet -item.adamantineChestplate.name=Adamantine Brustplatte -item.adamantineLeggings.name=Adamantine Hose -item.adamantineBoots.name=Adamantine Stiefel - -item.iridiumHelmet.name=Iridiumhelm -item.iridiumChestplate.name=Iridiumbrustplatte -item.iridiumLeggings.name=Iridiumhose -item.iridiumBoots.name=Iridiumstiefel - -item.fireOrb.name=Magmatischer Orb -item.waterOrb.name=Aquatischer Orb -item.earthOrb.name=Orb der Fruchtbarkeit -item.airOrb.name=Durchlüftender Orb -item.energyOrb.name=Kinesis-Orb - -item.voidShard.name=Scherbe der Leere - -itemGroup.MysticWorldTab=Mystc World \ No newline at end of file diff --git a/common/assets/mysticmods/lang/en_US.lang b/common/assets/mysticmods/lang/en_US.lang deleted file mode 100644 index 1e3bb54..0000000 --- a/common/assets/mysticmods/lang/en_US.lang +++ /dev/null @@ -1,180 +0,0 @@ - -item.VerditeSword.name=Verdite Sword -item.VerditePickaxe.name=Verdite Pickaxe -item.VerditeShovel.name=Verdite Shovel -item.VerditeAxe.name=Verdite Axe -item.VerditeHoe.name=Verdite Hoe - -item.MithrilSword.name=Mithril Sword -item.MithrilPickaxe.name=Mithril Pickaxe -item.MithrilShovel.name=Mithril Shovel -item.MithrilAxe.name=Mithril Axe -item.MithrilHoe.name=Mithril Hoe - -item.AdamantineSword.name=Adamantine Sword -item.AdamantinePickaxe.name=Adamantine Pickaxe -item.AdamantineShovel.name=Adamantine Shovel -item.AdamantineAxe.name=Adamantine Axe -item.AdamantineHoe.name=Adamantine Hoe - -item.IridiumSword.name=Iridium Sword -item.IridiumPickaxe.name=Iridium Pickaxe -item.IridiumShovel.name=Iridium Shovel -item.IridiumAxe.name=Iridium Axe -item.IridiumHoe.name=Iridium Hoe - -item.ObsidianSword.name=Obsidian Sword -item.ObsidianPickaxe.name=Obsidian Pickaxe -item.ObsidianShovel.name=Obsidian Shovel -item.ObsidianAxe.name=Obsidian Axe -item.ObsidianHoe.name=Obsidian Hoe - -item.BloodstoneSword.name=Bloodstone Sword -item.BloodstonePickaxe.name=Bloodstone Pickaxe -item.BloodstoneShovel.name=Bloodstone Shovel -item.BloodstoneAxe.name=Bloodstone Axe -item.BloodstoneHoe.name=Bloodstone Hoe - -Verdite Ingot.name=Verdite Ingot -Mithril Ingot.name=Mithril Ingot -Adamantine Ingot.name=Adamantine Ingot -Iridium Ingot.name=Iridium Ingot -Iridium Nugget.name=Iridium Nugget -Tourmaline Gem.name=Tourmaline Gemstone -Agate Gem.name=Agate Gemstone -Topaz Gem.name=Topaz Gemstone -Amethyst Gem.name=Amethyst Gemstone -Mystic Powder.name=Mystic Powder -Bloodstone Shard.name=Bloodstone Shard -Glass Shard.name=Glass Shard -Obsidian Shard.name=Obsidian Shard -Obsidian Rod.name=Obsidian Rod -item.Satchel.name=Magical Bag - -Adamantine Ore.name=Adamantine Ore -Amethyst Ore.name=Amethyst Ore -Iridium Ore.name=Iridium Ore -Mithril Ore.name=Mithril Ore -Tourmaline Ore.name=Tourmaline Ore -Topaz Ore.name=Topaz Ore -Verdite Ore.name=Verdite Ore -Bloodstone.name=Bloodstone -Black Soulstone.name=Black Soulstone -Blue Soulstone.name=Blue Soulstone -Red Soulstone.name=Red Soulstone -Agate Ore.name=Agate Ore -Tempered Glass.name=Tempered Glass - -itemGroup.MysticOresTab=Mystic Ores - -Purple Planks.name=Purple Planks -Green Planks.name=Green Planks -Black Planks.name=Black Planks -Orange Planks.name=Orange Planks -Red Planks.name=Red Planks -Blue Planks.name=Blue Planks -Yellow Planks.name=Yellow Planks - -Smooth Anorthosite.name=Smooth Anorthosite -Smooth Limestone.name=Smooth Limestone -Smooth Slate.name=Smooth Slate -Smooth Migmatite.name=Smooth Migmatite -Smooth Orthogneiss.name=Smooth Orthogneiss -Smooth Marble.name=Smooth Marble -Smooth Travertine.name=Smooth Travertine - -Anorthosite.name=Anorthosite -Limestone.name=Limestone -Slate.name=Slate -Migmatite.name=Migmatite -Orthogneiss.name=Orthogneiss -Marble.name=Marble -Travertine.name=Travertine - -Anorthosite Bricks.name=Anorthosite Bricks -Limestone Bricks.name=Limestone Bricks -Slate Bricks.name=Slate Bricks -Migmatite Bricks.name=Migmatite Bricks -Orthogneiss Bricks.name=Orthogneiss Bricks -Marble Bricks.name=Marble Bricks -Travertine Bricks.name=Travertine Bricks - -Verdite Bricks.name=Verdite Reinforced Bricks -Mithril Bricks.name=Mithril Reinforced Bricks -Adamantine Bricks.name=Adamantine Reinforced Bricks -Iridium Bricks.name=Iridium Reinfroced Bricks -Topaz Bricks.name=Topaz Reinforced Bricks -Tourmaline Bricks.name=Tourmaline Reinforced Bricks -Amethyst Bricks.name=Amethyst Reinforced Bricks -Agate Bricks.name=Agate Reinforced Bricks - -itemGroup.MysticStonesTab=Mystic Stones - -tile.imbuedStoneFire.name=Magmatic Stone Chunk -tile.imbuedStoneWater.name=Aquatic Stone Chunk -tile.imbuedStoneEarth.name=Fertile Stone Chunk -tile.imbuedStoneAir.name=Aerated Stone Chunk -tile.imbuedStoneEnergy.name=Kinetic Stone Chunk - -Bush.name=Mundane Bush -Poisonous Bush.name=Poisonous Bush -Weakness Bush.name=Weakening Bush -Slowness Bush.name=Slowness Bush -Harming Bush.name=Harming Bush -Wither Bush.name=Withering Bush -Health Bush.name=Healing Bush -Speed Bush.name=Speed Bush -Fire Resistance Bush.name=Extinguishing Bush -Regen Bush.name=Regeneration Bush -Night Vision Bush.name=Night Vision Bush -Invisibility Bush.name=Invisibility Bush - -tile.platform.name=Pillar Platform -tile.pillar.name=Pillar Tower -tile.pillarInsert.name=Pillarinsert - -Staff.name=Staff -Hilt.name=Staff Hilt -Handle.name=Staff Handle -Head.name=Staff Topper - -item.imbuedShardFire.name=Magmatic Shard -item.imbuedShardWater.name=Aquatic Shard -item.imbuedShardEarth.name=Fertile Shard -item.imbuedShardAir.name=Aerated Shard -item.imbuedShardEnergy.name=Kinetic Shard -item.fireStaff.name=Magma Staff -item.waterStaff.name=Aqua Staff -item.earthStaff.name=Fertile Staff -item.airStaff.name=Aeration Staff -item.energyStaff.name=Kinesis Staff -item.bushFruit.name=Mysterious Fruit - -item.verditeHelmet.name=Verdite Helmet -item.verditeChestplate.name=Verdite Chestplate -item.verditeLeggings.name=Verdite Leggings -item.verditeBoots.name=Verdite Boots - -item.mithrilHelmet.name=Mithril Helmet -item.mithrilChestplate.name=Mithril Chestplate -item.mithrilLeggings.name=Mithril Leggings -item.mithrilBoots.name=Mithril Boots - -item.adamantineHelmet.name=Adamantine Helmet -item.adamantineChestplate.name=Adamantine Chestplate -item.adamantineLeggings.name=Adamantine Leggings -item.adamantineBoots.name=Adamantine Boots - -item.iridiumHelmet.name=Iridium Helmet -item.iridiumChestplate.name=Iridium Chestplate -item.iridiumLeggings.name=Iridium Leggings -item.iridiumBoots.name=Iridium Boots - -item.fireOrb.name=Magmatic Orb -item.waterOrb.name=Aquatic Orb -item.earthOrb.name=Orb of Fertility -item.airOrb.name=Aerating Orb -item.energyOrb.name=Kinesis Orb -item.voidShard.name=Void Shard - -itemGroup.MysticWorldTab=Mystic World \ No newline at end of file diff --git a/common/assets/mysticores/lang/de_DE.lang b/common/assets/mysticores/lang/de_DE.lang new file mode 100644 index 0000000..2a57cc7 --- /dev/null +++ b/common/assets/mysticores/lang/de_DE.lang @@ -0,0 +1,68 @@ + +item.VerditeSword.name=Verditschwert +item.VerditePickaxe.name=Verditspitzhacke +item.VerditeShovel.name=Verditschaufel +item.VerditeAxe.name=Verditaxt +item.VerditeHoe.name=Verdithacke + +item.MithrilSword.name=Mithrilschwert +item.MithrilPickaxe.name=Mithrilspitzhacke +item.MithrilShovel.name=Mithrilschaufel +item.MithrilAxe.name=Mithrilaxt +item.MithrilHoe.name=Mithrilhacke + +item.AdamantineSword.name=Adamantines Schwert +item.AdamantinePickaxe.name=Adamantine Spitzhacke +item.AdamantineShovel.name=Adamantine Schaufel +item.AdamantineAxe.name=Adamantine Axt +item.AdamantineHoe.name=Adamantine Hacke + +item.IridiumSword.name=Iridiumschwert +item.IridiumPickaxe.name=Iridiumspitzhacke +item.IridiumShovel.name=Iridiumschaufel +item.IridiumAxe.name=Iridiumaxt +item.IridiumHoe.name=Iridiumhacke + +item.ObsidianSword.name=Obsidianschwert +item.ObsidianPickaxe.name=Obsidianspitzhacke +item.ObsidianShovel.name=Obsidianschaufel +item.ObsidianAxe.name=Obsidianaxt +item.ObsidianHoe.name=Obsidianhacke + +item.BloodstoneSword.name=Blutsteinschwert +item.BloodstonePickaxe.name=Blutsteinspitzhacke +item.BloodstoneShovel.name=Blutsteinschaufel +item.BloodstoneAxe.name=Blutsteinaxt +item.BloodstoneHoe.name=Blutsteinhacke + +Verdite Ingot.name=Verditbarren +Mithril Ingot.name=Mithrilbarren +Adamantine Ingot.name=Adamantiner Barren +Iridium Ingot.name=Iridiumbarren +Iridium Nugget.name=Iridiumnugget +Tourmaline Gem.name=Turmalin +Agate Gem.name=Achat +Topaz Gem.name=Topas +Amethyst Gem.name=Amethyst +Mystic Powder.name=Mystisches Pulver +Bloodstone Shard.name=Blutsteinscherbe +Glass Shard.name=Glasscherbe +Obsidian Shard.name=Obsidianscherbe +Obsidian Rod.name=Obsidianstab +item.Satchel.name=Magischer Beutel + +Adamantine Ore.name=Adamantines Erz +Amethyst Ore.name=Amethysterz +Iridium Ore.name=Iridiumerz +Mithril Ore.name=Mithrilerz +Tourmaline Ore.name=Turmalinerz +Topaz Ore.name=Topaserz +Verdite Ore.name=Verditerz +Bloodstone.name=Blutstein +Black Soulstone.name=Schwarzer Seelenstein +Blue Soulstone.name=Blauer Seelenstein +Red Soulstone.name=Roter Seelenstein +Agate Ore.name=Achaterz +Tempered Glass.name=Gehärtetes Glas + +itemGroup.MysticOresTab=Mystic Ores \ No newline at end of file diff --git a/common/assets/mysticores/lang/en_US.lang b/common/assets/mysticores/lang/en_US.lang new file mode 100644 index 0000000..87f376a --- /dev/null +++ b/common/assets/mysticores/lang/en_US.lang @@ -0,0 +1,68 @@ + +item.VerditeSword.name=Verdite Sword +item.VerditePickaxe.name=Verdite Pickaxe +item.VerditeShovel.name=Verdite Shovel +item.VerditeAxe.name=Verdite Axe +item.VerditeHoe.name=Verdite Hoe + +item.MithrilSword.name=Mithril Sword +item.MithrilPickaxe.name=Mithril Pickaxe +item.MithrilShovel.name=Mithril Shovel +item.MithrilAxe.name=Mithril Axe +item.MithrilHoe.name=Mithril Hoe + +item.AdamantineSword.name=Adamantine Sword +item.AdamantinePickaxe.name=Adamantine Pickaxe +item.AdamantineShovel.name=Adamantine Shovel +item.AdamantineAxe.name=Adamantine Axe +item.AdamantineHoe.name=Adamantine Hoe + +item.IridiumSword.name=Iridium Sword +item.IridiumPickaxe.name=Iridium Pickaxe +item.IridiumShovel.name=Iridium Shovel +item.IridiumAxe.name=Iridium Axe +item.IridiumHoe.name=Iridium Hoe + +item.ObsidianSword.name=Obsidian Sword +item.ObsidianPickaxe.name=Obsidian Pickaxe +item.ObsidianShovel.name=Obsidian Shovel +item.ObsidianAxe.name=Obsidian Axe +item.ObsidianHoe.name=Obsidian Hoe + +item.BloodstoneSword.name=Bloodstone Sword +item.BloodstonePickaxe.name=Bloodstone Pickaxe +item.BloodstoneShovel.name=Bloodstone Shovel +item.BloodstoneAxe.name=Bloodstone Axe +item.BloodstoneHoe.name=Bloodstone Hoe + +Verdite Ingot.name=Verdite Ingot +Mithril Ingot.name=Mithril Ingot +Adamantine Ingot.name=Adamantine Ingot +Iridium Ingot.name=Iridium Ingot +Iridium Nugget.name=Iridium Nugget +Tourmaline Gem.name=Tourmaline Gemstone +Agate Gem.name=Agate Gemstone +Topaz Gem.name=Topaz Gemstone +Amethyst Gem.name=Amethyst Gemstone +Mystic Powder.name=Mystic Powder +Bloodstone Shard.name=Bloodstone Shard +Glass Shard.name=Glass Shard +Obsidian Shard.name=Obsidian Shard +Obsidian Rod.name=Obsidian Rod +item.Satchel.name=Magical Bag + +Adamantine Ore.name=Adamantine Ore +Amethyst Ore.name=Amethyst Ore +Iridium Ore.name=Iridium Ore +Mithril Ore.name=Mithril Ore +Tourmaline Ore.name=Tourmaline Ore +Topaz Ore.name=Topaz Ore +Verdite Ore.name=Verdite Ore +Bloodstone.name=Bloodstone +Black Soulstone.name=Black Soulstone +Blue Soulstone.name=Blue Soulstone +Red Soulstone.name=Red Soulstone +Agate Ore.name=Agate Ore +Tempered Glass.name=Tempered Glass + +itemGroup.MysticOresTab=Mystic Ores \ No newline at end of file diff --git a/common/assets/mysticmods/textures/blocks/Adamantine Ore.png b/common/assets/mysticores/textures/blocks/Adamantine Ore.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Adamantine Ore.png rename to common/assets/mysticores/textures/blocks/Adamantine Ore.png diff --git a/common/assets/mysticmods/textures/blocks/Agate Ore.png b/common/assets/mysticores/textures/blocks/Agate Ore.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Agate Ore.png rename to common/assets/mysticores/textures/blocks/Agate Ore.png diff --git a/common/assets/mysticmods/textures/blocks/Amethyst Ore.png b/common/assets/mysticores/textures/blocks/Amethyst Ore.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Amethyst Ore.png rename to common/assets/mysticores/textures/blocks/Amethyst Ore.png diff --git a/common/assets/mysticmods/textures/blocks/Black Soulstone.png b/common/assets/mysticores/textures/blocks/Black Soulstone.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Black Soulstone.png rename to common/assets/mysticores/textures/blocks/Black Soulstone.png diff --git a/common/assets/mysticmods/textures/blocks/Bloodstone.png b/common/assets/mysticores/textures/blocks/Bloodstone.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Bloodstone.png rename to common/assets/mysticores/textures/blocks/Bloodstone.png diff --git a/common/assets/mysticmods/textures/blocks/Blue Soulstone.png b/common/assets/mysticores/textures/blocks/Blue Soulstone.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Blue Soulstone.png rename to common/assets/mysticores/textures/blocks/Blue Soulstone.png diff --git a/common/assets/mysticmods/textures/blocks/Iridium Ore.png b/common/assets/mysticores/textures/blocks/Iridium Ore.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Iridium Ore.png rename to common/assets/mysticores/textures/blocks/Iridium Ore.png diff --git a/common/assets/mysticmods/textures/blocks/Mithril Ore.png b/common/assets/mysticores/textures/blocks/Mithril Ore.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Mithril Ore.png rename to common/assets/mysticores/textures/blocks/Mithril Ore.png diff --git a/common/assets/mysticmods/textures/blocks/Red Soulstone.png b/common/assets/mysticores/textures/blocks/Red Soulstone.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Red Soulstone.png rename to common/assets/mysticores/textures/blocks/Red Soulstone.png diff --git a/common/assets/mysticmods/textures/blocks/Tempered Glass.png b/common/assets/mysticores/textures/blocks/Tempered Glass.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Tempered Glass.png rename to common/assets/mysticores/textures/blocks/Tempered Glass.png diff --git a/common/assets/mysticmods/textures/blocks/Topaz Ore.png b/common/assets/mysticores/textures/blocks/Topaz Ore.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Topaz Ore.png rename to common/assets/mysticores/textures/blocks/Topaz Ore.png diff --git a/common/assets/mysticmods/textures/blocks/Tourmaline Ore.png b/common/assets/mysticores/textures/blocks/Tourmaline Ore.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Tourmaline Ore.png rename to common/assets/mysticores/textures/blocks/Tourmaline Ore.png diff --git a/common/assets/mysticmods/textures/blocks/Verdite Ore.png b/common/assets/mysticores/textures/blocks/Verdite Ore.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Verdite Ore.png rename to common/assets/mysticores/textures/blocks/Verdite Ore.png diff --git a/common/assets/mysticmods/textures/items/Adamantine Ingot.png b/common/assets/mysticores/textures/items/Adamantine Ingot.png similarity index 100% rename from common/assets/mysticmods/textures/items/Adamantine Ingot.png rename to common/assets/mysticores/textures/items/Adamantine Ingot.png diff --git a/common/assets/mysticmods/textures/items/AdamantineAxe.png b/common/assets/mysticores/textures/items/AdamantineAxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/AdamantineAxe.png rename to common/assets/mysticores/textures/items/AdamantineAxe.png diff --git a/common/assets/mysticmods/textures/items/AdamantineHoe.png b/common/assets/mysticores/textures/items/AdamantineHoe.png similarity index 100% rename from common/assets/mysticmods/textures/items/AdamantineHoe.png rename to common/assets/mysticores/textures/items/AdamantineHoe.png diff --git a/common/assets/mysticmods/textures/items/AdamantinePickaxe.png b/common/assets/mysticores/textures/items/AdamantinePickaxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/AdamantinePickaxe.png rename to common/assets/mysticores/textures/items/AdamantinePickaxe.png diff --git a/common/assets/mysticmods/textures/items/AdamantineShovel.png b/common/assets/mysticores/textures/items/AdamantineShovel.png similarity index 100% rename from common/assets/mysticmods/textures/items/AdamantineShovel.png rename to common/assets/mysticores/textures/items/AdamantineShovel.png diff --git a/common/assets/mysticmods/textures/items/AdamantineSword.png b/common/assets/mysticores/textures/items/AdamantineSword.png similarity index 100% rename from common/assets/mysticmods/textures/items/AdamantineSword.png rename to common/assets/mysticores/textures/items/AdamantineSword.png diff --git a/common/assets/mysticmods/textures/items/Agate Gem.png b/common/assets/mysticores/textures/items/Agate Gem.png similarity index 100% rename from common/assets/mysticmods/textures/items/Agate Gem.png rename to common/assets/mysticores/textures/items/Agate Gem.png diff --git a/common/assets/mysticmods/textures/items/Amethyst Gem.png b/common/assets/mysticores/textures/items/Amethyst Gem.png similarity index 100% rename from common/assets/mysticmods/textures/items/Amethyst Gem.png rename to common/assets/mysticores/textures/items/Amethyst Gem.png diff --git a/common/assets/mysticmods/textures/items/Bloodstone Shard.png b/common/assets/mysticores/textures/items/Bloodstone Shard.png similarity index 100% rename from common/assets/mysticmods/textures/items/Bloodstone Shard.png rename to common/assets/mysticores/textures/items/Bloodstone Shard.png diff --git a/common/assets/mysticmods/textures/items/BloodstoneAxe.png b/common/assets/mysticores/textures/items/BloodstoneAxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/BloodstoneAxe.png rename to common/assets/mysticores/textures/items/BloodstoneAxe.png diff --git a/common/assets/mysticmods/textures/items/BloodstoneHoe.png b/common/assets/mysticores/textures/items/BloodstoneHoe.png similarity index 100% rename from common/assets/mysticmods/textures/items/BloodstoneHoe.png rename to common/assets/mysticores/textures/items/BloodstoneHoe.png diff --git a/common/assets/mysticmods/textures/items/BloodstonePickaxe.png b/common/assets/mysticores/textures/items/BloodstonePickaxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/BloodstonePickaxe.png rename to common/assets/mysticores/textures/items/BloodstonePickaxe.png diff --git a/common/assets/mysticmods/textures/items/BloodstoneShovel.png b/common/assets/mysticores/textures/items/BloodstoneShovel.png similarity index 100% rename from common/assets/mysticmods/textures/items/BloodstoneShovel.png rename to common/assets/mysticores/textures/items/BloodstoneShovel.png diff --git a/common/assets/mysticmods/textures/items/BloodstoneSword.png b/common/assets/mysticores/textures/items/BloodstoneSword.png similarity index 100% rename from common/assets/mysticmods/textures/items/BloodstoneSword.png rename to common/assets/mysticores/textures/items/BloodstoneSword.png diff --git a/common/assets/mysticmods/textures/items/Glass Shard.png b/common/assets/mysticores/textures/items/Glass Shard.png similarity index 100% rename from common/assets/mysticmods/textures/items/Glass Shard.png rename to common/assets/mysticores/textures/items/Glass Shard.png diff --git a/common/assets/mysticmods/textures/items/Iridium Ingot.png b/common/assets/mysticores/textures/items/Iridium Ingot.png similarity index 100% rename from common/assets/mysticmods/textures/items/Iridium Ingot.png rename to common/assets/mysticores/textures/items/Iridium Ingot.png diff --git a/common/assets/mysticmods/textures/items/Iridium Nugget.png b/common/assets/mysticores/textures/items/Iridium Nugget.png similarity index 100% rename from common/assets/mysticmods/textures/items/Iridium Nugget.png rename to common/assets/mysticores/textures/items/Iridium Nugget.png diff --git a/common/assets/mysticmods/textures/items/IridiumAxe.png b/common/assets/mysticores/textures/items/IridiumAxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/IridiumAxe.png rename to common/assets/mysticores/textures/items/IridiumAxe.png diff --git a/common/assets/mysticmods/textures/items/IridiumHoe.png b/common/assets/mysticores/textures/items/IridiumHoe.png similarity index 100% rename from common/assets/mysticmods/textures/items/IridiumHoe.png rename to common/assets/mysticores/textures/items/IridiumHoe.png diff --git a/common/assets/mysticmods/textures/items/IridiumPickaxe.png b/common/assets/mysticores/textures/items/IridiumPickaxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/IridiumPickaxe.png rename to common/assets/mysticores/textures/items/IridiumPickaxe.png diff --git a/common/assets/mysticmods/textures/items/IridiumShovel.png b/common/assets/mysticores/textures/items/IridiumShovel.png similarity index 100% rename from common/assets/mysticmods/textures/items/IridiumShovel.png rename to common/assets/mysticores/textures/items/IridiumShovel.png diff --git a/common/assets/mysticmods/textures/items/IridiumSword.png b/common/assets/mysticores/textures/items/IridiumSword.png similarity index 100% rename from common/assets/mysticmods/textures/items/IridiumSword.png rename to common/assets/mysticores/textures/items/IridiumSword.png diff --git a/common/assets/mysticmods/textures/items/Mithril Ingot.png b/common/assets/mysticores/textures/items/Mithril Ingot.png similarity index 100% rename from common/assets/mysticmods/textures/items/Mithril Ingot.png rename to common/assets/mysticores/textures/items/Mithril Ingot.png diff --git a/common/assets/mysticmods/textures/items/MithrilAxe.png b/common/assets/mysticores/textures/items/MithrilAxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/MithrilAxe.png rename to common/assets/mysticores/textures/items/MithrilAxe.png diff --git a/common/assets/mysticmods/textures/items/MithrilHoe.png b/common/assets/mysticores/textures/items/MithrilHoe.png similarity index 100% rename from common/assets/mysticmods/textures/items/MithrilHoe.png rename to common/assets/mysticores/textures/items/MithrilHoe.png diff --git a/common/assets/mysticmods/textures/items/MithrilPickaxe.png b/common/assets/mysticores/textures/items/MithrilPickaxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/MithrilPickaxe.png rename to common/assets/mysticores/textures/items/MithrilPickaxe.png diff --git a/common/assets/mysticmods/textures/items/MithrilShovel.png b/common/assets/mysticores/textures/items/MithrilShovel.png similarity index 100% rename from common/assets/mysticmods/textures/items/MithrilShovel.png rename to common/assets/mysticores/textures/items/MithrilShovel.png diff --git a/common/assets/mysticmods/textures/items/MithrilSword.png b/common/assets/mysticores/textures/items/MithrilSword.png similarity index 100% rename from common/assets/mysticmods/textures/items/MithrilSword.png rename to common/assets/mysticores/textures/items/MithrilSword.png diff --git a/common/assets/mysticmods/textures/items/Mystic Powder.png b/common/assets/mysticores/textures/items/Mystic Powder.png similarity index 100% rename from common/assets/mysticmods/textures/items/Mystic Powder.png rename to common/assets/mysticores/textures/items/Mystic Powder.png diff --git a/common/assets/mysticmods/textures/items/Obsidian Rod.png b/common/assets/mysticores/textures/items/Obsidian Rod.png similarity index 100% rename from common/assets/mysticmods/textures/items/Obsidian Rod.png rename to common/assets/mysticores/textures/items/Obsidian Rod.png diff --git a/common/assets/mysticmods/textures/items/Obsidian Shard.png b/common/assets/mysticores/textures/items/Obsidian Shard.png similarity index 100% rename from common/assets/mysticmods/textures/items/Obsidian Shard.png rename to common/assets/mysticores/textures/items/Obsidian Shard.png diff --git a/common/assets/mysticmods/textures/items/ObsidianAxe.png b/common/assets/mysticores/textures/items/ObsidianAxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/ObsidianAxe.png rename to common/assets/mysticores/textures/items/ObsidianAxe.png diff --git a/common/assets/mysticmods/textures/items/ObsidianHoe.png b/common/assets/mysticores/textures/items/ObsidianHoe.png similarity index 100% rename from common/assets/mysticmods/textures/items/ObsidianHoe.png rename to common/assets/mysticores/textures/items/ObsidianHoe.png diff --git a/common/assets/mysticmods/textures/items/ObsidianPickaxe.png b/common/assets/mysticores/textures/items/ObsidianPickaxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/ObsidianPickaxe.png rename to common/assets/mysticores/textures/items/ObsidianPickaxe.png diff --git a/common/assets/mysticmods/textures/items/ObsidianShovel.png b/common/assets/mysticores/textures/items/ObsidianShovel.png similarity index 100% rename from common/assets/mysticmods/textures/items/ObsidianShovel.png rename to common/assets/mysticores/textures/items/ObsidianShovel.png diff --git a/common/assets/mysticmods/textures/items/ObsidianSword.png b/common/assets/mysticores/textures/items/ObsidianSword.png similarity index 100% rename from common/assets/mysticmods/textures/items/ObsidianSword.png rename to common/assets/mysticores/textures/items/ObsidianSword.png diff --git a/common/assets/mysticmods/textures/items/Satchel.png b/common/assets/mysticores/textures/items/Satchel.png similarity index 100% rename from common/assets/mysticmods/textures/items/Satchel.png rename to common/assets/mysticores/textures/items/Satchel.png diff --git a/common/assets/mysticmods/textures/items/Topaz Gem.png b/common/assets/mysticores/textures/items/Topaz Gem.png similarity index 100% rename from common/assets/mysticmods/textures/items/Topaz Gem.png rename to common/assets/mysticores/textures/items/Topaz Gem.png diff --git a/common/assets/mysticmods/textures/items/Tourmaline Gem.png b/common/assets/mysticores/textures/items/Tourmaline Gem.png similarity index 100% rename from common/assets/mysticmods/textures/items/Tourmaline Gem.png rename to common/assets/mysticores/textures/items/Tourmaline Gem.png diff --git a/common/assets/mysticmods/textures/items/Verdite Ingot.png b/common/assets/mysticores/textures/items/Verdite Ingot.png similarity index 100% rename from common/assets/mysticmods/textures/items/Verdite Ingot.png rename to common/assets/mysticores/textures/items/Verdite Ingot.png diff --git a/common/assets/mysticmods/textures/items/VerditeAxe.png b/common/assets/mysticores/textures/items/VerditeAxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/VerditeAxe.png rename to common/assets/mysticores/textures/items/VerditeAxe.png diff --git a/common/assets/mysticmods/textures/items/VerditeHoe.png b/common/assets/mysticores/textures/items/VerditeHoe.png similarity index 100% rename from common/assets/mysticmods/textures/items/VerditeHoe.png rename to common/assets/mysticores/textures/items/VerditeHoe.png diff --git a/common/assets/mysticmods/textures/items/VerditePickaxe.png b/common/assets/mysticores/textures/items/VerditePickaxe.png similarity index 100% rename from common/assets/mysticmods/textures/items/VerditePickaxe.png rename to common/assets/mysticores/textures/items/VerditePickaxe.png diff --git a/common/assets/mysticmods/textures/items/VerditeShovel.png b/common/assets/mysticores/textures/items/VerditeShovel.png similarity index 100% rename from common/assets/mysticmods/textures/items/VerditeShovel.png rename to common/assets/mysticores/textures/items/VerditeShovel.png diff --git a/common/assets/mysticmods/textures/items/VerditeSword.png b/common/assets/mysticores/textures/items/VerditeSword.png similarity index 100% rename from common/assets/mysticmods/textures/items/VerditeSword.png rename to common/assets/mysticores/textures/items/VerditeSword.png diff --git a/common/assets/mysticstones/lang/de_DE.lang b/common/assets/mysticstones/lang/de_DE.lang new file mode 100644 index 0000000..49103b1 --- /dev/null +++ b/common/assets/mysticstones/lang/de_DE.lang @@ -0,0 +1,43 @@ + +Purple Planks.name=Violette Planken +Green Planks.name=Grüne Planken +Black Planks.name=Schwarze Planken +Orange Planks.name=Orange Planken +Red Planks.name=Rote Planken +Blue Planks.name=Blaue Planken +Yellow Planks.name=Gelbe Planken + +Smooth Anorthosite.name=Glattes Anorthosit +Smooth Limestone.name=Glatter Kalkstein +Smooth Slate.name=Glatter Schiefer +Smooth Migmatite.name=Glattes Migmatit +Smooth Orthogneiss.name=Glattes Orthogneis +Smooth Marble.name=Glatter Marmor +Smooth Travertine.name=Glattes Travertin + +Anorthosite.name=Anorthosit +Limestone.name=Kalkstein +Slate.name=Schiefer +Migmatite.name=Migmatit +Orthogneiss.name=Orthogneis +Marble.name=Marmor +Travertine.name=Travertin + +Anorthosite Bricks.name=Anorthositziegel +Limestone Bricks.name=Kalksteinziegel +Slate Bricks.name=Schieferziegel +Migmatite Bricks.name=Migmatitziegel +Orthogneiss Bricks.name=Orthogneisziegel +Marble Bricks.name=Marmorziegel +Travertine Bricks.name=Travertinziegel + +Verdite Bricks.name=Verdit-verstärkte Ziegel +Mithril Bricks.name=Mithril-verstärkte Ziegel +Adamantine Bricks.name=Adamantine Verstärkte Ziegel +Iridium Bricks.name=Iridium-verstärkte Ziegel +Topaz Bricks.name=Topas-verstärkte Ziegel +Tourmaline Bricks.name=Turmalin-verstärkte Ziegel +Amethyst Bricks.name=Amethyst-verstärkte Ziegel +Agate Bricks.name=Achat-verstärkte Ziegel + +itemGroup.MysticStonesTab=Mystic Stones \ No newline at end of file diff --git a/common/assets/mysticstones/lang/en_US.lang b/common/assets/mysticstones/lang/en_US.lang new file mode 100644 index 0000000..9cff482 --- /dev/null +++ b/common/assets/mysticstones/lang/en_US.lang @@ -0,0 +1,43 @@ + +Purple Planks.name=Purple Planks +Green Planks.name=Green Planks +Black Planks.name=Black Planks +Orange Planks.name=Orange Planks +Red Planks.name=Red Planks +Blue Planks.name=Blue Planks +Yellow Planks.name=Yellow Planks + +Smooth Anorthosite.name=Smooth Anorthosite +Smooth Limestone.name=Smooth Limestone +Smooth Slate.name=Smooth Slate +Smooth Migmatite.name=Smooth Migmatite +Smooth Orthogneiss.name=Smooth Orthogneiss +Smooth Marble.name=Smooth Marble +Smooth Travertine.name=Smooth Travertine + +Anorthosite.name=Anorthosite +Limestone.name=Limestone +Slate.name=Slate +Migmatite.name=Migmatite +Orthogneiss.name=Orthogneiss +Marble.name=Marble +Travertine.name=Travertine + +Anorthosite Bricks.name=Anorthosite Bricks +Limestone Bricks.name=Limestone Bricks +Slate Bricks.name=Slate Bricks +Migmatite Bricks.name=Migmatite Bricks +Orthogneiss Bricks.name=Orthogneiss Bricks +Marble Bricks.name=Marble Bricks +Travertine Bricks.name=Travertine Bricks + +Verdite Bricks.name=Verdite Reinforced Bricks +Mithril Bricks.name=Mithril Reinforced Bricks +Adamantine Bricks.name=Adamantine Reinforced Bricks +Iridium Bricks.name=Iridium Reinfroced Bricks +Topaz Bricks.name=Topaz Reinforced Bricks +Tourmaline Bricks.name=Tourmaline Reinforced Bricks +Amethyst Bricks.name=Amethyst Reinforced Bricks +Agate Bricks.name=Agate Reinforced Bricks + +itemGroup.MysticStonesTab=Mystic Stones \ No newline at end of file diff --git a/common/assets/mysticmods/textures/blocks/Adamantine Bricks.png b/common/assets/mysticstones/textures/blocks/Adamantine Bricks.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Adamantine Bricks.png rename to common/assets/mysticstones/textures/blocks/Adamantine Bricks.png diff --git a/common/assets/mysticmods/textures/blocks/Agate Bricks.png b/common/assets/mysticstones/textures/blocks/Agate Bricks.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Agate Bricks.png rename to common/assets/mysticstones/textures/blocks/Agate Bricks.png diff --git a/common/assets/mysticmods/textures/blocks/Amethyst Bricks.png b/common/assets/mysticstones/textures/blocks/Amethyst Bricks.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Amethyst Bricks.png rename to common/assets/mysticstones/textures/blocks/Amethyst Bricks.png diff --git a/common/assets/mysticmods/textures/blocks/Anorthosite Bricks.png b/common/assets/mysticstones/textures/blocks/Anorthosite Bricks.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Anorthosite Bricks.png rename to common/assets/mysticstones/textures/blocks/Anorthosite Bricks.png diff --git a/common/assets/mysticmods/textures/blocks/Anorthosite.png b/common/assets/mysticstones/textures/blocks/Anorthosite.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Anorthosite.png rename to common/assets/mysticstones/textures/blocks/Anorthosite.png diff --git a/common/assets/mysticmods/textures/blocks/Black Planks.png b/common/assets/mysticstones/textures/blocks/Black Planks.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Black Planks.png rename to common/assets/mysticstones/textures/blocks/Black Planks.png diff --git a/common/assets/mysticmods/textures/blocks/Blue Planks.png b/common/assets/mysticstones/textures/blocks/Blue Planks.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Blue Planks.png rename to common/assets/mysticstones/textures/blocks/Blue Planks.png diff --git a/common/assets/mysticmods/textures/blocks/Green Planks.png b/common/assets/mysticstones/textures/blocks/Green Planks.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Green Planks.png rename to common/assets/mysticstones/textures/blocks/Green Planks.png diff --git a/common/assets/mysticmods/textures/blocks/Iridium Bricks.png b/common/assets/mysticstones/textures/blocks/Iridium Bricks.png similarity index 100% rename from common/assets/mysticmods/textures/blocks/Iridium Bricks.png rename to common/assets/mysticstones/textures/blocks/Iridium Bricks.png diff --git a/common/assets/mysticstones/textures/blocks/Iridium Ore.png b/common/assets/mysticstones/textures/blocks/Iridium Ore.png new file mode 100644 index 0000000000000000000000000000000000000000..440659233ccd92dfc3a404d58003a29355911977 GIT binary patch literal 608 zcmV-m0-ybfP)!!%T~dZ|0@&2nt%B5G~Y2q*)HEJ8?a46)4-<~PswGBnOJ-@IaEo2&cz z!f9S`h}nNZY~e1z2i_u|*2 zPO11wFHc#@5s7T(h9oKzOt1L($}q1vfU@F{`bQNfJNPu6ooK-)?S->spht_B0(`^E z2afYbGhF}EN4aYwqTWKuUFW5yt9JWkPb>^%3ELxNH(V%7E}|82I!V-rh*jMv#c`DK z7>TFDJk0qmPbeAWJAU4Ck}ZyD4i2Li;xgTG^NBOso!yez49Otd8by89>ujdwlxMW$ zVUztD^#SU?_fh_#m6N|@FwkGlGDxX4H}5z>am(K`s9zwue2!?*OC&c*rgEE^)B}UQ z44`*YhhSiqvmFnaMv&=hkk48Wby~t%sg4?Q{E36MHb~#`XfJb6D`|kW zUxTdvJj_gO+&W09br&Bw#VZC$R40sC7rp4vPf0v!-jDM52I+dh+C&}c=PqIu@1Bi| u%-uv?yt8L3C4=27s;{qkKXmL4Ebtd1Pkj@@m~09F0000KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-kiKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0002xNkl@2t~(=8@w%U43H><#amiJtM?=PrRAXH2Z(ll}P6%_v?= z`g`D&xn+Nu&xY^7vwLnv5kDSghA`rc0JWI$QA0n*k;v1Bt~!J@t9{?E wn{mJxy-@K<>@f5DLN@{b24K?D{88XH0FSx(q`U3?82|tP07*qoM6N<$f-!@g Date: Fri, 29 Nov 2013 17:08:45 +0100 Subject: [PATCH 28/59] Cleaned things --- common/MysticOres/Blocks/BlockBase.java | 6 +-- common/MysticOres/Items/EnumTools.java | 1 - common/MysticRuins/Config.java | 2 +- common/MysticRuins/StructureRuin$1.java | 1 - common/MysticRuins/StructureRuin.java | 1 - common/MysticStones/Util/Config.java | 2 +- .../MysticWorld/Entity/EntityChargeAir.java | 8 --- .../MysticWorld/Entity/EntityChargeEarth.java | 6 --- .../Entity/EntityChargeEnergy.java | 6 --- .../MysticWorld/Entity/EntityChargeFire.java | 6 --- .../MysticWorld/Entity/EntityChargeWater.java | 6 --- .../Renderer/RenderStaffPower.java | 2 - common/MysticWorld/Util/TickHandler.java | 12 +---- common/mysticores/worldgen/WorldGenOres.java | 49 ++++++------------- common/mysticruins/ChestFiller.java | 4 +- 15 files changed, 25 insertions(+), 87 deletions(-) diff --git a/common/MysticOres/Blocks/BlockBase.java b/common/MysticOres/Blocks/BlockBase.java index 1160302..77301d9 100644 --- a/common/MysticOres/Blocks/BlockBase.java +++ b/common/MysticOres/Blocks/BlockBase.java @@ -113,11 +113,11 @@ public class BlockBase extends Block { case 12: return Items.Resource.itemID; case 8: - return this.BlackSoulstoneDrops(par1, random, par3); + return BlackSoulstoneDrops(par1, random, par3); case 9: - return this.BlueSoulstoneDrops(par1, random, par3); + return BlueSoulstoneDrops(par1, random, par3); case 10: - return this.RedSoulstoneDrops(par1, random, par3); + return RedSoulstoneDrops(par1, random, par3); default: return blockID; } diff --git a/common/MysticOres/Items/EnumTools.java b/common/MysticOres/Items/EnumTools.java index 7075a00..f2cc33c 100644 --- a/common/MysticOres/Items/EnumTools.java +++ b/common/MysticOres/Items/EnumTools.java @@ -3,7 +3,6 @@ package mysticores.items; import net.minecraft.block.Block; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; import net.minecraftforge.common.EnumHelper; public class EnumTools diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 22a8a50..61c41c1 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -94,7 +94,7 @@ public class Config { } } } else if (i < 1 && txt.contains("[") && txt.contains("]")) { - boolean remove = txt.startsWith("-"); + boolean remove = txt.trim().startsWith("-"); txt = txt.substring(txt.indexOf("["), txt.indexOf("]")); if (txt.split(";").length == 2) { try { diff --git a/common/MysticRuins/StructureRuin$1.java b/common/MysticRuins/StructureRuin$1.java index 9013797..d57b407 100644 --- a/common/MysticRuins/StructureRuin$1.java +++ b/common/MysticRuins/StructureRuin$1.java @@ -25,7 +25,6 @@ public class StructureRuin$1 extends WorldGenerator { } int i2 = random.nextInt(3) + 1; if (i2 == 1) { - int j2 = random.nextInt(8) + 5; int i3 = random.nextInt(8) + 5; int l3 = random.nextInt(8) + 5; int k4 = random.nextInt(4) + 3; diff --git a/common/MysticRuins/StructureRuin.java b/common/MysticRuins/StructureRuin.java index a4da89e..98536c3 100644 --- a/common/MysticRuins/StructureRuin.java +++ b/common/MysticRuins/StructureRuin.java @@ -25,7 +25,6 @@ public class StructureRuin extends WorldGenerator { } int i2 = random.nextInt(3) + 1; if (i2 == 1) { - int j2 = random.nextInt(8) + 5; int i3 = random.nextInt(8) + 5; int l3 = random.nextInt(8) + 5; int k4 = random.nextInt(4) + 3; diff --git a/common/MysticStones/Util/Config.java b/common/MysticStones/Util/Config.java index 2f3a306..7250ba7 100644 --- a/common/MysticStones/Util/Config.java +++ b/common/MysticStones/Util/Config.java @@ -13,7 +13,7 @@ public class Config { public static int stoneBricksID; public static int reinforcedBricksID; public static int[] rare = new int[keys.length]; - public static List allowed = new ArrayList(); + public static List allowed = new ArrayList(); public static void initialize(File file) { Configuration config = new Configuration(file); diff --git a/common/MysticWorld/Entity/EntityChargeAir.java b/common/MysticWorld/Entity/EntityChargeAir.java index 4ee9183..f864baa 100644 --- a/common/MysticWorld/Entity/EntityChargeAir.java +++ b/common/MysticWorld/Entity/EntityChargeAir.java @@ -1,7 +1,6 @@ package mysticworld.entity; import java.util.List; -import java.util.Random; import mysticworld.MysticWorld; import net.minecraft.entity.Entity; @@ -17,12 +16,6 @@ import cpw.mods.fml.relauncher.SideOnly; public class EntityChargeAir extends Entity { public EntityPlayer shootingEntity; - private boolean inGround = false; - private int xTile = -1; - private int yTile = -1; - private int zTile = -1; - private int inTile = 0; - private int ticksAlive; private int ticksInAir = 0; private float particleScale = 1.0f; private double powerHeight = 0.75D; @@ -135,7 +128,6 @@ public class EntityChargeAir extends Entity { } protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { - Random rand = new Random(); if (!this.worldObj.isRemote) { this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "random.explode", 4.0F, (1.0F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F); if (par1MovingObjectPosition.entityHit != null) { diff --git a/common/MysticWorld/Entity/EntityChargeEarth.java b/common/MysticWorld/Entity/EntityChargeEarth.java index 3326ce3..dfa9823 100644 --- a/common/MysticWorld/Entity/EntityChargeEarth.java +++ b/common/MysticWorld/Entity/EntityChargeEarth.java @@ -27,12 +27,6 @@ public class EntityChargeEarth extends Entity { public EntityPlayer entityPlayer; public EntityDragon entityDragon; public EntityWither entityWither; - private boolean inGround = false; - private int xTile = -1; - private int yTile = -1; - private int zTile = -1; - private int inTile = 0; - private int ticksAlive; private int ticksInAir = 0; public EntityChargeEarth(World par1World) { diff --git a/common/MysticWorld/Entity/EntityChargeEnergy.java b/common/MysticWorld/Entity/EntityChargeEnergy.java index 20a5935..3e80441 100644 --- a/common/MysticWorld/Entity/EntityChargeEnergy.java +++ b/common/MysticWorld/Entity/EntityChargeEnergy.java @@ -17,12 +17,6 @@ import cpw.mods.fml.relauncher.SideOnly; public class EntityChargeEnergy extends Entity { public EntityPlayer shootingEntity; - private boolean inGround = false; - private int xTile = -1; - private int yTile = -1; - private int zTile = -1; - private int inTile = 0; - private int ticksAlive; private int ticksInAir = 0; public EntityChargeEnergy(World par1World) { diff --git a/common/MysticWorld/Entity/EntityChargeFire.java b/common/MysticWorld/Entity/EntityChargeFire.java index a58a2d1..8443cb0 100644 --- a/common/MysticWorld/Entity/EntityChargeFire.java +++ b/common/MysticWorld/Entity/EntityChargeFire.java @@ -18,12 +18,6 @@ import cpw.mods.fml.relauncher.SideOnly; public class EntityChargeFire extends Entity { public EntityPlayer shootingEntity; - private boolean inGround = false; - private int xTile = -1; - private int yTile = -1; - private int zTile = -1; - private int inTile = 0; - private int ticksAlive; private int ticksInAir = 0; public EntityChargeFire(World par1World) { diff --git a/common/MysticWorld/Entity/EntityChargeWater.java b/common/MysticWorld/Entity/EntityChargeWater.java index b8b24a0..1168d74 100644 --- a/common/MysticWorld/Entity/EntityChargeWater.java +++ b/common/MysticWorld/Entity/EntityChargeWater.java @@ -17,12 +17,6 @@ import cpw.mods.fml.relauncher.SideOnly; public class EntityChargeWater extends Entity { public EntityPlayer shootingEntity; - private boolean inGround = false; - private int xTile = -1; - private int yTile = -1; - private int zTile = -1; - private int inTile = 0; - private int ticksAlive; private int ticksInAir = 0; public EntityChargeWater(World par1World) { diff --git a/common/MysticWorld/Renderer/RenderStaffPower.java b/common/MysticWorld/Renderer/RenderStaffPower.java index 9411e6c..4e7c33b 100644 --- a/common/MysticWorld/Renderer/RenderStaffPower.java +++ b/common/MysticWorld/Renderer/RenderStaffPower.java @@ -5,7 +5,6 @@ import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.entity.Entity; -import net.minecraft.item.Item; import net.minecraft.util.Icon; import net.minecraft.util.ResourceLocation; @@ -13,7 +12,6 @@ import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; public class RenderStaffPower extends Render { - private Item item; private int meta = 0; public RenderStaffPower(int par1) { diff --git a/common/MysticWorld/Util/TickHandler.java b/common/MysticWorld/Util/TickHandler.java index 48a79b7..6eb38b8 100644 --- a/common/MysticWorld/Util/TickHandler.java +++ b/common/MysticWorld/Util/TickHandler.java @@ -16,13 +16,8 @@ import cpw.mods.fml.common.IScheduledTickHandler; import cpw.mods.fml.common.TickType; public class TickHandler implements IScheduledTickHandler { - private EnumSet ticks; public static final Enchantment[] enchantmentsPick = { Enchantment.efficiency, Enchantment.fortune, Enchantment.silkTouch, Enchantment.unbreaking }; - public TickHandler() { - this.ticks = EnumSet.of(TickType.PLAYER); - } - @Override public String getLabel() { return "mystic world tick"; @@ -35,14 +30,11 @@ public class TickHandler implements IScheduledTickHandler { @Override public void tickEnd(EnumSet type, Object... tickData) { - EntityPlayer player = (EntityPlayer) tickData[0]; - World world = player.worldObj; - InventoryPlayer inventory = player.inventory; } @Override - public EnumSet ticks() { - return this.ticks; + public EnumSet ticks() { + return EnumSet.of(TickType.PLAYER); } @Override diff --git a/common/mysticores/worldgen/WorldGenOres.java b/common/mysticores/worldgen/WorldGenOres.java index 1457293..b2a2695 100644 --- a/common/mysticores/worldgen/WorldGenOres.java +++ b/common/mysticores/worldgen/WorldGenOres.java @@ -22,8 +22,7 @@ public class WorldGenOres implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { - switch (world.provider.dimensionId) { - case 0: + if (!world.provider.isHellWorld) { generateSurface(world, random, chunkX * 16, chunkZ * 16); } } @@ -31,67 +30,51 @@ public class WorldGenOres implements IWorldGenerator { private void generateSurface(World world, Random random, int blockX, int blockZ) { for (int i = 0; i < Rarity.ADAMANTINE; i++) { int Xcoord = blockX + random.nextInt(8); - int Ycoord = random.nextInt(16); + int Ycoord = random.nextInt(13) + 3; int Zcoord = blockZ + random.nextInt(8); - if (Ycoord > 2) { - adamantine.generate(world, random, Xcoord, Ycoord, Zcoord); - } + adamantine.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.AGATE; i++) { int Xcoord = blockX + random.nextInt(32); - int Ycoord = random.nextInt(60); + int Ycoord = random.nextInt(57) + 3; int Zcoord = blockZ + random.nextInt(32); - if (Ycoord > 2) { - agate.generate(world, random, Xcoord, Ycoord, Zcoord); - } + agate.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.AMETHYST; i++) { int Xcoord = blockX + random.nextInt(24); - int Ycoord = random.nextInt(60); + int Ycoord = random.nextInt(57) + 3; int Zcoord = blockZ + random.nextInt(24); - if (Ycoord > 2) { - amethyst.generate(world, random, Xcoord, Ycoord, Zcoord); - } + amethyst.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.IRIDIUM; i++) { int Xcoord = blockX + random.nextInt(16); - int Ycoord = random.nextInt(12); + int Ycoord = random.nextInt(9) + 3; int Zcoord = blockZ + random.nextInt(16); - if (Ycoord > 2) { - iridium.generate(world, random, Xcoord, Ycoord, Zcoord); - } + iridium.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.MITHRIL; i++) { int Xcoord = blockX + random.nextInt(16); - int Ycoord = random.nextInt(64); + int Ycoord = random.nextInt(61) + 3; int Zcoord = blockZ + random.nextInt(16); - if (Ycoord > 2) { - mithril.generate(world, random, Xcoord, Ycoord, Zcoord); - } + mithril.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.TOPAZ; i++) { int Xcoord = blockX + random.nextInt(16); - int Ycoord = random.nextInt(60); + int Ycoord = random.nextInt(57) + 3; int Zcoord = blockZ + random.nextInt(16); - if (Ycoord > 2) { - topaz.generate(world, random, Xcoord, Ycoord, Zcoord); - } + topaz.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.TOURMALINE; i++) { int Xcoord = blockX + random.nextInt(32); - int Ycoord = random.nextInt(60); + int Ycoord = random.nextInt(57) + 3; int Zcoord = blockZ + random.nextInt(32); - if (Ycoord > 2) { - tourmaline.generate(world, random, Xcoord, Ycoord, Zcoord); - } + tourmaline.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.VERDITE; i++) { int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(20) + 80; int Zcoord = blockZ + random.nextInt(16); - if (Ycoord > 2) { - verdite.generate(world, random, Xcoord, Ycoord, Zcoord); - } + verdite.generate(world, random, Xcoord, Ycoord, Zcoord); } } } \ No newline at end of file diff --git a/common/mysticruins/ChestFiller.java b/common/mysticruins/ChestFiller.java index 3849e6e..bc50c73 100644 --- a/common/mysticruins/ChestFiller.java +++ b/common/mysticruins/ChestFiller.java @@ -9,8 +9,8 @@ import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; public class ChestFiller { - public static List rares = new ArrayList(); - public static List valuables = new ArrayList(); + public static List rares = new ArrayList(); + public static List valuables = new ArrayList(); public static void fillWithRares(TileEntity tile) { fill(tile, rares, 2.5D); From e764429dee52d836abec38813a632988f2acb788 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 30 Nov 2013 15:13:32 +0100 Subject: [PATCH 29/59] Prepare for 1.7 --- common/MysticOres/Items/Items.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index 3286896..eff09e7 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -1,5 +1,8 @@ package mysticores.items; +import java.lang.reflect.Field; + +import cpw.mods.fml.common.registry.GameRegistry; import mysticores.MysticOres; import mysticores.lib.ItemID; import net.minecraft.item.Item; @@ -76,5 +79,15 @@ public class Items { ObsidianHoe = new ItemHoe(ItemID.OBSIDIANHOE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe").setTextureName("mysticores:ObsidianHoe") .setCreativeTab(MysticOres.MysticOresTab); Satchel = new ItemSatchel(ItemID.SATCHEL).setUnlocalizedName("Satchel"); + try { + for(Field f:Items.class.getFields()){ + Item it = (Item) f.get(null); + GameRegistry.registerItem(it,it.getUnlocalizedName()); + } + } catch (IllegalArgumentException e) { + e.printStackTrace(); + } catch (IllegalAccessException e) { + e.printStackTrace(); + } } } From cc178e1a3bdb0db8c8c6b1f289150ba7a3923230 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 30 Dec 2013 00:26:58 +0100 Subject: [PATCH 30/59] Moved proxy --- common/MysticMods_common.iml | 21 +++++++++++++++++++ common/MysticWorld/Client/ClientProxy.java | 2 +- common/MysticWorld/MysticWorld.java | 1 - .../Util => mysticworld}/CommonProxy.java | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 common/MysticMods_common.iml rename common/{MysticWorld/Util => mysticworld}/CommonProxy.java (96%) diff --git a/common/MysticMods_common.iml b/common/MysticMods_common.iml new file mode 100644 index 0000000..4b56e6c --- /dev/null +++ b/common/MysticMods_common.iml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/common/MysticWorld/Client/ClientProxy.java b/common/MysticWorld/Client/ClientProxy.java index 7221d40..4affb96 100644 --- a/common/MysticWorld/Client/ClientProxy.java +++ b/common/MysticWorld/Client/ClientProxy.java @@ -1,5 +1,6 @@ package mysticworld.client; +import mysticworld.CommonProxy; import mysticworld.blocks.BlockHandler; import mysticworld.blocks.BlockPillarInsert; import mysticworld.client.fx.LightCubeFX; @@ -13,7 +14,6 @@ import mysticworld.entity.EntityChargeWater; import mysticworld.items.ItemHandler; import mysticworld.renderer.*; import mysticworld.tiles.TileEntityPillarInsert; -import mysticworld.util.CommonProxy; import net.minecraft.client.Minecraft; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; diff --git a/common/MysticWorld/MysticWorld.java b/common/MysticWorld/MysticWorld.java index c08abab..9b68fb0 100644 --- a/common/MysticWorld/MysticWorld.java +++ b/common/MysticWorld/MysticWorld.java @@ -6,7 +6,6 @@ import mysticworld.entity.EntityHandler; import mysticworld.items.ItemHandler; import mysticworld.lib.Booleans; import mysticworld.tiles.TileEntityHandler; -import mysticworld.util.CommonProxy; import mysticworld.util.Config; import mysticworld.util.RecipeHandler; import mysticworld.util.Reference; diff --git a/common/MysticWorld/Util/CommonProxy.java b/common/mysticworld/CommonProxy.java similarity index 96% rename from common/MysticWorld/Util/CommonProxy.java rename to common/mysticworld/CommonProxy.java index 9ce9558..21fc9e8 100644 --- a/common/MysticWorld/Util/CommonProxy.java +++ b/common/mysticworld/CommonProxy.java @@ -1,4 +1,4 @@ -package mysticworld.util; +package mysticworld; import net.minecraft.world.World; From 29228e18feb8e60f877744aff2bde8b94328865f Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 22 Feb 2014 22:25:26 +0100 Subject: [PATCH 31/59] Updated for 1.7.2 --- .gitignore | 227 +-- common/MysticMods.eml | 14 + common/MysticMods_common.iml | 39 +- common/MysticOres/Blocks/BlockBase.java | 102 +- common/MysticOres/Blocks/BlockHandler.java | 27 +- common/MysticOres/Blocks/ItemBase.java | 34 +- common/MysticOres/Items/EnumTools.java | 29 +- common/MysticOres/Items/ItemResource.java | 18 +- common/MysticOres/Items/ItemSatchel.java | 6 +- common/MysticOres/Items/Items.java | 67 +- common/MysticOres/Lib/ItemID.java | 12 - common/MysticOres/MysticOres.java | 40 +- .../MysticOres/Util/ConfigurationManager.java | 39 +- common/MysticOres/Util/RecipeManager.java | 71 +- .../MysticOres/Worldgen/GeneratorManager.java | 10 +- .../MysticOres/Worldgen/NetherGenHelper.java | 11 +- .../Worldgen/NetherGenMineable.java | 5 +- common/MysticRuins/Config.java | 24 +- common/MysticRuins/MysticRuins.java | 16 +- .../MysticRuins/StructureMysticDungeon.java | 1255 +++++++++-------- common/MysticRuins/StructureRuin$1.java | 451 +++--- common/MysticRuins/StructureRuin.java | 161 +-- common/MysticStones/Blocks/BlockPlanks.java | 23 +- .../MysticStones/Blocks/BlockReinforced.java | 26 +- .../MysticStones/Blocks/BlockStoneBricks.java | 23 +- common/MysticStones/Blocks/BlockStones.java | 28 +- common/MysticStones/Blocks/ItemPlanks.java | 11 - .../MysticStones/Blocks/ItemReinforced.java | 13 +- .../MysticStones/Blocks/ItemStoneBricks.java | 12 - common/MysticStones/Blocks/ItemStones.java | 12 - common/MysticStones/MysticStones.java | 71 +- common/MysticStones/Util/Config.java | 13 +- common/MysticStones/Util/RecipeHandler.java | 2 +- common/MysticWorld/Biome/BiomeGenBasic.java | 13 +- common/MysticWorld/Biome/BiomeGenGlacier.java | 4 +- common/MysticWorld/Biome/BiomeGenJungle.java | 10 +- common/MysticWorld/Biome/BiomeGenTundra.java | 4 +- common/MysticWorld/Biome/BiomeHandler.java | 42 +- common/MysticWorld/Blocks/BlockHandler.java | 42 +- .../MysticWorld/Blocks/BlockImbuedStone.java | 62 +- common/MysticWorld/Blocks/BlockLightCube.java | 36 +- common/MysticWorld/Blocks/BlockPillar.java | 27 +- .../MysticWorld/Blocks/BlockPillarInsert.java | 44 +- .../Blocks/BlockPillarPlatform.java | 34 +- .../MysticWorld/Blocks/BlockPillarTower.java | 28 +- common/MysticWorld/Blocks/BlockPlatform.java | 43 +- common/MysticWorld/Blocks/ItemBush.java | 38 - .../MysticWorld/Blocks/ItemImbuedStone.java | 43 - common/MysticWorld/Client/ClientProxy.java | 28 +- .../MysticWorld/Entity/EntityChargeAir.java | 2 +- .../MysticWorld/Entity/EntityChargeEarth.java | 22 +- .../Entity/EntityChargeEnergy.java | 2 +- .../MysticWorld/Entity/EntityChargeFire.java | 5 +- .../MysticWorld/Entity/EntityChargeWater.java | 2 +- common/MysticWorld/Entity/EntityHandler.java | 21 +- common/MysticWorld/Items/EnumArmor.java | 12 +- .../Items/ItemArmorAdamantine.java | 11 +- .../MysticWorld/Items/ItemArmorIridium.java | 29 +- .../MysticWorld/Items/ItemArmorMithril.java | 11 +- .../MysticWorld/Items/ItemArmorVerdite.java | 11 +- common/MysticWorld/Items/ItemBushFruit.java | 41 +- common/MysticWorld/Items/ItemImbuedShard.java | 18 +- common/MysticWorld/Items/ItemOrb.java | 8 +- common/MysticWorld/Items/ItemOrbAir.java | 4 +- common/MysticWorld/Items/ItemOrbEarth.java | 126 +- common/MysticWorld/Items/ItemOrbEnergy.java | 12 +- common/MysticWorld/Items/ItemOrbFire.java | 7 +- common/MysticWorld/Items/ItemOrbWater.java | 16 +- common/MysticWorld/Items/ItemStaff.java | 8 +- common/MysticWorld/Items/ItemStaffAir.java | 8 +- common/MysticWorld/Items/ItemStaffEarth.java | 135 +- common/MysticWorld/Items/ItemStaffEnegy.java | 15 +- common/MysticWorld/Items/ItemStaffFire.java | 24 +- common/MysticWorld/Items/ItemStaffParts.java | 18 +- common/MysticWorld/Items/ItemStaffPower.java | 16 +- common/MysticWorld/Items/ItemStaffWater.java | 22 +- common/MysticWorld/Items/ItemVoidShard.java | 8 +- common/MysticWorld/Lib/BlockIds.java | 21 - common/MysticWorld/Lib/EntityIds.java | 14 - common/MysticWorld/Lib/ItemIds.java | 35 - common/MysticWorld/Lib/Strings.java | 3 - common/MysticWorld/Model/ModelOrb.java | 4 +- .../MysticWorld/Model/ModelPillarInsert.java | 5 - common/MysticWorld/Model/ModelStaff.java | 5 - common/MysticWorld/MysticWorld.java | 47 +- .../Renderer/RenderStaffPower.java | 4 +- common/MysticWorld/Util/Config.java | 46 +- common/MysticWorld/Util/RecipeHandler.java | 22 +- common/MysticWorld/Util/TickHandler.java | 50 +- common/MysticWorld/WorldGen/BushesGen.java | 6 +- common/MysticWorld/WorldGen/StonesGen.java | 6 +- .../MysticWorld/WorldGen/WorldGenStones.java | 30 - common/assets/mysticworld/lang/de_DE.lang | 10 +- common/assets/mysticworld/lang/en_US.lang | 10 +- common/mysticores/Items/ItemHatchet.java | 9 + common/mysticores/Items/ItemPick.java | 9 + common/mysticores/worldgen/WorldGenOres.java | 18 +- common/mysticstones/blocks/BlockMulti.java | 20 +- .../mysticstones/blocks/ItemBlockMulti.java | 33 +- .../worldgen/WorldGeneratorStones.java | 16 +- .../Blocks/BlockBushes.java} | 48 +- common/mysticworld/Blocks/ItemBlockMulti.java | 22 + .../WorldGen/WorldGenerators.java} | 20 +- common/mysticworld/items/ItemHandler.java | 64 +- .../tiles/TileEntityPillarInsert.java | 22 +- 105 files changed, 1926 insertions(+), 2677 deletions(-) create mode 100644 common/MysticMods.eml delete mode 100644 common/MysticOres/Lib/ItemID.java delete mode 100644 common/MysticStones/Blocks/ItemPlanks.java delete mode 100644 common/MysticStones/Blocks/ItemStoneBricks.java delete mode 100644 common/MysticStones/Blocks/ItemStones.java delete mode 100644 common/MysticWorld/Blocks/ItemBush.java delete mode 100644 common/MysticWorld/Blocks/ItemImbuedStone.java delete mode 100644 common/MysticWorld/Lib/BlockIds.java delete mode 100644 common/MysticWorld/Lib/EntityIds.java delete mode 100644 common/MysticWorld/Lib/ItemIds.java delete mode 100644 common/MysticWorld/WorldGen/WorldGenStones.java create mode 100644 common/mysticores/Items/ItemHatchet.java create mode 100644 common/mysticores/Items/ItemPick.java rename common/{MysticWorld/Blocks/BlockBush.java => mysticworld/Blocks/BlockBushes.java} (59%) create mode 100644 common/mysticworld/Blocks/ItemBlockMulti.java rename common/{MysticWorld/WorldGen/WorldGenBushes.java => mysticworld/WorldGen/WorldGenerators.java} (50%) diff --git a/.gitignore b/.gitignore index da50a65..d06ac50 100644 --- a/.gitignore +++ b/.gitignore @@ -1,220 +1,9 @@ -################# -## Eclipse -################# +/* -*.pydevproject -.project -.metadata -common/bin/ -tmp/ -*.tmp -*.bak -*.swp -*~.nib -local.properties -.classpath -.settings/ -.loadpath - -# External tool builders -.externalToolBuilders/ - -# Locally stored "Eclipse launch configurations" -*.launch - -# CDT-specific -.cproject - -# PDT-specific -.buildpath - - -################# -## Visual Studio -################# - -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates - -# Build results - -[Dd]ebug/ -[Rr]elease/ -x64/ -build/ -[Bb]in/ -[Oo]bj/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.log -*.scc - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.Publish.xml -*.pubxml - -# NuGet Packages Directory -## TODO: If you have NuGet Package Restore enabled, uncomment the next line -#packages/ - -# Windows Azure Build Output -csx -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.[Pp]ublish.xml -*.pfx -*.publishsettings - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -App_Data/*.mdf -App_Data/*.ldf - -############# -## Windows detritus -############# - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Mac crap -.DS_Store - - -############# -## Python -############# - -*.py[co] - -# Packages -*.egg -*.egg-info -dist/ -build/ -eggs/ -parts/ -var/ -sdist/ -develop-eggs/ -.installed.cfg - -# Installer logs -pip-log.txt - -# Unit test / coverage reports -.coverage -.tox - -#Translations -*.mo - -#Mr Developer -.mr.developer.cfg - -/mcp/* -/eclipse/* -/api/* -/releases/* +!/common/assets/ +!/common/mysticores/ +!/common/mysticruins/ +!/common/mysticstones/ +!/common/mysticworld/ +!/common/mcmod.info +!/common/build.gradle \ No newline at end of file diff --git a/common/MysticMods.eml b/common/MysticMods.eml new file mode 100644 index 0000000..70f162e --- /dev/null +++ b/common/MysticMods.eml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/common/MysticMods_common.iml b/common/MysticMods_common.iml index 4b56e6c..8627346 100644 --- a/common/MysticMods_common.iml +++ b/common/MysticMods_common.iml @@ -8,14 +8,49 @@ - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/common/MysticOres/Blocks/BlockBase.java b/common/MysticOres/Blocks/BlockBase.java index 77301d9..86fd526 100644 --- a/common/MysticOres/Blocks/BlockBase.java +++ b/common/MysticOres/Blocks/BlockBase.java @@ -7,25 +7,30 @@ import mysticores.MysticOres; import mysticores.items.Items; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; +import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -import net.minecraftforge.common.ForgeDirection; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import net.minecraftforge.common.util.ForgeDirection; public class BlockBase extends Block { - Icon[] textures; + IIcon[] textures; - public BlockBase(int ID) { - super(ID, Material.rock); - setCreativeTab(MysticOres.MysticOresTab); + public BlockBase() { + super(Material.rock); + setCreativeTab(MysticOres.MysticOresTab); + setHarvestLevel("pickaxe", 2); + setHarvestLevel("pickaxe", 3, 0); + setHarvestLevel("pickaxe", 3, 2); + setHarvestLevel("pickaxe", 1, 6); } @Override @@ -74,7 +79,7 @@ public class BlockBase extends Block { @Override @SideOnly(Side.CLIENT) - public Icon getIcon(int side, int meta) { + public IIcon getIcon(int side, int meta) { return textures[meta]; } @@ -95,14 +100,14 @@ public class BlockBase extends Block { @Override @SideOnly(Side.CLIENT) - public void getSubBlocks(int i, CreativeTabs tab, List list) { - for (int meta = 0; meta < ItemBase.BLOCK_NAMES.length; meta++) { + public void getSubBlocks(Item i, CreativeTabs tab, List list) { + for (int meta = 0; meta < BlockHandler.BLOCK_NAMES.size(); meta++) { list.add(new ItemStack(i, 1, meta)); } } @Override - public int idDropped(int par1, Random random, int par3) { + public Item getItemDropped(int par1, Random random, int par3) { switch (par1) { case 1: case 2: @@ -111,7 +116,7 @@ public class BlockBase extends Block { case 7: case 11: case 12: - return Items.Resource.itemID; + return Items.Resource; case 8: return BlackSoulstoneDrops(par1, random, par3); case 9: @@ -119,17 +124,12 @@ public class BlockBase extends Block { case 10: return RedSoulstoneDrops(par1, random, par3); default: - return blockID; + return super.getItemDropped(par1, random, par3); } } @Override - public int idPicked(World world, int x, int y, int z) { - return this.blockID; - } - - @Override - public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side) { + public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side) { int meta = world.getBlockMetadata(x, y, z); if (meta == 12) return false; @@ -138,9 +138,9 @@ public class BlockBase extends Block { } @Override - public boolean isOpaqueCube() { - return false; - } + public boolean isOpaqueCube(){ + return false; + } @Override public int quantityDropped(int meta, int fortune, Random random) { @@ -164,79 +164,73 @@ public class BlockBase extends Block { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister register) { - textures = new Icon[16]; - for (int i = 0; i < ItemBase.BLOCK_NAMES.length; i++) { - textures[i] = register.registerIcon("mysticores:" + ItemBase.BLOCK_NAMES[i]); + public void registerBlockIcons(IIconRegister register) { + textures = new IIcon[16]; + for (int i = 0; i < BlockHandler.BLOCK_NAMES.size(); i++) { + textures[i] = register.registerIcon("mysticores:" + BlockHandler.BLOCK_NAMES.get(i)); } } @Override - public boolean renderAsNormalBlock() { - return false; - } + public boolean renderAsNormalBlock(){ + return false; + } @Override @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int par) { int meta = world.getBlockMetadata(x, y, z); - int blockID = world.getBlockId(x, y, z); - if (meta == 12 && blockID == this.blockID) + Block blockID = world.getBlock(x, y, z); + if (meta == 12 && blockID == this) return false; else return true; } - @Override - protected boolean canSilkHarvest() { - return true; - } - - public static int BlackSoulstoneDrops(int par1, Random random, int par3) { + public static Item BlackSoulstoneDrops(int par1, Random random, int par3) { int rand = random.nextInt(2); switch (rand) { case 0: - return Item.coal.itemID; + return net.minecraft.init.Items.coal; case 1: - return Item.gunpowder.itemID; + return net.minecraft.init.Items.gunpowder; default: - return Item.sugar.itemID; + return net.minecraft.init.Items.sugar; } } - public static int BlueSoulstoneDrops(int par1, Random random, int par3) { + public static Item BlueSoulstoneDrops(int par1, Random random, int par3) { int rand = random.nextInt(5); switch (rand) { case 0: - return Item.diamond.itemID; + return net.minecraft.init.Items.diamond; case 1: - return Block.obsidian.blockID; + return Item.getItemFromBlock(Blocks.obsidian); case 2: - return Item.gunpowder.itemID; + return net.minecraft.init.Items.gunpowder; case 3: - return Item.glowstone.itemID; + return net.minecraft.init.Items.glowstone_dust; case 4: - return Item.blazeRod.itemID; + return net.minecraft.init.Items.blaze_rod; case 5: - return Item.emerald.itemID; default: - return Item.emerald.itemID; + return net.minecraft.init.Items.emerald; } } - public static int RedSoulstoneDrops(int par1, Random random, int par3) { + public static Item RedSoulstoneDrops(int par1, Random random, int par3) { int rand = random.nextInt(4); switch (rand) { case 0: - return Item.glowstone.itemID; + return net.minecraft.init.Items.glowstone_dust; case 1: - return Item.gunpowder.itemID; + return net.minecraft.init.Items.gunpowder; case 2: - return Item.redstone.itemID; + return net.minecraft.init.Items.redstone; case 3: - return Block.obsidian.blockID; + return Item.getItemFromBlock(Blocks.obsidian); default: - return Item.blazePowder.itemID; + return net.minecraft.init.Items.blaze_powder; } } } \ No newline at end of file diff --git a/common/MysticOres/Blocks/BlockHandler.java b/common/MysticOres/Blocks/BlockHandler.java index 3cde9ab..c2d29f0 100644 --- a/common/MysticOres/Blocks/BlockHandler.java +++ b/common/MysticOres/Blocks/BlockHandler.java @@ -1,31 +1,18 @@ package mysticores.blocks; import net.minecraft.block.Block; -import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.registry.GameRegistry; +import java.util.ArrayList; +import java.util.Arrays; + public class BlockHandler { + public static ArrayList BLOCK_NAMES = new ArrayList(Arrays.asList("Adamantine Ore", "Amethyst Ore", "Iridium Ore", "Mithril Ore", "Tourmaline Ore", "Topaz Ore", "Verdite Ore", "Bloodstone", "Black Soulstone", + "Blue Soulstone", "Red Soulstone", "Agate Ore", "Tempered Glass")); public static Block BlockBase; - public static int BASEID = 540; public static void initialize() { - BlockBase = new BlockBase(BASEID).setStepSound(Block.soundStoneFootstep); - GameRegistry.registerBlock(BlockBase, ItemBase.class, "Base Blocks"); - setBlockHarvestLevels(); - } - - private static void setBlockHarvestLevels() { - MinecraftForge.setBlockHarvestLevel(BlockBase, 0, "pickaxe", 3); - MinecraftForge.setBlockHarvestLevel(BlockBase, 1, "pickaxe", 2); - MinecraftForge.setBlockHarvestLevel(BlockBase, 2, "pickaxe", 3); - MinecraftForge.setBlockHarvestLevel(BlockBase, 3, "pickaxe", 2); - MinecraftForge.setBlockHarvestLevel(BlockBase, 4, "pickaxe", 2); - MinecraftForge.setBlockHarvestLevel(BlockBase, 5, "pickaxe", 2); - MinecraftForge.setBlockHarvestLevel(BlockBase, 6, "pickaxe", 1); - MinecraftForge.setBlockHarvestLevel(BlockBase, 7, "pickaxe", 2); - MinecraftForge.setBlockHarvestLevel(BlockBase, 8, "pickaxe", 2); - MinecraftForge.setBlockHarvestLevel(BlockBase, 9, "pickaxe", 2); - MinecraftForge.setBlockHarvestLevel(BlockBase, 10, "pickaxe", 2); - MinecraftForge.setBlockHarvestLevel(BlockBase, 11, "pickaxe", 2); + BlockBase = new BlockBase().setStepSound(Block.soundTypeStone); + GameRegistry.registerBlock(BlockBase, ItemBase.class, "Base Blocks", "mysticores", BLOCK_NAMES); } } diff --git a/common/MysticOres/Blocks/ItemBase.java b/common/MysticOres/Blocks/ItemBase.java index f512101..6d11b8d 100644 --- a/common/MysticOres/Blocks/ItemBase.java +++ b/common/MysticOres/Blocks/ItemBase.java @@ -1,36 +1,22 @@ package mysticores.blocks; -import net.minecraft.item.ItemBlock; +import net.minecraft.block.Block; +import net.minecraft.item.ItemBlockWithMetadata; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; import net.minecraft.util.MathHelper; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; -public class ItemBase extends ItemBlock { - public static String[] BLOCK_NAMES = new String[] { "Adamantine Ore", "Amethyst Ore", "Iridium Ore", "Mithril Ore", "Tourmaline Ore", "Topaz Ore", "Verdite Ore", "Bloodstone", "Black Soulstone", - "Blue Soulstone", "Red Soulstone", "Agate Ore", "Tempered Glass" }; +import java.util.ArrayList; - public ItemBase(int par1) { - super(par1); - setMaxDamage(0); - setHasSubtypes(true); - } - - @Override - @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int par1) { - return BlockHandler.BlockBase.getIcon(2, par1); - } - - @Override - public int getMetadata(int par1) { - return par1; +public class ItemBase extends ItemBlockWithMetadata { + public final ArrayList names; + public ItemBase(Block block, ArrayList names) { + super(block, block); + this.names = names; } @Override public String getUnlocalizedName(ItemStack itemStack) { - int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, BLOCK_NAMES.length); - return BLOCK_NAMES[meta]; + int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, names.size()); + return names.get(meta); } } diff --git a/common/MysticOres/Items/EnumTools.java b/common/MysticOres/Items/EnumTools.java index f2cc33c..5388c45 100644 --- a/common/MysticOres/Items/EnumTools.java +++ b/common/MysticOres/Items/EnumTools.java @@ -1,23 +1,22 @@ package mysticores.items; -import net.minecraft.block.Block; -import net.minecraft.item.EnumToolMaterial; +import net.minecraft.init.Blocks; import net.minecraft.item.Item; -import net.minecraftforge.common.EnumHelper; +import net.minecraftforge.common.util.EnumHelper; public class EnumTools { - static EnumToolMaterial verditeToolMaterial = EnumHelper.addToolMaterial("Verdite", 1, 262, 5.0F, 1, 5); - static EnumToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("Mithril", 2, 500, 7.0F, 2, 9); - static EnumToolMaterial adamantineToolMaterial = EnumHelper.addToolMaterial("Adamantine", 3, 3000, 10.0F, 5, 13); - static EnumToolMaterial iridiumToolMaterial = EnumHelper.addToolMaterial("Iridium", 3, 4000, 12.0F, 7, 15); - static EnumToolMaterial obsidianToolMaterial = EnumHelper.addToolMaterial("Obsidian", 2, 100, 4.0F, 6, 11); - static EnumToolMaterial bloodstoneToolMaterial = EnumHelper.addToolMaterial("Bloodstone", 3, 200, 16.0F, 8, 12); + static Item.ToolMaterial verditeToolMaterial = EnumHelper.addToolMaterial("Verdite", 1, 262, 5.0F, 1, 5); + static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("Mithril", 2, 500, 7.0F, 2, 9); + static Item.ToolMaterial adamantineToolMaterial = EnumHelper.addToolMaterial("Adamantine", 3, 3000, 10.0F, 5, 13); + static Item.ToolMaterial iridiumToolMaterial = EnumHelper.addToolMaterial("Iridium", 3, 4000, 12.0F, 7, 15); + static Item.ToolMaterial obsidianToolMaterial = EnumHelper.addToolMaterial("Obsidian", 2, 100, 4.0F, 6, 11); + static Item.ToolMaterial bloodstoneToolMaterial = EnumHelper.addToolMaterial("Bloodstone", 3, 200, 16.0F, 8, 12); - static { verditeToolMaterial.customCraftingMaterial = Item.itemsList[Items.Resource.itemID]; } - static { mithrilToolMaterial.customCraftingMaterial = Item.itemsList[Items.Resource.itemID]; } - static { adamantineToolMaterial.customCraftingMaterial = Item.itemsList[Items.Resource.itemID]; } - static { iridiumToolMaterial.customCraftingMaterial = Item.itemsList[Items.Resource.itemID]; } - static { obsidianToolMaterial.customCraftingMaterial = Item.itemsList[Block.obsidian.blockID]; } - static { bloodstoneToolMaterial.customCraftingMaterial = Item.itemsList[Items.Resource.itemID]; } + static { verditeToolMaterial.customCraftingMaterial = Items.Resource; } + static { mithrilToolMaterial.customCraftingMaterial = Items.Resource; } + static { adamantineToolMaterial.customCraftingMaterial = Items.Resource; } + static { iridiumToolMaterial.customCraftingMaterial = Items.Resource; } + static { obsidianToolMaterial.customCraftingMaterial = Item.getItemFromBlock(Blocks.obsidian); } + static { bloodstoneToolMaterial.customCraftingMaterial = Items.Resource; } } diff --git a/common/MysticOres/Items/ItemResource.java b/common/MysticOres/Items/ItemResource.java index b19eb4f..431d94a 100644 --- a/common/MysticOres/Items/ItemResource.java +++ b/common/MysticOres/Items/ItemResource.java @@ -3,36 +3,36 @@ package mysticores.items; import java.util.List; import mysticores.MysticOres; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemResource extends Item { - private Icon[] icons; + private IIcon[] icons; private static final String[] RESOURCE_TYPES = new String[] { "Verdite Ingot", "Mithril Ingot", "Adamantine Ingot", "Iridium Ingot", "Iridium Nugget", "Tourmaline Gem", "Agate Gem", "Topaz Gem", "Amethyst Gem", "Mystic Powder", "Bloodstone Shard", "Glass Shard", "Obsidian Shard", "Obsidian Rod" }; - public ItemResource(int id) { - super(id); + public ItemResource() { + super(); this.setHasSubtypes(true); this.setCreativeTab(MysticOres.MysticOresTab); } @Override @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int meta) { + public IIcon getIconFromDamage(int meta) { int j = MathHelper.clamp_int(meta, 0, RESOURCE_TYPES.length); return icons[j]; } @Override @SideOnly(Side.CLIENT) - public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) { + public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List) { for (int var4 = 0; var4 < RESOURCE_TYPES.length; var4++) par3List.add(new ItemStack(par1, 1, var4)); } @@ -45,8 +45,8 @@ public class ItemResource extends Item { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - icons = new Icon[RESOURCE_TYPES.length]; + public void registerIcons(IIconRegister iconRegister) { + icons = new IIcon[RESOURCE_TYPES.length]; for (int i = 0; i < RESOURCE_TYPES.length; ++i) icons[i] = iconRegister.registerIcon("mysticores:" + RESOURCE_TYPES[i]); } diff --git a/common/MysticOres/Items/ItemSatchel.java b/common/MysticOres/Items/ItemSatchel.java index 754b242..a68d3c8 100644 --- a/common/MysticOres/Items/ItemSatchel.java +++ b/common/MysticOres/Items/ItemSatchel.java @@ -9,15 +9,15 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemSatchel extends Item { - public ItemSatchel(int par1) { - super(par1); + public ItemSatchel() { + super(); setCreativeTab(MysticOres.MysticOresTab); setMaxStackSize(1); } @Override @SideOnly(Side.CLIENT) - public boolean hasEffect(ItemStack par1ItemStack) { + public boolean hasEffect(ItemStack par1ItemStack, int i) { return true; } diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index eff09e7..e4b069c 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -4,11 +4,8 @@ import java.lang.reflect.Field; import cpw.mods.fml.common.registry.GameRegistry; import mysticores.MysticOres; -import mysticores.lib.ItemID; import net.minecraft.item.Item; -import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemHoe; -import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemSpade; import net.minecraft.item.ItemSword; @@ -23,62 +20,62 @@ public class Items { public static Item Satchel; public static void initialize() { - Resource = new ItemResource(ItemID.RESOURCES); - VerditeSword = new ItemSword(ItemID.VERDITESWORD, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticores:VerditeSword") + Resource = new ItemResource(); + VerditeSword = new ItemSword(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticores:VerditeSword") .setCreativeTab(MysticOres.MysticOresTab); - VerditePickaxe = new ItemPickaxe(ItemID.VERDITEPICKAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticores:VerditePickaxe") + VerditePickaxe = new ItemPick(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticores:VerditePickaxe") .setCreativeTab(MysticOres.MysticOresTab); - VerditeShovel = new ItemSpade(ItemID.VERDITESHOVEL, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeShovel").setTextureName("mysticores:VerditeShovel") + VerditeShovel = new ItemSpade(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeShovel").setTextureName("mysticores:VerditeShovel") .setCreativeTab(MysticOres.MysticOresTab); - VerditeAxe = new ItemAxe(ItemID.VERDITEAXE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeAxe").setTextureName("mysticores:VerditeAxe").setCreativeTab(MysticOres.MysticOresTab); - VerditeHoe = new ItemHoe(ItemID.VERDITEHOE, EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeHoe").setTextureName("mysticores:VerditeHoe").setCreativeTab(MysticOres.MysticOresTab); - MithrilSword = new ItemSword(ItemID.MITHRILSWORD, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilSword").setTextureName("mysticores:MithrilSword") + VerditeAxe = new ItemHatchet(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeAxe").setTextureName("mysticores:VerditeAxe").setCreativeTab(MysticOres.MysticOresTab); + VerditeHoe = new ItemHoe(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeHoe").setTextureName("mysticores:VerditeHoe").setCreativeTab(MysticOres.MysticOresTab); + MithrilSword = new ItemSword(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilSword").setTextureName("mysticores:MithrilSword") .setCreativeTab(MysticOres.MysticOresTab); - MithrilPickaxe = new ItemPickaxe(ItemID.MITHRILPICKAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilPickaxe").setTextureName("mysticores:MithrilPickaxe") + MithrilPickaxe = new ItemPick(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilPickaxe").setTextureName("mysticores:MithrilPickaxe") .setCreativeTab(MysticOres.MysticOresTab); - MithrilShovel = new ItemSpade(ItemID.MITHRILSHOVEL, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilShovel").setTextureName("mysticores:MithrilShovel") + MithrilShovel = new ItemSpade(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilShovel").setTextureName("mysticores:MithrilShovel") .setCreativeTab(MysticOres.MysticOresTab); - MithrilAxe = new ItemAxe(ItemID.MITHRILAXE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilAxe").setTextureName("mysticores:MithrilAxe").setCreativeTab(MysticOres.MysticOresTab); - MithrilHoe = new ItemHoe(ItemID.MITHRILHOE, EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilHoe").setTextureName("mysticores:MithrilHoe").setCreativeTab(MysticOres.MysticOresTab); - AdamantineSword = new ItemSword(ItemID.ADAMANTINESWORD, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineSword").setTextureName("mysticores:AdamantineSword") + MithrilAxe = new ItemHatchet(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilAxe").setTextureName("mysticores:MithrilAxe").setCreativeTab(MysticOres.MysticOresTab); + MithrilHoe = new ItemHoe(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilHoe").setTextureName("mysticores:MithrilHoe").setCreativeTab(MysticOres.MysticOresTab); + AdamantineSword = new ItemSword(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineSword").setTextureName("mysticores:AdamantineSword") .setCreativeTab(MysticOres.MysticOresTab); - AdamantinePickaxe = new ItemPickaxe(ItemID.ADAMANTINEPICKAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantinePickaxe").setTextureName("mysticores:AdamantinePickaxe") + AdamantinePickaxe = new ItemPick(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantinePickaxe").setTextureName("mysticores:AdamantinePickaxe") .setCreativeTab(MysticOres.MysticOresTab); - AdamantineShovel = new ItemSpade(ItemID.ADAMANTINESHOVEL, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineShovel").setTextureName("mysticores:AdamantineShovel") + AdamantineShovel = new ItemSpade(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineShovel").setTextureName("mysticores:AdamantineShovel") .setCreativeTab(MysticOres.MysticOresTab); - AdamantineAxe = new ItemAxe(ItemID.ADAMANTINEAXE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineAxe").setTextureName("mysticores:AdamantineAxe") + AdamantineAxe = new ItemHatchet(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineAxe").setTextureName("mysticores:AdamantineAxe") .setCreativeTab(MysticOres.MysticOresTab); - AdamantineHoe = new ItemHoe(ItemID.ADAMANTINEHOE, EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineHoe").setTextureName("mysticores:AdamantineHoe") + AdamantineHoe = new ItemHoe(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineHoe").setTextureName("mysticores:AdamantineHoe") .setCreativeTab(MysticOres.MysticOresTab); - IridiumSword = new ItemSword(ItemID.IRIDIUMSWORD, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumSword").setTextureName("mysticores:IridiumSword") + IridiumSword = new ItemSword(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumSword").setTextureName("mysticores:IridiumSword") .setCreativeTab(MysticOres.MysticOresTab); - IridiumPickaxe = new ItemPickaxe(ItemID.IRIDIUMPICKAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumPickaxe").setTextureName("mysticores:IridiumPickaxe") + IridiumPickaxe = new ItemPick(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumPickaxe").setTextureName("mysticores:IridiumPickaxe") .setCreativeTab(MysticOres.MysticOresTab); - IridiumShovel = new ItemSpade(ItemID.IRIDIUMSHOVEL, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumShovel").setTextureName("mysticores:IridiumShovel") + IridiumShovel = new ItemSpade(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumShovel").setTextureName("mysticores:IridiumShovel") .setCreativeTab(MysticOres.MysticOresTab); - IridiumAxe = new ItemAxe(ItemID.IRIDIUMAXE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumAxe").setTextureName("mysticores:IridiumAxe").setCreativeTab(MysticOres.MysticOresTab); - IridiumHoe = new ItemHoe(ItemID.IRIDIUMHOE, EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumHoe").setTextureName("mysticores:IridiumHoe").setCreativeTab(MysticOres.MysticOresTab); - BloodstoneSword = new ItemSword(ItemID.BLOODSTONESWORD, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneSword").setTextureName("mysticores:BloodstoneSword") + IridiumAxe = new ItemHatchet(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumAxe").setTextureName("mysticores:IridiumAxe").setCreativeTab(MysticOres.MysticOresTab); + IridiumHoe = new ItemHoe(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumHoe").setTextureName("mysticores:IridiumHoe").setCreativeTab(MysticOres.MysticOresTab); + BloodstoneSword = new ItemSword(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneSword").setTextureName("mysticores:BloodstoneSword") .setCreativeTab(MysticOres.MysticOresTab); - BloodstonePickaxe = new ItemPickaxe(ItemID.BLOODSTONEPICKAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstonePickaxe").setTextureName("mysticores:BloodstonePickaxe") + BloodstonePickaxe = new ItemPick(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstonePickaxe").setTextureName("mysticores:BloodstonePickaxe") .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneShovel = new ItemSpade(ItemID.BLOODSTONESHOVEL, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneShovel").setTextureName("mysticores:BloodstoneShovel") + BloodstoneShovel = new ItemSpade(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneShovel").setTextureName("mysticores:BloodstoneShovel") .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneAxe = new ItemAxe(ItemID.BLOODSTONEAXE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneAxe").setTextureName("mysticores:BloodstoneAxe") + BloodstoneAxe = new ItemHatchet(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneAxe").setTextureName("mysticores:BloodstoneAxe") .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneHoe = new ItemHoe(ItemID.BLOODSTONEHOE, EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneHoe").setTextureName("mysticores:BloodstoneHoe") + BloodstoneHoe = new ItemHoe(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneHoe").setTextureName("mysticores:BloodstoneHoe") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianSword = new ItemSword(ItemID.OBSIDIANSWORD, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianSword").setTextureName("mysticores:ObsidianSword") + ObsidianSword = new ItemSword(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianSword").setTextureName("mysticores:ObsidianSword") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianPickaxe = new ItemPickaxe(ItemID.OBSIDIANPICKAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianPickaxe").setTextureName("mysticores:ObsidianPickaxe") + ObsidianPickaxe = new ItemPick(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianPickaxe").setTextureName("mysticores:ObsidianPickaxe") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianShovel = new ItemSpade(ItemID.OBSIDIANSHOVEL, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianShovel").setTextureName("mysticores:ObsidianShovel") + ObsidianShovel = new ItemSpade(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianShovel").setTextureName("mysticores:ObsidianShovel") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianAxe = new ItemAxe(ItemID.OBSIDIANAXE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianAxe").setTextureName("mysticores:ObsidianAxe") + ObsidianAxe = new ItemHatchet(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianAxe").setTextureName("mysticores:ObsidianAxe") .setCreativeTab(MysticOres.MysticOresTab); - ObsidianHoe = new ItemHoe(ItemID.OBSIDIANHOE, EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe").setTextureName("mysticores:ObsidianHoe") + ObsidianHoe = new ItemHoe(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe").setTextureName("mysticores:ObsidianHoe") .setCreativeTab(MysticOres.MysticOresTab); - Satchel = new ItemSatchel(ItemID.SATCHEL).setUnlocalizedName("Satchel"); + Satchel = new ItemSatchel().setUnlocalizedName("Satchel"); try { for(Field f:Items.class.getFields()){ Item it = (Item) f.get(null); diff --git a/common/MysticOres/Lib/ItemID.java b/common/MysticOres/Lib/ItemID.java deleted file mode 100644 index 98a37ea..0000000 --- a/common/MysticOres/Lib/ItemID.java +++ /dev/null @@ -1,12 +0,0 @@ -package mysticores.lib; - -public class ItemID { - public static int VERDITESWORD = 7050, VERDITEPICKAXE = 7051, VERDITESHOVEL = 7052, VERDITEAXE = 7053, VERDITEHOE = 7054; - public static int MITHRILSWORD = 7055, MITHRILPICKAXE = 7056, MITHRILSHOVEL = 7057, MITHRILAXE = 7058, MITHRILHOE = 7059; - public static int ADAMANTINESWORD = 7060, ADAMANTINEPICKAXE = 7061, ADAMANTINESHOVEL = 7062, ADAMANTINEAXE = 7063, ADAMANTINEHOE = 7064; - public static int IRIDIUMSWORD = 7065, IRIDIUMPICKAXE = 7066, IRIDIUMSHOVEL = 7067, IRIDIUMAXE = 7068, IRIDIUMHOE = 7069; - public static int OBSIDIANSWORD = 7070, OBSIDIANPICKAXE = 7071, OBSIDIANSHOVEL = 7072, OBSIDIANAXE = 7073, OBSIDIANHOE = 7074; - public static int BLOODSTONESWORD = 7075, BLOODSTONEPICKAXE = 7076, BLOODSTONESHOVEL = 7077, BLOODSTONEAXE = 7078, BLOODSTONEHOE = 7079; - public static int SATCHEL = 7080; - public static int RESOURCES = 7081; -} diff --git a/common/MysticOres/MysticOres.java b/common/MysticOres/MysticOres.java index 725f328..47921ca 100644 --- a/common/MysticOres/MysticOres.java +++ b/common/MysticOres/MysticOres.java @@ -1,5 +1,7 @@ package mysticores; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticores.blocks.BlockHandler; import mysticores.items.Items; import mysticores.util.ConfigurationManager; @@ -7,30 +9,38 @@ import mysticores.util.OreDictManager; import mysticores.util.RecipeManager; import mysticores.worldgen.GeneratorManager; import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import cpw.mods.fml.common.IFuelHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "mysticores", name = "Mystic Ores", version = "0.1") -@NetworkMod(clientSideRequired = true) public class MysticOres implements IFuelHandler { @Instance("mysticores") public static MysticOres instance; + public boolean ENABLE = true; public static final CreativeTabs MysticOresTab = new CreativeTabs("MysticOresTab") { - @Override - public ItemStack getIconItemStack() { - return new ItemStack(BlockHandler.BlockBase, 1, 7); - } - }; + + @Override + public Item getTabIconItem() { + return Item.getItemFromBlock(BlockHandler.BlockBase); + } + + @Override + @SideOnly(Side.CLIENT) + public int func_151243_f() + { + return 7; + } + }; @Override public int getBurnTime(ItemStack fuel) { - if (fuel.getItem().itemID == Items.Resource.itemID && fuel.getItemDamage() == 4) + if (fuel.getItem() == Items.Resource && fuel.getItemDamage() == 4) return 12800; else return 0; @@ -39,11 +49,13 @@ public class MysticOres implements IFuelHandler { @EventHandler public void preInit(FMLPreInitializationEvent event) { ConfigurationManager.initialize(event.getSuggestedConfigurationFile()); - BlockHandler.initialize(); - Items.initialize(); - OreDictManager.initialize(); - RecipeManager.initialize(); - GeneratorManager.initialize(); - GameRegistry.registerFuelHandler(this); + if(ENABLE){ + BlockHandler.initialize(); + Items.initialize(); + OreDictManager.initialize(); + RecipeManager.initialize(); + GeneratorManager.initialize(); + GameRegistry.registerFuelHandler(this); + } } } \ No newline at end of file diff --git a/common/MysticOres/Util/ConfigurationManager.java b/common/MysticOres/Util/ConfigurationManager.java index bcae963..caad19a 100644 --- a/common/MysticOres/Util/ConfigurationManager.java +++ b/common/MysticOres/Util/ConfigurationManager.java @@ -2,47 +2,14 @@ package mysticores.util; import java.io.File; -import mysticores.blocks.BlockHandler; -import mysticores.lib.ItemID; +import mysticores.MysticOres; import mysticores.lib.Rarity; -import net.minecraftforge.common.Configuration; +import net.minecraftforge.common.config.Configuration; public class ConfigurationManager { public static void initialize(File file) { Configuration config = new Configuration(file); - ItemID.RESOURCES = config.getItem("Resource Items", ItemID.RESOURCES).getInt(); - ItemID.VERDITESWORD = config.getItem("Tools", "Verdite Sword", ItemID.VERDITESWORD).getInt(); - ItemID.VERDITEPICKAXE = config.getItem("Tools", "Verdite Pickaxe", ItemID.VERDITEPICKAXE).getInt(); - ItemID.VERDITESHOVEL = config.getItem("Tools", "Verdite Shovel", ItemID.VERDITESHOVEL).getInt(); - ItemID.VERDITEAXE = config.getItem("Tools", "Verdite Axe", ItemID.VERDITEAXE).getInt(); - ItemID.VERDITEHOE = config.getItem("Tools", "Verdite Hoe", ItemID.VERDITEHOE).getInt(); - ItemID.MITHRILSWORD = config.getItem("Tools", "Mithril Sword", ItemID.MITHRILSWORD).getInt(); - ItemID.MITHRILPICKAXE = config.getItem("Tools", "Mithril Pickaxe", ItemID.MITHRILPICKAXE).getInt(); - ItemID.MITHRILSHOVEL = config.getItem("Tools", "Mithril Shovel", ItemID.MITHRILSHOVEL).getInt(); - ItemID.MITHRILAXE = config.getItem("Tools", "Mithril Axe", ItemID.MITHRILAXE).getInt(); - ItemID.MITHRILHOE = config.getItem("Tools", "Mithril Hoe", ItemID.MITHRILHOE).getInt(); - ItemID.ADAMANTINESWORD = config.getItem("Tools", "Adamantine Sword", ItemID.ADAMANTINESWORD).getInt(); - ItemID.ADAMANTINEPICKAXE = config.getItem("Tools", "Adamantine Pickaxe", ItemID.ADAMANTINEPICKAXE).getInt(); - ItemID.ADAMANTINESHOVEL = config.getItem("Tools", "Adamantine Shovel", ItemID.ADAMANTINESHOVEL).getInt(); - ItemID.ADAMANTINEAXE = config.getItem("Tools", "Adamantine Axe", ItemID.ADAMANTINEAXE).getInt(); - ItemID.ADAMANTINEHOE = config.getItem("Tools", "Adamantine Hoe", ItemID.ADAMANTINEHOE).getInt(); - ItemID.IRIDIUMSWORD = config.getItem("Tools", "Iridium Sword", ItemID.IRIDIUMSWORD).getInt(); - ItemID.IRIDIUMPICKAXE = config.getItem("Tools", "Iridium Pickaxe", ItemID.IRIDIUMPICKAXE).getInt(); - ItemID.IRIDIUMSHOVEL = config.getItem("Tools", "Iridium Shovel", ItemID.IRIDIUMSHOVEL).getInt(); - ItemID.IRIDIUMAXE = config.getItem("Tools", "Iridium Axe", ItemID.IRIDIUMAXE).getInt(); - ItemID.IRIDIUMHOE = config.getItem("Tools", "Iridium Hoe", ItemID.IRIDIUMHOE).getInt(); - ItemID.BLOODSTONESWORD = config.getItem("Tools", "Bloodstone Sword", ItemID.BLOODSTONESWORD).getInt(); - ItemID.BLOODSTONEPICKAXE = config.getItem("Tools", "Bloodstone Pickaxe", ItemID.BLOODSTONEPICKAXE).getInt(); - ItemID.BLOODSTONESHOVEL = config.getItem("Tools", "Bloodstone Shovel", ItemID.BLOODSTONESHOVEL).getInt(); - ItemID.BLOODSTONEAXE = config.getItem("Tools", "Bloodstone Axe", ItemID.BLOODSTONEAXE).getInt(); - ItemID.BLOODSTONEHOE = config.getItem("Tools", "Bloodstone Hoe", ItemID.BLOODSTONEHOE).getInt(); - ItemID.OBSIDIANSWORD = config.getItem("Tools", "Obsidian Sword", ItemID.OBSIDIANSWORD).getInt(); - ItemID.OBSIDIANPICKAXE = config.getItem("Tools", "Obsidian Pickaxe", ItemID.OBSIDIANPICKAXE).getInt(); - ItemID.OBSIDIANSHOVEL = config.getItem("Tools", "Obsidian Shovel", ItemID.OBSIDIANSHOVEL).getInt(); - ItemID.OBSIDIANAXE = config.getItem("Tools", "Obsidian Axe", ItemID.OBSIDIANAXE).getInt(); - ItemID.OBSIDIANHOE = config.getItem("Tools", "Obsidian Hoe", ItemID.OBSIDIANHOE).getInt(); - ItemID.SATCHEL = config.getItem("Satchel ID", ItemID.SATCHEL).getInt(); - BlockHandler.BASEID = config.getBlock("Base Block ID", BlockHandler.BASEID).getInt(); + MysticOres.instance.ENABLE = config.get("General", "Enable", true).getBoolean(true); Rarity.VERDITE = config.get("Ore Rarity", "Verdite Ore", Rarity.VERDITE).getInt(); Rarity.MITHRIL = config.get("Ore Rarity", "Mithril Ore", Rarity.MITHRIL).getInt(); Rarity.ADAMANTINE = config.get("Ore Rarity", "Adamantine Ore", Rarity.ADAMANTINE).getInt(); diff --git a/common/MysticOres/Util/RecipeManager.java b/common/MysticOres/Util/RecipeManager.java index ee5db71..4e8488b 100644 --- a/common/MysticOres/Util/RecipeManager.java +++ b/common/MysticOres/Util/RecipeManager.java @@ -2,8 +2,7 @@ package mysticores.util; import mysticores.blocks.BlockHandler; import mysticores.items.Items; -import net.minecraft.block.Block; -import net.minecraft.item.Item; +import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraftforge.oredict.ShapedOreRecipe; @@ -19,31 +18,31 @@ public class RecipeManager { } private static void powderRecipes() { - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.oreGold, 2), OreDictManager.INGOTS[9], "oreGold")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.oreIron, 2), OreDictManager.INGOTS[9], "oreIron")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.gold_ore, 2), OreDictManager.INGOTS[9], "oreGold")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.iron_ore, 2), OreDictManager.INGOTS[9], "oreIron")); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 2, 10), OreDictManager.INGOTS[9], OreDictManager.INGOTS[10])); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.gunpowder, 2), OreDictManager.INGOTS[9], Item.gunpowder)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.gunpowder, 2), OreDictManager.INGOTS[9], net.minecraft.init.Items.gunpowder)); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 2, 4), OreDictManager.INGOTS[9], OreDictManager.INGOTS[4])); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.oreCoal, 2), OreDictManager.INGOTS[9], Block.oreCoal)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.oreIron, 3), OreDictManager.INGOTS[9], "oreIron")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.oreGold, 3), OreDictManager.INGOTS[9], "oreGold")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.oreRedstone, 2), OreDictManager.INGOTS[9], "oreRedstone")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.oreLapis, 2), OreDictManager.INGOTS[9], "oreLapis")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Block.oreDiamond, 2), OreDictManager.INGOTS[9], "oreDiamond")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.sugar, 18), OreDictManager.INGOTS[9], Item.sugar)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.redstone, 12), OreDictManager.INGOTS[9], Item.redstone)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.glowstone, 6), OreDictManager.INGOTS[9], Item.glowstone)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Item.gunpowder, 3), OreDictManager.INGOTS[9], Item.gunpowder)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.coal_ore, 2), OreDictManager.INGOTS[9], Blocks.coal_ore)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.iron_ore, 3), OreDictManager.INGOTS[9], "oreIron")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.gold_ore, 3), OreDictManager.INGOTS[9], "oreGold")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.redstone_ore, 2), OreDictManager.INGOTS[9], "oreRedstone")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.lapis_ore, 2), OreDictManager.INGOTS[9], "oreLapis")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.diamond_ore, 2), OreDictManager.INGOTS[9], "oreDiamond")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.sugar, 18), OreDictManager.INGOTS[9], net.minecraft.init.Items.sugar)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.redstone, 12), OreDictManager.INGOTS[9], net.minecraft.init.Items.redstone)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.glowstone_dust, 6), OreDictManager.INGOTS[9], net.minecraft.init.Items.glowstone_dust)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.gunpowder, 3), OreDictManager.INGOTS[9], net.minecraft.init.Items.gunpowder)); } private static void recipes() { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.glass, 1), "##", "##", '#', OreDictManager.INGOTS[11])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.obsidian, 1), "##", "##", '#', OreDictManager.INGOTS[12])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 7), "XXX", "XOX", "XXX", Character.valueOf('X'), Block.dirt, Character.valueOf('O'), + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.glass, 1), "##", "##", '#', OreDictManager.INGOTS[11])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.obsidian, 1), "##", "##", '#', OreDictManager.INGOTS[12])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 7), "XXX", "XOX", "XXX", Character.valueOf('X'), Blocks.dirt, Character.valueOf('O'), OreDictManager.INGOTS[6])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 16, 7), "XXX", "XOX", "XXX", Character.valueOf('X'), OreDictManager.ORES[3], Character.valueOf('O'), OreDictManager.INGOTS[6])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 3), "XXX", "XOX", "XXX", Character.valueOf('X'), Block.dirt, Character.valueOf('O'), + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 3), "XXX", "XOX", "XXX", Character.valueOf('X'), Blocks.dirt, Character.valueOf('O'), OreDictManager.INGOTS[8])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 12), "###", "#D#", "###", '#', OreDictManager.INGOTS[11], 'D', OreDictManager.INGOTS[12])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 1, 7), "##", "##", '#', OreDictManager.INGOTS[10])); @@ -52,21 +51,21 @@ public class RecipeManager { GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BlockHandler.BlockBase, 2, 0), OreDictManager.INGOTS[9], OreDictManager.ORES[0])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Resource, 2, 13), "#", "#", '#', OreDictManager.INGOTS[12])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Resource, 1, 3), "###", "#O#", "###", '#', OreDictManager.INGOTS[4], 'O', OreDictManager.INGOTS[2])); - GameRegistry.addShapelessRecipe(new ItemStack(Items.Resource, 4, 11), Block.glass); - GameRegistry.addShapelessRecipe(new ItemStack(Items.Resource, 4, 12), Block.obsidian); + GameRegistry.addShapelessRecipe(new ItemStack(Items.Resource, 4, 11), Blocks.glass); + GameRegistry.addShapelessRecipe(new ItemStack(Items.Resource, 4, 12), Blocks.obsidian); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 8, 9), OreDictManager.INGOTS[5], OreDictManager.INGOTS[7], OreDictManager.INGOTS[8], OreDictManager.INGOTS[6])); } private static void smelting() { - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 6, new ItemStack(Items.Resource, 1, 0), 0.4F); - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 3, new ItemStack(Items.Resource, 1, 1), 0.7F); - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 0, new ItemStack(Items.Resource, 1, 2), 0.9F); - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 2, new ItemStack(Items.Resource, 1, 4), 0.4F); - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 4, new ItemStack(Items.Resource, 1, 5), 0.4F); - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 11, new ItemStack(Items.Resource, 1, 6), 0.4F); - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 5, new ItemStack(Items.Resource, 1, 7), 0.4F); - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 1, new ItemStack(Items.Resource, 1, 8), 0.4F); - FurnaceRecipes.smelting().addSmelting(BlockHandler.BlockBase.blockID, 7, new ItemStack(Items.Resource, 1, 10), 0.4F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 6), new ItemStack(Items.Resource, 1, 0), 0.4F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 3), new ItemStack(Items.Resource, 1, 1), 0.7F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 0), new ItemStack(Items.Resource, 1, 2), 0.9F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 2), new ItemStack(Items.Resource, 1, 4), 0.4F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 4), new ItemStack(Items.Resource, 1, 5), 0.4F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 11), new ItemStack(Items.Resource, 1, 6), 0.4F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 5), new ItemStack(Items.Resource, 1, 7), 0.4F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 1), new ItemStack(Items.Resource, 1, 8), 0.4F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 7), new ItemStack(Items.Resource, 1, 10), 0.4F); } private static void toolRecipes() { @@ -95,16 +94,16 @@ public class RecipeManager { ToolRecipes.AdvancedShovelRecipe(Items.IridiumShovel, OreDictManager.INGOTS[3]); ToolRecipes.AdvancedAxeRecipe(Items.IridiumAxe, OreDictManager.INGOTS[3]); ToolRecipes.AdvancedHoeRecipe(Items.IridiumHoe, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedSwordRecipe(Items.ObsidianSword, new ItemStack(Block.obsidian)); - ToolRecipes.AdvancedPickaxeRecipe(Items.ObsidianPickaxe, new ItemStack(Block.obsidian)); - ToolRecipes.AdvancedShovelRecipe(Items.ObsidianShovel, new ItemStack(Block.obsidian)); - ToolRecipes.AdvancedAxeRecipe(Items.ObsidianAxe, new ItemStack(Block.obsidian)); - ToolRecipes.AdvancedHoeRecipe(Items.ObsidianHoe, new ItemStack(Block.obsidian)); + ToolRecipes.AdvancedSwordRecipe(Items.ObsidianSword, new ItemStack(Blocks.obsidian)); + ToolRecipes.AdvancedPickaxeRecipe(Items.ObsidianPickaxe, new ItemStack(Blocks.obsidian)); + ToolRecipes.AdvancedShovelRecipe(Items.ObsidianShovel, new ItemStack(Blocks.obsidian)); + ToolRecipes.AdvancedAxeRecipe(Items.ObsidianAxe, new ItemStack(Blocks.obsidian)); + ToolRecipes.AdvancedHoeRecipe(Items.ObsidianHoe, new ItemStack(Blocks.obsidian)); ToolRecipes.AdvancedSwordRecipe(Items.BloodstoneSword, OreDictManager.ORES[7]); ToolRecipes.AdvancedPickaxeRecipe(Items.BloodstonePickaxe, OreDictManager.ORES[7]); ToolRecipes.AdvancedShovelRecipe(Items.BloodstoneShovel, OreDictManager.ORES[7]); ToolRecipes.AdvancedAxeRecipe(Items.BloodstoneAxe, OreDictManager.ORES[7]); ToolRecipes.AdvancedHoeRecipe(Items.BloodstoneHoe, OreDictManager.ORES[7]); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Satchel, 1), "#$#", "$%$", "#$#", '#', Item.silk, '$', OreDictManager.INGOTS[9], '%', Block.enderChest)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Satchel, 1), "#$#", "$%$", "#$#", '#', net.minecraft.init.Items.string, '$', OreDictManager.INGOTS[9], '%', Blocks.ender_chest)); } } diff --git a/common/MysticOres/Worldgen/GeneratorManager.java b/common/MysticOres/Worldgen/GeneratorManager.java index 3b8c57f..2db2afe 100644 --- a/common/MysticOres/Worldgen/GeneratorManager.java +++ b/common/MysticOres/Worldgen/GeneratorManager.java @@ -6,10 +6,10 @@ import cpw.mods.fml.common.registry.GameRegistry; public class GeneratorManager { public static void initialize() { - GameRegistry.registerWorldGenerator(new WorldGenOres()); - GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase.blockID, 7, Rarity.BLOODSTONE + 1)); - GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase.blockID, 8, Rarity.BLACKSOULSTONE + 1)); - GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase.blockID, 9, Rarity.BLUESOULSTONE + 1)); - GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase.blockID, 10, Rarity.REDSOULSTONE)); + GameRegistry.registerWorldGenerator(new WorldGenOres(), 100); + GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase, 7, Rarity.BLOODSTONE + 1), 100); + GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase, 8, Rarity.BLACKSOULSTONE + 1), 100); + GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase, 9, Rarity.BLUESOULSTONE + 1), 100); + GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase, 10, Rarity.REDSOULSTONE), 100); } } diff --git a/common/MysticOres/Worldgen/NetherGenHelper.java b/common/MysticOres/Worldgen/NetherGenHelper.java index 9e1957b..0358251 100644 --- a/common/MysticOres/Worldgen/NetherGenHelper.java +++ b/common/MysticOres/Worldgen/NetherGenHelper.java @@ -3,21 +3,22 @@ package mysticores.worldgen; import java.util.Random; import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; public class NetherGenHelper extends WorldGenerator { - private int minableBlockId; + private Block minableBlockId; private int minableBlockMeta = 0; private int numberOfBlocks; - public NetherGenHelper(int par1, int par2) { + public NetherGenHelper(Block par1, int par2) { this.minableBlockId = par1; this.numberOfBlocks = par2; } - public NetherGenHelper(int id, int meta, int number) { + public NetherGenHelper(Block id, int meta, int number) { this(id, number); minableBlockMeta = meta; } @@ -52,8 +53,8 @@ public class NetherGenHelper extends WorldGenerator { if (var39 * var39 + var42 * var42 < 1.0D) { for (int var44 = var34; var44 <= var37; ++var44) { double var45 = (var44 + 0.5D - var24) / (var28 / 2.0D); - int blocktoreplace = par1World.getBlockId(var38, var41, var44); - if (var39 * var39 + var42 * var42 + var45 * var45 < 1.0D && blocktoreplace == Block.netherrack.blockID) { + Block blocktoreplace = par1World.getBlock(var38, var41, var44); + if (var39 * var39 + var42 * var42 + var45 * var45 < 1.0D && blocktoreplace == Blocks.netherrack) { par1World.setBlock(var38, var41, var44, this.minableBlockId, minableBlockMeta, 3); } } diff --git a/common/MysticOres/Worldgen/NetherGenMineable.java b/common/MysticOres/Worldgen/NetherGenMineable.java index 0bc93a2..ca516da 100644 --- a/common/MysticOres/Worldgen/NetherGenMineable.java +++ b/common/MysticOres/Worldgen/NetherGenMineable.java @@ -2,6 +2,7 @@ package mysticores.worldgen; import java.util.Random; +import net.minecraft.block.Block; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenerator; @@ -10,11 +11,11 @@ import cpw.mods.fml.common.IWorldGenerator; public class NetherGenMineable implements IWorldGenerator { private WorldGenerator helper; - public NetherGenMineable(int blockId, int numBlocks) { + public NetherGenMineable(Block blockId, int numBlocks) { helper = new NetherGenHelper(blockId, numBlocks); } - public NetherGenMineable(int blockId, int meta, int numBlocks) { + public NetherGenMineable(Block blockId, int meta, int numBlocks) { helper = new NetherGenHelper(blockId, meta, numBlocks); } diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 61c41c1..e8df56e 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -8,13 +8,14 @@ import java.util.List; import java.util.Random; import java.util.Set; +import cpw.mods.fml.common.registry.GameData; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.WeightedRandom; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; -import net.minecraftforge.common.Configuration; +import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.DungeonHooks.DungeonMob; public class Config { @@ -25,10 +26,8 @@ public class Config { public static final String[] allows = { "Ruin allowed dimension id", "Dungeon allowed dimension id", "Ruin allowed biome id", "Dungeon allowed biome id" }; public static Set[] allowType = new HashSet[2]; public static List dungeonMobs = new ArrayList(); - public static final String commonItems = Item.pickaxeIron.itemID + "," + Item.axeIron.itemID + "," + Item.swordIron.itemID + "," + Item.shovelIron.itemID + "," + Item.ingotGold.itemID + "," - + Item.ingotIron.itemID; - public static final String rareItems = Item.enderPearl.itemID + ":4," + Item.diamond.itemID + "," + Item.emerald.itemID + "," + Item.appleGold.itemID + "," + Item.ingotGold.itemID + "," - + Item.ingotIron.itemID; + public static final String commonItems = "iron_pickaxe,iron_axe,iron_sword,iron_shovel,gold_ingot,iron_ingot"; + public static final String rareItems = "ender_pearl:4,diamond,emerald,golden_apple,gold_ingot,iron_ingot"; public static void addDungeonMob(String name, int rarity) { for (DungeonMob mob : dungeonMobs) { @@ -50,7 +49,7 @@ public class Config { public static void initialize(File file) { config = new Configuration(file); - config.load(); + MysticRuins.ENABLE = config.get("General", "Enable", true).getBoolean(true); String[] mobs = config.get("DungeonMobs", "Spawner Type & Relative Chance", "Skeleton-50,Spider-50,Zombie-20,Cavepider-10,Blaze-1", "MobName-RelativeWeight").getString().split(","); String[] mob; for (String txt : mobs) { @@ -121,12 +120,12 @@ public class Config { int j = Integer.parseInt(txt.trim()); allowId[i].add(j); if (i > 1) { - allowType[i - 2].addAll(Arrays.asList(BiomeDictionary.getTypesForBiome(BiomeGenBase.biomeList[j]))); + allowType[i - 2].addAll(Arrays.asList(BiomeDictionary.getTypesForBiome(BiomeGenBase.getBiomeGenArray()[j]))); } } catch (NumberFormatException e) { if (i > 1) { if (txt.equals("*") || txt.equalsIgnoreCase("ALL")) { - for (int j = 0; j < BiomeGenBase.biomeList.length; j++) { + for (int j = 0; j < BiomeGenBase.getBiomeGenArray().length; j++) { allowId[i].add(j); } for (Type t : Type.values()) { @@ -151,11 +150,12 @@ public class Config { } private static void setChest(String type, String list, List valuables) { - String[] items = config.get("Chests", type, list, "itemid:stacksize:damage").getString().split(","); + String[] items = config.get("Chests", type, list, "itemname:stacksize:damage").getString().split(","); String[] item; for (String txt : items) { item = txt.split(":"); - int id = -1, amount = 1, data = 0; + Item id = null; + int amount = 1, data = 0; try { switch (item.length) { case 3: @@ -163,7 +163,7 @@ public class Config { case 2: amount = Integer.parseInt(item[1]); case 1: - id = Integer.parseInt(item[0]); + id = GameData.itemRegistry.get(item[0]); break; default: continue; @@ -171,7 +171,7 @@ public class Config { } catch (NumberFormatException n) { continue; } - if (id > 0 && amount > 0 && data >= 0) { + if (id != null && amount > 0 && data >= 0) { valuables.add(new ItemStack(id, amount, data)); } } diff --git a/common/MysticRuins/MysticRuins.java b/common/MysticRuins/MysticRuins.java index de65ea6..9825303 100644 --- a/common/MysticRuins/MysticRuins.java +++ b/common/MysticRuins/MysticRuins.java @@ -1,25 +1,17 @@ package mysticruins; -import java.io.File; - import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; -import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "MysticRuins", name = "Mystic Ruins", version = "0.1") public class MysticRuins { - public static File file; - - @EventHandler - public void modsLoaded(FMLPostInitializationEvent event) { - Config.initialize(file); - } - + public static boolean ENABLE = true; @EventHandler public void preInit(FMLPreInitializationEvent event) { - file = event.getSuggestedConfigurationFile(); - GameRegistry.registerWorldGenerator(new WorldGenMystic()); + Config.initialize(event.getSuggestedConfigurationFile()); + if(ENABLE) + GameRegistry.registerWorldGenerator(new WorldGenMystic(), 20); } } diff --git a/common/MysticRuins/StructureMysticDungeon.java b/common/MysticRuins/StructureMysticDungeon.java index 25f5122..57b7edd 100644 --- a/common/MysticRuins/StructureMysticDungeon.java +++ b/common/MysticRuins/StructureMysticDungeon.java @@ -3,6 +3,7 @@ package mysticruins; import java.util.Random; import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntityMobSpawner; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; @@ -21,73 +22,73 @@ public class StructureMysticDungeon extends WorldGenerator { return false; } if (world.isAirBlock(j1 - 1, k1 + 1, l1) && world.isAirBlock(j1 - 1, k1 + 1, l1 + 1) && world.isAirBlock(j1 - 1, k1 + 2, l1) && world.isAirBlock(j1 - 1, k1 + 2, l1 + 1) - && world.getBlockId(j1, k1, l1) == Block.stone.blockID && world.getBlockId(j1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1) == Block.stone.blockID - && world.getBlockId(j1 - 1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1) == Block.stone.blockID - && world.getBlockId(j1, k1 + 1, l1 + 1) == Block.stone.blockID) + && world.getBlock(j1, k1, l1) == Blocks.stone && world.getBlock(j1, k1, l1 + 1) == Blocks.stone && world.getBlock(j1 - 1, k1, l1) == Blocks.stone + && world.getBlock(j1 - 1, k1, l1 + 1) == Blocks.stone && world.getBlock(j1, k1 + 1, l1) == Blocks.stone + && world.getBlock(j1, k1 + 1, l1 + 1) == Blocks.stone) flag = true; if (!flag) { return false; } - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1, k1 + 2, l1, 0); - setBlock(world, j1 - 1, k1 + 1, l1 + 2, 0); - setBlock(world, j1 - 1, k1 + 1, l1 + 3, 0); - setBlock(world, j1 - 1, k1 + 2, l1 + 2, 0); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1, k1 + 2, l1); + setBlock(world, j1 - 1, k1 + 1, l1 + 2); + setBlock(world, j1 - 1, k1 + 1, l1 + 3); + setBlock(world, j1 - 1, k1 + 2, l1 + 2); for (int y = k1 + 1; y < k1 + 4; y++) { for (int x = 1; x < 6; x++) { - setBlock(world, j1 - x, y, l1, 0); - setBlock(world, j1 - x, y, l1 + 1, 0); - setBlock(world, j1 - x, y, l1 - 1, 0); + setBlock(world, j1 - x, y, l1); + setBlock(world, j1 - x, y, l1 + 1); + setBlock(world, j1 - x, y, l1 - 1); } } - setBlock(world, j1 - 2, k1 + 1, l1 + 2, 0); + setBlock(world, j1 - 2, k1 + 1, l1 + 2); for (int x = 6; x < 17; x++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1 - x, k1 + y, l1, 0); + setBlock(world, j1 - x, k1 + y, l1); } } - setBlock(world, j1 - 15, k1 + 14, l1, 0); + setBlock(world, j1 - 15, k1 + 14, l1); int i2 = random.nextInt(100); if (i2 <= 40) { for (int z = 1; z < 9; z++) { - setBlock(world, j1 - 16, k1 + 11, l1 - z, 0); - setBlock(world, j1 - 16, k1 + 12, l1 - z, 0); + setBlock(world, j1 - 16, k1 + 11, l1 - z); + setBlock(world, j1 - 16, k1 + 12, l1 - z); } - setBlock(world, j1 - 16, k1 + 13, l1 - 8, 0); - setBlock(world, j1 - 16, k1 + 14, l1 - 8, 0); + setBlock(world, j1 - 16, k1 + 13, l1 - 8); + setBlock(world, j1 - 16, k1 + 14, l1 - 8); for (int z = 0; z < 5; z++) { for (int y = 12; y < 16; y++) { - setBlock(world, j1 - 16, k1 + y + z, l1 - 9 + z, 0); + setBlock(world, j1 - 16, k1 + y + z, l1 - 9 + z); } } - setBlock(world, j1 - 16, k1 + 20, l1 - 13, 0); + setBlock(world, j1 - 16, k1 + 20, l1 - 13); int j2 = random.nextInt(100); if (j2 <= 20) { for (int x = 0; x < 3; x++) { for (int z = 15; z < 18; z++) { - setBlock(world, j1 - 15 - x, k1 + 17, l1 - z, 0); - setBlock(world, j1 - 15 - x, k1 + 18, l1 - z, 0); + setBlock(world, j1 - 15 - x, k1 + 17, l1 - z); + setBlock(world, j1 - 15 - x, k1 + 18, l1 - z); } } - setBlock(world, j1 - 16, k1 + 16, l1 - 15, Block.blockLapis.blockID); + setBlock(world, j1 - 16, k1 + 16, l1 - 15, Blocks.lapis_block); setBlock(world, j1 - 16, k1 + 16, l1 - 16, pickBlock(random)); - setBlock(world, j1 - 16, k1 + 16, l1 - 17, Block.blockLapis.blockID); + setBlock(world, j1 - 16, k1 + 16, l1 - 17, Blocks.lapis_block); for (int z = 15; z < 18; z++) { - setBlock(world, j1 - 15, k1 + 16, l1 - z, Block.blockLapis.blockID); - setBlock(world, j1 - 17, k1 + 16, l1 - z, Block.blockLapis.blockID); + setBlock(world, j1 - 15, k1 + 16, l1 - z, Blocks.lapis_block); + setBlock(world, j1 - 17, k1 + 16, l1 - z, Blocks.lapis_block); } - setBlock(world, j1 - 16, k1 + 17, l1 - 16, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 16, k1 + 17, l1 - 16)); + setBlock(world, j1 - 16, k1 + 17, l1 - 16, Blocks.chest); + ChestFiller.fillWithRares(world.getTileEntity(j1 - 16, k1 + 17, l1 - 16)); } } for (int z = 0; z < 12; z++) { for (int y = k1 + 12 + z; y < k1 + 16 + z; y++) { - setBlock(world, j1 - 16, y, l1 + 1 + z, 0); + setBlock(world, j1 - 16, y, l1 + 1 + z); } } - setBlock(world, j1 - 16, k1 + 24, l1 + 9, 0); - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1 - 16, k1 + 24, l1 + 9); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1, k1 + 2, l1); setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); @@ -100,19 +101,19 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 + 3, l1, pickBlock(random)); int k2 = random.nextInt(100); if (k2 <= 40) { - setBlock(world, j1 - 1, k1 + 3, l1, Block.vine.blockID); - setBlock(world, j1 - 1, k1 + 3, l1 + 1, Block.vine.blockID); - setBlock(world, j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); - setBlock(world, j1 - 3, k1 + 3, l1 + 2, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 3, l1, Blocks.vine); + setBlock(world, j1 - 1, k1 + 3, l1 + 1, Blocks.vine); + setBlock(world, j1 - 2, k1 + 3, l1 - 1, Blocks.vine); + setBlock(world, j1 - 3, k1 + 3, l1 + 2, Blocks.vine); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } setBlock(world, j1, k1 + 1, l1 - 2, pickBlock(random)); j1++; @@ -120,9 +121,9 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } setBlock(world, j1, k1 + 2, l1 + 2, pickBlock(random)); setBlock(world, j1, k1 + 3, l1 + 2, pickBlock(random)); @@ -131,18 +132,18 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } setBlock(world, j1, k1 + 1, l1 + 2, pickBlock(random)); j1++; @@ -150,9 +151,9 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } setBlock(world, j1, k1 + 1, l1 - 2, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 - 2, pickBlock(random)); @@ -161,52 +162,52 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } int l2 = random.nextInt(100); if (l2 <= 30) { - setBlock(world, j1 - 1, k1 + 3, l1, Block.vine.blockID); - setBlock(world, j1 - 1, k1 + 3, l1 + 2, Block.vine.blockID); - setBlock(world, j1 - 2, k1 + 3, l1 - 1, Block.vine.blockID); - setBlock(world, j1 - 3, k1 + 3, l1 + 1, Block.vine.blockID); - setBlock(world, j1 - 5, k1 + 3, l1, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 3, l1, Blocks.vine); + setBlock(world, j1 - 1, k1 + 3, l1 + 2, Blocks.vine); + setBlock(world, j1 - 2, k1 + 3, l1 - 1, Blocks.vine); + setBlock(world, j1 - 3, k1 + 3, l1 + 1, Blocks.vine); + setBlock(world, j1 - 5, k1 + 3, l1, Blocks.vine); } int i3 = random.nextInt(100); if (i3 <= 40) { for (int z = 2; z < 10; z++) { - setBlock(world, j1, k1 + 1, l1 - z, 0); - setBlock(world, j1, k1 + 2, l1 - z, 0); + setBlock(world, j1, k1 + 1, l1 - z); + setBlock(world, j1, k1 + 2, l1 - z); } for (int z = 0; z < 14; z++) { for (int y = k1 + 1 + z; y < k + 5 + z; y++) { - setBlock(world, j1, y, l1 - 10 - z, 0); + setBlock(world, j1, y, l1 - 10 - z); } } - setBlock(world, j1, k1 + 15, l1 - 20, 0); - setBlock(world, j1, k1 + 16, l1 - 21, 0); + setBlock(world, j1, k1 + 15, l1 - 20); + setBlock(world, j1, k1 + 16, l1 - 21); int j3 = random.nextInt(100); if (j3 <= 20) { for (int x = -1; x < 2; x++) { - setBlock(world, j1 + x, k1 + 15, l1 - 25, 0); - setBlock(world, j1 + x, k1 + 16, l1 - 25, 0); - setBlock(world, j1 + x, k1 + 15, l1 - 26, 0); - setBlock(world, j1 + x, k1 + 16, l1 - 26, 0); - setBlock(world, j1 + x, k1 + 15, l1 - 27, 0); - setBlock(world, j1 + x, k1 + 16, l1 - 27, 0); + setBlock(world, j1 + x, k1 + 15, l1 - 25); + setBlock(world, j1 + x, k1 + 16, l1 - 25); + setBlock(world, j1 + x, k1 + 15, l1 - 26); + setBlock(world, j1 + x, k1 + 16, l1 - 26); + setBlock(world, j1 + x, k1 + 15, l1 - 27); + setBlock(world, j1 + x, k1 + 16, l1 - 27); } - setBlock(world, j1 - 16, k1 + 14, l1 - 15, 0); + setBlock(world, j1 - 16, k1 + 14, l1 - 15); setBlock(world, j1 - 16, k1 + 14, l1 - 16, pickBlock(random)); - setBlock(world, j1 - 16, k1 + 14, l1 - 17, 0); - setBlock(world, j1 - 15, k1 + 14, l1 - 15, 0); - setBlock(world, j1 - 15, k1 + 14, l1 - 16, 0); - setBlock(world, j1 - 15, k1 + 14, l1 - 17, 0); - setBlock(world, j1 - 17, k1 + 14, l1 - 15, 0); - setBlock(world, j1 - 17, k1 + 14, l1 - 16, 0); - setBlock(world, j1 - 17, k1 + 14, l1 - 17, 0); - setBlock(world, j1 - 16, k1 + 15, l1 - 16, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 16, k1 + 15, l1 - 16)); + setBlock(world, j1 - 16, k1 + 14, l1 - 17); + setBlock(world, j1 - 15, k1 + 14, l1 - 15); + setBlock(world, j1 - 15, k1 + 14, l1 - 16); + setBlock(world, j1 - 15, k1 + 14, l1 - 17); + setBlock(world, j1 - 17, k1 + 14, l1 - 15); + setBlock(world, j1 - 17, k1 + 14, l1 - 16); + setBlock(world, j1 - 17, k1 + 14, l1 - 17); + setBlock(world, j1 - 16, k1 + 15, l1 - 16, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1 - 16, k1 + 15, l1 - 16)); } } j1++; @@ -214,9 +215,9 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } setBlock(world, j1, k1 + 1, l1 + 2, pickBlock(random)); j1++; @@ -224,18 +225,18 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } setBlock(world, j1, k1 + 3, l1 + 2, pickBlock(random)); setBlock(world, j1, k1 + 1, l1 - 2, pickBlock(random)); @@ -244,30 +245,30 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { - setBlock(world, j1, k1 + y, l1, 0); - setBlock(world, j1, k1 + y, l1 + 1, 0); - setBlock(world, j1, k1 + y, l1 - 1, 0); + setBlock(world, j1, k1 + y, l1); + setBlock(world, j1, k1 + y, l1 + 1); + setBlock(world, j1, k1 + y, l1 - 1); } - setBlock(world, j1, k1 + 1, l1 + 2, 0); - setBlock(world, j1, k1 + 1, l1 - 2, 0); - setBlock(world, j1, k1 + 2, l1 + 2, 0); + setBlock(world, j1, k1 + 1, l1 + 2); + setBlock(world, j1, k1 + 1, l1 - 2); + setBlock(world, j1, k1 + 2, l1 + 2); j1++; setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); for (int y = 1; y < 4; y++) { for (int z = -2; z < 3; z++) { - setBlock(world, j1, k1 + y, l1 + z, 0); + setBlock(world, j1, k1 + y, l1 + z); } } - setBlock(world, j1, k1 + 1, l1 + 3, 0); - setBlock(world, j1, k1 + 3, l1 - 3, 0); + setBlock(world, j1, k1 + 1, l1 + 3); + setBlock(world, j1, k1 + 3, l1 - 3); setBlock(world, j1, k1 + 1, l1 + 2, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 + 2, pickBlock(random)); setBlock(world, j1, k1 + 1, l1 - 2, pickBlock(random)); j1++; - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1, k1 + 2, l1); setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); @@ -293,7 +294,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int y = 1; y < 5; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 + y, l1 + z, 0); + setBlock(world, j1, k1 + y, l1 + z); } } setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); @@ -311,8 +312,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); @@ -324,19 +325,19 @@ public class StructureMysticDungeon extends WorldGenerator { int k4 = random.nextInt(100); if (k4 <= 60) { for (int u = 1; u < 4; u++) { - setBlock(world, j1, k1 + u, l1 + u, Block.bookShelf.blockID); + setBlock(world, j1, k1 + u, l1 + u, Blocks.bookshelf); } } } if (l3 == 2) { int l4 = random.nextInt(100); if (l4 <= 40) { - setBlock(world, j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - setBlock(world, j1, k1 + 2, l1 + 1, Block.blockIron.blockID); - setBlock(world, j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - setBlock(world, j1, k1 + 2, l1 + 2, 0); - setBlock(world, j1, k1 + 3, l1 + 2, 0); - setBlock(world, j1, k1 + 1, l1 + 3, 0); + setBlock(world, j1, k1 + 1, l1 + 1, Blocks.iron_block); + setBlock(world, j1, k1 + 2, l1 + 1, Blocks.iron_block); + setBlock(world, j1, k1 + 1, l1 + 2, Blocks.iron_block); + setBlock(world, j1, k1 + 2, l1 + 2); + setBlock(world, j1, k1 + 3, l1 + 2); + setBlock(world, j1, k1 + 1, l1 + 3); } } j1++; @@ -351,8 +352,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); @@ -361,10 +362,10 @@ public class StructureMysticDungeon extends WorldGenerator { if (l3 == 2) { int i5 = random.nextInt(100); if (i5 <= 40) { - setBlock(world, j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - setBlock(world, j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - setBlock(world, j1, k1 + 2, l1 + 2, 0); - setBlock(world, j1, k1 + 1, l1 + 3, 0); + setBlock(world, j1, k1 + 1, l1 + 1, Blocks.iron_block); + setBlock(world, j1, k1 + 1, l1 + 2, Blocks.iron_block); + setBlock(world, j1, k1 + 2, l1 + 2); + setBlock(world, j1, k1 + 1, l1 + 3); } } j1++; @@ -379,8 +380,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); @@ -390,27 +391,27 @@ public class StructureMysticDungeon extends WorldGenerator { if (l3 == 1) { int j5 = random.nextInt(100); if (j5 <= 15) { - setBlock(world, j1, k1 + 1, l1 + 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 1); + setBlock(world, j1, k1 + 1, l1 + 1, Blocks.mob_spawner); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1, k1 + 1, l1 + 1); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(Config.getRandomDungeonMob(random)); } - setBlock(world, j1, k1 + 2, l1 + 1, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 + 2, l1 + 1)); - setBlock(world, j1, k1 + 3, l1 + 1, Block.mobSpawner.blockID); - spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 3, l1 + 1); + setBlock(world, j1, k1 + 2, l1 + 1, Blocks.chest); + ChestFiller.fillWithRares(world.getTileEntity(j1, k1 + 2, l1 + 1)); + setBlock(world, j1, k1 + 3, l1 + 1, Blocks.mob_spawner); + spawner = (TileEntityMobSpawner) world.getTileEntity(j1, k1 + 3, l1 + 1); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(Config.getRandomDungeonMob(random)); } - setBlock(world, j1, k1 + 1, l1 + 2, 0); - setBlock(world, j1, k1 + 2, l1 + 2, 0); - setBlock(world, j1, k1 + 3, l1 + 2, 0); - setBlock(world, j1, k1 + 1, l1 + 3, 0); - setBlock(world, j1, k1 + 2, l1 + 3, 0); - setBlock(world, j1, k1 + 3, l1 + 3, 0); + setBlock(world, j1, k1 + 1, l1 + 2); + setBlock(world, j1, k1 + 2, l1 + 2); + setBlock(world, j1, k1 + 3, l1 + 2); + setBlock(world, j1, k1 + 1, l1 + 3); + setBlock(world, j1, k1 + 2, l1 + 3); + setBlock(world, j1, k1 + 3, l1 + 3); } - setBlock(world, j1, k1 + 1, l1 - 2, Block.planks.blockID); - setBlock(world, j1, k1 + 1, l1 - 3, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, Blocks.planks); + setBlock(world, j1, k1 + 1, l1 - 3, Blocks.planks); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -424,27 +425,27 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 + 5, pickBlock(random)); setBlock(world, j1, k1 + 1, l1 - 5, pickBlock(random)); if (l3 == 1) { - setBlock(world, j1, k1 + 1, l1 - 2, Block.planks.blockID); - setBlock(world, j1, k1 + 1, l1 - 3, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, Blocks.planks); + setBlock(world, j1, k1 + 1, l1 - 3, Blocks.planks); } if (l3 == 2) { int k5 = random.nextInt(100); if (k5 <= 30) { - setBlock(world, j1, k1 + 1, l1 + 1, Block.blockIron.blockID); - setBlock(world, j1, k1 + 1, l1 + 2, Block.blockIron.blockID); - setBlock(world, j1, k1 + 2, l1 + 2, Block.blockIron.blockID); - setBlock(world, j1, k1 + 1, l1 + 3, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 3); + setBlock(world, j1, k1 + 1, l1 + 1, Blocks.iron_block); + setBlock(world, j1, k1 + 1, l1 + 2, Blocks.iron_block); + setBlock(world, j1, k1 + 2, l1 + 2, Blocks.iron_block); + setBlock(world, j1, k1 + 1, l1 + 3, Blocks.mob_spawner); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1, k1 + 1, l1 + 3); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(Config.getRandomDungeonMob(random)); } } } @@ -460,8 +461,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); @@ -470,31 +471,31 @@ public class StructureMysticDungeon extends WorldGenerator { if (l3 == 1) { int l5 = random.nextInt(100); if (l5 <= 60) { - setBlock(world, j1, k1 + 1, l1 + 1, Block.bookShelf.blockID); - setBlock(world, j1, k1 + 2, l1 + 1, Block.bookShelf.blockID); - setBlock(world, j1, k1 + 3, l1 + 1, Block.bookShelf.blockID); - setBlock(world, j1, k1 + 1, l1 + 2, Block.bookShelf.blockID); - setBlock(world, j1, k1 + 2, l1 + 2, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 + 2); + setBlock(world, j1, k1 + 1, l1 + 1, Blocks.bookshelf); + setBlock(world, j1, k1 + 2, l1 + 1, Blocks.bookshelf); + setBlock(world, j1, k1 + 3, l1 + 1, Blocks.bookshelf); + setBlock(world, j1, k1 + 1, l1 + 2, Blocks.bookshelf); + setBlock(world, j1, k1 + 2, l1 + 2, Blocks.mob_spawner); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1, k1 + 2, l1 + 2); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(Config.getRandomDungeonMob(random)); } - setBlock(world, j1, k1 + 3, l1 + 2, Block.bookShelf.blockID); - setBlock(world, j1, k1 + 1, l1 + 3, Block.bookShelf.blockID); - setBlock(world, j1, k1 + 2, l1 + 3, Block.bookShelf.blockID); - setBlock(world, j1, k1 + 3, l1 + 3, Block.bookShelf.blockID); + setBlock(world, j1, k1 + 3, l1 + 2, Blocks.bookshelf); + setBlock(world, j1, k1 + 1, l1 + 3, Blocks.bookshelf); + setBlock(world, j1, k1 + 2, l1 + 3, Blocks.bookshelf); + setBlock(world, j1, k1 + 3, l1 + 3, Blocks.bookshelf); } - setBlock(world, j1, k1 + 1, l1 - 2, Block.planks.blockID); - setBlock(world, j1, k1 + 1, l1 - 3, Block.planks.blockID); + setBlock(world, j1, k1 + 1, l1 - 2, Blocks.planks); + setBlock(world, j1, k1 + 1, l1 - 3, Blocks.planks); } int i6 = random.nextInt(100); if (i6 <= 30) { - setBlock(world, j1 - 1, k1 + 4, l1 + 3, Block.vine.blockID); - setBlock(world, j1 - 1, k1 + 4, l1 + 2, Block.vine.blockID); - setBlock(world, j1 - 3, k1 + 4, l1 - 1, Block.vine.blockID); - setBlock(world, j1 - 3, k1 + 4, l1 + 1, Block.vine.blockID); - setBlock(world, j1 - 3, k1 + 4, l1, Block.vine.blockID); - setBlock(world, j1 - 3, k1 + 4, l1 - 3, Block.vine.blockID); + setBlock(world, j1 - 1, k1 + 4, l1 + 3, Blocks.vine); + setBlock(world, j1 - 1, k1 + 4, l1 + 2, Blocks.vine); + setBlock(world, j1 - 3, k1 + 4, l1 - 1, Blocks.vine); + setBlock(world, j1 - 3, k1 + 4, l1 + 1, Blocks.vine); + setBlock(world, j1 - 3, k1 + 4, l1, Blocks.vine); + setBlock(world, j1 - 3, k1 + 4, l1 - 3, Blocks.vine); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -508,8 +509,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); @@ -519,13 +520,13 @@ public class StructureMysticDungeon extends WorldGenerator { if (l3 == 2) { int l6 = random.nextInt(100); if (l6 <= 30) { - setBlock(world, j1, k1 + 1, l1 + 1, Block.blockGold.blockID); - setBlock(world, j1, k1 + 1, l1 + 2, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 1, l1 + 2); + setBlock(world, j1, k1 + 1, l1 + 1, Blocks.gold_block); + setBlock(world, j1, k1 + 1, l1 + 2, Blocks.mob_spawner); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1, k1 + 1, l1 + 2); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(Config.getRandomDungeonMob(random)); } - setBlock(world, j1, k1 + 1, l1 + 3, Block.blockGold.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, Blocks.gold_block); } } j1++; @@ -540,8 +541,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 1, l1 + 5, pickBlock(random)); @@ -553,7 +554,7 @@ public class StructureMysticDungeon extends WorldGenerator { if (i7 <= 60) { for (int y = 1; y < 4; y++) { for (int z = 1; z < 4; z++) { - setBlock(world, j1, k1 + y, l1 + z, Block.bookShelf.blockID); + setBlock(world, j1, k1 + y, l1 + z, Blocks.bookshelf); } } } @@ -561,40 +562,40 @@ public class StructureMysticDungeon extends WorldGenerator { if (l3 == 2) { int j7 = random.nextInt(100); if (j7 <= 20) { - setBlock(world, j1, k1 + 1, l1 + 1, Block.blockGold.blockID); - setBlock(world, j1, k1 + 2, l1 + 1, Block.blockGold.blockID); - setBlock(world, j1, k1 + 1, l1 + 2, Block.blockGold.blockID); - setBlock(world, j1, k1 + 2, l1 + 2, Block.blockGold.blockID); - setBlock(world, j1, k1 + 1, l1 + 3, Block.blockGold.blockID); + setBlock(world, j1, k1 + 1, l1 + 1, Blocks.gold_block); + setBlock(world, j1, k1 + 2, l1 + 1, Blocks.gold_block); + setBlock(world, j1, k1 + 1, l1 + 2, Blocks.gold_block); + setBlock(world, j1, k1 + 2, l1 + 2, Blocks.gold_block); + setBlock(world, j1, k1 + 1, l1 + 3, Blocks.gold_block); } int j8 = random.nextInt(100); if (j8 <= 30) { - setBlock(world, j1, k1 + 1, l1 - 1, 0); - setBlock(world, j1, k1 + 2, l1 - 1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1, k1 + 2, l1 - 1); + setBlock(world, j1, k1 + 1, l1 - 1); + setBlock(world, j1, k1 + 2, l1 - 1, Blocks.mob_spawner); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1, k1 + 2, l1 - 1); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(Config.getRandomDungeonMob(random)); } - setBlock(world, j1, k1 + 1, l1 - 2, 0); - setBlock(world, j1, k1 + 2, l1 - 2, 0); - setBlock(world, j1 - 1, k1 + 1, l1 - 1, 0); - setBlock(world, j1 - 1, k1 + 2, l1 - 2, 0); - setBlock(world, j1 - 1, k1 + 1, l1 - 2, 0); + setBlock(world, j1, k1 + 1, l1 - 2); + setBlock(world, j1, k1 + 2, l1 - 2); + setBlock(world, j1 - 1, k1 + 1, l1 - 1); + setBlock(world, j1 - 1, k1 + 2, l1 - 2); + setBlock(world, j1 - 1, k1 + 1, l1 - 2); } int j9 = random.nextInt(100); if (j9 <= 10) { - setBlock(world, j1 - 3, k1 + 1, l1 - 1, Block.blockDiamond.blockID); - setBlock(world, j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); + setBlock(world, j1 - 3, k1 + 1, l1 - 1, Blocks.diamond_block); + setBlock(world, j1 - 3, k1 + 1, l1 - 2, Blocks.diamond_block); } int j10 = random.nextInt(100); if (j10 <= 10) { - setBlock(world, j1 - 3, k1 + 1, l1 - 2, Block.blockDiamond.blockID); + setBlock(world, j1 - 3, k1 + 1, l1 - 2, Blocks.diamond_block); } int j11 = random.nextInt(100); if (j11 <= 15) { - setBlock(world, j1 - 5, k1 + 1, l1 - 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 5, k1 + 1, l1 - 2)); - setBlock(world, j1 - 5, k1 + 1, l1 - 3, 0); + setBlock(world, j1 - 5, k1 + 1, l1 - 2, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1 - 5, k1 + 1, l1 - 2)); + setBlock(world, j1 - 5, k1 + 1, l1 - 3); } } j1++; @@ -609,48 +610,48 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 4, pickBlock(random)); for (int u = 0; u < 5; u++) { for (int y = 1; y < 5; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 2, l1 - 5, pickBlock(random)); int k7 = random.nextInt(100); if (k7 <= 30) { - setBlock(world, j1 - 2, k1 + 5, l1 - 3, 0); - setBlock(world, j1 - 2, k1 + 5, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 5, l1 - 1, 0); - setBlock(world, j1 - 1, k1 + 5, l1 - 2, 0); - setBlock(world, j1 - 3, k1 + 5, l1 - 2, 0); - setBlock(world, j1 - 5, k1 + 5, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 6, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 6, l1 - 1, 0); - setBlock(world, j1 - 1, k1 + 6, l1 - 2, 0); - setBlock(world, j1 - 3, k1 + 6, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 7, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 7, l1 - 1, 0); - setBlock(world, j1 - 1, k1 + 7, l1 - 2, 0); - setBlock(world, j1 - 3, k1 + 7, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 8, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 8, l1 - 1, 0); - setBlock(world, j1 - 1, k1 + 8, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 9, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 9, l1 - 1, 0); - setBlock(world, j1 - 1, k1 + 9, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 10, l1 - 1, 0); - setBlock(world, j1 - 1, k1 + 10, l1 - 2, 0); - setBlock(world, j1 - 2, k1 + 1, l1 - 2, Block.stone.blockID); - setBlock(world, j1 - 2, k1 + 1, l1 - 3, Block.gravel.blockID); - setBlock(world, j1 - 1, k1 + 1, l1 - 2, Block.stone.blockID); - setBlock(world, j1 - 1, k1 + 1, l1 - 3, Block.gravel.blockID); - setBlock(world, j1 - 2, k1 + 1, l1 - 1, Block.stone.blockID); - setBlock(world, j1 - 3, k1 + 1, l1 - 2, Block.stone.blockID); - setBlock(world, j1 - 2, k1 + 2, l1 - 2, Block.stone.blockID); - setBlock(world, j1 - 2, k1 + 2, l1 - 1, Block.gravel.blockID); - setBlock(world, j1 - 2, k1 + 3, l1 - 2, Block.stone.blockID); - setBlock(world, j1 - 2, k1 + 3, l1 - 1, Block.stone.blockID); - setBlock(world, j1 - 4, k1 + 3, l1 - 1, Block.gravel.blockID); - setBlock(world, j1 - 2, k1 + 3, l1, Block.gravel.blockID); - setBlock(world, j1 - 1, k1 + 3, l1 - 3, Block.stone.blockID); + setBlock(world, j1 - 2, k1 + 5, l1 - 3); + setBlock(world, j1 - 2, k1 + 5, l1 - 2); + setBlock(world, j1 - 2, k1 + 5, l1 - 1); + setBlock(world, j1 - 1, k1 + 5, l1 - 2); + setBlock(world, j1 - 3, k1 + 5, l1 - 2); + setBlock(world, j1 - 5, k1 + 5, l1 - 2); + setBlock(world, j1 - 2, k1 + 6, l1 - 2); + setBlock(world, j1 - 2, k1 + 6, l1 - 1); + setBlock(world, j1 - 1, k1 + 6, l1 - 2); + setBlock(world, j1 - 3, k1 + 6, l1 - 2); + setBlock(world, j1 - 2, k1 + 7, l1 - 2); + setBlock(world, j1 - 2, k1 + 7, l1 - 1); + setBlock(world, j1 - 1, k1 + 7, l1 - 2); + setBlock(world, j1 - 3, k1 + 7, l1 - 2); + setBlock(world, j1 - 2, k1 + 8, l1 - 2); + setBlock(world, j1 - 2, k1 + 8, l1 - 1); + setBlock(world, j1 - 1, k1 + 8, l1 - 2); + setBlock(world, j1 - 2, k1 + 9, l1 - 2); + setBlock(world, j1 - 2, k1 + 9, l1 - 1); + setBlock(world, j1 - 1, k1 + 9, l1 - 2); + setBlock(world, j1 - 2, k1 + 10, l1 - 1); + setBlock(world, j1 - 1, k1 + 10, l1 - 2); + setBlock(world, j1 - 2, k1 + 1, l1 - 2, Blocks.stone); + setBlock(world, j1 - 2, k1 + 1, l1 - 3, Blocks.gravel); + setBlock(world, j1 - 1, k1 + 1, l1 - 2, Blocks.stone); + setBlock(world, j1 - 1, k1 + 1, l1 - 3, Blocks.gravel); + setBlock(world, j1 - 2, k1 + 1, l1 - 1, Blocks.stone); + setBlock(world, j1 - 3, k1 + 1, l1 - 2, Blocks.stone); + setBlock(world, j1 - 2, k1 + 2, l1 - 2, Blocks.stone); + setBlock(world, j1 - 2, k1 + 2, l1 - 1, Blocks.gravel); + setBlock(world, j1 - 2, k1 + 3, l1 - 2, Blocks.stone); + setBlock(world, j1 - 2, k1 + 3, l1 - 1, Blocks.stone); + setBlock(world, j1 - 4, k1 + 3, l1 - 1, Blocks.gravel); + setBlock(world, j1 - 2, k1 + 3, l1, Blocks.gravel); + setBlock(world, j1 - 1, k1 + 3, l1 - 3, Blocks.stone); } } if (k3 == 2) { @@ -673,8 +674,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 8, pickBlock(random)); for (int u = 0; u < 9; u++) { for (int y = 1; y < 6; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); @@ -685,44 +686,44 @@ public class StructureMysticDungeon extends WorldGenerator { int i4 = random.nextInt(100); if (i4 <= 60) { for (int y = 0; y < 15; y++) { - setBlock(world, j1 + 7, k1 - y, l1, 0); + setBlock(world, j1 + 7, k1 - y, l1); } - setBlock(world, j1, k1 - 13, l1 + 1, 0); - setBlock(world, j1, k1 - 13, l1 - 1, 0); - setBlock(world, j1, k1 - 14, l1 + 1, 0); - setBlock(world, j1, k1 - 14, l1 - 1, 0); - setBlock(world, j1 + 1, k1 - 13, l1 + 1, 0); - setBlock(world, j1 + 1, k1 - 13, l1 - 1, 0); - setBlock(world, j1 + 1, k1 - 14, l1 + 1, 0); - setBlock(world, j1 + 1, k1 - 14, l1 - 1, 0); + setBlock(world, j1, k1 - 13, l1 + 1); + setBlock(world, j1, k1 - 13, l1 - 1); + setBlock(world, j1, k1 - 14, l1 + 1); + setBlock(world, j1, k1 - 14, l1 - 1); + setBlock(world, j1 + 1, k1 - 13, l1 + 1); + setBlock(world, j1 + 1, k1 - 13, l1 - 1); + setBlock(world, j1 + 1, k1 - 14, l1 + 1); + setBlock(world, j1 + 1, k1 - 14, l1 - 1); } int j6 = random.nextInt(100); if (j6 <= 70) { for (int y = 0; y < 13; y++) { - setBlock(world, j1 + 7, k1 - y, l1 + 6, 0); + setBlock(world, j1 + 7, k1 - y, l1 + 6); } - setBlock(world, j1, k1 - 11, l1 + 7, 0); - setBlock(world, j1, k1 - 11, l1 + 5, 0); - setBlock(world, j1, k1 - 12, l1 + 7, 0); - setBlock(world, j1, k1 - 12, l1 + 5, 0); - setBlock(world, j1 + 1, k1 - 11, l1 + 7, 0); - setBlock(world, j1 + 1, k1 - 11, l1 + 5, 0); - setBlock(world, j1 + 1, k1 - 12, l1 + 7, 0); - setBlock(world, j1 + 1, k1 - 12, l1 + 5, 0); + setBlock(world, j1, k1 - 11, l1 + 7); + setBlock(world, j1, k1 - 11, l1 + 5); + setBlock(world, j1, k1 - 12, l1 + 7); + setBlock(world, j1, k1 - 12, l1 + 5); + setBlock(world, j1 + 1, k1 - 11, l1 + 7); + setBlock(world, j1 + 1, k1 - 11, l1 + 5); + setBlock(world, j1 + 1, k1 - 12, l1 + 7); + setBlock(world, j1 + 1, k1 - 12, l1 + 5); } int l7 = random.nextInt(100); if (l7 <= 50) { for (int y = 0; y < 17; y++) { - setBlock(world, j1 + 7, k1 - y, l1 - 4, 0); + setBlock(world, j1 + 7, k1 - y, l1 - 4); } - setBlock(world, j1 + 7, k1 - 15, l1 - 5, 0); - setBlock(world, j1 + 7, k1 - 15, l1 - 3, 0); - setBlock(world, j1 + 7, k1 - 16, l1 - 5, 0); - setBlock(world, j1 + 7, k1 - 16, l1 - 3, 0); - setBlock(world, j1 + 8, k1 - 15, l1 - 5, 0); - setBlock(world, j1 + 8, k1 - 15, l1 - 3, 0); - setBlock(world, j1 + 8, k1 - 16, l1 - 5, 0); - setBlock(world, j1 + 8, k1 - 16, l1 - 3, 0); + setBlock(world, j1 + 7, k1 - 15, l1 - 5); + setBlock(world, j1 + 7, k1 - 15, l1 - 3); + setBlock(world, j1 + 7, k1 - 16, l1 - 5); + setBlock(world, j1 + 7, k1 - 16, l1 - 3); + setBlock(world, j1 + 8, k1 - 15, l1 - 5); + setBlock(world, j1 + 8, k1 - 15, l1 - 3); + setBlock(world, j1 + 8, k1 - 16, l1 - 5); + setBlock(world, j1 + 8, k1 - 16, l1 - 3); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -742,18 +743,18 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 6, pickBlock(random)); setBlock(world, j1, k1, l1 - 7, pickBlock(random)); setBlock(world, j1, k1, l1 - 8, pickBlock(random)); - setBlock(world, j1, k1 + 6, l1, 0); - setBlock(world, j1, k1 + 6, l1 + 1, 0); - setBlock(world, j1, k1 + 6, l1 - 1, 0); - setBlock(world, j1, k1 + 6, l1 + 2, 0); - setBlock(world, j1, k1 + 6, l1 - 2, 0); - setBlock(world, j1, k1 + 7, l1 + 1, 0); - setBlock(world, j1, k1 + 7, l1, 0); - setBlock(world, j1, k1 + 7, l1 - 1, 0); - setBlock(world, j1, k1 + 8, l1, 0); + setBlock(world, j1, k1 + 6, l1); + setBlock(world, j1, k1 + 6, l1 + 1); + setBlock(world, j1, k1 + 6, l1 - 1); + setBlock(world, j1, k1 + 6, l1 + 2); + setBlock(world, j1, k1 + 6, l1 - 2); + setBlock(world, j1, k1 + 7, l1 + 1); + setBlock(world, j1, k1 + 7, l1); + setBlock(world, j1, k1 + 7, l1 - 1); + setBlock(world, j1, k1 + 8, l1); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1); } } setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); @@ -762,8 +763,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); for (int y = 1; y < 6; y++) { - setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Blocks.quartz_block, 2); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -783,36 +784,36 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 6, pickBlock(random)); setBlock(world, j1, k1, l1 - 7, pickBlock(random)); setBlock(world, j1, k1, l1 - 8, pickBlock(random)); - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1, k1 + 2, l1, 0); - setBlock(world, j1, k1 + 3, l1, 0); - setBlock(world, j1, k1 + 4, l1, 0); - setBlock(world, j1, k1 + 5, l1, 0); - setBlock(world, j1, k1 + 6, l1, 0); - setBlock(world, j1, k1 + 7, l1, 0); - setBlock(world, j1, k1 + 6, l1 + 1, 0); - setBlock(world, j1, k1 + 6, l1 - 1, 0); - setBlock(world, j1, k1 + 6, l1 + 2, 0); - setBlock(world, j1, k1 + 6, l1 - 2, 0); - setBlock(world, j1, k1 + 7, l1 + 1, 0); - setBlock(world, j1, k1 + 7, l1 - 1, 0); - setBlock(world, j1, k1 + 8, l1, 0); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1, k1 + 2, l1); + setBlock(world, j1, k1 + 3, l1); + setBlock(world, j1, k1 + 4, l1); + setBlock(world, j1, k1 + 5, l1); + setBlock(world, j1, k1 + 6, l1); + setBlock(world, j1, k1 + 7, l1); + setBlock(world, j1, k1 + 6, l1 + 1); + setBlock(world, j1, k1 + 6, l1 - 1); + setBlock(world, j1, k1 + 6, l1 + 2); + setBlock(world, j1, k1 + 6, l1 - 2); + setBlock(world, j1, k1 + 7, l1 + 1); + setBlock(world, j1, k1 + 7, l1 - 1); + setBlock(world, j1, k1 + 8, l1); for (int u = 1; u < 9; u++) { for (int y = 1; y < 6; y++) { - setBlock(world, j1, k1 + y, l1 + u, 0); - setBlock(world, j1, k1 + y, l1 - u, 0); + setBlock(world, j1, k1 + y, l1 + u); + setBlock(world, j1, k1 + y, l1 - u); } } setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); - setBlock(world, j1, k1 + 1, l1, Block.stoneSingleSlab.blockID); - setBlock(world, j1, k1 + 1, l1 + 1, Block.stoneSingleSlab.blockID); - setBlock(world, j1, k1 + 1, l1 + 2, Block.stoneSingleSlab.blockID); - setBlock(world, j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - setBlock(world, j1, k1 + 1, l1 - 1, Block.stoneSingleSlab.blockID); - setBlock(world, j1, k1 + 1, l1 - 2, Block.stoneSingleSlab.blockID); - setBlock(world, j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1, Blocks.stone_slab); + setBlock(world, j1, k1 + 1, l1 + 1, Blocks.stone_slab); + setBlock(world, j1, k1 + 1, l1 + 2, Blocks.stone_slab); + setBlock(world, j1, k1 + 1, l1 + 3, Blocks.stone_slab); + setBlock(world, j1, k1 + 1, l1 - 1, Blocks.stone_slab); + setBlock(world, j1, k1 + 1, l1 - 2, Blocks.stone_slab); + setBlock(world, j1, k1 + 1, l1 - 3, Blocks.stone_slab); j1++; setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); @@ -831,18 +832,18 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 6, pickBlock(random)); setBlock(world, j1, k1, l1 - 7, pickBlock(random)); setBlock(world, j1, k1, l1 - 8, pickBlock(random)); - setBlock(world, j1, k1 + 6, l1, 0); - setBlock(world, j1, k1 + 6, l1 + 1, 0); - setBlock(world, j1, k1 + 6, l1 - 1, 0); - setBlock(world, j1, k1 + 6, l1 + 2, 0); - setBlock(world, j1, k1 + 6, l1 - 2, 0); - setBlock(world, j1, k1 + 7, l1, 0); - setBlock(world, j1, k1 + 7, l1 + 1, 0); - setBlock(world, j1, k1 + 7, l1 - 1, 0); - setBlock(world, j1, k1 + 8, l1, 0); + setBlock(world, j1, k1 + 6, l1); + setBlock(world, j1, k1 + 6, l1 + 1); + setBlock(world, j1, k1 + 6, l1 - 1); + setBlock(world, j1, k1 + 6, l1 + 2); + setBlock(world, j1, k1 + 6, l1 - 2); + setBlock(world, j1, k1 + 7, l1); + setBlock(world, j1, k1 + 7, l1 + 1); + setBlock(world, j1, k1 + 7, l1 - 1); + setBlock(world, j1, k1 + 8, l1); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1); } } setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); @@ -850,21 +851,21 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 + 3, l1 + 9, pickBlock(random)); setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); - setBlock(world, j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, Blocks.stone_slab); for (int z = -2; z < 3; z++) { - setBlock(world, j1, k1, l1 + z, Block.obsidian.blockID); - setBlock(world, j1, k1 + 1, l1 + z, Block.obsidian.blockID); - setBlock(world, j1, k1 + 2, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1, l1 + z, Blocks.obsidian); + setBlock(world, j1, k1 + 1, l1 + z, Blocks.obsidian); + setBlock(world, j1, k1 + 2, l1 + z, Blocks.obsidian); } - setBlock(world, j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Blocks.stone_slab); for (int y = 1; y < 6; y++) { - setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Blocks.quartz_block, 2); } int k8 = random.nextInt(100); if (k8 <= 15) { - setBlock(world, j1, k1 + 1, l1 - 7, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1 - 7)); + setBlock(world, j1, k1 + 1, l1 - 7, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1, k1 + 1, l1 - 7)); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -884,18 +885,18 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 6, pickBlock(random)); setBlock(world, j1, k1, l1 - 7, pickBlock(random)); setBlock(world, j1, k1, l1 - 8, pickBlock(random)); - setBlock(world, j1, k1 + 6, l1, 0); - setBlock(world, j1, k1 + 6, l1 + 1, 0); - setBlock(world, j1, k1 + 6, l1 - 1, 0); - setBlock(world, j1, k1 + 6, l1 + 2, 0); - setBlock(world, j1, k1 + 6, l1 - 2, 0); - setBlock(world, j1, k1 + 7, l1, 0); - setBlock(world, j1, k1 + 7, l1 + 1, 0); - setBlock(world, j1, k1 + 7, l1 - 1, 0); - setBlock(world, j1, k1 + 8, l1, 0); + setBlock(world, j1, k1 + 6, l1); + setBlock(world, j1, k1 + 6, l1 + 1); + setBlock(world, j1, k1 + 6, l1 - 1); + setBlock(world, j1, k1 + 6, l1 + 2); + setBlock(world, j1, k1 + 6, l1 - 2); + setBlock(world, j1, k1 + 7, l1); + setBlock(world, j1, k1 + 7, l1 + 1); + setBlock(world, j1, k1 + 7, l1 - 1); + setBlock(world, j1, k1 + 8, l1); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1); } } setBlock(world, j1, k1 + 2, l1 + 9, pickBlock(random)); @@ -903,30 +904,30 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); setBlock(world, j1, k1 + 4, l1 - 9, pickBlock(random)); - setBlock(world, j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); - setBlock(world, j1, k1 + 1, l1, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 + 1, l1)); + setBlock(world, j1, k1 + 1, l1 + 3, Blocks.stone_slab); + setBlock(world, j1, k1 + 1, l1, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1, k1 + 1, l1)); for (int z = -2; z < 3; z++) { - setBlock(world, j1, k1, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1, l1 + z, Blocks.obsidian); if (z != 0) - setBlock(world, j1, k1 + 1, l1 + z, Block.obsidian.blockID); - setBlock(world, j1, k1 + 2, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1 + 1, l1 + z, Blocks.obsidian); + setBlock(world, j1, k1 + 2, l1 + z, Blocks.obsidian); } - setBlock(world, j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Blocks.stone_slab); int k9 = random.nextInt(100); if (k9 <= 75) { - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1, k1 + 2, l1, 0); - setBlock(world, j1, k1 + 1, l1 + 1, 0); - setBlock(world, j1, k1 + 2, l1 + 1, 0); - setBlock(world, j1, k1 + 1, l1 - 1, 0); - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1 - 1, k1 + 1, l1, 0); - setBlock(world, j1 - 1, k1 + 2, l1, 0); - setBlock(world, j1 - 1, k1 + 2, l1 - 1, 0); - setBlock(world, j1 - 3, k1 + 1, l1 + 2, Block.obsidian.blockID); - setBlock(world, j1 - 2, k1 + 1, l1, Block.obsidian.blockID); - setBlock(world, j1 - 3, k1 + 1, l1 - 3, Block.obsidian.blockID); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1, k1 + 2, l1); + setBlock(world, j1, k1 + 1, l1 + 1); + setBlock(world, j1, k1 + 2, l1 + 1); + setBlock(world, j1, k1 + 1, l1 - 1); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1 - 1, k1 + 1, l1); + setBlock(world, j1 - 1, k1 + 2, l1); + setBlock(world, j1 - 1, k1 + 2, l1 - 1); + setBlock(world, j1 - 3, k1 + 1, l1 + 2, Blocks.obsidian); + setBlock(world, j1 - 2, k1 + 1, l1, Blocks.obsidian); + setBlock(world, j1 - 3, k1 + 1, l1 - 3, Blocks.obsidian); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -946,54 +947,54 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 6, pickBlock(random)); setBlock(world, j1, k1, l1 - 7, pickBlock(random)); setBlock(world, j1, k1, l1 - 8, pickBlock(random)); - setBlock(world, j1, k1 + 6, l1, 0); - setBlock(world, j1, k1 + 6, l1 + 1, 0); - setBlock(world, j1, k1 + 6, l1 - 1, 0); - setBlock(world, j1, k1 + 6, l1 + 2, 0); - setBlock(world, j1, k1 + 6, l1 - 2, 0); - setBlock(world, j1, k1 + 7, l1, 0); - setBlock(world, j1, k1 + 7, l1 + 1, 0); - setBlock(world, j1, k1 + 7, l1 - 1, 0); - setBlock(world, j1, k1 + 8, l1, 0); + setBlock(world, j1, k1 + 6, l1); + setBlock(world, j1, k1 + 6, l1 + 1); + setBlock(world, j1, k1 + 6, l1 - 1); + setBlock(world, j1, k1 + 6, l1 + 2); + setBlock(world, j1, k1 + 6, l1 - 2); + setBlock(world, j1, k1 + 7, l1); + setBlock(world, j1, k1 + 7, l1 + 1); + setBlock(world, j1, k1 + 7, l1 - 1); + setBlock(world, j1, k1 + 8, l1); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1); } } setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); - setBlock(world, j1, k1 + 1, l1 + 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + 3, Blocks.stone_slab); for (int z = -2; z < 3; z++) { - setBlock(world, j1, k1, l1 + z, Block.obsidian.blockID); - setBlock(world, j1, k1 + 1, l1 + z, Block.obsidian.blockID); - setBlock(world, j1, k1 + 2, l1 + z, Block.obsidian.blockID); + setBlock(world, j1, k1, l1 + z, Blocks.obsidian); + setBlock(world, j1, k1 + 1, l1 + z, Blocks.obsidian); + setBlock(world, j1, k1 + 2, l1 + z, Blocks.obsidian); } - setBlock(world, j1, k1 + 1, l1 - 3, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 - 3, Blocks.stone_slab); for (int y = 1; y < 6; y++) { - setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Blocks.quartz_block, 2); } int k10 = random.nextInt(100); if (k10 <= 50) { - setBlockAndMetadata(world, j1, k1 + 1, l1 + 7, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 2, k1 + 1, l1 + 8, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 1, k1 + 1, l1 + 5, Block.blockNetherQuartz.blockID, 2); - setBlock(world, j1, k1 + 2, l1 + 6, 0); - setBlock(world, j1, k1 + 3, l1 + 6, 0); - setBlock(world, j1, k1 + 4, l1 + 6, 0); + setBlockAndMetadata(world, j1, k1 + 1, l1 + 7, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 2, k1 + 1, l1 + 8, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 1, k1 + 1, l1 + 5, Blocks.quartz_block, 2); + setBlock(world, j1, k1 + 2, l1 + 6); + setBlock(world, j1, k1 + 3, l1 + 6); + setBlock(world, j1, k1 + 4, l1 + 6); } int k11 = random.nextInt(100); if (k11 <= 30) { - setBlock(world, j1 + 1, k1 + 5, l1 + 3, Block.vine.blockID); - setBlock(world, j1 - 1, k1 + 5, l1 + 3, Block.vine.blockID); - setBlock(world, j1 - 1, k1 + 6, l1 + 2, Block.vine.blockID); - setBlock(world, j1 - 1, k1 + 5, l1 + 2, Block.vine.blockID); - setBlock(world, j1 - 2, k1 + 7, l1 - 1, Block.vine.blockID); - setBlock(world, j1 - 2, k1 + 7, l1 + 1, Block.vine.blockID); - setBlock(world, j1 - 2, k1 + 6, l1 + 1, Block.vine.blockID); - setBlock(world, j1 - 3, k1 + 8, l1, Block.vine.blockID); - setBlock(world, j1 + 1, k1 + 5, l1 - 3, Block.vine.blockID); + setBlock(world, j1 + 1, k1 + 5, l1 + 3, Blocks.vine); + setBlock(world, j1 - 1, k1 + 5, l1 + 3, Blocks.vine); + setBlock(world, j1 - 1, k1 + 6, l1 + 2, Blocks.vine); + setBlock(world, j1 - 1, k1 + 5, l1 + 2, Blocks.vine); + setBlock(world, j1 - 2, k1 + 7, l1 - 1, Blocks.vine); + setBlock(world, j1 - 2, k1 + 7, l1 + 1, Blocks.vine); + setBlock(world, j1 - 2, k1 + 6, l1 + 1, Blocks.vine); + setBlock(world, j1 - 3, k1 + 8, l1, Blocks.vine); + setBlock(world, j1 + 1, k1 + 5, l1 - 3, Blocks.vine); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -1013,18 +1014,18 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 6, pickBlock(random)); setBlock(world, j1, k1, l1 - 7, pickBlock(random)); setBlock(world, j1, k1, l1 - 8, pickBlock(random)); - setBlock(world, j1, k1 + 6, l1, 0); - setBlock(world, j1, k1 + 6, l1 + 1, 0); - setBlock(world, j1, k1 + 6, l1 - 1, 0); - setBlock(world, j1, k1 + 6, l1 + 2, 0); - setBlock(world, j1, k1 + 6, l1 - 2, 0); - setBlock(world, j1, k1 + 7, l1, 0); - setBlock(world, j1, k1 + 7, l1 + 1, 0); - setBlock(world, j1, k1 + 7, l1 - 1, 0); - setBlock(world, j1, k1 + 8, l1, 0); + setBlock(world, j1, k1 + 6, l1); + setBlock(world, j1, k1 + 6, l1 + 1); + setBlock(world, j1, k1 + 6, l1 - 1); + setBlock(world, j1, k1 + 6, l1 + 2); + setBlock(world, j1, k1 + 6, l1 - 2); + setBlock(world, j1, k1 + 7, l1); + setBlock(world, j1, k1 + 7, l1 + 1); + setBlock(world, j1, k1 + 7, l1 - 1); + setBlock(world, j1, k1 + 8, l1); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1); } } setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); @@ -1034,7 +1035,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); setBlock(world, j1, k1 + 3, l1 - 9, pickBlock(random)); for (int z = -3; z < 4; z++) { - setBlock(world, j1, k1 + 1, l1 + z, Block.stoneSingleSlab.blockID); + setBlock(world, j1, k1 + 1, l1 + z, Blocks.stone_slab); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -1054,18 +1055,18 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 6, pickBlock(random)); setBlock(world, j1, k1, l1 - 7, pickBlock(random)); setBlock(world, j1, k1, l1 - 8, pickBlock(random)); - setBlock(world, j1, k1 + 6, l1, 0); - setBlock(world, j1, k1 + 6, l1 + 1, 0); - setBlock(world, j1, k1 + 6, l1 - 1, 0); - setBlock(world, j1, k1 + 6, l1 + 2, 0); - setBlock(world, j1, k1 + 6, l1 - 2, 0); - setBlock(world, j1, k1 + 7, l1, 0); - setBlock(world, j1, k1 + 7, l1 + 1, 0); - setBlock(world, j1, k1 + 7, l1 - 1, 0); - setBlock(world, j1, k1 + 8, l1, 0); + setBlock(world, j1, k1 + 6, l1); + setBlock(world, j1, k1 + 6, l1 + 1); + setBlock(world, j1, k1 + 6, l1 - 1); + setBlock(world, j1, k1 + 6, l1 + 2); + setBlock(world, j1, k1 + 6, l1 - 2); + setBlock(world, j1, k1 + 7, l1); + setBlock(world, j1, k1 + 7, l1 + 1); + setBlock(world, j1, k1 + 7, l1 - 1); + setBlock(world, j1, k1 + 8, l1); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1); } } setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); @@ -1073,17 +1074,17 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 + 1, l1 - 9, pickBlock(random)); setBlock(world, j1, k1 + 2, l1 - 9, pickBlock(random)); for (int y = 1; y < 6; y++) { - setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 + 6, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1, k1 + y, l1 - 6, Blocks.quartz_block, 2); } int j12 = random.nextInt(100); if (j12 <= 50) { - setBlockAndMetadata(world, j1, k1 + 1, l1 - 7, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 1, k1 + 1, l1 - 8, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 3, k1 + 1, l1 - 5, Block.blockNetherQuartz.blockID, 2); - setBlock(world, j1, k1 + 3, l1 - 6, 0); - setBlock(world, j1, k1 + 4, l1 - 6, 0); - setBlock(world, j1, k1 + 5, l1 - 6, 0); + setBlockAndMetadata(world, j1, k1 + 1, l1 - 7, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 1, k1 + 1, l1 - 8, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 3, k1 + 1, l1 - 5, Blocks.quartz_block, 2); + setBlock(world, j1, k1 + 3, l1 - 6); + setBlock(world, j1, k1 + 4, l1 - 6); + setBlock(world, j1, k1 + 5, l1 - 6); } j1++; setBlock(world, j1, k1, l1, pickBlock(random)); @@ -1103,18 +1104,18 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1, l1 - 6, pickBlock(random)); setBlock(world, j1, k1, l1 - 7, pickBlock(random)); setBlock(world, j1, k1, l1 - 8, pickBlock(random)); - setBlock(world, j1, k1 + 6, l1, 0); - setBlock(world, j1, k1 + 6, l1 + 1, 0); - setBlock(world, j1, k1 + 6, l1 - 1, 0); - setBlock(world, j1, k1 + 6, l1 + 2, 0); - setBlock(world, j1, k1 + 6, l1 - 2, 0); - setBlock(world, j1, k1 + 7, l1, 0); - setBlock(world, j1, k1 + 7, l1 + 1, 0); - setBlock(world, j1, k1 + 7, l1 - 1, 0); - setBlock(world, j1, k1 + 8, l1, 0); + setBlock(world, j1, k1 + 6, l1); + setBlock(world, j1, k1 + 6, l1 + 1); + setBlock(world, j1, k1 + 6, l1 - 1); + setBlock(world, j1, k1 + 6, l1 + 2); + setBlock(world, j1, k1 + 6, l1 - 2); + setBlock(world, j1, k1 + 7, l1); + setBlock(world, j1, k1 + 7, l1 + 1); + setBlock(world, j1, k1 + 7, l1 - 1); + setBlock(world, j1, k1 + 8, l1); for (int y = 1; y < 6; y++) { for (int z = -8; z < 9; z++) { - setBlock(world, j1, k1 + y, l1 + 1, 0); + setBlock(world, j1, k1 + y, l1 + 1); } } setBlock(world, j1, k1 + 1, l1 + 9, pickBlock(random)); @@ -1124,8 +1125,8 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 + 3, l1 - 9, pickBlock(random)); } j1++; - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1, k1 + 2, l1); setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); @@ -1141,7 +1142,7 @@ public class StructureMysticDungeon extends WorldGenerator { j1++; for (int y = 1; y < 4; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 + y, l1 + z, 0); + setBlock(world, j1, k1 + y, l1 + z); } } setBlock(world, j1, k1, l1, pickBlock(random)); @@ -1150,134 +1151,134 @@ public class StructureMysticDungeon extends WorldGenerator { j1++; for (int y = 1; y < 4; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 + y, l1 + z, 0); + setBlock(world, j1, k1 + y, l1 + z); } } setBlock(world, j1, k1, l1, pickBlock(random)); setBlock(world, j1, k1, l1 + 1, pickBlock(random)); setBlock(world, j1, k1, l1 - 1, pickBlock(random)); j1++; - setBlock(world, j1, k1, l1, 0); - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1, k1 + 2, l1, 0); - setBlock(world, j1, k1 + 3, l1, 0); + setBlock(world, j1, k1, l1); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1, k1 + 2, l1); + setBlock(world, j1, k1 + 3, l1); j1++; - setBlock(world, j1, k1 - 1, l1, 0); - setBlock(world, j1, k1, l1, 0); - setBlock(world, j1, k1 + 1, l1, 0); - setBlock(world, j1, k1 + 2, l1, 0); + setBlock(world, j1, k1 - 1, l1); + setBlock(world, j1, k1, l1); + setBlock(world, j1, k1 + 1, l1); + setBlock(world, j1, k1 + 2, l1); j1++; - setBlock(world, j1, k1 - 2, l1, 0); - setBlock(world, j1, k1 - 1, l1, 0); - setBlock(world, j1, k1, l1, 0); - setBlock(world, j1, k1 + 1, l1, 0); + setBlock(world, j1, k1 - 2, l1); + setBlock(world, j1, k1 - 1, l1); + setBlock(world, j1, k1, l1); + setBlock(world, j1, k1 + 1, l1); j1++; - setBlock(world, j1, k1 - 3, l1, 0); - setBlock(world, j1, k1 - 2, l1, 0); - setBlock(world, j1, k1 - 1, l1, 0); - setBlock(world, j1, k1, l1, 0); + setBlock(world, j1, k1 - 3, l1); + setBlock(world, j1, k1 - 2, l1); + setBlock(world, j1, k1 - 1, l1); + setBlock(world, j1, k1, l1); j1++; - setBlock(world, j1, k1 - 4, l1, 0); - setBlock(world, j1, k1 - 3, l1, 0); - setBlock(world, j1, k1 - 2, l1, 0); - setBlock(world, j1, k1 - 1, l1, 0); + setBlock(world, j1, k1 - 4, l1); + setBlock(world, j1, k1 - 3, l1); + setBlock(world, j1, k1 - 2, l1); + setBlock(world, j1, k1 - 1, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); - setBlock(world, j1, k1 - 3, l1, 0); - setBlock(world, j1, k1 - 2, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); + setBlock(world, j1, k1 - 3, l1); + setBlock(world, j1, k1 - 2, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); j1++; for (int z = 0; z < 21; z++) { - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 4, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 4, l1); } - setBlock(world, j1, k1 - 4, l1 + 21, 0); - setBlock(world, j1, k1 - 5, l1 + 21, 0); - setBlock(world, j1, k1 - 6, l1 + 21, 0); + setBlock(world, j1, k1 - 4, l1 + 21); + setBlock(world, j1, k1 - 5, l1 + 21); + setBlock(world, j1, k1 - 6, l1 + 21); for (int z = 0; z < 8; z++) { for (int y = 4; y < 7; y++) { - setBlock(world, j1, k1 - y - z, l1 + 22 + z, 0); + setBlock(world, j1, k1 - y - z, l1 + 22 + z); } } int j4 = random.nextInt(100); if (j4 <= 20) { for (int x = -1; x < 2; x++) { - setBlock(world, j1 + x, k1 - 12, l1 + 31, 0); - setBlock(world, j1 + x, k1 - 13, l1 + 31, 0); - setBlock(world, j1 + x, k1 - 12, l1 + 32, 0); - setBlock(world, j1 + x, k1 - 13, l1 + 32, 0); - setBlock(world, j1 + x, k1 - 12, l1 + 33, 0); - setBlock(world, j1 + x, k1 - 13, l1 + 33, 0); + setBlock(world, j1 + x, k1 - 12, l1 + 31); + setBlock(world, j1 + x, k1 - 13, l1 + 31); + setBlock(world, j1 + x, k1 - 12, l1 + 32); + setBlock(world, j1 + x, k1 - 13, l1 + 32); + setBlock(world, j1 + x, k1 - 12, l1 + 33); + setBlock(world, j1 + x, k1 - 13, l1 + 33); } - setBlock(world, j1, k1 - 10, l1 + 31, Block.blockLapis.blockID); + setBlock(world, j1, k1 - 10, l1 + 31, Blocks.lapis_block); setBlock(world, j1, k1 - 10, l1 + 32, pickBlock(random)); - setBlock(world, j1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - setBlock(world, j1 + 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - setBlock(world, j1 + 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); - setBlock(world, j1 + 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - setBlock(world, j1 - 1, k1 - 10, l1 + 31, Block.blockLapis.blockID); - setBlock(world, j1 - 1, k1 - 10, l1 + 32, Block.blockLapis.blockID); - setBlock(world, j1 - 1, k1 - 10, l1 + 33, Block.blockLapis.blockID); - setBlock(world, j1, k1 - 11, l1 + 32, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1, k1 - 11, l1 + 32)); + setBlock(world, j1, k1 - 10, l1 + 33, Blocks.lapis_block); + setBlock(world, j1 + 1, k1 - 10, l1 + 31, Blocks.lapis_block); + setBlock(world, j1 + 1, k1 - 10, l1 + 32, Blocks.lapis_block); + setBlock(world, j1 + 1, k1 - 10, l1 + 33, Blocks.lapis_block); + setBlock(world, j1 - 1, k1 - 10, l1 + 31, Blocks.lapis_block); + setBlock(world, j1 - 1, k1 - 10, l1 + 32, Blocks.lapis_block); + setBlock(world, j1 - 1, k1 - 10, l1 + 33, Blocks.lapis_block); + setBlock(world, j1, k1 - 11, l1 + 32, Blocks.chest); + ChestFiller.fillWithRares(world.getTileEntity(j1, k1 - 11, l1 + 32)); } j1++; - setBlock(world, j1, k1 - 4, l1, 0); - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 6, l1, 0); + setBlock(world, j1, k1 - 4, l1); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 6, l1); j1++; - setBlock(world, j1, k1 - 4, l1, 0); - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 6, l1, 0); - setBlock(world, j1, k1 - 7, l1, 0); + setBlock(world, j1, k1 - 4, l1); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 6, l1); + setBlock(world, j1, k1 - 7, l1); j1++; - setBlock(world, j1, k1 - 5, l1, 0); - setBlock(world, j1, k1 - 6, l1, 0); - setBlock(world, j1, k1 - 7, l1, 0); - setBlock(world, j1, k1 - 8, l1, 0); + setBlock(world, j1, k1 - 5, l1); + setBlock(world, j1, k1 - 6, l1); + setBlock(world, j1, k1 - 7, l1); + setBlock(world, j1, k1 - 8, l1); j1++; - setBlock(world, j1, k1 - 6, l1, 0); - setBlock(world, j1, k1 - 7, l1, 0); - setBlock(world, j1, k1 - 8, l1, 0); - setBlock(world, j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 6, l1); + setBlock(world, j1, k1 - 7, l1); + setBlock(world, j1, k1 - 8, l1); + setBlock(world, j1, k1 - 9, l1); j1++; - setBlock(world, j1, k1 - 7, l1, 0); - setBlock(world, j1, k1 - 8, l1, 0); - setBlock(world, j1, k1 - 9, l1, 0); - setBlock(world, j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 7, l1); + setBlock(world, j1, k1 - 8, l1); + setBlock(world, j1, k1 - 9, l1); + setBlock(world, j1, k1 - 10, l1); j1++; - setBlock(world, j1, k1 - 9, l1, 0); - setBlock(world, j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 9, l1); + setBlock(world, j1, k1 - 10, l1); j1++; - setBlock(world, j1, k1 - 9, l1, 0); - setBlock(world, j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 9, l1); + setBlock(world, j1, k1 - 10, l1); j1++; - setBlock(world, j1, k1 - 9, l1, 0); - setBlock(world, j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 9, l1); + setBlock(world, j1, k1 - 10, l1); j1++; - setBlock(world, j1, k1 - 9, l1, 0); - setBlock(world, j1, k1 - 10, l1, 0); + setBlock(world, j1, k1 - 9, l1); + setBlock(world, j1, k1 - 10, l1); setBlock(world, j1, k1 - 8, l1 + 1, pickBlock(random)); setBlock(world, j1, k1 - 9, l1 + 1, pickBlock(random)); setBlock(world, j1, k1 - 9, l1 - 1, pickBlock(random)); @@ -1290,7 +1291,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); @@ -1300,7 +1301,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1312,7 +1313,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1324,7 +1325,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1334,7 +1335,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1346,7 +1347,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1358,10 +1359,10 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } - setBlock(world, j1, k1 - 10, l1 + 2, Block.stone.blockID); + setBlock(world, j1, k1 - 10, l1 + 2, Blocks.stone); setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); setBlock(world, j1, k1 - 9, l1 - 2, pickBlock(random)); j1++; @@ -1370,7 +1371,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1382,7 +1383,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1393,7 +1394,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1405,7 +1406,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1415,7 +1416,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1425,7 +1426,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); @@ -1437,7 +1438,7 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 - 2, pickBlock(random)); @@ -1447,14 +1448,14 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); for (int y = 0; y < 3; y++) { for (int z = -1; z < 2; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 2, pickBlock(random)); setBlock(world, j1, k1 - 9, l1 + 2, pickBlock(random)); j1++; - setBlock(world, j1, k1 - 10, l1, 0); - setBlock(world, j1, k1 - 9, l1, 0); + setBlock(world, j1, k1 - 10, l1); + setBlock(world, j1, k1 - 9, l1); setBlock(world, j1, k1 - 11, l1, pickBlock(random)); setBlock(world, j1, k1 - 11, l1 + 1, pickBlock(random)); setBlock(world, j1, k1 - 11, l1 - 1, pickBlock(random)); @@ -1467,11 +1468,11 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1, k1 - 8, l1, pickBlock(random)); int k6 = random.nextInt(100); if (k6 <= 30) { - setBlock(world, j1 - 1, k1 - 8, l1 + 3, Block.vine.blockID); - setBlock(world, j1 - 2, k1 - 8, l1, Block.vine.blockID); - setBlock(world, j1 - 2, k1 - 9, l1, Block.vine.blockID); - setBlock(world, j1 - 4, k1 - 8, l1 + 2, Block.vine.blockID); - setBlock(world, j1 - 6, k1 - 8, l1 - 1, Block.vine.blockID); + setBlock(world, j1 - 1, k1 - 8, l1 + 3, Blocks.vine); + setBlock(world, j1 - 2, k1 - 8, l1, Blocks.vine); + setBlock(world, j1 - 2, k1 - 9, l1, Blocks.vine); + setBlock(world, j1 - 4, k1 - 8, l1 + 2, Blocks.vine); + setBlock(world, j1 - 6, k1 - 8, l1 - 1, Blocks.vine); } j1++; for (int z = -4; z < 5; z++) { @@ -1479,7 +1480,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1493,7 +1494,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1505,7 +1506,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1519,7 +1520,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1533,7 +1534,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1547,7 +1548,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1559,7 +1560,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1572,7 +1573,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1584,7 +1585,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1598,7 +1599,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1611,7 +1612,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1623,7 +1624,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1633,7 +1634,7 @@ public class StructureMysticDungeon extends WorldGenerator { } for (int y = 0; y < 4; y++) { for (int z = -4; z < 5; z++) { - setBlock(world, j1, k1 - 10 - y, l1 + z, 0); + setBlock(world, j1, k1 - 10 - y, l1 + z); } } setBlock(world, j1, k1 - 10, l1 + 5, pickBlock(random)); @@ -1648,91 +1649,91 @@ public class StructureMysticDungeon extends WorldGenerator { } int l8 = random.nextInt(100); if (l8 <= 50) { - setBlock(world, j1 - 1, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 1, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 1, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 1, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 1, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 1, k1 - 8, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 + 2, Blocks.double_stone_slab); + setBlock(world, j1 - 1, k1 - 9, l1 + 2, Blocks.double_stone_slab); + setBlock(world, j1 - 1, k1 - 8, l1 + 2, Blocks.double_stone_slab); + setBlock(world, j1 - 1, k1 - 10, l1 + 3, Blocks.double_stone_slab); + setBlock(world, j1 - 1, k1 - 9, l1 + 3, Blocks.double_stone_slab); + setBlock(world, j1 - 1, k1 - 8, l1 + 3, Blocks.double_stone_slab); } int l9 = random.nextInt(100); if (l9 <= 60) { - setBlock(world, j1 - 2, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 2, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 2, k1 - 8, l1 + 2, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 2, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 2, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 2, k1 - 10, l1 + 2, Blocks.double_stone_slab); + setBlock(world, j1 - 2, k1 - 9, l1 + 2, Blocks.double_stone_slab); + setBlock(world, j1 - 2, k1 - 8, l1 + 2, Blocks.double_stone_slab); + setBlock(world, j1 - 2, k1 - 10, l1 + 3, Blocks.double_stone_slab); + setBlock(world, j1 - 2, k1 - 9, l1 + 3, Blocks.double_stone_slab); } int l10 = random.nextInt(100); if (l10 <= 70) { - setBlock(world, j1 - 3, k1 - 10, l1 + 2, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 3, k1 - 9, l1 + 2, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 3, k1 - 10, l1 + 3, Block.stoneDoubleSlab.blockID); - setBlock(world, j1 - 3, k1 - 9, l1 + 3, Block.stoneDoubleSlab.blockID); + setBlock(world, j1 - 3, k1 - 10, l1 + 2, Blocks.double_stone_slab); + setBlock(world, j1 - 3, k1 - 9, l1 + 2, Blocks.double_stone_slab); + setBlock(world, j1 - 3, k1 - 10, l1 + 3, Blocks.double_stone_slab); + setBlock(world, j1 - 3, k1 - 9, l1 + 3, Blocks.double_stone_slab); } int l11 = random.nextInt(100); if (l11 <= 40) { - setBlock(world, j1 - 1, k1 - 10, l1 - 2, Block.brick.blockID); - setBlock(world, j1 - 1, k1 - 9, l1 - 2, Block.brick.blockID); - setBlock(world, j1 - 1, k1 - 8, l1 - 2, Block.brick.blockID); - setBlock(world, j1 - 1, k1 - 10, l1 - 3, Block.brick.blockID); - setBlock(world, j1 - 1, k1 - 9, l1 - 3, Block.brick.blockID); + setBlock(world, j1 - 1, k1 - 10, l1 - 2, Blocks.stonebrick); + setBlock(world, j1 - 1, k1 - 9, l1 - 2, Blocks.stonebrick); + setBlock(world, j1 - 1, k1 - 8, l1 - 2, Blocks.stonebrick); + setBlock(world, j1 - 1, k1 - 10, l1 - 3, Blocks.stonebrick); + setBlock(world, j1 - 1, k1 - 9, l1 - 3, Blocks.stonebrick); } int k12 = random.nextInt(100); if (k12 <= 50) { - setBlock(world, j1 - 2, k1 - 10, l1 - 2, Block.brick.blockID); - setBlock(world, j1 - 2, k1 - 9, l1 - 2, Block.brick.blockID); - setBlock(world, j1 - 2, k1 - 8, l1 - 2, Block.brick.blockID); - setBlock(world, j1 - 2, k1 - 10, l1 - 3, Block.brick.blockID); - setBlock(world, j1 - 2, k1 - 9, l1 - 3, Block.brick.blockID); - setBlock(world, j1 - 2, k1 - 8, l1 - 3, Block.brick.blockID); + setBlock(world, j1 - 2, k1 - 10, l1 - 2, Blocks.stonebrick); + setBlock(world, j1 - 2, k1 - 9, l1 - 2, Blocks.stonebrick); + setBlock(world, j1 - 2, k1 - 8, l1 - 2, Blocks.stonebrick); + setBlock(world, j1 - 2, k1 - 10, l1 - 3, Blocks.stonebrick); + setBlock(world, j1 - 2, k1 - 9, l1 - 3, Blocks.stonebrick); + setBlock(world, j1 - 2, k1 - 8, l1 - 3, Blocks.stonebrick); } int l12 = random.nextInt(100); if (l12 <= 40) { - setBlock(world, j1 - 4, k1 - 10, l1 - 2, Block.netherBrick.blockID); - setBlock(world, j1 - 4, k1 - 9, l1 - 2, Block.netherBrick.blockID); - setBlock(world, j1 - 4, k1 - 10, l1 - 3, Block.netherBrick.blockID); - setBlock(world, j1 - 4, k1 - 9, l1 - 3, Block.netherBrick.blockID); + setBlock(world, j1 - 4, k1 - 10, l1 - 2, Blocks.nether_brick); + setBlock(world, j1 - 4, k1 - 9, l1 - 2, Blocks.nether_brick); + setBlock(world, j1 - 4, k1 - 10, l1 - 3, Blocks.nether_brick); + setBlock(world, j1 - 4, k1 - 9, l1 - 3, Blocks.nether_brick); } int i13 = random.nextInt(100); if (i13 <= 40) { - setBlock(world, j1 - 5, k1 - 10, l1 - 2, Block.netherBrick.blockID); - setBlock(world, j1 - 5, k1 - 9, l1 - 2, Block.netherBrick.blockID); - setBlock(world, j1 - 5, k1 - 10, l1 - 3, Block.netherBrick.blockID); - setBlock(world, j1 - 5, k1 - 9, l1 - 3, Block.netherBrick.blockID); - setBlock(world, j1 - 6, k1 - 10, l1 - 2, Block.netherBrick.blockID); - setBlock(world, j1 - 6, k1 - 9, l1 - 2, Block.netherBrick.blockID); - setBlock(world, j1 - 6, k1 - 10, l1 - 3, Block.netherBrick.blockID); + setBlock(world, j1 - 5, k1 - 10, l1 - 2, Blocks.nether_brick); + setBlock(world, j1 - 5, k1 - 9, l1 - 2, Blocks.nether_brick); + setBlock(world, j1 - 5, k1 - 10, l1 - 3, Blocks.nether_brick); + setBlock(world, j1 - 5, k1 - 9, l1 - 3, Blocks.nether_brick); + setBlock(world, j1 - 6, k1 - 10, l1 - 2, Blocks.nether_brick); + setBlock(world, j1 - 6, k1 - 9, l1 - 2, Blocks.nether_brick); + setBlock(world, j1 - 6, k1 - 10, l1 - 3, Blocks.nether_brick); } int j13 = random.nextInt(100); if (j13 <= 15) { - setBlock(world, j1 - 9, k1 - 10, l1 + 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 + 2)); + setBlock(world, j1 - 9, k1 - 10, l1 + 2, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1 - 9, k1 - 10, l1 + 2)); } if (j13 >= 85) { - setBlock(world, j1 - 9, k1 - 10, l1 - 2, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 9, k1 - 10, l1 - 2)); + setBlock(world, j1 - 9, k1 - 10, l1 - 2, Blocks.chest); + ChestFiller.fillWithRares(world.getTileEntity(j1 - 9, k1 - 10, l1 - 2)); } } if (i8 != 2) { return true; } for (int y = 0; y < 4; y++) { - setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1 + 3, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 1, k1 - 10 - y, l1 - 3, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1 + 3, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 3, k1 - 10 - y, l1 - 3, Blocks.quartz_block, 2); } - setBlock(world, j1 - 4, k1 - 10, l1, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 - 4, k1 - 10, l1); + setBlock(world, j1 - 4, k1 - 10, l1, Blocks.mob_spawner); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1 - 4, k1 - 10, l1); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(Config.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(Config.getRandomDungeonMob(random)); } - setBlock(world, j1 - 8, k1 - 10, l1, Block.stoneSingleSlab.blockID); - setBlock(world, j1 - 8, k1 - 10, l1 + 1, Block.stoneSingleSlab.blockID); - setBlock(world, j1 - 8, k1 - 10, l1 - 1, Block.stoneSingleSlab.blockID); + setBlock(world, j1 - 8, k1 - 10, l1, Blocks.stone_slab); + setBlock(world, j1 - 8, k1 - 10, l1 + 1, Blocks.stone_slab); + setBlock(world, j1 - 8, k1 - 10, l1 - 1, Blocks.stone_slab); setBlock(world, j1 - 5, k1 - 10, l1, pickBlock(random)); setBlock(world, j1 - 5, k1 - 10, l1 + 1, pickBlock(random)); setBlock(world, j1 - 5, k1 - 10, l1 - 1, pickBlock(random)); @@ -1746,48 +1747,60 @@ public class StructureMysticDungeon extends WorldGenerator { setBlock(world, j1 - 7, k1 - 10, l1 - 1, pickBlock(random)); int i9 = random.nextInt(100); if (i9 <= 30) { - setBlock(world, j1 - 6, k1 - 9, l1, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); + setBlock(world, j1 - 6, k1 - 9, l1, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1 - 6, k1 - 9, l1)); } if (i9 <= 10) { - setBlock(world, j1 - 6, k1 - 9, l1, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 6, k1 - 9, l1)); + setBlock(world, j1 - 6, k1 - 9, l1, Blocks.chest); + ChestFiller.fillWithRares(world.getTileEntity(j1 - 6, k1 - 9, l1)); } for (int y = 0; y < 4; y++) { - setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1 + 3, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1 - 3, Block.blockNetherQuartz.blockID, 2); + setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1 + 3, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 9, k1 - 10 - y, l1 - 3, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1 + 3, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 11, k1 - 10 - y, l1 - 3, Blocks.quartz_block, 2); } int i10 = random.nextInt(100); if (i10 <= 20) { - setBlock(world, j1 - 2, k1 - 10, l1 + 4, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1 - 2, k1 - 10, l1 + 4)); + setBlock(world, j1 - 2, k1 - 10, l1 + 4, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1 - 2, k1 - 10, l1 + 4)); } int i11 = random.nextInt(100); if (i11 <= 40) { - setBlock(world, j1 - 3, k1 - 9, l1 + 3, 0); - setBlock(world, j1 - 3, k1 - 8, l1 + 3, 0); - setBlock(world, j1 - 3, k1 - 7, l1 + 3, 0); - setBlockAndMetadata(world, j1 - 1, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 2, k1 - 10, l1 + 4, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1, k1 - 10, l1 + 2, Block.blockNetherQuartz.blockID, 2); + setBlock(world, j1 - 3, k1 - 9, l1 + 3); + setBlock(world, j1 - 3, k1 - 8, l1 + 3); + setBlock(world, j1 - 3, k1 - 7, l1 + 3); + setBlockAndMetadata(world, j1 - 1, k1 - 10, l1 + 4, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 2, k1 - 10, l1 + 4, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1, k1 - 10, l1 + 2, Blocks.quartz_block, 2); } int i12 = random.nextInt(100); if (i12 <= 40) { - setBlock(world, j1 - 9, k1 - 9, l1 - 3, 0); - setBlock(world, j1 - 9, k1 - 8, l1 - 3, 0); - setBlock(world, j1 - 9, k1 - 7, l1 - 3, 0); - setBlockAndMetadata(world, j1 - 7, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2); - setBlockAndMetadata(world, j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2); + setBlock(world, j1 - 9, k1 - 9, l1 - 3); + setBlock(world, j1 - 9, k1 - 8, l1 - 3); + setBlock(world, j1 - 9, k1 - 7, l1 - 3); + setBlockAndMetadata(world, j1 - 7, k1 - 10, l1 - 2, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 8, k1 - 10, l1 - 4, Blocks.quartz_block, 2); + setBlockAndMetadata(world, j1 - 8, k1 - 10, l1 - 2, Blocks.quartz_block, 2); } return true; } - private static int pickBlock(Random random) { - return random.nextBoolean() ? Block.cobblestone.blockID : Block.cobblestoneMossy.blockID; + private static Block pickBlock(Random random) { + return random.nextBoolean() ? Blocks.cobblestone : Blocks.mossy_cobblestone; } + + private void setBlock(World w, int x, int y, int z){ + func_150515_a(w, x, y, z, Blocks.air); + } + + private void setBlock(World w, int x, int y, int z, Block bl){ + func_150515_a(w, x, y, z, bl); + } + + private void setBlockAndMetadata(World w, int x, int y, int z, Block bl, int meta){ + setBlockAndNotifyAdequately(w, x, y, z, bl, meta); + } } diff --git a/common/MysticRuins/StructureRuin$1.java b/common/MysticRuins/StructureRuin$1.java index d57b407..4886e2a 100644 --- a/common/MysticRuins/StructureRuin$1.java +++ b/common/MysticRuins/StructureRuin$1.java @@ -3,6 +3,7 @@ package mysticruins; import java.util.Random; import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntityMobSpawner; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; @@ -20,7 +21,7 @@ public class StructureRuin$1 extends WorldGenerator { if (k1 <= 0) { return false; } - if (!world.isAirBlock(j1, k1, l1) || world.getBlockId(j1, k1 - 1, l1) != Block.grass.blockID || !Block.pumpkin.canPlaceBlockAt(world, j1, k1, l1)) { + if (!world.isAirBlock(j1, k1, l1) || world.getBlock(j1, k1 - 1, l1) != Blocks.grass || !Blocks.pumpkin.canPlaceBlockAt(world, j1, k1, l1)) { return false; } int i2 = random.nextInt(3) + 1; @@ -39,81 +40,81 @@ public class StructureRuin$1 extends WorldGenerator { } else { j5 = random.nextInt(4) + 5; } - setBlock(world, j1, k1 - j5, l1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1, (k1 - j5) + 1, l1, Block.stoneBrick.blockID, 1); - setBlock(world, j1, (k1 - j5) + 2, l1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1, (k1 - j5) + 2, l1 + 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - j5) + 3, l1 + 1, Block.stoneBrick.blockID, 1); - setBlock(world, j1, (k1 - j5) + 4, l1 + 1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1, (k1 - j5) + 5, l1 + 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - j5) + 2, l1 + 2, Block.stoneBrick.blockID, 1); - setBlock(world, j1, (k1 - j5) + 3, l1 + 2, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1, (k1 - j5) + 4, l1 + 2, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, k1 - j5, l1 + 3, Block.stoneBrick.blockID, 1); - setBlock(world, j1, (k1 - j5) + 1, l1 + 3, Block.stoneBrick.blockID); - setBlock(world, j1, (k1 - j5) + 2, l1 + 3, Block.stoneBrick.blockID); - setBlock(world, j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); - setBlock(world, j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 - j5 - k4, l1 + 2)); + setBlock(world, j1, k1 - j5, l1, Blocks.stonebrick); + setBlockAndMetadata(world, j1, (k1 - j5) + 1, l1, Blocks.stonebrick, 1); + setBlock(world, j1, (k1 - j5) + 2, l1, Blocks.stonebrick); + setBlockAndMetadata(world, j1, (k1 - j5) + 2, l1 + 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - j5) + 3, l1 + 1, Blocks.stonebrick, 1); + setBlock(world, j1, (k1 - j5) + 4, l1 + 1, Blocks.stonebrick); + setBlockAndMetadata(world, j1, (k1 - j5) + 5, l1 + 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - j5) + 2, l1 + 2, Blocks.stonebrick, 1); + setBlock(world, j1, (k1 - j5) + 3, l1 + 2, Blocks.stonebrick); + setBlockAndMetadata(world, j1, (k1 - j5) + 4, l1 + 2, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, k1 - j5, l1 + 3, Blocks.stonebrick, 1); + setBlock(world, j1, (k1 - j5) + 1, l1 + 3, Blocks.stonebrick); + setBlock(world, j1, (k1 - j5) + 2, l1 + 3, Blocks.stonebrick); + setBlock(world, j1, k1 - j5 - k4 - 1, l1 + 2, Blocks.dirt); + setBlock(world, j1, k1 - j5 - k4, l1 + 2, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1, k1 - j5 - k4, l1 + 2)); l6 = 1; i6 = 0; flag = false; do { if (world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) - || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Block.waterStill.blockID - || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) == Block.waterStill.blockID) { + || world.getBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Blocks.water || world.getBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Blocks.water + || world.getBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) == Blocks.water) { i6++; } else { flag = true; } } while (!flag && l6++ < 12); - setBlock(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Blocks.stonebrick, 1); + setBlock(world, j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick, 1); + setBlock(world, j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Blocks.stonebrick, 1); + setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Blocks.stonebrick, 1); + setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Blocks.stonebrick, 1); k7 = random.nextInt(100); if (k7 <= 30) { - setBlock(world, j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); + setBlock(world, j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Blocks.mob_spawner); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(DungeonHooks.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(DungeonHooks.getRandomDungeonMob(random)); } - setBlock(world, j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); + setBlock(world, j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Blocks.dirt); } l6 = 1; i6 = 0; flag = false; do { if (world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 4) || world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 5) || world.isAirBlock(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) - || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID - || world.getBlockId(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID) { + || world.getBlock(j1 - i3, k1 - j5 - l6, l1 - 4) == Blocks.water || world.getBlock(j1 - i3, k1 - j5 - l6, l1 - 5) == Blocks.water + || world.getBlock(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) == Blocks.water) { i6++; } else { flag = true; } } while (!flag && l6++ < 12); - setBlock(world, j1 - i3, k1 - j5 - i6, l1 - 4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - i3, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Block.stoneBrick.blockID); + setBlock(world, j1 - i3, k1 - j5 - i6, l1 - 4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - i3, ((k1 - j5) + 1) - i6, l1 - 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - i3, k1 - j5 - i6, l1 - 5, Blocks.stonebrick, 1); + setBlock(world, j1 - i3 - 1, k1 - j5 - i6, l1 - 5, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - i3 - 1, ((k1 - j5) + 1) - i6, l1 - 5, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - i3 - 1, ((k1 - j5) + 2) - i6, l1 - 5, Blocks.stonebrick, 1); + setBlock(world, j1 - i3 - 2, k1 - j5 - i6, l1 - 5, Blocks.stonebrick); k7 = random.nextInt(100); if (k7 <= 60) { - setBlock(world, j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); - setBlock(world, j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); + setBlock(world, j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Blocks.dirt); + setBlock(world, j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Blocks.dirt); } } if (i2 == 2) { @@ -132,143 +133,143 @@ public class StructureRuin$1 extends WorldGenerator { } else { k5 = random.nextInt(4) + 5; } - setBlock(world, j1, k1 - k5, l1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1, k1 - k5, l1 + 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, k1 - k5, l1 + 2, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, k1 - k5, l1 + 3, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, k1 - k5, l1 + 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - k5) + 1, l1 + 2, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - k5) + 2, l1 + 2, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - k5) + 3, l1 + 2, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - k5) + 1, l1 + 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + 1, k1 - k5, l1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + 2, k1 - k5, l1, Block.stoneBrick.blockID, 1); - setBlock(world, j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); - setBlock(world, j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); + setBlock(world, j1, k1 - k5, l1, Blocks.stonebrick); + setBlockAndMetadata(world, j1, k1 - k5, l1 + 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, k1 - k5, l1 + 2, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, k1 - k5, l1 + 3, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, k1 - k5, l1 + 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - k5) + 1, l1 + 2, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - k5) + 2, l1 + 2, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - k5) + 3, l1 + 2, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - k5) + 1, l1 + 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + 1, k1 - k5, l1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + 2, k1 - k5, l1, Blocks.stonebrick, 1); + setBlock(world, j1, k1 - k5 - l4, l1 + 2, Blocks.dirt); + setBlock(world, j1, k1 - k5 - l4 - 1, l1 + 2, Blocks.dirt); i7 = 1; j6 = 0; flag1 = false; do { if (world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 4) || world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 5) || world.isAirBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) - || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID - || world.getBlockId(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID) { + || world.getBlock(j1 - k2, k1 - k5 - i7, l1 - 4) == Blocks.water || world.getBlock(j1 - k2, k1 - k5 - i7, l1 - 5) == Blocks.water + || world.getBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) == Blocks.water) { j6++; } else { flag1 = true; } } while (!flag1 && i7++ < 12); - setBlock(world, j1 - k2, k1 - k5 - j6, l1 - 3, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - k2, k1 - k5 - j6, l1 - 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Block.stoneBrick.blockID); + setBlock(world, j1 - k2, k1 - k5 - j6, l1 - 3, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - k2, k1 - k5 - j6, l1 - 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 1) - j6, l1 - 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 2) - j6, l1 - 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k2, k1 - k5 - j6, l1 - 5, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 1) - j6, l1 - 5, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 2) - j6, l1 - 5, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 3) - j6, l1 - 5, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k2, ((k1 - k5) + 4) - j6, l1 - 5, Blocks.stonebrick, 1); + setBlock(world, j1 - k2 - 1, k1 - k5 - j6, l1 - 5, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Blocks.stonebrick, 1); + setBlock(world, j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Blocks.stonebrick); l7 = random.nextInt(100); if (l7 <= 30) { - setBlock(world, j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); - setBlock(world, j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); + setBlock(world, j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Blocks.dirt); + setBlock(world, j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Blocks.dirt); } i7 = 1; j6 = 0; flag1 = false; do { if (world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 4) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 6) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 8) - || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 6) == Block.waterStill.blockID - || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 8) == Block.waterStill.blockID) { + || world.getBlock(j1 + i4, k1 - k5 - i7, l1 + 4) == Blocks.water || world.getBlock(j1 + i4, k1 - k5 - i7, l1 + 6) == Blocks.water + || world.getBlock(j1 + i4, k1 - k5 - i7, l1 + 8) == Blocks.water) { j6++; } else { flag1 = true; } } while (!flag1 && i7++ < 12); - setBlock(world, j1 + i4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - setBlock(world, j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - setBlock(world, j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Block.stoneBrick.blockID); - setBlock(world, j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - setBlock(world, j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 5, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 7, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + i4, k1 - k5 - j6, l1 + 8, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 9, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + i4, k1 - k5 - j6, l1 + 4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + i4 + 1, k1 - k5 - j6, l1 + 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + i4 + 1, ((k1 - k5) + 1) - j6, l1 + 4, Blocks.stonebrick, 1); + setBlock(world, j1 + i4 + 2, k1 - k5 - j6, l1 + 4, Blocks.stonebrick); + setBlock(world, j1 + i4 + 3, k1 - k5 - j6, l1 + 4, Blocks.stonebrick); + setBlock(world, j1 + i4 + 3, ((k1 - k5) + 1) - j6, l1 + 4, Blocks.stonebrick); + setBlock(world, j1 + i4 + 4, k1 - k5 - j6, l1 + 4, Blocks.stonebrick); + setBlock(world, j1 + i4 + 5, k1 - k5 - j6, l1 + 4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 5, Blocks.stonebrick, 1); + setBlock(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 5, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 2) - j6, l1 + 6, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 7, Blocks.stonebrick, 1); + setBlock(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 7, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 2) - j6, l1 + 7, Blocks.stonebrick, 1); + setBlock(world, j1 + i4, k1 - k5 - j6, l1 + 8, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + i4, ((k1 - k5) + 1) - j6, l1 + 8, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + i4, k1 - k5 - j6, l1 + 9, Blocks.stonebrick, 1); l7 = random.nextInt(100); if (l7 <= 60) { - setBlock(world, j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); - setBlock(world, j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); + setBlock(world, j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Blocks.dirt); + setBlock(world, j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Blocks.dirt); } i7 = 1; j6 = 0; flag1 = false; do { if (world.isAirBlock(j1 - j3, k1 - k5 - i7, l1 + i4) || world.isAirBlock(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) || world.isAirBlock((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) - || world.getBlockId(j1 - j3, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID || world.getBlockId(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) == Block.waterStill.blockID - || world.getBlockId((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID) { + || world.getBlock(j1 - j3, k1 - k5 - i7, l1 + i4) == Blocks.water || world.getBlock(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) == Blocks.water + || world.getBlock((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) == Blocks.water) { j6++; } else { flag1 = true; } } while (!flag1 && i7++ < 12); - setBlock(world, (j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, (j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, (j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, (j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - setBlock(world, j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - setBlock(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Block.stoneBrick.blockID, 1); + setBlock(world, (j1 - j3) + 1, k1 - k5 - j6, l1 + i4, Blocks.stonebrick); + setBlockAndMetadata(world, (j1 - j3) + 1, ((k1 - k5) + 1) - j6, l1 + i4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, (j1 - j3) + 1, ((k1 - k5) + 2) - j6, l1 + i4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, (j1 - j3) + 2, k1 - k5 - j6, l1 + i4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - j3, k1 - k5 - j6, (l1 + i4) - 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 1, Blocks.stonebrick, 1); + setBlock(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 1, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 1, Blocks.stonebrick, 1); + setBlock(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 2, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 2, Blocks.stonebrick, 1); + setBlock(world, j1 - j3, ((k1 - k5) + 4) - j6, (l1 + i4) - 2, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 5) - j6, (l1 + i4) - 2, Blocks.stonebrick, 1); + setBlock(world, j1 - j3, k1 - k5 - j6, (l1 + i4) - 3, Blocks.stonebrick); + setBlock(world, j1 - j3, ((k1 - k5) + 1) - j6, (l1 + i4) - 3, Blocks.stonebrick); + setBlock(world, j1 - j3, ((k1 - k5) + 2) - j6, (l1 + i4) - 3, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, Blocks.stonebrick, 1); l7 = random.nextInt(100); if (l7 <= 30) { - setBlock(world, j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); - setBlock(world, j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); + setBlock(world, j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Blocks.dirt); + setBlock(world, j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Blocks.dirt); } i7 = 1; j6 = 0; flag1 = false; do { if (world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) || world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) || world.isAirBlock(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) - || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) == Block.waterStill.blockID || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID - || world.getBlockId(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID) { + || world.getBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) == Blocks.water || world.getBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) == Blocks.water + || world.getBlock(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) == Blocks.water) { j6++; } else { flag1 = true; } } while (!flag1 && i7++ < 12); - setBlock(world, j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Block.stoneBrick.blockID); + setBlock(world, j1 + j3 + 4, k1 - k5 - j6, l1 - 6, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 6, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 2) - j6, l1 - 6, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + j3 + 4, k1 - k5 - j6, l1 - 7, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + j3 + 4, ((k1 - k5) + 1) - j6, l1 - 7, Blocks.stonebrick, 1); + setBlock(world, j1 + j3 + 5, k1 - k5 - j6, l1 - 7, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + j3 + 5, ((k1 - k5) + 1) - j6, l1 - 7, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + j3 + 5, ((k1 - k5) + 2) - j6, l1 - 7, Blocks.stonebrick, 1); + setBlock(world, j1 + j3 + 6, k1 - k5 - j6, l1 - 7, Blocks.stonebrick); l7 = random.nextInt(100); if (l7 <= 30) { - setBlock(world, j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); - setBlock(world, j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); + setBlock(world, j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Blocks.dirt); + setBlock(world, j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Blocks.dirt); } } if (i2 != 3) { @@ -289,142 +290,154 @@ public class StructureRuin$1 extends WorldGenerator { } else { l5 = random.nextInt(4) + 5; } - setBlock(world, j1, k1 - l5, l1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - 1, k1 - l5, l1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1); - setBlock(world, j1, (k1 - l5) + 1, l1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1, (k1 - l5) + 2, l1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - l5) + 3, l1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - l5) + 4, l1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1, (k1 - l5) + 5, l1, Block.stoneBrick.blockID, 1); - setBlock(world, j1, k1 - l5, l1 + 1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1, (k1 - l5) + 2, l1 + 1, Block.stoneBrick.blockID, 1); - setBlock(world, j1, k1 - l5, l1 + 2, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1, (k1 - l5) + 1, l1 + 2, Block.stoneBrick.blockID, 1); - setBlock(world, j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); - setBlock(world, j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); + setBlock(world, j1, k1 - l5, l1, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - 1, k1 - l5, l1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 1, l1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 2, l1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - 1, (k1 - l5) + 3, l1, Blocks.stonebrick, 1); + setBlock(world, j1, (k1 - l5) + 1, l1, Blocks.stonebrick); + setBlockAndMetadata(world, j1, (k1 - l5) + 2, l1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - l5) + 3, l1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - l5) + 4, l1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - l5) + 5, l1, Blocks.stonebrick, 1); + setBlock(world, j1, k1 - l5, l1 + 1, Blocks.stonebrick); + setBlockAndMetadata(world, j1, (k1 - l5) + 2, l1 + 1, Blocks.stonebrick, 1); + setBlock(world, j1, k1 - l5, l1 + 2, Blocks.stonebrick); + setBlockAndMetadata(world, j1, (k1 - l5) + 1, l1 + 2, Blocks.stonebrick, 1); + setBlock(world, j1, k1 - l5 - i5, l1 + 1, Blocks.dirt); + setBlock(world, j1, k1 - l5 - i5 - 1, l1 + 1, Blocks.dirt); j7 = 1; k6 = 0; flag2 = false; do { if (world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Block.waterStill.blockID || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Block.waterStill.blockID - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) == Block.waterStill.blockID) { + || world.getBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Blocks.water || world.getBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Blocks.water + || world.getBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) == Blocks.water) { k6++; } else { flag2 = true; } } while (!flag2 && j7++ < 12); - setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Block.stoneBrick.blockID); - setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Block.stoneBrick.blockID); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + k3 + l2 + 1, k1 - l5 - k6, l1 + j4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + k3 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + k3 + l2 + 2, k1 - l5 - k6, l1 + j4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + k3 + l2 + 3, k1 - l5 - k6, l1 + j4, Blocks.stonebrick, 1); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 1, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 3) - k6, l1 + j4 + 1, Blocks.stonebrick, 1); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 2, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 2) - k6, l1 + j4 + 2, Blocks.stonebrick, 1); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 3, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Blocks.stonebrick, 1); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Blocks.stonebrick); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Blocks.stonebrick); i8 = random.nextInt(100); if (i8 <= 30) { - setBlock(world, j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); - setBlock(world, j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Blocks.dirt); + setBlock(world, j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Blocks.dirt); } j7 = 1; k6 = 0; flag2 = false; do { if (world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) || world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) || world.isAirBlock(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) - || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) == Block.waterStill.blockID || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) == Block.waterStill.blockID - || world.getBlockId(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) == Block.waterStill.blockID) { + || world.getBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) == Blocks.water || world.getBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) == Blocks.water + || world.getBlock(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) == Blocks.water) { k6++; } else { flag2 = true; } } while (!flag2 && j7++ < 12); - setBlock(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Block.stoneBrick.blockID); - setBlock(world, j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); - setBlock(world, j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Block.stoneBrick.blockID); - setBlock(world, j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Block.stoneBrick.blockID); + setBlock(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 1, Blocks.stonebrick); + setBlock(world, j1 - k3, (k1 - l5 - k6) + 1, l1 - l2 - 1, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - k3, (k1 - l5 - k6) + 2, l1 - l2 - 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 2, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 2, Blocks.stonebrick, 1); + setBlock(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 3, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - k3, ((k1 - l5) + 1) - k6, l1 - l2 - 3, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k3, k1 - l5 - k6, l1 - l2 - 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - k3 - 1, k1 - l5 - k6, l1 - l2 - 6, Blocks.stonebrick, 1); + setBlock(world, j1 - k3 - 2, k1 - l5 - k6, l1 - l2 - 6, Blocks.stonebrick); + setBlock(world, j1 - k3 - 2, ((k1 - l5) + 1) - k6, l1 - l2 - 6, Blocks.stonebrick); + setBlock(world, j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, Blocks.stonebrick); i8 = random.nextInt(100); if (i8 <= 60) { - setBlock(world, j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); - setBlock(world, j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); + setBlock(world, j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Blocks.dirt); + setBlock(world, j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Blocks.dirt); } j7 = 1; k6 = 0; flag2 = false; do { if (world.isAirBlock(j1 + l2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) - || world.getBlockId(j1 + l2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID || world.getBlockId(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID - || world.getBlockId(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID) { + || world.getBlock(j1 + l2, k1 - l5 - j7, l1 + j4) == Blocks.water || world.getBlock(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) == Blocks.water + || world.getBlock(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) == Blocks.water) { k6++; } else { flag2 = true; } } while (!flag2 && j7++ < 12); - setBlock(world, j1 + l2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID); - setBlock(world, j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlock(world, j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Block.stoneBrick.blockID, 1); + setBlock(world, j1 + l2, k1 - l5 - k6, l1 + j4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l2 + 1, k1 - l5 - k6, l1 + j4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + l2 + 1, ((k1 - l5) + 1) - k6, l1 + j4, Blocks.stonebrick, 1); + setBlock(world, j1 + l2 + 1, ((k1 - l5) + 2) - k6, l1 + j4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l2 + 1, ((k1 - l5) + 3) - k6, l1 + j4, Blocks.stonebrick, 1); + setBlock(world, j1 + l2 + 2, k1 - l5 - k6, l1 + j4, Blocks.stonebrick); + setBlock(world, j1 + l2 + 2, ((k1 - l5) + 1) - k6, l1 + j4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l2 + 2, ((k1 - l5) + 2) - k6, l1 + j4, Blocks.stonebrick, 1); + setBlock(world, j1 + l2 + 3, ((k1 - l5) + 2) - k6, l1 + j4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 + l2 + 4, k1 - l5 - k6, l1 + j4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + l2 + 4, ((k1 - l5) + 1) - k6, l1 + j4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 + l2 + 5, k1 - l5 - k6, l1 + j4, Blocks.stonebrick, 1); i8 = random.nextInt(100); if (i8 <= 30) { - setBlock(world, j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); - setBlock(world, j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); + setBlock(world, j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Blocks.dirt); + setBlock(world, j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Blocks.dirt); } j7 = 1; k6 = 0; flag2 = false; do { if (world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) - || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) == Block.waterStill.blockID || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) == Block.waterStill.blockID - || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) == Block.waterStill.blockID) { + || world.getBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) == Blocks.water || world.getBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) == Blocks.water + || world.getBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) == Blocks.water) { k6++; } else { flag2 = true; } } while (!flag2 && j7++ < 12); - setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Block.stoneBrick.blockID, 1); - setBlock(world, j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Block.stoneBrick.blockID); - setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Block.stoneBrick.blockID); - setBlock(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Block.stoneBrick.blockID); - setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Block.stoneBrick.blockID); - setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Block.stoneBrick.blockID, 1); - setBlockAndMetadata(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Block.stoneBrick.blockID, 1); + setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 1, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 2, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 2, Blocks.stonebrick, 1); + setBlock(world, j1 - 3, ((k1 - l5) + 2) - k6, l1 + k3 + 2, Blocks.stonebrick); + setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 3, Blocks.stonebrick); + setBlock(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 3, Blocks.stonebrick); + setBlock(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 4, Blocks.stonebrick); + setBlockAndMetadata(world, j1 - 3, ((k1 - l5) + 1) - k6, l1 + k3 + 4, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1 - 3, k1 - l5 - k6, l1 + k3 + 5, Blocks.stonebrick, 1); i8 = random.nextInt(100); if (i8 <= 30) { - setBlock(world, j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); - setBlock(world, j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); + setBlock(world, j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Blocks.dirt); + setBlock(world, j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Blocks.chest); + ChestFiller.fillWithRares(world.getTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); } return true; } + + private void setBlock(World w, int x, int y, int z){ + func_150515_a(w, x, y, z, Blocks.air); + } + + private void setBlock(World w, int x, int y, int z, Block bl){ + func_150515_a(w, x, y, z, bl); + } + + private void setBlockAndMetadata(World w, int x, int y, int z, Block bl, int meta){ + setBlockAndNotifyAdequately(w, x, y, z, bl, meta); + } } diff --git a/common/MysticRuins/StructureRuin.java b/common/MysticRuins/StructureRuin.java index 98536c3..a1171f7 100644 --- a/common/MysticRuins/StructureRuin.java +++ b/common/MysticRuins/StructureRuin.java @@ -3,6 +3,7 @@ package mysticruins; import java.util.Random; import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntityMobSpawner; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; @@ -20,7 +21,7 @@ public class StructureRuin extends WorldGenerator { if (k1 <= 0) { return false; } - if (!world.isAirBlock(j1, k1, l1) || world.getBlockId(j1, k1 - 1, l1) != Block.grass.blockID || !Block.pumpkin.canPlaceBlockAt(world, j1, k1, l1)) { + if (!world.isAirBlock(j1, k1, l1) || world.getBlock(j1, k1 - 1, l1) != Blocks.grass || !Blocks.pumpkin.canPlaceBlockAt(world, j1, k1, l1)) { return false; } int i2 = random.nextInt(3) + 1; @@ -28,11 +29,7 @@ public class StructureRuin extends WorldGenerator { int i3 = random.nextInt(8) + 5; int l3 = random.nextInt(8) + 5; int k4 = random.nextInt(4) + 3; - int j5 = 1; - int i6 = 0; - int l6 = 1; - boolean flag = false; - int k7 = random.nextInt(100); + int j5; int j8 = random.nextInt(100); if (j8 <= 20) { j5 = 0; @@ -50,16 +47,16 @@ public class StructureRuin extends WorldGenerator { } } setBlock(world,j1, (k1 - j5) + 5, l1 + 1, pickBlock(random)); - setBlock(world,j1, k1 - j5 - k4 - 1, l1 + 2, Block.dirt.blockID); - setBlock(world,j1, k1 - j5 - k4, l1 + 2, Block.chest.blockID); - ChestFiller.fillWithValuables(world.getBlockTileEntity(j1, k1 - j5 - k4, l1 + 2)); - l6 = 1; - i6 = 0; - flag = false; + setBlock(world,j1, k1 - j5 - k4 - 1, l1 + 2, Blocks.dirt); + setBlock(world,j1, k1 - j5 - k4, l1 + 2, Blocks.chest); + ChestFiller.fillWithValuables(world.getTileEntity(j1, k1 - j5 - k4, l1 + 2)); + int l6 = 1; + int i6 = 0; + boolean flag = false; do { if (world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) - || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Block.waterStill.blockID - || world.getBlockId(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) == Block.waterStill.blockID) { + || world.getBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Blocks.water || world.getBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Blocks.water + || world.getBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) == Blocks.water) { i6++; } else { flag = true; @@ -80,22 +77,22 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 + l3, k1 - j5 - i6, l1 + l3 + 7, pickBlock(random)); setBlock(world,j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, pickBlock(random)); setBlock(world,j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, pickBlock(random)); - k7 = random.nextInt(100); + int k7 = random.nextInt(100); if (k7 <= 30) { - setBlock(world,j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Block.mobSpawner.blockID); - TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getBlockTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); + setBlock(world,j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Blocks.mob_spawner); + TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); if (spawner != null) { - spawner.getSpawnerLogic().setMobID(DungeonHooks.getRandomDungeonMob(random)); + spawner.func_145881_a().setEntityName(DungeonHooks.getRandomDungeonMob(random)); } - setBlock(world,j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Block.dirt.blockID); + setBlock(world,j1 + l3, k1 - j5 - i6 - k4 - 1, l1 + l3 + 5, Blocks.dirt); } l6 = 1; i6 = 0; flag = false; do { if (world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 4) || world.isAirBlock(j1 - i3, k1 - j5 - l6, l1 - 5) || world.isAirBlock(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) - || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - i3, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID - || world.getBlockId(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) == Block.waterStill.blockID) { + || world.getBlock(j1 - i3, k1 - j5 - l6, l1 - 4) == Blocks.water || world.getBlock(j1 - i3, k1 - j5 - l6, l1 - 5) == Blocks.water + || world.getBlock(j1 - i3 - 1, k1 - j5 - l6, l1 - 5) == Blocks.water) { i6++; } else { flag = true; @@ -110,19 +107,15 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 - i3 - 2, k1 - j5 - i6, l1 - 5, pickBlock(random)); k7 = random.nextInt(100); if (k7 <= 60) { - setBlock(world,j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Block.dirt.blockID); - setBlock(world,j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Block.dirt.blockID); + setBlock(world,j1 - i3 - 1, k1 - j5 - i6 - k4, l1 - 5, Blocks.dirt); + setBlock(world,j1 - i3 - 1, k1 - j5 - i6 - k4 - 1, l1 - 5, Blocks.dirt); } } else if (i2 == 2) { int k2 = random.nextInt(8) + 5; int j3 = random.nextInt(8) + 5; int i4 = random.nextInt(8) + 5; int l4 = random.nextInt(4) + 3; - int k5 = 1; - int j6 = 0; - int i7 = 1; - boolean flag1 = false; - int l7 = random.nextInt(100); + int k5; int k8 = random.nextInt(100); if (k8 <= 20) { k5 = 0; @@ -140,15 +133,15 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1, (k1 - k5) + 1, l1 + 1, pickBlock(random)); setBlock(world,j1 + 1, k1 - k5, l1, pickBlock(random)); setBlock(world,j1 + 2, k1 - k5, l1, pickBlock(random)); - setBlock(world,j1, k1 - k5 - l4, l1 + 2, Block.dirt.blockID); - setBlock(world,j1, k1 - k5 - l4 - 1, l1 + 2, Block.dirt.blockID); - i7 = 1; - j6 = 0; - flag1 = false; + setBlock(world,j1, k1 - k5 - l4, l1 + 2, Blocks.dirt); + setBlock(world,j1, k1 - k5 - l4 - 1, l1 + 2, Blocks.dirt); + int i7 = 1; + int j6 = 0; + boolean flag1 = false; do { if (world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 4) || world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 5) || world.isAirBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) - || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 4) == Block.waterStill.blockID || world.getBlockId(j1 - k2, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID - || world.getBlockId(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) == Block.waterStill.blockID) { + || world.getBlock(j1 - k2, k1 - k5 - i7, l1 - 4) == Blocks.water || world.getBlock(j1 - k2, k1 - k5 - i7, l1 - 5) == Blocks.water + || world.getBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) == Blocks.water) { j6++; } else { flag1 = true; @@ -167,18 +160,18 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, pickBlock(random)); setBlock(world,j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, pickBlock(random)); setBlock(world,j1 - k2 - 2, k1 - k5 - j6, l1 - 5, pickBlock(random)); - l7 = random.nextInt(100); + int l7 = random.nextInt(100); if (l7 <= 30) { - setBlock(world,j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Block.dirt.blockID); - setBlock(world,j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Block.dirt.blockID); + setBlock(world,j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Blocks.dirt); + setBlock(world,j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Blocks.dirt); } i7 = 1; j6 = 0; flag1 = false; do { if (world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 4) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 6) || world.isAirBlock(j1 + i4, k1 - k5 - i7, l1 + 8) - || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 4) == Block.waterStill.blockID || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 6) == Block.waterStill.blockID - || world.getBlockId(j1 + i4, k1 - k5 - i7, l1 + 8) == Block.waterStill.blockID) { + || world.getBlock(j1 + i4, k1 - k5 - i7, l1 + 4) == Blocks.water || world.getBlock(j1 + i4, k1 - k5 - i7, l1 + 6) == Blocks.water + || world.getBlock(j1 + i4, k1 - k5 - i7, l1 + 8) == Blocks.water) { j6++; } else { flag1 = true; @@ -204,16 +197,16 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 + i4, k1 - k5 - j6, l1 + 9, pickBlock(random)); l7 = random.nextInt(100); if (l7 <= 60) { - setBlock(world,j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Block.dirt.blockID); - setBlock(world,j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Block.dirt.blockID); + setBlock(world,j1 + i4, k1 - k5 - j6 - l4, l1 + 7, Blocks.dirt); + setBlock(world,j1 + i4, k1 - k5 - j6 - l4 - 1, l1 + 7, Blocks.dirt); } i7 = 1; j6 = 0; flag1 = false; do { if (world.isAirBlock(j1 - j3, k1 - k5 - i7, l1 + i4) || world.isAirBlock(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) || world.isAirBlock((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) - || world.getBlockId(j1 - j3, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID || world.getBlockId(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) == Block.waterStill.blockID - || world.getBlockId((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) == Block.waterStill.blockID) { + || world.getBlock(j1 - j3, k1 - k5 - i7, l1 + i4) == Blocks.water || world.getBlock(j1 - j3, k1 - k5 - i7, (l1 + i4) - 2) == Blocks.water + || world.getBlock((j1 - j3) + 1, k1 - k5 - i7, l1 + i4) == Blocks.water) { j6++; } else { flag1 = true; @@ -238,16 +231,16 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 - j3, ((k1 - k5) + 3) - j6, (l1 + i4) - 3, pickBlock(random)); l7 = random.nextInt(100); if (l7 <= 30) { - setBlock(world,j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Block.dirt.blockID); - setBlock(world,j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Block.dirt.blockID); + setBlock(world,j1 - j3, k1 - k5 - j6 - l4, (l1 + i4) - 2, Blocks.dirt); + setBlock(world,j1 - j3, k1 - k5 - j6 - l4 - 1, (l1 + i4) - 2, Blocks.dirt); } i7 = 1; j6 = 0; flag1 = false; do { if (world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) || world.isAirBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) || world.isAirBlock(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) - || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) == Block.waterStill.blockID || world.getBlockId(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID - || world.getBlockId(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) == Block.waterStill.blockID) { + || world.getBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 6) == Blocks.water || world.getBlock(j1 + j3 + 4, k1 - k5 - i7, l1 - 7) == Blocks.water + || world.getBlock(j1 + j3 + 5, k1 - k5 - i7, l1 - 7) == Blocks.water) { j6++; } else { flag1 = true; @@ -264,8 +257,8 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 + j3 + 6, k1 - k5 - j6, l1 - 7, pickBlock(random)); l7 = random.nextInt(100); if (l7 <= 30) { - setBlock(world,j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Block.dirt.blockID); - setBlock(world,j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Block.dirt.blockID); + setBlock(world,j1 + j3 + 4, k1 - k5 - j6 - l4, l1 - 7, Blocks.dirt); + setBlock(world,j1 + j3 + 4, k1 - k5 - j6 - l4 - 1, l1 - 7, Blocks.dirt); } } if (i2 != 3) { @@ -275,11 +268,7 @@ public class StructureRuin extends WorldGenerator { int k3 = random.nextInt(8) + 5; int j4 = random.nextInt(8) + 5; int i5 = random.nextInt(4) + 3; - int l5 = 1; - int k6 = 0; - int j7 = 1; - boolean flag2 = false; - int i8 = random.nextInt(100); + int l5; int l8 = random.nextInt(100); if (l8 <= 20) { l5 = 0; @@ -300,15 +289,15 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1, (k1 - l5) + 2, l1 + 1, pickBlock(random)); setBlock(world,j1, k1 - l5, l1 + 2, pickBlock(random)); setBlock(world,j1, (k1 - l5) + 1, l1 + 2, pickBlock(random)); - setBlock(world,j1, k1 - l5 - i5, l1 + 1, Block.dirt.blockID); - setBlock(world,j1, k1 - l5 - i5 - 1, l1 + 1, Block.dirt.blockID); - j7 = 1; - k6 = 0; - flag2 = false; + setBlock(world,j1, k1 - l5 - i5, l1 + 1, Blocks.dirt); + setBlock(world,j1, k1 - l5 - i5 - 1, l1 + 1, Blocks.dirt); + int j7 = 1; + int k6 = 0; + boolean flag2 = false; do { if (world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Block.waterStill.blockID || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Block.waterStill.blockID - || world.getBlockId(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) == Block.waterStill.blockID) { + || world.getBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Blocks.water || world.getBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Blocks.water + || world.getBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) == Blocks.water) { k6++; } else { flag2 = true; @@ -330,18 +319,18 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, pickBlock(random)); setBlock(world,j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, pickBlock(random)); setBlock(world,j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, pickBlock(random)); - i8 = random.nextInt(100); + int i8 = random.nextInt(100); if (i8 <= 30) { - setBlock(world,j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Block.dirt.blockID); - setBlock(world,j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Block.dirt.blockID); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Blocks.dirt); + setBlock(world,j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Blocks.dirt); } j7 = 1; k6 = 0; flag2 = false; do { if (world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) || world.isAirBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) || world.isAirBlock(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) - || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) == Block.waterStill.blockID || world.getBlockId(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) == Block.waterStill.blockID - || world.getBlockId(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) == Block.waterStill.blockID) { + || world.getBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 2) == Blocks.water || world.getBlock(j1 - k3, k1 - l5 - j7, l1 - l2 - 4) == Blocks.water + || world.getBlock(j1 - k3 - 2, k1 - l5 - j7, l1 - l2 - 6) == Blocks.water) { k6++; } else { flag2 = true; @@ -361,16 +350,16 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 - k3 - 3, k1 - l5 - k6, l1 - l2 - 6, pickBlock(random)); i8 = random.nextInt(100); if (i8 <= 60) { - setBlock(world,j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Block.dirt.blockID); - setBlock(world,j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Block.dirt.blockID); + setBlock(world,j1 - k3 - 1, k1 - l5 - k6 - i5, l1 - l2 - 6, Blocks.dirt); + setBlock(world,j1 - k3 - 1, k1 - l5 - k6 - i5 - 1, l1 - l2 - 6, Blocks.dirt); } j7 = 1; k6 = 0; flag2 = false; do { if (world.isAirBlock(j1 + l2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) || world.isAirBlock(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) - || world.getBlockId(j1 + l2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID || world.getBlockId(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID - || world.getBlockId(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) == Block.waterStill.blockID) { + || world.getBlock(j1 + l2, k1 - l5 - j7, l1 + j4) == Blocks.water || world.getBlock(j1 + l2 + 2, k1 - l5 - j7, l1 + j4) == Blocks.water + || world.getBlock(j1 + l2 + 4, k1 - l5 - j7, l1 + j4) == Blocks.water) { k6++; } else { flag2 = true; @@ -390,16 +379,16 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 + l2 + 5, k1 - l5 - k6, l1 + j4, pickBlock(random)); i8 = random.nextInt(100); if (i8 <= 30) { - setBlock(world,j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Block.dirt.blockID); - setBlock(world,j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Block.dirt.blockID); + setBlock(world,j1 + l2 + 2, k1 - l5 - k6 - i5, l1 + j4, Blocks.dirt); + setBlock(world,j1 + l2 + 2, k1 - l5 - k6 - i5 - 1, l1 + j4, Blocks.dirt); } j7 = 1; k6 = 0; flag2 = false; do { if (world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) || world.isAirBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) - || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) == Block.waterStill.blockID || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) == Block.waterStill.blockID - || world.getBlockId(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) == Block.waterStill.blockID) { + || world.getBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 1) == Blocks.water || world.getBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 3) == Blocks.water + || world.getBlock(j1 - 3, k1 - l5 - j7, l1 + k3 + 4) == Blocks.water) { k6++; } else { flag2 = true; @@ -418,14 +407,26 @@ public class StructureRuin extends WorldGenerator { setBlock(world,j1 - 3, k1 - l5 - k6, l1 + k3 + 5, pickBlock(random)); i8 = random.nextInt(100); if (i8 <= 30) { - setBlock(world,j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Block.dirt.blockID); - setBlock(world,j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Block.chest.blockID); - ChestFiller.fillWithRares(world.getBlockTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); + setBlock(world,j1 - 3, k1 - l5 - k6 - i5 - 1, l1 + k3 + 3, Blocks.dirt); + setBlock(world,j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3, Blocks.chest); + ChestFiller.fillWithRares(world.getTileEntity(j1 - 3, k1 - l5 - k6 - i5, l1 + k3 + 3)); } return true; } - private static int pickBlock(Random random) { - return random.nextBoolean() ? Block.cobblestone.blockID : Block.cobblestoneMossy.blockID; + private static Block pickBlock(Random random) { + return random.nextBoolean() ? Blocks.cobblestone : Blocks.mossy_cobblestone; } + + private void setBlock(World w, int x, int y, int z){ + func_150515_a(w, x, y, z, Blocks.air); + } + + private void setBlock(World w, int x, int y, int z, Block bl){ + func_150515_a(w, x, y, z, bl); + } + + private void setBlockAndMetadata(World w, int x, int y, int z, Block bl, int meta){ + setBlockAndNotifyAdequately(w, x, y, z, bl, meta); + } } diff --git a/common/MysticStones/Blocks/BlockPlanks.java b/common/MysticStones/Blocks/BlockPlanks.java index f7bd63a..a9dd918 100644 --- a/common/MysticStones/Blocks/BlockPlanks.java +++ b/common/MysticStones/Blocks/BlockPlanks.java @@ -1,27 +1,28 @@ package mysticstones.blocks; +import mysticstones.MysticStones; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.util.Icon; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.util.IIcon; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockPlanks extends BlockMulti { - public BlockPlanks(int ID) { - super(ID, Material.wood); - setHardness(2.5F); - setResistance(10F); - setUnlocalizedName("BlockMysticPlanks"); - setStepSound(Block.soundWoodFootstep); + public BlockPlanks() { + super(Material.wood); + setHardness(2.5F); + setResistance(10F); + setBlockName("BlockMysticPlanks"); + setStepSound(Block.soundTypeWood); } @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - textures = new Icon[ItemPlanks.PLANK_TYPE.length]; + public void registerBlockIcons(IIconRegister iconRegister) { + textures = new IIcon[MysticStones.PLANK_TYPE.size()]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("mysticstones:" + ItemPlanks.PLANK_TYPE[i]); + textures[i] = iconRegister.registerIcon("mysticstones:" + MysticStones.PLANK_TYPE.get(i)); } } } diff --git a/common/MysticStones/Blocks/BlockReinforced.java b/common/MysticStones/Blocks/BlockReinforced.java index 59bb11d..4f71d13 100644 --- a/common/MysticStones/Blocks/BlockReinforced.java +++ b/common/MysticStones/Blocks/BlockReinforced.java @@ -2,32 +2,32 @@ package mysticstones.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.util.Icon; -import net.minecraft.world.World; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.util.IIcon; +import net.minecraft.world.IBlockAccess; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockReinforced extends BlockMulti { - public BlockReinforced(int ID) { - super(ID, Material.iron); - setHardness(4F); - setResistance(2000F); - setUnlocalizedName("BlockMysticReinforcedBrick"); - setStepSound(Block.soundMetalFootstep); + public BlockReinforced() { + super(Material.iron); + setHardness(4F); + setResistance(2000F); + setBlockName("BlockMysticReinforcedBrick"); + setStepSound(Block.soundTypeMetal); } @Override - public boolean isBeaconBase(World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ) { + public boolean isBeaconBase(IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ) { return true; } @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - textures = new Icon[ItemReinforced.BRICK_TYPE.length]; + public void registerBlockIcons(IIconRegister iconRegister) { + textures = new IIcon[ItemReinforced.BRICK_TYPE.size()]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("mysticstones:" + ItemReinforced.BRICK_TYPE[i]); + textures[i] = iconRegister.registerIcon("mysticstones:" + ItemReinforced.BRICK_TYPE.get(i)); } } } diff --git a/common/MysticStones/Blocks/BlockStoneBricks.java b/common/MysticStones/Blocks/BlockStoneBricks.java index d1bdce0..3ed7f4a 100644 --- a/common/MysticStones/Blocks/BlockStoneBricks.java +++ b/common/MysticStones/Blocks/BlockStoneBricks.java @@ -1,27 +1,28 @@ package mysticstones.blocks; +import mysticstones.MysticStones; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; -import net.minecraft.util.Icon; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.util.IIcon; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockStoneBricks extends BlockMulti { - public BlockStoneBricks(int ID) { - super(ID, Material.rock); - setHardness(2F); - setResistance(5F); - setUnlocalizedName("BlockMysticStoneBricks"); - setStepSound(Block.soundStoneFootstep); + public BlockStoneBricks() { + super(Material.rock); + setHardness(2F); + setResistance(5F); + setBlockName("BlockMysticStoneBricks"); + setStepSound(Block.soundTypeStone); } @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - textures = new Icon[ItemStoneBricks.STONEBRICK_TYPES.length]; + public void registerBlockIcons(IIconRegister iconRegister) { + textures = new IIcon[MysticStones.STONEBRICK_TYPES.size()]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("mysticstones:" + ItemStoneBricks.STONEBRICK_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticstones:" + MysticStones.STONEBRICK_TYPES.get(i)); } } } diff --git a/common/MysticStones/Blocks/BlockStones.java b/common/MysticStones/Blocks/BlockStones.java index 54f5c50..80735dd 100644 --- a/common/MysticStones/Blocks/BlockStones.java +++ b/common/MysticStones/Blocks/BlockStones.java @@ -1,22 +1,23 @@ package mysticstones.blocks; +import mysticstones.MysticStones; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockStones extends BlockMulti { - public BlockStones(int ID) { - super(ID, Material.rock); - setHardness(1F); - setResistance(5F); - setUnlocalizedName("BlockMysticStones"); - setStepSound(Block.soundStoneFootstep); + public BlockStones() { + super(Material.rock); + setHardness(1F); + setResistance(5F); + setBlockName("BlockMysticStones"); + setStepSound(Block.soundTypeStone); } @Override @@ -48,15 +49,10 @@ public class BlockStones extends BlockMulti { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - textures = new Icon[ItemStones.STONE_TYPES.length]; + public void registerBlockIcons(IIconRegister iconRegister) { + textures = new IIcon[MysticStones.STONE_TYPES.size()]; for (int i = 0; i < textures.length; i++) { - textures[i] = iconRegister.registerIcon("mysticstones:" + ItemStones.STONE_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticstones:" + MysticStones.STONE_TYPES.get(i)); } } - - @Override - protected boolean canSilkHarvest() { - return true; - } } diff --git a/common/MysticStones/Blocks/ItemPlanks.java b/common/MysticStones/Blocks/ItemPlanks.java deleted file mode 100644 index 4559d12..0000000 --- a/common/MysticStones/Blocks/ItemPlanks.java +++ /dev/null @@ -1,11 +0,0 @@ -package mysticstones.blocks; - -import mysticstones.MysticStones; - -public class ItemPlanks extends ItemBlockMulti { - public static final String[] PLANK_TYPE = new String[] { "Purple Planks", "Green Planks", "Black Planks", "Orange Planks", "Red Planks", "Blue Planks", "Yellow Planks" }; - - public ItemPlanks(int par1) { - super(par1, MysticStones.planks, PLANK_TYPE); - } -} diff --git a/common/MysticStones/Blocks/ItemReinforced.java b/common/MysticStones/Blocks/ItemReinforced.java index 4a22a00..c97c0da 100644 --- a/common/MysticStones/Blocks/ItemReinforced.java +++ b/common/MysticStones/Blocks/ItemReinforced.java @@ -1,24 +1,27 @@ package mysticstones.blocks; +import java.util.ArrayList; +import java.util.Arrays; import java.util.List; -import mysticstones.MysticStones; +import net.minecraft.block.Block; 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 ItemReinforced extends ItemBlockMulti { - public static final String[] BRICK_TYPE = new String[] { "Mithril Bricks", "Verdite Bricks", "Iridium Bricks", "Adamantine Bricks", "Tourmaline Bricks", "Topaz Bricks", "Amethyst Bricks", - "Agate Bricks" }; + public static final ArrayList BRICK_TYPE = new ArrayList(Arrays.asList("Mithril Bricks", "Verdite Bricks", "Iridium Bricks", "Adamantine Bricks", "Tourmaline Bricks", "Topaz Bricks", "Amethyst Bricks", + "Agate Bricks")); - public ItemReinforced(int par1) { - super(par1, MysticStones.reinforcedBricks, BRICK_TYPE); + public ItemReinforced(Block block) { + super(block, BRICK_TYPE); } @Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { + super.addInformation(par1ItemStack, par2EntityPlayer, par3List, par4); if (par4) { par3List.add("Works As A Beacon Block Too!"); } diff --git a/common/MysticStones/Blocks/ItemStoneBricks.java b/common/MysticStones/Blocks/ItemStoneBricks.java deleted file mode 100644 index 972f08e..0000000 --- a/common/MysticStones/Blocks/ItemStoneBricks.java +++ /dev/null @@ -1,12 +0,0 @@ -package mysticstones.blocks; - -import mysticstones.MysticStones; - -public class ItemStoneBricks extends ItemBlockMulti { - public static final String[] STONEBRICK_TYPES = new String[] { "Anorthosite Bricks", "Limestone Bricks", "Marble Bricks", "Migmatite Bricks", "Orthogneiss Bricks", "Slate Bricks", - "Travertine Bricks" }; - - public ItemStoneBricks(int par1) { - super(par1, MysticStones.stoneBricks, STONEBRICK_TYPES); - } -} diff --git a/common/MysticStones/Blocks/ItemStones.java b/common/MysticStones/Blocks/ItemStones.java deleted file mode 100644 index 2d644c6..0000000 --- a/common/MysticStones/Blocks/ItemStones.java +++ /dev/null @@ -1,12 +0,0 @@ -package mysticstones.blocks; - -import mysticstones.MysticStones; - -public class ItemStones extends ItemBlockMulti { - public static final String[] STONE_TYPES = new String[] { "Smooth Anorthosite", "Anorthosite", "Smooth Limestone", "Limestone", "Smooth Marble", "Marble", "Smooth Migmatite", "Migmatite", - "Smooth Orthogneiss", "Orthogneiss", "Smooth Slate", "Slate", "Smooth Travertine", "Travertine" }; - - public ItemStones(int par1) { - super(par1, MysticStones.stones, STONE_TYPES); - } -} diff --git a/common/MysticStones/MysticStones.java b/common/MysticStones/MysticStones.java index 66303fe..c8503fe 100644 --- a/common/MysticStones/MysticStones.java +++ b/common/MysticStones/MysticStones.java @@ -1,54 +1,65 @@ package mysticstones; -import mysticstones.blocks.BlockPlanks; -import mysticstones.blocks.BlockReinforced; -import mysticstones.blocks.BlockStoneBricks; -import mysticstones.blocks.BlockStones; -import mysticstones.blocks.ItemPlanks; -import mysticstones.blocks.ItemReinforced; -import mysticstones.blocks.ItemStoneBricks; -import mysticstones.blocks.ItemStones; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import mysticstones.blocks.*; import mysticstones.util.Config; import mysticstones.util.RecipeHandler; import mysticstones.worldgen.WorldGeneratorStones; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.item.ItemStack; +import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; -@Mod(modid = "mysticstones", name = "Mystic Stones", version = "0.1") -@NetworkMod(clientSideRequired = true) +import java.util.ArrayList; +import java.util.Arrays; + +@Mod(modid = "mysticstones", name = "Mystic Stones", version = "0.2") public class MysticStones { @Instance("mysticstones") public static MysticStones instance; + public static boolean ENABLE = true; public static Block planks, stones, stoneBricks, reinforcedBricks; public static final CreativeTabs MysticStonesTab = new CreativeTabs("MysticStonesTab") { @Override - public ItemStack getIconItemStack() { - return new ItemStack(MysticStones.reinforcedBricks, 1, 4); - } - }; + @SideOnly(Side.CLIENT) + public int func_151243_f() + { + return 4; + } + @Override + public Item getTabIconItem() { + return Item.getItemFromBlock(MysticStones.reinforcedBricks); + } + }; + public static final ArrayList PLANK_TYPE = new ArrayList(Arrays.asList("Purple Planks", "Green Planks", "Black Planks", "Orange Planks", "Red Planks", "Blue Planks", "Yellow Planks")); + public static final ArrayList STONEBRICK_TYPES = new ArrayList(Arrays.asList("Anorthosite Bricks", "Limestone Bricks", "Marble Bricks", "Migmatite Bricks", "Orthogneiss Bricks", "Slate Bricks", + "Travertine Bricks")); + public static final ArrayList STONE_TYPES = new ArrayList(Arrays.asList("Smooth Anorthosite", "Anorthosite", "Smooth Limestone", "Limestone", "Smooth Marble", "Marble", "Smooth Migmatite", "Migmatite", + "Smooth Orthogneiss", "Orthogneiss", "Smooth Slate", "Slate", "Smooth Travertine", "Travertine")); - @EventHandler + + @EventHandler public void preInit(FMLPreInitializationEvent event) { Config.initialize(event.getSuggestedConfigurationFile()); - planks = new BlockPlanks(Config.planksID); - stones = new BlockStones(Config.stonesID); - stoneBricks = new BlockStoneBricks(Config.stoneBricksID); - reinforcedBricks = new BlockReinforced(Config.reinforcedBricksID); - GameRegistry.registerBlock(planks, ItemPlanks.class, "Planks"); - GameRegistry.registerBlock(stones, ItemStones.class, "Stones"); - GameRegistry.registerBlock(stoneBricks, ItemStoneBricks.class, "StoneBricks"); - GameRegistry.registerBlock(reinforcedBricks, ItemReinforced.class, "Reinforcedbricks"); - RecipeHandler.craftPlanks(); - RecipeHandler.craftStoneBricks(); - RecipeHandler.craftReinforced(); - RecipeHandler.craftElse(); - GameRegistry.registerWorldGenerator(new WorldGeneratorStones()); + if(ENABLE){ + planks = new BlockPlanks(); + stones = new BlockStones(); + stoneBricks = new BlockStoneBricks(); + reinforcedBricks = new BlockReinforced(); + GameRegistry.registerBlock(planks, ItemBlockMulti.class, "Planks", "mysticstones", PLANK_TYPE); + GameRegistry.registerBlock(stones, ItemBlockMulti.class, "Stones", "mysticstones", STONE_TYPES); + GameRegistry.registerBlock(stoneBricks, ItemBlockMulti.class, "StoneBricks", "mysticstones", STONEBRICK_TYPES); + GameRegistry.registerBlock(reinforcedBricks, ItemReinforced.class, "Reinforcedbricks", "mysticstones"); + RecipeHandler.craftPlanks(); + RecipeHandler.craftStoneBricks(); + RecipeHandler.craftReinforced(); + RecipeHandler.craftElse(); + GameRegistry.registerWorldGenerator(new WorldGeneratorStones(), 1); + } } } diff --git a/common/MysticStones/Util/Config.java b/common/MysticStones/Util/Config.java index 7250ba7..26b6ca0 100644 --- a/common/MysticStones/Util/Config.java +++ b/common/MysticStones/Util/Config.java @@ -4,24 +4,17 @@ import java.util.List; import java.io.File; import java.util.ArrayList; -import net.minecraftforge.common.Configuration; +import mysticstones.MysticStones; +import net.minecraftforge.common.config.Configuration; public class Config { public static final String[] keys = { "anorthosite", "limestone", "marble", "migmatite", "orthogneiss", "slate", "travertine" }; - public static int planksID; - public static int stonesID; - public static int stoneBricksID; - public static int reinforcedBricksID; public static int[] rare = new int[keys.length]; public static List allowed = new ArrayList(); public static void initialize(File file) { Configuration config = new Configuration(file); - config.load(); - planksID = config.getBlock("Plank IDs", 509).getInt(); - stonesID = config.getBlock("Stone IDs", 510).getInt(); - stoneBricksID = config.getBlock("Stone Brick IDs", 511).getInt(); - reinforcedBricksID = config.getBlock("Reinforced Brick IDs", 512).getInt(); + MysticStones.ENABLE = config.get("General", "Enable", true).getBoolean(true); for (int i = 0; i < rare.length; i++) { rare[i] = config.get("Generation", "Rarity of " + keys[i], 3).getInt(); } diff --git a/common/MysticStones/Util/RecipeHandler.java b/common/MysticStones/Util/RecipeHandler.java index 31d720b..030be19 100644 --- a/common/MysticStones/Util/RecipeHandler.java +++ b/common/MysticStones/Util/RecipeHandler.java @@ -17,7 +17,7 @@ public class RecipeHandler { public static void craftElse() { //smelting for (int i = 1; i < 14; i += 2) { - FurnaceRecipes.smelting().addSmelting(MysticStones.stones.blockID, i, new ItemStack(MysticStones.stones, 1, i - 1), 0.1F); + FurnaceRecipes.smelting().func_151394_a(new ItemStack(MysticStones.stones, 1, i), new ItemStack(MysticStones.stones, 1, i - 1), 0.1F); } } diff --git a/common/MysticWorld/Biome/BiomeGenBasic.java b/common/MysticWorld/Biome/BiomeGenBasic.java index ebf150e..bbb927b 100644 --- a/common/MysticWorld/Biome/BiomeGenBasic.java +++ b/common/MysticWorld/Biome/BiomeGenBasic.java @@ -1,12 +1,13 @@ package mysticworld.biome; +import net.minecraft.block.Block; import net.minecraft.world.biome.BiomeGenBase; public class BiomeGenBasic extends BiomeGenBase { - public BiomeGenBasic(int id, int blockTop, int blockFiller) { + public BiomeGenBasic(int id, Block blockTop, Block blockFiller) { super(id); - this.topBlock = (byte) blockTop; - this.fillerBlock = (byte) blockFiller; + this.topBlock = blockTop; + this.fillerBlock = blockFiller; } public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk) { @@ -17,9 +18,9 @@ public class BiomeGenBasic extends BiomeGenBase { this.theBiomeDecorator.reedsPerChunk = reedsChunk; } - public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) { + public BiomeGenBasic(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, Block blockTop, Block blockFiller) { this(id, treesChunk, grassChunk, flowerChunk, reedsChunk); - this.topBlock = (byte) blockTop; - this.fillerBlock = (byte) blockFiller; + this.topBlock = blockTop; + this.fillerBlock = blockFiller; } } diff --git a/common/MysticWorld/Biome/BiomeGenGlacier.java b/common/MysticWorld/Biome/BiomeGenGlacier.java index 2e46237..b220fcd 100644 --- a/common/MysticWorld/Biome/BiomeGenGlacier.java +++ b/common/MysticWorld/Biome/BiomeGenGlacier.java @@ -1,7 +1,9 @@ package mysticworld.biome; +import net.minecraft.block.Block; + public class BiomeGenGlacier extends BiomeGenTundra { - public BiomeGenGlacier(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) { + public BiomeGenGlacier(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, Block blockTop, Block blockFiller) { super(id, treesChunk, grassChunk, flowerChunk, reedsChunk, blockTop, blockFiller); this.waterColorMultiplier = 15397370; } diff --git a/common/MysticWorld/Biome/BiomeGenJungle.java b/common/MysticWorld/Biome/BiomeGenJungle.java index c9f62dc..56899b0 100644 --- a/common/MysticWorld/Biome/BiomeGenJungle.java +++ b/common/MysticWorld/Biome/BiomeGenJungle.java @@ -1,18 +1,20 @@ package mysticworld.biome; import java.util.Random; + +import net.minecraft.world.gen.feature.WorldGenAbstractTree; import net.minecraft.world.gen.feature.WorldGenHugeTrees; +import net.minecraft.world.gen.feature.WorldGenMegaJungle; import net.minecraft.world.gen.feature.WorldGenTrees; -import net.minecraft.world.gen.feature.WorldGenerator; public class BiomeGenJungle extends net.minecraft.world.biome.BiomeGenJungle { public BiomeGenJungle(int par1) { - super(par1); + super(par1, false); } @Override - public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { - return par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, + public WorldGenAbstractTree func_150567_a(Random par1Random) { + return par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenMegaJungle(false, 10, 20, 3, 3) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true)); } } diff --git a/common/MysticWorld/Biome/BiomeGenTundra.java b/common/MysticWorld/Biome/BiomeGenTundra.java index 746f303..4a0fc0e 100644 --- a/common/MysticWorld/Biome/BiomeGenTundra.java +++ b/common/MysticWorld/Biome/BiomeGenTundra.java @@ -1,9 +1,9 @@ package mysticworld.biome; -import net.minecraft.world.biome.SpawnListEntry; +import net.minecraft.block.Block; public class BiomeGenTundra extends BiomeGenBasic { - public BiomeGenTundra(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, int blockTop, int blockFiller) { + public BiomeGenTundra(int id, int treesChunk, int grassChunk, int flowerChunk, int reedsChunk, Block blockTop, Block blockFiller) { super(id, treesChunk, grassChunk, flowerChunk, reedsChunk, blockTop, blockFiller); this.spawnableCreatureList.clear(); this.spawnableMonsterList.clear(); diff --git a/common/MysticWorld/Biome/BiomeHandler.java b/common/MysticWorld/Biome/BiomeHandler.java index ac316b9..f5d2b78 100644 --- a/common/MysticWorld/Biome/BiomeHandler.java +++ b/common/MysticWorld/Biome/BiomeHandler.java @@ -1,10 +1,9 @@ package mysticworld.biome; import mysticworld.lib.Booleans; -import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeManager; -import cpw.mods.fml.common.registry.GameRegistry; public class BiomeHandler { public static BiomeGenBase Mountain; @@ -13,48 +12,33 @@ public class BiomeHandler { public static BiomeGenBase Glacier; public static BiomeGenBase Jungle; - public static void init() { - initializeBiomes(); - registerBiomes(); - } - - public static void initializeBiomes() { - Mountain = new BiomeGenBasic(23, Block.stone.blockID, Block.stone.blockID).setColor(9286496).setBiomeName("Mountain").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) - .setMinMaxHeight(0.5F, 1.0F); - Tundra = new BiomeGenTundra(24, 0, 0, 0, 0, Block.blockSnow.blockID, Block.blockSnow.blockID).setColor(9286496).setBiomeName("Tundra").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) - .setMinMaxHeight(0.8F, 0.4F); - Steppe = new BiomeGenBasic(25, 0, 2, 2, 3, Block.grass.blockID, Block.dirt.blockID).setColor(5470985).setBiomeName("Steppe").setMinMaxHeight(0.1F, 0.1F); - Glacier = new BiomeGenGlacier(26, 0, 0, 0, 0, Block.ice.blockID, Block.ice.blockID).setColor(9474208).setBiomeName("Glacier").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) - .setMinMaxHeight(0.5F, 0.7F); - Jungle = new BiomeGenJungle(27).setColor(5470985).setBiomeName("Jungle").func_76733_a(5470985).setTemperatureRainfall(1.2F, 0.9F).setMinMaxHeight(0.2F, 0.4F); - } - - public static void registerBiomes() { + public static void init(){ if (Booleans.ENABLE_JUNGLE_REWRITE) { - GameRegistry.removeBiome(BiomeGenBase.jungle); - GameRegistry.removeBiome(BiomeGenBase.jungleHills); - GameRegistry.addBiome(Jungle); + Jungle = new BiomeGenJungle(21).setColor(5470985).setBiomeName("Jungle").func_76733_a(5470985).setTemperatureRainfall(1.2F, 0.9F).setHeight(new BiomeGenBase.Height(0.2F, 0.4F)); BiomeManager.addSpawnBiome(Jungle); BiomeManager.addStrongholdBiome(Jungle); } - if (Booleans.ENABLE_GLACIER_GEN) { - GameRegistry.addBiome(Glacier); - BiomeManager.addStrongholdBiome(Glacier); - } if (Booleans.ENABLE_MOUNTAIN_GEN) { - GameRegistry.addBiome(Mountain); + Mountain = new BiomeGenBasic(53, Blocks.stone, Blocks.stone).setColor(9286496).setBiomeName("Mountain").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) + .setHeight(new BiomeGenBase.Height(0.5F, 1.0F)); BiomeManager.addSpawnBiome(Mountain); BiomeManager.addStrongholdBiome(Mountain); } if (Booleans.ENABLE_TUNDRA_GEN) { - GameRegistry.addBiome(Tundra); + Tundra = new BiomeGenTundra(54, 0, 0, 0, 0, Blocks.snow, Blocks.snow).setColor(9286496).setBiomeName("Tundra").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) + .setHeight(new BiomeGenBase.Height(0.8F, 0.4F)); BiomeManager.addStrongholdBiome(Tundra); } if (Booleans.ENABLE_STEPPE_GEN) { - GameRegistry.addBiome(Steppe); + Steppe = new BiomeGenBasic(55, 0, 2, 2, 3, Blocks.grass, Blocks.dirt).setColor(5470985).setBiomeName("Steppe").setHeight(new BiomeGenBase.Height(0.1F, 0.1F)); BiomeManager.addSpawnBiome(Steppe); BiomeManager.addVillageBiome(Steppe, true); BiomeManager.addStrongholdBiome(Steppe); } + if (Booleans.ENABLE_GLACIER_GEN) { + Glacier = new BiomeGenGlacier(56, 0, 0, 0, 0, Blocks.ice, Blocks.ice).setColor(9474208).setBiomeName("Glacier").setEnableSnow().setTemperatureRainfall(0.05F, 0.8F) + .setHeight(new BiomeGenBase.Height(0.5F, 0.7F)); + BiomeManager.addStrongholdBiome(Glacier); + } } } diff --git a/common/MysticWorld/Blocks/BlockHandler.java b/common/MysticWorld/Blocks/BlockHandler.java index 4e36807..3f9c8e8 100644 --- a/common/MysticWorld/Blocks/BlockHandler.java +++ b/common/MysticWorld/Blocks/BlockHandler.java @@ -1,38 +1,26 @@ package mysticworld.blocks; -import mysticworld.lib.BlockIds; import mysticworld.lib.Strings; +import mysticworld.util.Reference; import net.minecraft.block.Block; import cpw.mods.fml.common.registry.GameRegistry; +import java.util.ArrayList; +import java.util.Arrays; + public class BlockHandler { - public static Block oreImbuedStone; - public static Block bush; - public static Block lightCube; - public static Block pillarPlatform; - public static Block pillar; - public static Block pillarInsert; + public static final ArrayList IMBUED_STONE_TYPE = new ArrayList(Arrays.asList(Strings.IMBUED_STONE_NAME+"Fire", Strings.IMBUED_STONE_NAME+"Water", Strings.IMBUED_STONE_NAME+"Earth", Strings.IMBUED_STONE_NAME+"Air", Strings.IMBUED_STONE_NAME+"Energy")); + public static final ArrayList BUSH_TYPES = new ArrayList(Arrays.asList(Strings.BUSH_NAME, Strings.POISON_BUSH_NAME, Strings.WEAKNESS_BUSH_NAME, Strings.SLOWNESS_BUSH_NAME, Strings.HARMING_BUSH_NAME, + Strings.WITHER_BUSH_NAME, Strings.HEALTH_BUSH_NAME, Strings.SPEED_BUSH_NAME, Strings.FIRE_RESISTANCE_BUSH_NAME, Strings.REGEN_BUSH_NAME, Strings.NIGHT_VISION_BUSH_NAME, + Strings.INVISIBILITY_BUSH_NAME)); + public static Block oreImbuedStone, bush, lightCube, pillarPlatform, pillar, pillarInsert; public static void init() { - oreImbuedStone = new BlockImbuedStone(BlockIds.ORE_STONE_1).setUnlocalizedName(Strings.IMBUED_STONE_NAME); - bush = new BlockBush(BlockIds.BUSH).setUnlocalizedName(Strings.BUSH_NAME); - lightCube = new BlockLightCube(BlockIds.LIGHT_CUBE).setUnlocalizedName(Strings.LIGHT_CUBE_NAME).setTextureName("mysticworld:lightCube"); - pillarPlatform = new BlockPlatform(BlockIds.PLATFORM).setUnlocalizedName(Strings.PLATFORM_NAME).setTextureName("mysticworld:Platform"); - pillar = new BlockPillar(BlockIds.PILLAR).setUnlocalizedName(Strings.PILLAR_NAME).setTextureName("mysticworld:Pillar"); - pillarInsert = new BlockPillarInsert(BlockIds.PILLAR_INSERT).setUnlocalizedName(Strings.PILLAR_INSERT_NAME); - registerBlocks(); - setBlockHarvestLevels(); - } - - private static void registerBlocks() { - GameRegistry.registerBlock(oreImbuedStone, ItemImbuedStone.class, Strings.IMBUED_STONE_NAME); - GameRegistry.registerBlock(bush, ItemBush.class, Strings.BUSH_NAME); - GameRegistry.registerBlock(lightCube, Strings.LIGHT_CUBE_NAME); - GameRegistry.registerBlock(pillarPlatform, Strings.PLATFORM_NAME); - GameRegistry.registerBlock(pillar, Strings.PILLAR_NAME); - GameRegistry.registerBlock(pillarInsert, Strings.PILLAR_INSERT_NAME); - } - - private static void setBlockHarvestLevels() { + oreImbuedStone = GameRegistry.registerBlock(new BlockImbuedStone().setBlockName(Strings.IMBUED_STONE_NAME), ItemBlockMulti.class, Strings.IMBUED_STONE_NAME, Reference.MOD_ID, IMBUED_STONE_TYPE); + bush = GameRegistry.registerBlock(new BlockBushes().setBlockName(Strings.BUSH_NAME), ItemBlockMulti.class, Strings.BUSH_NAME, Reference.MOD_ID, BUSH_TYPES); + lightCube = GameRegistry.registerBlock(new BlockLightCube().setBlockName(Strings.LIGHT_CUBE_NAME).setBlockTextureName("mysticworld:lightCube"), Strings.LIGHT_CUBE_NAME); + pillarPlatform = GameRegistry.registerBlock(new BlockPlatform().setBlockName(Strings.PLATFORM_NAME).setBlockTextureName("mysticworld:Platform"), Strings.PLATFORM_NAME); + pillar = GameRegistry.registerBlock(new BlockPillar().setBlockName(Strings.PILLAR_NAME).setBlockTextureName("mysticworld:Pillar"), Strings.PILLAR_NAME); + pillarInsert = GameRegistry.registerBlock(new BlockPillarInsert().setBlockName(Strings.PILLAR_INSERT_NAME), Strings.PILLAR_INSERT_NAME); } } diff --git a/common/MysticWorld/Blocks/BlockImbuedStone.java b/common/MysticWorld/Blocks/BlockImbuedStone.java index 25912fe..63a465a 100644 --- a/common/MysticWorld/Blocks/BlockImbuedStone.java +++ b/common/MysticWorld/Blocks/BlockImbuedStone.java @@ -8,29 +8,30 @@ import mysticworld.items.ItemHandler; import net.minecraft.block.Block; import net.minecraft.block.BlockFence; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockImbuedStone extends Block { - Icon[] textures; + IIcon[] textures; - public BlockImbuedStone(int ID) { - super(ID, Material.rock); - setHardness(0.5F); - setResistance(5F); + public BlockImbuedStone() { + super(Material.rock); + setHardness(0.5F); + setResistance(5F); setCreativeTab(MysticWorld.MysticWorldTab); - setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.125F, 0.75F); - setLightValue(0.625f); + setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.125F, 0.75F); + setLightLevel(0.625f); } @Override public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4) { - return par1World.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4); + return World.doesBlockHaveSolidTopSurface(par1World, par2, par3 - 1, par4); } @Override @@ -44,25 +45,20 @@ public class BlockImbuedStone extends Block { } @Override - public Icon getIcon(int side, int meta) { + public IIcon getIcon(int side, int meta) { return textures[meta]; } @Override - public void getSubBlocks(int i, CreativeTabs tab, List list) { + public void getSubBlocks(Item i, CreativeTabs tab, List list) { for (int j = 0; j < 5; j++) { list.add(new ItemStack(i, 1, j)); } } @Override - public int idDropped(int par1, Random par2Random, int par3) { - return ItemHandler.imbuedShard.itemID; - } - - @Override - public boolean isOpaqueCube() { - return false; + public Item getItemDropped(int par1, Random par2Random, int par3) { + return ItemHandler.imbuedShard; } @Override @@ -71,9 +67,9 @@ public class BlockImbuedStone extends Block { } @Override - public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { + public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, Block par5) { boolean flag = false; - if (!par1World.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4) && !BlockFence.isIdAFence(par1World.getBlockId(par2, par3 - 1, par4))) { + if (!World.doesBlockHaveSolidTopSurface(par1World, par2, par3 - 1, par4) && !BlockFence.func_149825_a(par1World.getBlock(par2, par3 - 1, par4))) { flag = true; } if (flag) { @@ -84,24 +80,24 @@ public class BlockImbuedStone extends Block { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - textures = new Icon[16]; + public void registerBlockIcons(IIconRegister iconRegister) { + textures = new IIcon[16]; for (int i = 0; i < 5; i++) { - textures[i] = iconRegister.registerIcon("mysticworld:" + ItemImbuedStone.IMBUED_STONE_TYPE[i] + " Imbued Stone"); + textures[i] = iconRegister.registerIcon("mysticworld:" + BlockHandler.IMBUED_STONE_TYPE.get(i).substring(11) + " Imbued Stone"); } } - @Override - public boolean renderAsNormalBlock() { - return false; - } + @Override + public boolean renderAsNormalBlock(){ + return false; + } + + @Override + public boolean isOpaqueCube(){ + return false; + } public int xpDropAmount(int j) { return 5; } - - @Override - protected boolean canSilkHarvest() { - return true; - } } \ No newline at end of file diff --git a/common/MysticWorld/Blocks/BlockLightCube.java b/common/MysticWorld/Blocks/BlockLightCube.java index 64f528f..8548e95 100644 --- a/common/MysticWorld/Blocks/BlockLightCube.java +++ b/common/MysticWorld/Blocks/BlockLightCube.java @@ -5,24 +5,20 @@ import java.util.Random; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; +import net.minecraft.item.Item; import net.minecraft.world.World; public class BlockLightCube extends Block { - public BlockLightCube(int id) { - super(id, Material.circuits); - setBlockBounds(0.25F, 0.25F, 0.25F, 0.75F, 0.75F, 0.75F); - setLightValue(1.0F); - this.setTickRandomly(true); + public BlockLightCube() { + super(Material.circuits); + setBlockBounds(0.25F, 0.25F, 0.25F, 0.75F, 0.75F, 0.75F); + setLightLevel(1.0F); + setTickRandomly(true); } @Override - public int idDropped(int par1, Random par2Random, int par3) { - return 0; - } - - @Override - public boolean isOpaqueCube() { - return false; + public Item getItemDropped(int par1, Random par2Random, int par3) { + return null; } @Override @@ -31,13 +27,13 @@ public class BlockLightCube extends Block { MysticWorld.proxy.lightCubeFX(world, x + random.nextDouble(), y + 0.75D, z + random.nextDouble(), 0.0D, 0.0D, 0.0D, 1.0F); } - @Override - public boolean renderAsNormalBlock() { - return false; - } + @Override + public boolean renderAsNormalBlock(){ + return false; + } - @Override - protected boolean canSilkHarvest() { - return true; - } + @Override + public boolean isOpaqueCube(){ + return false; + } } diff --git a/common/MysticWorld/Blocks/BlockPillar.java b/common/MysticWorld/Blocks/BlockPillar.java index 89a7c90..a4c9d24 100644 --- a/common/MysticWorld/Blocks/BlockPillar.java +++ b/common/MysticWorld/Blocks/BlockPillar.java @@ -3,23 +3,24 @@ package mysticworld.blocks; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; +import net.minecraft.world.IBlockAccess; public class BlockPillar extends Block { - public BlockPillar(int id) { - super(id, Material.rock); - setBlockUnbreakable(); - setResistance(6000000.0F); + public BlockPillar() { + super(Material.rock); + setBlockUnbreakable(); + setResistance(6000000.0F); setCreativeTab(MysticWorld.MysticWorldTab); - setBlockBounds(0.15F, 0.0F, 0.15F, 0.85F, 1.0F, 0.85F); + setBlockBounds(0.15F, 0.0F, 0.15F, 0.85F, 1.0F, 0.85F); } - @Override - public boolean isOpaqueCube() { - return false; - } + @Override + public boolean isOpaqueCube(){ + return false; + } - @Override - public boolean renderAsNormalBlock() { - return false; - } + @Override + public boolean renderAsNormalBlock(){ + return false; + } } diff --git a/common/MysticWorld/Blocks/BlockPillarInsert.java b/common/MysticWorld/Blocks/BlockPillarInsert.java index 82f0ed2..eaf007d 100644 --- a/common/MysticWorld/Blocks/BlockPillarInsert.java +++ b/common/MysticWorld/Blocks/BlockPillarInsert.java @@ -4,28 +4,33 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import mysticworld.tiles.TileEntityPillarInsert; -import net.minecraft.block.BlockContainer; +import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.Item; +import net.minecraft.init.Items; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -public class BlockPillarInsert extends BlockContainer { +public class BlockPillarInsert extends Block { public static int RENDER_PILLAR_INSERT; - public BlockPillarInsert(int id) { - super(id, Material.rock); + public BlockPillarInsert() { + super(Material.rock); this.setBlockUnbreakable(); this.setResistance(6000000.0F); this.setCreativeTab(MysticWorld.MysticWorldTab); - setBlockBounds(0.125F, 0.0F, 0.125F, 0.875F, 1.0F, 0.875F); + setBlockBounds(0.125F, 0.0F, 0.125F, 0.875F, 1.0F, 0.875F); } + @Override + public boolean hasTileEntity(int i){ + return true; + } + @Override - public TileEntity createNewTileEntity(World world) { + public TileEntity createTileEntity(World world, int i) { return new TileEntityPillarInsert(); } @@ -39,16 +44,11 @@ public class BlockPillarInsert extends BlockContainer { return RENDER_PILLAR_INSERT; } - @Override - public boolean isOpaqueCube() { - return false; - } - @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer entityPlayer, int par6, float par7, float par8, float par9) { if (!world.isRemote) { - if (Item.enderPearl.itemID == entityPlayer.inventory.getCurrentItem().itemID) { - TileEntity te = world.getBlockTileEntity(x, y, z); + if (Items.ender_pearl == entityPlayer.inventory.getCurrentItem().getItem()) { + TileEntity te = world.getTileEntity(x, y, z); } } return false; @@ -56,15 +56,21 @@ public class BlockPillarInsert extends BlockContainer { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister par1IconRegister) { + public void registerBlockIcons(IIconRegister par1IconRegister) { } @Override - public boolean renderAsNormalBlock() { - return false; - } + public boolean renderAsNormalBlock(){ + return false; + } + + @Override + public boolean isOpaqueCube(){ + return false; + } @Override + @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int x, int y, int z, int i) { return false; } diff --git a/common/MysticWorld/Blocks/BlockPillarPlatform.java b/common/MysticWorld/Blocks/BlockPillarPlatform.java index cac0fdb..7467aa6 100644 --- a/common/MysticWorld/Blocks/BlockPillarPlatform.java +++ b/common/MysticWorld/Blocks/BlockPillarPlatform.java @@ -9,18 +9,13 @@ import net.minecraft.entity.Entity; import net.minecraft.world.World; public class BlockPillarPlatform extends Block { - public BlockPillarPlatform(int id) { - super(id, Material.rock); + public BlockPillarPlatform() { + super(Material.rock); this.setBlockUnbreakable(); this.setResistance(6000000.0F); this.setTickRandomly(true); setCreativeTab(MysticWorld.MysticWorldTab); - setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.15F, 1.0F); - } - - @Override - public boolean isOpaqueCube() { - return false; + setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.15F, 1.0F); } @Override @@ -40,10 +35,15 @@ public class BlockPillarPlatform extends Block { } } - @Override - public boolean renderAsNormalBlock() { - return false; - } + @Override + public boolean renderAsNormalBlock(){ + return false; + } + + @Override + public boolean isOpaqueCube(){ + return false; + } @Override public int tickRate(World par1World) { @@ -57,11 +57,11 @@ public class BlockPillarPlatform extends Block { } private boolean isTowersNearby(World world, int x, int y, int z) { - int block = BlockHandler.pillar.blockID; - if (world.getBlockId(x - 2, y, z - 2) == block && world.getBlockId(x - 2, y, z + 2) == block && world.getBlockId(x + 2, y, z + 2) == block && world.getBlockId(x + 2, y, z - 2) == block - && world.getBlockId(x - 2, y + 1, z - 2) == block && world.getBlockId(x - 2, y + 1, z + 2) == block && world.getBlockId(x + 2, y + 1, z + 2) == block - && world.getBlockId(x + 2, y + 1, z - 2) == block && world.getBlockId(x - 2, y + 2, z - 2) == block && world.getBlockId(x - 2, y + 2, z + 2) == block - && world.getBlockId(x + 2, y + 2, z + 2) == block && world.getBlockId(x + 2, y + 2, z - 2) == block) { + Block block = BlockHandler.pillar; + if (world.getBlock(x - 2, y, z - 2) == block && world.getBlock(x - 2, y, z + 2) == block && world.getBlock(x + 2, y, z + 2) == block && world.getBlock(x + 2, y, z - 2) == block + && world.getBlock(x - 2, y + 1, z - 2) == block && world.getBlock(x - 2, y + 1, z + 2) == block && world.getBlock(x + 2, y + 1, z + 2) == block + && world.getBlock(x + 2, y + 1, z - 2) == block && world.getBlock(x - 2, y + 2, z - 2) == block && world.getBlock(x - 2, y + 2, z + 2) == block + && world.getBlock(x + 2, y + 2, z + 2) == block && world.getBlock(x + 2, y + 2, z - 2) == block) { return true; } return false; diff --git a/common/MysticWorld/Blocks/BlockPillarTower.java b/common/MysticWorld/Blocks/BlockPillarTower.java index 08103ba..fe67465 100644 --- a/common/MysticWorld/Blocks/BlockPillarTower.java +++ b/common/MysticWorld/Blocks/BlockPillarTower.java @@ -5,21 +5,21 @@ import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class BlockPillarTower extends Block { - public BlockPillarTower(int id) { - super(id, Material.rock); - setBlockUnbreakable(); - setResistance(6000000.0F); - setCreativeTab(MysticWorld.MysticWorldTab); - setBlockBounds(0.15F, 0.0F, 0.15F, 0.85F, 1.0F, 0.85F); + public BlockPillarTower() { + super(Material.rock); + setBlockUnbreakable(); + setResistance(6000000.0F); + setCreativeTab(MysticWorld.MysticWorldTab); + setBlockBounds(0.15F, 0.0F, 0.15F, 0.85F, 1.0F, 0.85F); } - @Override - public boolean isOpaqueCube() { - return false; - } + @Override + public boolean isOpaqueCube(){ + return false; + } - @Override - public boolean renderAsNormalBlock() { - return false; - } + @Override + public boolean renderAsNormalBlock(){ + return false; + } } diff --git a/common/MysticWorld/Blocks/BlockPlatform.java b/common/MysticWorld/Blocks/BlockPlatform.java index 953e105..c97973c 100644 --- a/common/MysticWorld/Blocks/BlockPlatform.java +++ b/common/MysticWorld/Blocks/BlockPlatform.java @@ -8,23 +8,27 @@ import net.minecraft.block.material.Material; import net.minecraft.world.World; public class BlockPlatform extends Block { - public BlockPlatform(int id) { - super(id, Material.rock); - this.setBlockUnbreakable(); - this.setResistance(6000000.0F); - this.setTickRandomly(true); + public BlockPlatform() { + super(Material.rock); + setBlockUnbreakable(); + setResistance(6000000.0F); + setTickRandomly(true); setCreativeTab(MysticWorld.MysticWorldTab); - setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.15F, 1.0F); + setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.15F, 1.0F); } - @Override - public boolean isOpaqueCube() { - return false; - } + @Override + public boolean isOpaqueCube(){ + return false; + } + + @Override + public boolean renderAsNormalBlock(){ + return false; + } @Override public void randomDisplayTick(World world, int x, int y, int z, Random rand) { - int block = BlockHandler.pillar.blockID; double posX = x; double posY = y; double posZ = z; @@ -39,11 +43,6 @@ public class BlockPlatform extends Block { } } - @Override - public boolean renderAsNormalBlock() { - return false; - } - @Override public int tickRate(World par1World) { return 30; @@ -54,12 +53,12 @@ public class BlockPlatform extends Block { } private boolean isTowersNearby(World world, int x, int y, int z) { - int pillar = BlockHandler.pillar.blockID; - int insert = BlockHandler.pillarInsert.blockID; - if (world.getBlockId(x - 2, y, z - 2) == pillar && world.getBlockId(x - 2, y, z + 2) == pillar && world.getBlockId(x + 2, y, z + 2) == pillar && world.getBlockId(x + 2, y, z - 2) == pillar - && world.getBlockId(x - 2, y + 1, z - 2) == insert && world.getBlockId(x - 2, y + 1, z + 2) == insert && world.getBlockId(x + 2, y + 1, z + 2) == insert - && world.getBlockId(x + 2, y + 1, z - 2) == insert && world.getBlockId(x - 2, y + 2, z - 2) == pillar && world.getBlockId(x - 2, y + 2, z + 2) == pillar - && world.getBlockId(x + 2, y + 2, z + 2) == pillar && world.getBlockId(x + 2, y + 2, z - 2) == pillar) { + Block pillar = BlockHandler.pillar; + Block insert = BlockHandler.pillarInsert; + if (world.getBlock(x - 2, y, z - 2) == pillar && world.getBlock(x - 2, y, z + 2) == pillar && world.getBlock(x + 2, y, z + 2) == pillar && world.getBlock(x + 2, y, z - 2) == pillar + && world.getBlock(x - 2, y + 1, z - 2) == insert && world.getBlock(x - 2, y + 1, z + 2) == insert && world.getBlock(x + 2, y + 1, z + 2) == insert + && world.getBlock(x + 2, y + 1, z - 2) == insert && world.getBlock(x - 2, y + 2, z - 2) == pillar && world.getBlock(x - 2, y + 2, z + 2) == pillar + && world.getBlock(x + 2, y + 2, z + 2) == pillar && world.getBlock(x + 2, y + 2, z - 2) == pillar) { return true; } return false; diff --git a/common/MysticWorld/Blocks/ItemBush.java b/common/MysticWorld/Blocks/ItemBush.java deleted file mode 100644 index c7118e2..0000000 --- a/common/MysticWorld/Blocks/ItemBush.java +++ /dev/null @@ -1,38 +0,0 @@ -package mysticworld.blocks; - -import mysticworld.lib.Strings; -import net.minecraft.item.ItemBlock; -import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; -import net.minecraft.util.MathHelper; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class ItemBush extends ItemBlock { - public static String[] BUSH_TYPES = new String[] { Strings.BUSH_NAME, Strings.POISON_BUSH_NAME, Strings.WEAKNESS_BUSH_NAME, Strings.SLOWNESS_BUSH_NAME, Strings.HARMING_BUSH_NAME, - Strings.WITHER_BUSH_NAME, Strings.HEALTH_BUSH_NAME, Strings.SPEED_BUSH_NAME, Strings.FIRE_RESISTANCE_BUSH_NAME, Strings.REGEN_BUSH_NAME, Strings.NIGHT_VISION_BUSH_NAME, - Strings.INVISIBILITY_BUSH_NAME }; - - public ItemBush(int par1) { - super(par1); - setMaxDamage(0); - setHasSubtypes(true); - } - - @Override - @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int par1) { - return BlockHandler.bush.getIcon(2, par1); - } - - @Override - public int getMetadata(int par1) { - return par1; - } - - @Override - public String getUnlocalizedName(ItemStack itemStack) { - int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, BUSH_TYPES.length); - return BUSH_TYPES[meta]; - } -} diff --git a/common/MysticWorld/Blocks/ItemImbuedStone.java b/common/MysticWorld/Blocks/ItemImbuedStone.java deleted file mode 100644 index 7453aa1..0000000 --- a/common/MysticWorld/Blocks/ItemImbuedStone.java +++ /dev/null @@ -1,43 +0,0 @@ -package mysticworld.blocks; - -import java.util.List; - - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -import net.minecraft.item.ItemBlock; -import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; -import net.minecraft.util.MathHelper; - -public class ItemImbuedStone extends ItemBlock { - - public static String[] IMBUED_STONE_TYPE = new String[] {"Fire", "Water", "Earth", "Air", "Energy"}; - - public ItemImbuedStone(int par1) { - super(par1); - setMaxDamage(0); - setHasSubtypes(true); - } - - - @Override - public String getUnlocalizedName(ItemStack itemStack) { - int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, IMBUED_STONE_TYPE.length); - return super.getUnlocalizedName() + IMBUED_STONE_TYPE[meta]; - } - - - public int getMetadata(int par1) - { - return par1; - } - - @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int par1) - { - return BlockHandler.oreImbuedStone.getIcon(2, par1); - } - -} diff --git a/common/MysticWorld/Client/ClientProxy.java b/common/MysticWorld/Client/ClientProxy.java index 4affb96..e330a01 100644 --- a/common/MysticWorld/Client/ClientProxy.java +++ b/common/MysticWorld/Client/ClientProxy.java @@ -15,6 +15,7 @@ import mysticworld.items.ItemHandler; import mysticworld.renderer.*; import mysticworld.tiles.TileEntityPillarInsert; import net.minecraft.client.Minecraft; +import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import net.minecraftforge.client.MinecraftForgeClient; @@ -25,11 +26,6 @@ public class ClientProxy extends CommonProxy { public final Minecraft mc = Minecraft.getMinecraft(); public static final ResourceLocation particle = new ResourceLocation("textures/particle/particles.png"); - @Override - public int addArmor(String armor) { - return RenderingRegistry.addNewArmourRendererPrefix(armor); - } - //particles @Override public void airFeetFX(World worldObj, double x, double y, double z, float scale, int age) { @@ -64,17 +60,17 @@ public class ClientProxy extends CommonProxy { @Override public void registerRenders() { BlockPillarInsert.RENDER_PILLAR_INSERT = RenderingRegistry.getNextAvailableRenderId(); - MinecraftForgeClient.registerItemRenderer(BlockHandler.pillarInsert.blockID, new BlockPillarInsertRenderer()); - MinecraftForgeClient.registerItemRenderer(ItemHandler.fireStaff.itemID, new StaffItemRenderer("Fire")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.earthStaff.itemID, new StaffItemRenderer("Earth")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.airStaff.itemID, new StaffItemRenderer("Air")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.energyStaff.itemID, new StaffItemRenderer("Energy")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.waterStaff.itemID, new StaffItemRenderer("Water")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.fireOrb.itemID, new OrbItemRenderer("Fire")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.earthOrb.itemID, new OrbItemRenderer("Earth")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.airOrb.itemID, new OrbItemRenderer("Air")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.energyOrb.itemID, new OrbItemRenderer("Energy")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.waterOrb.itemID, new OrbItemRenderer("Water")); + MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockHandler.pillarInsert), new BlockPillarInsertRenderer()); + MinecraftForgeClient.registerItemRenderer(ItemHandler.fireStaff, new StaffItemRenderer("Fire")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.earthStaff, new StaffItemRenderer("Earth")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.airStaff, new StaffItemRenderer("Air")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.energyStaff, new StaffItemRenderer("Energy")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.waterStaff, new StaffItemRenderer("Water")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.fireOrb, new OrbItemRenderer("Fire")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.earthOrb, new OrbItemRenderer("Earth")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.airOrb, new OrbItemRenderer("Air")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.energyOrb, new OrbItemRenderer("Energy")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.waterOrb, new OrbItemRenderer("Water")); RenderingRegistry.registerEntityRenderingHandler(EntityChargeFire.class, new RenderStaffPower(0)); RenderingRegistry.registerEntityRenderingHandler(EntityChargeWater.class, new RenderStaffPower(1)); RenderingRegistry.registerEntityRenderingHandler(EntityChargeEarth.class, new RenderStaffPower(2)); diff --git a/common/MysticWorld/Entity/EntityChargeAir.java b/common/MysticWorld/Entity/EntityChargeAir.java index f864baa..3a510be 100644 --- a/common/MysticWorld/Entity/EntityChargeAir.java +++ b/common/MysticWorld/Entity/EntityChargeAir.java @@ -72,7 +72,7 @@ public class EntityChargeAir extends Entity { super.onUpdate(); Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks_do_do(vec3, vec31, true, true); + MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); if (movingobjectposition != null) { diff --git a/common/MysticWorld/Entity/EntityChargeEarth.java b/common/MysticWorld/Entity/EntityChargeEarth.java index dfa9823..c552b59 100644 --- a/common/MysticWorld/Entity/EntityChargeEarth.java +++ b/common/MysticWorld/Entity/EntityChargeEarth.java @@ -10,6 +10,8 @@ import net.minecraft.entity.boss.EntityDragon; import net.minecraft.entity.boss.EntityWither; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; +import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; @@ -79,7 +81,7 @@ public class EntityChargeEarth extends Entity { super.onUpdate(); Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks_do_do(vec3, vec31, true, true); + MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); if (movingobjectposition != null) { @@ -143,15 +145,15 @@ public class EntityChargeEarth extends Entity { par1MovingObjectPosition.entityHit.addVelocity(this.motionX * 1 * 0.6000000238418579D / f3, 0.1D, this.motionZ * 1 * 0.6000000238418579D / f3); } par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.magic, 20); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Item.seeds, rand.nextInt(4)))); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Block.mushroomBrown, rand.nextInt(2)))); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Item.appleRed, rand.nextInt(2)))); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Block.sapling, rand.nextInt(2), 0))); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Item.pumpkinSeeds, rand.nextInt(2)))); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Block.sapling, rand.nextInt(2), 1))); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Block.sapling, rand.nextInt(2), 2))); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Block.sapling, rand.nextInt(2), 3))); - this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Item.melonSeeds, rand.nextInt(3)))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Items.wheat_seeds, rand.nextInt(4)))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Blocks.brown_mushroom, rand.nextInt(2)))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Items.apple, rand.nextInt(2)))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Blocks.sapling, rand.nextInt(2), 0))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Items.pumpkin_seeds, rand.nextInt(2)))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Blocks.sapling, rand.nextInt(2), 1))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Blocks.sapling, rand.nextInt(2), 2))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Blocks.sapling, rand.nextInt(2), 3))); + this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Items.melon_seeds, rand.nextInt(3)))); } else { int i = par1MovingObjectPosition.blockX; int j = par1MovingObjectPosition.blockY; diff --git a/common/MysticWorld/Entity/EntityChargeEnergy.java b/common/MysticWorld/Entity/EntityChargeEnergy.java index 3e80441..d05f54b 100644 --- a/common/MysticWorld/Entity/EntityChargeEnergy.java +++ b/common/MysticWorld/Entity/EntityChargeEnergy.java @@ -69,7 +69,7 @@ public class EntityChargeEnergy extends Entity { super.onUpdate(); Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks_do_do(vec3, vec31, true, true); + MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); if (movingobjectposition != null) { diff --git a/common/MysticWorld/Entity/EntityChargeFire.java b/common/MysticWorld/Entity/EntityChargeFire.java index 8443cb0..859c144 100644 --- a/common/MysticWorld/Entity/EntityChargeFire.java +++ b/common/MysticWorld/Entity/EntityChargeFire.java @@ -6,6 +6,7 @@ import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.DamageSource; @@ -70,7 +71,7 @@ public class EntityChargeFire extends Entity { super.onUpdate(); Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks_do_do(vec3, vec31, true, true); + MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); if (movingobjectposition != null) { @@ -160,7 +161,7 @@ public class EntityChargeFire extends Entity { ++i; } if (this.worldObj.isAirBlock(i, j, k)) { - this.worldObj.setBlock(i, j, k, Block.fire.blockID); + this.worldObj.setBlock(i, j, k, Blocks.fire); } } this.setDead(); diff --git a/common/MysticWorld/Entity/EntityChargeWater.java b/common/MysticWorld/Entity/EntityChargeWater.java index 1168d74..8eb3aeb 100644 --- a/common/MysticWorld/Entity/EntityChargeWater.java +++ b/common/MysticWorld/Entity/EntityChargeWater.java @@ -69,7 +69,7 @@ public class EntityChargeWater extends Entity { super.onUpdate(); Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks_do_do(vec3, vec31, true, true); + MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); if (movingobjectposition != null) { diff --git a/common/MysticWorld/Entity/EntityHandler.java b/common/MysticWorld/Entity/EntityHandler.java index b3ea704..ea84b64 100644 --- a/common/MysticWorld/Entity/EntityHandler.java +++ b/common/MysticWorld/Entity/EntityHandler.java @@ -1,20 +1,21 @@ package mysticworld.entity; import mysticworld.MysticWorld; -import mysticworld.lib.EntityIds; import mysticworld.lib.Strings; import cpw.mods.fml.common.registry.EntityRegistry; public class EntityHandler { + //Entity IDs + public static int ENTITY_AIR_CHARGE = 1; + public static int ENTITY_FIREBALL = 2; + public static int ENTITY_EARTH_CHARGE = 3; + public static int ENTITY_ENERGY_CHARGE = 4; + public static int ENTITY_WATER_CHARGE = 5; public static void init() { - registerEntities(); - } - - public static void registerEntities() { - EntityRegistry.registerModEntity(EntityChargeAir.class, Strings.ENTITY_AIR_CHARGE_NAME, EntityIds.ENTITY_AIR_CHARGE, MysticWorld.instance, 80, 3, false); - EntityRegistry.registerModEntity(EntityChargeFire.class, Strings.ENTITY_FIREBALL_NAME, EntityIds.ENTITY_FIREBALL, MysticWorld.instance, 80, 3, false); - EntityRegistry.registerModEntity(EntityChargeEarth.class, Strings.ENTITY_EARTH_CHARGE_NAME, EntityIds.ENTITY_EARTH_CHARGE, MysticWorld.instance, 80, 3, false); - EntityRegistry.registerModEntity(EntityChargeEnergy.class, Strings.ENTITY_ENERGY_CHARGE_NAME, EntityIds.ENTITY_ENERGY_CHARGE, MysticWorld.instance, 80, 3, false); - EntityRegistry.registerModEntity(EntityChargeWater.class, Strings.ENTITY_WATER_CHARGE_NAME, EntityIds.ENTITY_WATER_CHARGE, MysticWorld.instance, 80, 3, false); + EntityRegistry.registerModEntity(EntityChargeAir.class, Strings.ENTITY_AIR_CHARGE_NAME, ENTITY_AIR_CHARGE, MysticWorld.instance, 80, 3, false); + EntityRegistry.registerModEntity(EntityChargeFire.class, Strings.ENTITY_FIREBALL_NAME, ENTITY_FIREBALL, MysticWorld.instance, 80, 3, false); + EntityRegistry.registerModEntity(EntityChargeEarth.class, Strings.ENTITY_EARTH_CHARGE_NAME, ENTITY_EARTH_CHARGE, MysticWorld.instance, 80, 3, false); + EntityRegistry.registerModEntity(EntityChargeEnergy.class, Strings.ENTITY_ENERGY_CHARGE_NAME, ENTITY_ENERGY_CHARGE, MysticWorld.instance, 80, 3, false); + EntityRegistry.registerModEntity(EntityChargeWater.class, Strings.ENTITY_WATER_CHARGE_NAME, ENTITY_WATER_CHARGE, MysticWorld.instance, 80, 3, false); } } diff --git a/common/MysticWorld/Items/EnumArmor.java b/common/MysticWorld/Items/EnumArmor.java index 89d822d..4e8192f 100644 --- a/common/MysticWorld/Items/EnumArmor.java +++ b/common/MysticWorld/Items/EnumArmor.java @@ -1,12 +1,12 @@ package mysticworld.items; -import net.minecraft.item.EnumArmorMaterial; -import net.minecraftforge.common.EnumHelper; +import net.minecraft.item.ItemArmor; +import net.minecraftforge.common.util.EnumHelper; public class EnumArmor { - static EnumArmorMaterial Verdite = EnumHelper.addArmorMaterial("Verdite", 262, new int[]{2, 5, 4, 1}, 5); - static EnumArmorMaterial Mithril = EnumHelper.addArmorMaterial("Mithril", 500, new int[]{2, 7, 6, 2}, 9); - static EnumArmorMaterial Adamantine = EnumHelper.addArmorMaterial("Adamantine", 3000, new int[]{4, 9, 6, 4}, 13); - static EnumArmorMaterial Iridium = EnumHelper.addArmorMaterial("Iridium", 4000, new int[]{4, 10, 7, 5}, 15); + static ItemArmor.ArmorMaterial Verdite = EnumHelper.addArmorMaterial("Verdite", 262, new int[]{2, 5, 4, 1}, 5); + static ItemArmor.ArmorMaterial Mithril = EnumHelper.addArmorMaterial("Mithril", 500, new int[]{2, 7, 6, 2}, 9); + static ItemArmor.ArmorMaterial Adamantine = EnumHelper.addArmorMaterial("Adamantine", 3000, new int[]{4, 9, 6, 4}, 13); + static ItemArmor.ArmorMaterial Iridium = EnumHelper.addArmorMaterial("Iridium", 4000, new int[]{4, 10, 7, 5}, 15); } diff --git a/common/MysticWorld/Items/ItemArmorAdamantine.java b/common/MysticWorld/Items/ItemArmorAdamantine.java index a7b4a00..8dcecef 100644 --- a/common/MysticWorld/Items/ItemArmorAdamantine.java +++ b/common/MysticWorld/Items/ItemArmorAdamantine.java @@ -1,30 +1,29 @@ package mysticworld.items; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; -import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class ItemArmorAdamantine extends ItemArmor { int ArmorType; - public ItemArmorAdamantine(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { - super(par1, par2EnumArmorMaterial, par3, par4); + public ItemArmorAdamantine(ArmorMaterial par2EnumArmorMaterial, int par4) { + super(par2EnumArmorMaterial, 0, par4); this.ArmorType = par4; this.setMaxDamage(3000); this.setCreativeTab(MysticWorld.MysticWorldTab); } @Override - public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { int suffix = this.armorType == 2 ? 2 : 1; return "mysticworld:textures/models/armor/Adamantine_layer_" + suffix + ".png"; } @Override - public void registerIcons(IconRegister iconRegister) { + public void registerIcons(IIconRegister iconRegister) { itemIcon = iconRegister.registerIcon("mysticworld:AdamantineArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemArmorIridium.java b/common/MysticWorld/Items/ItemArmorIridium.java index cbd96b3..b2b4939 100644 --- a/common/MysticWorld/Items/ItemArmorIridium.java +++ b/common/MysticWorld/Items/ItemArmorIridium.java @@ -1,10 +1,9 @@ package mysticworld.items; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; @@ -14,44 +13,44 @@ import net.minecraft.world.World; public class ItemArmorIridium extends ItemArmor { int ArmorType; - public ItemArmorIridium(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { - super(par1, par2EnumArmorMaterial, par3, par4); + public ItemArmorIridium(ArmorMaterial par2EnumArmorMaterial, int par4) { + super(par2EnumArmorMaterial, 0, par4); this.ArmorType = par4; this.setMaxDamage(4000); this.setCreativeTab(MysticWorld.MysticWorldTab); } @Override - public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { int suffix = this.armorType == 2 ? 2 : 1; return "mysticworld:textures/models/armor/Iridium_layer_" + suffix + ".png"; } @Override - public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack itemStack) { - ItemStack helmet = player.getCurrentItemOrArmor(4); - ItemStack plate = player.getCurrentItemOrArmor(3); - ItemStack legs = player.getCurrentItemOrArmor(2); - ItemStack boots = player.getCurrentItemOrArmor(1); + public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { + ItemStack helmet = player.getEquipmentInSlot(4); + ItemStack plate = player.getEquipmentInSlot(3); + ItemStack legs = player.getEquipmentInSlot(2); + ItemStack boots = player.getEquipmentInSlot(1); if (helmet != null) { - if (helmet.itemID == ItemHandler.iridiumHelmet.itemID) { + if (helmet.getItem() == ItemHandler.iridiumHelmet) { player.addPotionEffect((new PotionEffect(Potion.nightVision.getId(), 200, 0))); } } if (plate != null) { - if (plate.itemID == ItemHandler.iridiumChestplate.itemID) { + if (plate.getItem() == ItemHandler.iridiumChestplate) { player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 200, 0))); } } if (legs != null) { - if (legs.itemID == ItemHandler.iridiumLeggings.itemID) { + if (legs.getItem() == ItemHandler.iridiumLeggings) { player.addPotionEffect((new PotionEffect(Potion.moveSpeed.getId(), 200, 2))); player.addVelocity(0.0005, 0, 0.0005); player.stepHeight = 1.001F; } } if (boots != null) { - if (boots.itemID == ItemHandler.iridiumBoots.itemID) { + if (boots.getItem() == ItemHandler.iridiumBoots) { player.fallDistance = 0.0F; player.addPotionEffect((new PotionEffect(Potion.jump.getId(), 200, 2))); } @@ -59,7 +58,7 @@ public class ItemArmorIridium extends ItemArmor { } @Override - public void registerIcons(IconRegister iconRegister) { + public void registerIcons(IIconRegister iconRegister) { itemIcon = iconRegister.registerIcon("mysticworld:IridiumArmor_" + ArmorType); } } \ No newline at end of file diff --git a/common/MysticWorld/Items/ItemArmorMithril.java b/common/MysticWorld/Items/ItemArmorMithril.java index e649f9e..d6bd4e8 100644 --- a/common/MysticWorld/Items/ItemArmorMithril.java +++ b/common/MysticWorld/Items/ItemArmorMithril.java @@ -1,30 +1,29 @@ package mysticworld.items; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; -import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class ItemArmorMithril extends ItemArmor { int ArmorType; - public ItemArmorMithril(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { - super(par1, par2EnumArmorMaterial, par3, par4); + public ItemArmorMithril(ArmorMaterial par2EnumArmorMaterial, int par4) { + super(par2EnumArmorMaterial, 0, par4); this.ArmorType = par4; this.setMaxDamage(500); this.setCreativeTab(MysticWorld.MysticWorldTab); } @Override - public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { int suffix = this.armorType == 2 ? 2 : 1; return "mysticworld:textures/models/armor/Mithril_layer_" + suffix + ".png"; } @Override - public void registerIcons(IconRegister iconRegister) { + public void registerIcons(IIconRegister iconRegister) { itemIcon = iconRegister.registerIcon("mysticworld:MithrilArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemArmorVerdite.java b/common/MysticWorld/Items/ItemArmorVerdite.java index 0e7553b..2d2b295 100644 --- a/common/MysticWorld/Items/ItemArmorVerdite.java +++ b/common/MysticWorld/Items/ItemArmorVerdite.java @@ -1,30 +1,29 @@ package mysticworld.items; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; -import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class ItemArmorVerdite extends ItemArmor { int ArmorType; - public ItemArmorVerdite(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { - super(par1, par2EnumArmorMaterial, par3, par4); + public ItemArmorVerdite(ArmorMaterial par2EnumArmorMaterial, int par4) { + super(par2EnumArmorMaterial, 0, par4); this.ArmorType = par4; this.setMaxDamage(262); this.setCreativeTab(MysticWorld.MysticWorldTab); } @Override - public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { int suffix = this.armorType == 2 ? 2 : 1; return "mysticworld:textures/models/armor/Verdite_layer_" + suffix + ".png"; } @Override - public void registerIcons(IconRegister iconRegister) { + public void registerIcons(IIconRegister iconRegister) { itemIcon = iconRegister.registerIcon("mysticworld:VerditeArmor_" + ArmorType); } } diff --git a/common/MysticWorld/Items/ItemBushFruit.java b/common/MysticWorld/Items/ItemBushFruit.java index 755fab1..ce12fad 100644 --- a/common/MysticWorld/Items/ItemBushFruit.java +++ b/common/MysticWorld/Items/ItemBushFruit.java @@ -3,26 +3,27 @@ package mysticworld.items; import java.util.List; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; 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.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemBushFruit extends ItemFood { - private Icon[] icons; + private IIcon[] icons; private static final String[] FRUIT_TYPES = new String[] { "Mundane", "Poison", "Weakness", "Slowness", "Harming", "Wither", "Health", "Speed", "FireResistance", "Regen", "NightVision", "Invisibility" }; - public ItemBushFruit(int id, int health) { - super(id, health, 0.6F, false); + public ItemBushFruit(int health) { + super(health, 0.6F, false); this.setHasSubtypes(true); this.setCreativeTab(MysticWorld.MysticWorldTab); maxStackSize = 64; @@ -32,7 +33,7 @@ public class ItemBushFruit extends ItemFood { @Override @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int meta) { + public IIcon getIconFromDamage(int meta) { int j = MathHelper.clamp_int(meta, 0, FRUIT_TYPES.length); return icons[j]; } @@ -44,7 +45,7 @@ public class ItemBushFruit extends ItemFood { @Override @SideOnly(Side.CLIENT) - public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) { + public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List) { for (int var4 = 0; var4 < FRUIT_TYPES.length; var4++) { par3List.add(new ItemStack(par1, 1, var4)); } @@ -60,8 +61,8 @@ public class ItemBushFruit extends ItemFood { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - icons = new Icon[FRUIT_TYPES.length]; + public void registerIcons(IIconRegister iconRegister) { + icons = new IIcon[FRUIT_TYPES.length]; for (int i = 0; i < FRUIT_TYPES.length; ++i) { icons[i] = iconRegister.registerIcon("mysticworld:Fruit" + FRUIT_TYPES[i]); } @@ -76,77 +77,77 @@ public class ItemBushFruit extends ItemFood { case 1: potion = player.getActivePotionEffect(Potion.poison); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.poison.id, duration + 160, 0)); break; case 2: potion = player.getActivePotionEffect(Potion.weakness); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.weakness.id, duration + 160, 0)); break; case 3: potion = player.getActivePotionEffect(Potion.moveSlowdown); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, duration + 160, 0)); break; case 4: potion = player.getActivePotionEffect(Potion.harm); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.harm.id, duration + 1, 0)); break; case 5: potion = player.getActivePotionEffect(Potion.wither); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.wither.id, duration + 160, 0)); break; case 6: potion = player.getActivePotionEffect(Potion.heal); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.heal.id, duration + 1, 0)); break; case 7: potion = player.getActivePotionEffect(Potion.moveSpeed); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, duration + 160, 0)); break; case 8: potion = player.getActivePotionEffect(Potion.fireResistance); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.fireResistance.id, duration + 160, 0)); break; case 9: potion = player.getActivePotionEffect(Potion.regeneration); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.regeneration.id, duration + 160, 0)); break; case 10: potion = player.getActivePotionEffect(Potion.nightVision); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.nightVision.id, duration + 160, 0)); break; case 11: potion = player.getActivePotionEffect(Potion.invisibility); if (potion != null) { - duration = potion.duration; + duration = potion.getDuration(); } player.addPotionEffect(new PotionEffect(Potion.invisibility.id, duration + 160, 0)); break; diff --git a/common/MysticWorld/Items/ItemImbuedShard.java b/common/MysticWorld/Items/ItemImbuedShard.java index 1e234b9..a31ab59 100644 --- a/common/MysticWorld/Items/ItemImbuedShard.java +++ b/common/MysticWorld/Items/ItemImbuedShard.java @@ -4,21 +4,21 @@ import java.util.List; import mysticworld.MysticWorld; import mysticworld.lib.Strings; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemImbuedShard extends Item { - private Icon[] icons; + private IIcon[] icons; private static final String[] SHARD_TYPES = new String[] { "Fire", "Water", "Earth", "Air", "Energy" }; - public ItemImbuedShard(int id) { - super(id); + public ItemImbuedShard() { + super(); this.setHasSubtypes(true); this.setUnlocalizedName(Strings.IMBUED_SHARD_NAME); this.setCreativeTab(MysticWorld.MysticWorldTab); @@ -26,14 +26,14 @@ public class ItemImbuedShard extends Item { @Override @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int meta) { + public IIcon getIconFromDamage(int meta) { int j = MathHelper.clamp_int(meta, 0, 5); return icons[j]; } @Override @SideOnly(Side.CLIENT) - public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) { + public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List) { for (int var4 = 0; var4 < SHARD_TYPES.length; var4++) { par3List.add(new ItemStack(par1, 1, var4)); } @@ -47,8 +47,8 @@ public class ItemImbuedShard extends Item { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - icons = new Icon[SHARD_TYPES.length]; + public void registerIcons(IIconRegister iconRegister) { + icons = new IIcon[SHARD_TYPES.length]; for (int i = 0; i < SHARD_TYPES.length; ++i) { icons[i] = iconRegister.registerIcon("mysticworld:Shard" + SHARD_TYPES[i]); } diff --git a/common/MysticWorld/Items/ItemOrb.java b/common/MysticWorld/Items/ItemOrb.java index 7cb7af7..38012b1 100644 --- a/common/MysticWorld/Items/ItemOrb.java +++ b/common/MysticWorld/Items/ItemOrb.java @@ -6,14 +6,14 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; public class ItemOrb extends Item { Random rand = new Random(); - public ItemOrb(int id) { - super(id); + public ItemOrb() { + super(); this.setMaxStackSize(1); this.setMaxDamage(200); this.setCreativeTab(MysticWorld.MysticWorldTab); @@ -21,6 +21,6 @@ public class ItemOrb extends Item { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister par1IconRegister) { + public void registerIcons(IIconRegister par1IconRegister) { } } diff --git a/common/MysticWorld/Items/ItemOrbAir.java b/common/MysticWorld/Items/ItemOrbAir.java index 9a6868b..99ac3e1 100644 --- a/common/MysticWorld/Items/ItemOrbAir.java +++ b/common/MysticWorld/Items/ItemOrbAir.java @@ -11,8 +11,8 @@ import net.minecraft.world.World; import org.lwjgl.input.Mouse; public class ItemOrbAir extends ItemOrb { - public ItemOrbAir(int id) { - super(id); + public ItemOrbAir() { + super(); } @Override diff --git a/common/MysticWorld/Items/ItemOrbEarth.java b/common/MysticWorld/Items/ItemOrbEarth.java index c796ce0..e1ad6de 100644 --- a/common/MysticWorld/Items/ItemOrbEarth.java +++ b/common/MysticWorld/Items/ItemOrbEarth.java @@ -1,26 +1,15 @@ package mysticworld.items; import mysticworld.MysticWorld; -import net.minecraft.block.Block; -import net.minecraft.block.BlockCocoa; -import net.minecraft.block.BlockCrops; -import net.minecraft.block.BlockDirectional; -import net.minecraft.block.BlockMushroom; -import net.minecraft.block.BlockSapling; -import net.minecraft.block.BlockStem; import net.minecraft.entity.Entity; -import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemDye; import net.minecraft.item.ItemStack; import net.minecraft.world.World; -import net.minecraftforge.common.ForgeHooks; -import net.minecraftforge.common.MinecraftForge; -import net.minecraftforge.event.Event.Result; -import net.minecraftforge.event.entity.player.BonemealEvent; public class ItemOrbEarth extends ItemOrb { - public ItemOrbEarth(int id) { - super(id); + public ItemOrbEarth() { + super(); } @Override @@ -47,113 +36,6 @@ public class ItemOrbEarth extends ItemOrb { } public static boolean applyBonemeal(ItemStack itemStack, World par1World, int par2, int par3, int par4, EntityPlayer player) { - int l = par1World.getBlockId(par2, par3, par4); - BonemealEvent event = new BonemealEvent(player, par1World, l, par2, par3, par4); - if (MinecraftForge.EVENT_BUS.post(event)) { - return false; - } - if (event.getResult() == Result.ALLOW) { - itemStack.damageItem(1, player); - return true; - } - if (l == Block.sapling.blockID) { - if (!par1World.isRemote) { - if (par1World.rand.nextFloat() < 0.45D) { - ((BlockSapling) Block.sapling).markOrGrowMarked(par1World, par2, par3, par4, par1World.rand); - } - itemStack.damageItem(1, player); - } - return true; - } else if (l == Block.cobblestone.blockID) { - if (!par1World.isRemote) { - par1World.setBlock(par2, par3, par4, Block.cobblestoneMossy.blockID); - } - itemStack.damageItem(1, player); - } else if (l == Block.deadBush.blockID) { - if (!par1World.isRemote) { - par1World.setBlock(par2, par3, par4, 0); - par1World.spawnEntityInWorld(new EntityItem(par1World, par2, par3, par4, new ItemStack(Block.sapling, 1))); - } - itemStack.damageItem(1, player); - } else if (l != Block.mushroomBrown.blockID && l != Block.mushroomRed.blockID) { - if (l != Block.melonStem.blockID && l != Block.pumpkinStem.blockID) { - if (l > 0 && Block.blocksList[l] instanceof BlockCrops) { - if (par1World.getBlockMetadata(par2, par3, par4) == 7) { - return false; - } else { - if (!par1World.isRemote) { - ((BlockCrops) Block.blocksList[l]).fertilize(par1World, par2, par3, par4); - itemStack.damageItem(1, player); - } - return true; - } - } else { - int i1; - int j1; - int k1; - if (l == Block.cocoaPlant.blockID) { - i1 = par1World.getBlockMetadata(par2, par3, par4); - j1 = BlockDirectional.getDirection(i1); - k1 = BlockCocoa.func_72219_c(i1); - if (k1 >= 2) { - return false; - } else { - if (!par1World.isRemote) { - ++k1; - par1World.setBlockMetadataWithNotify(par2, par3, par4, k1 << 2 | j1, 2); - itemStack.damageItem(1, player); - } - return true; - } - } else if (l != Block.grass.blockID) { - return false; - } else { - if (!par1World.isRemote) { - itemStack.damageItem(1, player); - label102: for (i1 = 0; i1 < 128; ++i1) { - j1 = par2; - k1 = par3 + 1; - int l1 = par4; - for (int i2 = 0; i2 < i1 / 16; ++i2) { - j1 += itemRand.nextInt(3) - 1; - k1 += (itemRand.nextInt(3) - 1) * itemRand.nextInt(3) / 2; - l1 += itemRand.nextInt(3) - 1; - if (par1World.getBlockId(j1, k1 - 1, l1) != Block.grass.blockID || par1World.isBlockNormalCube(j1, k1, l1)) { - continue label102; - } - } - if (par1World.getBlockId(j1, k1, l1) == 0) { - if (itemRand.nextInt(10) != 0) { - if (Block.tallGrass.canBlockStay(par1World, j1, k1, l1)) { - par1World.setBlock(j1, k1, l1, Block.tallGrass.blockID, 1, 3); - } - } else { - ForgeHooks.plantGrass(par1World, j1, k1, l1); - } - } - } - } - return true; - } - } - } else if (par1World.getBlockMetadata(par2, par3, par4) == 7) { - return false; - } else { - if (!par1World.isRemote) { - ((BlockStem) Block.blocksList[l]).fertilizeStem(par1World, par2, par3, par4); - itemStack.damageItem(1, player); - } - return true; - } - } else { - if (!par1World.isRemote) { - if (par1World.rand.nextFloat() < 0.4D) { - ((BlockMushroom) Block.blocksList[l]).fertilizeMushroom(par1World, par2, par3, par4, par1World.rand); - } - itemStack.damageItem(1, player); - } - return true; - } - return true; + return ItemDye.applyBonemeal(itemStack, par1World, par2, par3, par4, player); } } diff --git a/common/MysticWorld/Items/ItemOrbEnergy.java b/common/MysticWorld/Items/ItemOrbEnergy.java index 1a9bae3..81ef707 100644 --- a/common/MysticWorld/Items/ItemOrbEnergy.java +++ b/common/MysticWorld/Items/ItemOrbEnergy.java @@ -2,16 +2,18 @@ package mysticworld.items; import mysticworld.MysticWorld; import mysticworld.blocks.BlockHandler; +import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; public class ItemOrbEnergy extends ItemOrb { - public ItemOrbEnergy(int id) { - super(id); + public ItemOrbEnergy() { + super(); } @Override @@ -37,10 +39,10 @@ public class ItemOrbEnergy extends ItemOrb { if (!entityPlayer.canPlayerEdit(par4, par5, par6, par7, itemStack)) { return false; } else { - int i1 = world.getBlockId(par4, par5, par6); - if (i1 == 0) { + Block i1 = world.getBlock(par4, par5, par6); + if (i1 == Blocks.air) { world.playSoundEffect(par4 + 0.5D, par5 + 0.5D, par6 + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - world.setBlock(par4, par5, par6, BlockHandler.lightCube.blockID); + world.setBlock(par4, par5, par6, BlockHandler.lightCube); } itemStack.damageItem(1, entityPlayer); return true; diff --git a/common/MysticWorld/Items/ItemOrbFire.java b/common/MysticWorld/Items/ItemOrbFire.java index ea63028..8b1d909 100644 --- a/common/MysticWorld/Items/ItemOrbFire.java +++ b/common/MysticWorld/Items/ItemOrbFire.java @@ -5,6 +5,7 @@ import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; @@ -12,8 +13,8 @@ import net.minecraft.util.DamageSource; import net.minecraft.world.World; public class ItemOrbFire extends ItemOrb { - public ItemOrbFire(int id) { - super(id); + public ItemOrbFire() { + super(); } @Override @@ -49,7 +50,7 @@ public class ItemOrbFire extends ItemOrb { } else { if (par3World.isAirBlock(par4, par5, par6)) { par3World.playSoundEffect(par4 + 0.5D, par5 + 0.5D, par6 + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - par3World.setBlock(par4, par5, par6, Block.fire.blockID); + par3World.setBlock(par4, par5, par6, Blocks.fire); } par1ItemStack.damageItem(1, par2EntityPlayer); return true; diff --git a/common/MysticWorld/Items/ItemOrbWater.java b/common/MysticWorld/Items/ItemOrbWater.java index dad06f5..cb18d8f 100644 --- a/common/MysticWorld/Items/ItemOrbWater.java +++ b/common/MysticWorld/Items/ItemOrbWater.java @@ -5,14 +5,14 @@ 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.init.Blocks; import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumMovingObjectType; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; public class ItemOrbWater extends ItemOrb { - public ItemOrbWater(int id) { - super(id); + public ItemOrbWater() { + super(); } @Override @@ -21,7 +21,7 @@ public class ItemOrbWater extends ItemOrb { if (movingobjectposition == null) { return itemStack; } else { - if (movingobjectposition.typeOfHit == EnumMovingObjectType.TILE) { + if (movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) { int i = movingobjectposition.blockX; int j = movingobjectposition.blockY; int k = movingobjectposition.blockZ; @@ -31,7 +31,7 @@ public class ItemOrbWater extends ItemOrb { if (!entityPlayer.canPlayerEdit(i, j, k, movingobjectposition.sideHit, itemStack)) { return itemStack; } - if (world.getBlockMaterial(i, j, k) == Material.water && world.getBlockMetadata(i, j, k) == 0) { + if (world.getBlock(i, j, k).getMaterial() == Material.water && world.getBlockMetadata(i, j, k) == 0) { world.playSoundEffect(i + 0.5D, j + 0.5D, k + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); world.setBlockToAir(i, j, k); itemStack.damageItem(1, entityPlayer); @@ -58,10 +58,10 @@ public class ItemOrbWater extends ItemOrb { if (!entityPlayer.canPlayerEdit(i, j, k, movingobjectposition.sideHit, itemStack)) { return itemStack; } else { - int i1 = world.getBlockId(i, j, k); - if (i1 == 0) { + Block i1 = world.getBlock(i, j, k); + if (i1 == Blocks.air) { world.playSoundEffect(i + 0.5D, j + 0.5D, k + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - world.setBlock(i, j, k, Block.waterMoving.blockID); + world.setBlock(i, j, k, Blocks.flowing_water); itemStack.damageItem(1, entityPlayer); } return itemStack; diff --git a/common/MysticWorld/Items/ItemStaff.java b/common/MysticWorld/Items/ItemStaff.java index 692cffb..588e6f8 100644 --- a/common/MysticWorld/Items/ItemStaff.java +++ b/common/MysticWorld/Items/ItemStaff.java @@ -3,7 +3,7 @@ package mysticworld.items; import java.util.Random; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -11,8 +11,8 @@ import cpw.mods.fml.relauncher.SideOnly; public class ItemStaff extends Item { Random rand = new Random(); - public ItemStaff(int id) { - super(id); + public ItemStaff() { + super(); this.setMaxStackSize(1); this.setMaxDamage(200); this.setCreativeTab(MysticWorld.MysticWorldTab); @@ -26,6 +26,6 @@ public class ItemStaff extends Item { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister par1IconRegister) { + public void registerIcons(IIconRegister par1IconRegister) { } } diff --git a/common/MysticWorld/Items/ItemStaffAir.java b/common/MysticWorld/Items/ItemStaffAir.java index 85b3da2..e8376fa 100644 --- a/common/MysticWorld/Items/ItemStaffAir.java +++ b/common/MysticWorld/Items/ItemStaffAir.java @@ -11,8 +11,8 @@ import net.minecraft.world.World; import org.lwjgl.input.Mouse; public class ItemStaffAir extends ItemStaff { - public ItemStaffAir(int id) { - super(id); + public ItemStaffAir() { + super(); } @Override @@ -33,13 +33,13 @@ public class ItemStaffAir extends ItemStaff { ItemStack currentItem = player.inventory.getCurrentItem(); itemStack.stackTagCompound.setInteger("maxChargeTime", 3 * 20); if (currentItem != null) { - if (currentItem.itemID == itemStack.itemID) { + if (currentItem.getItem() == itemStack.getItem()) { player.fallDistance = 0.0F; chargeEffect(itemStack, world, player); if (!Mouse.isButtonDown(1)) { if (itemStack.stackTagCompound.getInteger("chargeTime") > 0) { if (!world.isRemote) { - world.playAuxSFXAtEntity((EntityPlayer) null, 1009, (int) player.posX, (int) player.posY, (int) player.posZ, 0); + world.playAuxSFXAtEntity(null, 1009, (int) player.posX, (int) player.posY, (int) player.posZ, 0); world.spawnEntityInWorld(new EntityChargeAir(world, player, 1.0f + ((itemStack.stackTagCompound.getInteger("chargeTime")) * (5.0f * (1 / (float) itemStack.stackTagCompound .getInteger("maxChargeTime")))), (itemStack.stackTagCompound.getInteger("chargeTime")) * (2.5D * (1.0D / itemStack.stackTagCompound.getInteger("maxChargeTime"))))); itemStack.damageItem(1, player); diff --git a/common/MysticWorld/Items/ItemStaffEarth.java b/common/MysticWorld/Items/ItemStaffEarth.java index 4798e1e..729a810 100644 --- a/common/MysticWorld/Items/ItemStaffEarth.java +++ b/common/MysticWorld/Items/ItemStaffEarth.java @@ -2,40 +2,26 @@ package mysticworld.items; import mysticworld.MysticWorld; import mysticworld.entity.EntityChargeEarth; -import net.minecraft.block.Block; -import net.minecraft.block.BlockCocoa; -import net.minecraft.block.BlockCrops; -import net.minecraft.block.BlockDirectional; -import net.minecraft.block.BlockMushroom; -import net.minecraft.block.BlockSapling; -import net.minecraft.block.BlockStem; import net.minecraft.entity.Entity; -import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemDye; import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumMovingObjectType; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; -import net.minecraftforge.common.ForgeHooks; -import net.minecraftforge.common.MinecraftForge; -import net.minecraftforge.event.Event.Result; -import net.minecraftforge.event.entity.player.BonemealEvent; - -import org.lwjgl.input.Keyboard; public class ItemStaffEarth extends ItemStaff { - public ItemStaffEarth(int id) { - super(id); + public ItemStaffEarth() { + super(); } @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer) { - if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { + if (entityPlayer.isSneaking()) { MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(world, entityPlayer, true); if (movingobjectposition == null) { return itemStack; } else { - if (movingobjectposition.typeOfHit == EnumMovingObjectType.TILE) { + if (movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) { int i = movingobjectposition.blockX; int j = movingobjectposition.blockY; int k = movingobjectposition.blockZ; @@ -55,7 +41,7 @@ public class ItemStaffEarth extends ItemStaff { } } } else { - world.playAuxSFXAtEntity((EntityPlayer) null, 1009, (int) entityPlayer.posX, (int) entityPlayer.posY, (int) entityPlayer.posZ, 0); + world.playAuxSFXAtEntity(null, 1009, (int) entityPlayer.posX, (int) entityPlayer.posY, (int) entityPlayer.posZ, 0); if (!world.isRemote) { world.spawnEntityInWorld(new EntityChargeEarth(world, entityPlayer)); itemStack.damageItem(1, entityPlayer); @@ -74,113 +60,6 @@ public class ItemStaffEarth extends ItemStaff { } public static boolean applyBonemeal(ItemStack itemStack, World par1World, int par2, int par3, int par4, EntityPlayer player) { - int l = par1World.getBlockId(par2, par3, par4); - BonemealEvent event = new BonemealEvent(player, par1World, l, par2, par3, par4); - if (MinecraftForge.EVENT_BUS.post(event)) { - return false; - } - if (event.getResult() == Result.ALLOW) { - itemStack.damageItem(1, player); - return true; - } - if (l == Block.sapling.blockID) { - if (!par1World.isRemote) { - if (par1World.rand.nextFloat() < 0.45D) { - ((BlockSapling) Block.sapling).markOrGrowMarked(par1World, par2, par3, par4, par1World.rand); - } - itemStack.damageItem(1, player); - } - return true; - } else if (l == Block.cobblestone.blockID) { - if (!par1World.isRemote) { - par1World.setBlock(par2, par3, par4, Block.cobblestoneMossy.blockID); - } - itemStack.damageItem(1, player); - } else if (l == Block.deadBush.blockID) { - if (!par1World.isRemote) { - par1World.setBlock(par2, par3, par4, 0); - par1World.spawnEntityInWorld(new EntityItem(par1World, par2, par3, par4, new ItemStack(Block.sapling, 1))); - } - itemStack.damageItem(1, player); - } else if (l != Block.mushroomBrown.blockID && l != Block.mushroomRed.blockID) { - if (l != Block.melonStem.blockID && l != Block.pumpkinStem.blockID) { - if (l > 0 && Block.blocksList[l] instanceof BlockCrops) { - if (par1World.getBlockMetadata(par2, par3, par4) == 7) { - return false; - } else { - if (!par1World.isRemote) { - ((BlockCrops) Block.blocksList[l]).fertilize(par1World, par2, par3, par4); - itemStack.damageItem(1, player); - } - return true; - } - } else { - int i1; - int j1; - int k1; - if (l == Block.cocoaPlant.blockID) { - i1 = par1World.getBlockMetadata(par2, par3, par4); - j1 = BlockDirectional.getDirection(i1); - k1 = BlockCocoa.func_72219_c(i1); - if (k1 >= 2) { - return false; - } else { - if (!par1World.isRemote) { - ++k1; - par1World.setBlockMetadataWithNotify(par2, par3, par4, k1 << 2 | j1, 2); - itemStack.damageItem(1, player); - } - return true; - } - } else if (l != Block.grass.blockID) { - return false; - } else { - if (!par1World.isRemote) { - itemStack.damageItem(1, player); - label102: for (i1 = 0; i1 < 128; ++i1) { - j1 = par2; - k1 = par3 + 1; - int l1 = par4; - for (int i2 = 0; i2 < i1 / 16; ++i2) { - j1 += itemRand.nextInt(3) - 1; - k1 += (itemRand.nextInt(3) - 1) * itemRand.nextInt(3) / 2; - l1 += itemRand.nextInt(3) - 1; - if (par1World.getBlockId(j1, k1 - 1, l1) != Block.grass.blockID || par1World.isBlockNormalCube(j1, k1, l1)) { - continue label102; - } - } - if (par1World.getBlockId(j1, k1, l1) == 0) { - if (itemRand.nextInt(10) != 0) { - if (Block.tallGrass.canBlockStay(par1World, j1, k1, l1)) { - par1World.setBlock(j1, k1, l1, Block.tallGrass.blockID, 1, 3); - } - } else { - ForgeHooks.plantGrass(par1World, j1, k1, l1); - } - } - } - } - return true; - } - } - } else if (par1World.getBlockMetadata(par2, par3, par4) == 7) { - return false; - } else { - if (!par1World.isRemote) { - ((BlockStem) Block.blocksList[l]).fertilizeStem(par1World, par2, par3, par4); - itemStack.damageItem(1, player); - } - return true; - } - } else { - if (!par1World.isRemote) { - if (par1World.rand.nextFloat() < 0.4D) { - ((BlockMushroom) Block.blocksList[l]).fertilizeMushroom(par1World, par2, par3, par4, par1World.rand); - } - itemStack.damageItem(1, player); - } - return true; - } - return true; + return ItemDye.applyBonemeal(itemStack, par1World, par2, par3, par4, player); } } diff --git a/common/MysticWorld/Items/ItemStaffEnegy.java b/common/MysticWorld/Items/ItemStaffEnegy.java index 54f3edc..706be06 100644 --- a/common/MysticWorld/Items/ItemStaffEnegy.java +++ b/common/MysticWorld/Items/ItemStaffEnegy.java @@ -8,25 +8,22 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; -import net.minecraft.util.EnumMovingObjectType; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; -import org.lwjgl.input.Keyboard; - public class ItemStaffEnegy extends ItemStaff { - public ItemStaffEnegy(int id) { - super(id); + public ItemStaffEnegy() { + super(); } @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer) { - if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { + if (entityPlayer.isSneaking()) { MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(world, entityPlayer, true); if (movingobjectposition == null) { return itemStack; } else { - if (movingobjectposition.typeOfHit == EnumMovingObjectType.TILE) { + if (movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) { int i = movingobjectposition.blockX; int j = movingobjectposition.blockY; int k = movingobjectposition.blockZ; @@ -59,7 +56,7 @@ public class ItemStaffEnegy extends ItemStaff { } else { if (world.isAirBlock(i, j, k)) { world.playSoundEffect(i + 0.5D, j + 0.5D, k + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - world.setBlock(i, j, k, BlockHandler.lightCube.blockID); + world.setBlock(i, j, k, BlockHandler.lightCube); } itemStack.damageItem(1, entityPlayer); return itemStack; @@ -68,7 +65,7 @@ public class ItemStaffEnegy extends ItemStaff { } } } else { - world.playAuxSFXAtEntity((EntityPlayer) null, 1009, (int) entityPlayer.posX, (int) entityPlayer.posY, (int) entityPlayer.posZ, 0); + world.playAuxSFXAtEntity(null, 1009, (int) entityPlayer.posX, (int) entityPlayer.posY, (int) entityPlayer.posZ, 0); if (!world.isRemote) { world.spawnEntityInWorld(new EntityChargeEnergy(world, entityPlayer)); itemStack.damageItem(1, entityPlayer); diff --git a/common/MysticWorld/Items/ItemStaffFire.java b/common/MysticWorld/Items/ItemStaffFire.java index fa6b100..4c89a2b 100644 --- a/common/MysticWorld/Items/ItemStaffFire.java +++ b/common/MysticWorld/Items/ItemStaffFire.java @@ -6,25 +6,23 @@ import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.util.DamageSource; -import net.minecraft.util.EnumMovingObjectType; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; -import org.lwjgl.input.Keyboard; - public class ItemStaffFire extends ItemStaff { - public ItemStaffFire(int id) { - super(id); + public ItemStaffFire() { + super(); } @Override public boolean itemInteractionForEntity(ItemStack itemStack, EntityPlayer entityPlayer, EntityLivingBase entityLiving) { - if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { + if (entityPlayer.isSneaking()) { entityLiving.setFire(5); entityLiving.attackEntityFrom(DamageSource.magic, 7); itemStack.damageItem(1, entityLiving); @@ -35,12 +33,12 @@ public class ItemStaffFire extends ItemStaff { @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer) { - if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { + if (entityPlayer.isSneaking()) { MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(world, entityPlayer, true); if (movingobjectposition == null) { return itemStack; } else { - if (movingobjectposition.typeOfHit == EnumMovingObjectType.TILE) { + if (movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) { int i = movingobjectposition.blockX; int j = movingobjectposition.blockY; int k = movingobjectposition.blockZ; @@ -50,12 +48,12 @@ public class ItemStaffFire extends ItemStaff { if (!entityPlayer.canPlayerEdit(i, j, k, movingobjectposition.sideHit, itemStack)) { return itemStack; } else { - ItemStack result = FurnaceRecipes.smelting().getSmeltingResult(new ItemStack(world.getBlockId(i, j, k), 1, world.getBlockMetadata(i, j, k))); - if (!world.isRemote && !(result == null)) { - int id = result.itemID; + ItemStack result = FurnaceRecipes.smelting().getSmeltingResult(new ItemStack(world.getBlock(i, j, k), 1, world.getBlockMetadata(i, j, k))); + if (!world.isRemote && result != null) { + Item id = result.getItem(); int meta = result.getItemDamage(); world.playSoundEffect(i + 0.5D, j + 0.5D, k + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - world.setBlock(i, j, k, 0); + world.setBlockToAir(i, j, k); world.spawnEntityInWorld(new EntityItem(world, i, j, k, new ItemStack(id, 1, meta))); itemStack.damageItem(1, entityPlayer); } @@ -63,7 +61,7 @@ public class ItemStaffFire extends ItemStaff { } } } else { - world.playAuxSFXAtEntity((EntityPlayer) null, 1009, (int) entityPlayer.posX, (int) entityPlayer.posY, (int) entityPlayer.posZ, 0); + world.playAuxSFXAtEntity(null, 1009, (int) entityPlayer.posX, (int) entityPlayer.posY, (int) entityPlayer.posZ, 0); if (!world.isRemote) { world.spawnEntityInWorld(new EntityChargeFire(world, entityPlayer)); itemStack.damageItem(1, entityPlayer); diff --git a/common/MysticWorld/Items/ItemStaffParts.java b/common/MysticWorld/Items/ItemStaffParts.java index b1206ec..9ebe03c 100644 --- a/common/MysticWorld/Items/ItemStaffParts.java +++ b/common/MysticWorld/Items/ItemStaffParts.java @@ -3,35 +3,35 @@ package mysticworld.items; import java.util.List; import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemStaffParts extends Item { - private Icon[] icons; + private IIcon[] icons; private static final String[] STAFF_PARTS = new String[] { "Staff", "Hilt", "Handle", "Head" }; - public ItemStaffParts(int id) { - super(id); + public ItemStaffParts() { + super(); this.setHasSubtypes(true); this.setCreativeTab(MysticWorld.MysticWorldTab); } @Override @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int meta) { + public IIcon getIconFromDamage(int meta) { int j = MathHelper.clamp_int(meta, 0, STAFF_PARTS.length); return icons[j]; } @Override @SideOnly(Side.CLIENT) - public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) { + public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List) { for (int var4 = 0; var4 < STAFF_PARTS.length; var4++) { par3List.add(new ItemStack(par1, 1, var4)); } @@ -51,8 +51,8 @@ public class ItemStaffParts extends Item { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - icons = new Icon[STAFF_PARTS.length]; + public void registerIcons(IIconRegister iconRegister) { + icons = new IIcon[STAFF_PARTS.length]; for (int i = 0; i < STAFF_PARTS.length; ++i) { icons[i] = iconRegister.registerIcon("mysticworld:StaffPart_" + STAFF_PARTS[i]); } diff --git a/common/MysticWorld/Items/ItemStaffPower.java b/common/MysticWorld/Items/ItemStaffPower.java index a9ad7e9..025e775 100644 --- a/common/MysticWorld/Items/ItemStaffPower.java +++ b/common/MysticWorld/Items/ItemStaffPower.java @@ -1,19 +1,19 @@ package mysticworld.items; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemStaffPower extends Item { - private Icon[] icons; + private IIcon[] icons; private static final String[] CHARGE_NAMES = new String[] { "Fire", "Water", "Earth", "Air", "Energy" }; - public ItemStaffPower(int id) { - super(id); + public ItemStaffPower() { + super(); this.setHasSubtypes(true); this.setCreativeTab(null); maxStackSize = 64; @@ -21,7 +21,7 @@ public class ItemStaffPower extends Item { @Override @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int meta) { + public IIcon getIconFromDamage(int meta) { int j = MathHelper.clamp_int(meta, 0, 5); return icons[j]; } @@ -34,8 +34,8 @@ public class ItemStaffPower extends Item { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - icons = new Icon[CHARGE_NAMES.length]; + public void registerIcons(IIconRegister iconRegister) { + icons = new IIcon[CHARGE_NAMES.length]; for (int i = 0; i < CHARGE_NAMES.length; ++i) { icons[i] = iconRegister.registerIcon("mysticworld:Charge" + CHARGE_NAMES[i]); } diff --git a/common/MysticWorld/Items/ItemStaffWater.java b/common/MysticWorld/Items/ItemStaffWater.java index 84b3b21..2c68cd5 100644 --- a/common/MysticWorld/Items/ItemStaffWater.java +++ b/common/MysticWorld/Items/ItemStaffWater.java @@ -6,16 +6,14 @@ 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.init.Blocks; import net.minecraft.item.ItemStack; -import net.minecraft.util.EnumMovingObjectType; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; -import org.lwjgl.input.Keyboard; - public class ItemStaffWater extends ItemStaff { - public ItemStaffWater(int id) { - super(id); + public ItemStaffWater() { + super(); this.setMaxStackSize(1); this.setMaxDamage(200); this.setCreativeTab(MysticWorld.MysticWorldTab); @@ -23,12 +21,12 @@ public class ItemStaffWater extends ItemStaff { @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer entityPlayer) { - if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { + if (entityPlayer.isSneaking()) { MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(world, entityPlayer, true); if (movingobjectposition == null) { return itemStack; } else { - if (movingobjectposition.typeOfHit == EnumMovingObjectType.TILE) { + if (movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) { int i = movingobjectposition.blockX; int j = movingobjectposition.blockY; int k = movingobjectposition.blockZ; @@ -38,7 +36,7 @@ public class ItemStaffWater extends ItemStaff { if (!entityPlayer.canPlayerEdit(i, j, k, movingobjectposition.sideHit, itemStack)) { return itemStack; } - if (world.getBlockMaterial(i, j, k) == Material.water && world.getBlockMetadata(i, j, k) == 0) { + if (world.getBlock(i, j, k).getMaterial() == Material.water && world.getBlockMetadata(i, j, k) == 0) { world.playSoundEffect(i + 0.5D, j + 0.5D, k + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); world.setBlockToAir(i, j, k); itemStack.damageItem(1, entityPlayer); @@ -65,10 +63,10 @@ public class ItemStaffWater extends ItemStaff { if (!entityPlayer.canPlayerEdit(i, j, k, movingobjectposition.sideHit, itemStack)) { return itemStack; } else { - int i1 = world.getBlockId(i, j, k); - if (i1 == 0) { + Block i1 = world.getBlock(i, j, k); + if (i1 == Blocks.air) { world.playSoundEffect(i + 0.5D, j + 0.5D, k + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - world.setBlock(i, j, k, Block.waterMoving.blockID); + world.setBlock(i, j, k, Blocks.flowing_water); itemStack.damageItem(1, entityPlayer); } return itemStack; @@ -78,7 +76,7 @@ public class ItemStaffWater extends ItemStaff { return itemStack; } } else { - world.playAuxSFXAtEntity((EntityPlayer) null, 1009, (int) entityPlayer.posX, (int) entityPlayer.posY, (int) entityPlayer.posZ, 0); + world.playAuxSFXAtEntity(null, 1009, (int) entityPlayer.posX, (int) entityPlayer.posY, (int) entityPlayer.posZ, 0); if (!world.isRemote) { world.spawnEntityInWorld(new EntityChargeWater(world, entityPlayer)); itemStack.damageItem(1, entityPlayer); diff --git a/common/MysticWorld/Items/ItemVoidShard.java b/common/MysticWorld/Items/ItemVoidShard.java index 9e9f250..51b0ac5 100644 --- a/common/MysticWorld/Items/ItemVoidShard.java +++ b/common/MysticWorld/Items/ItemVoidShard.java @@ -12,8 +12,8 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemVoidShard extends Item { - public ItemVoidShard(int id) { - super(id); + public ItemVoidShard() { + super(); this.setMaxStackSize(1); this.setCreativeTab(MysticWorld.MysticWorldTab); this.setMaxDamage(1); @@ -28,7 +28,7 @@ public class ItemVoidShard extends Item { } @Override - public boolean hasEffect(ItemStack itemStack) { + public boolean hasEffect(ItemStack itemStack, int i) { if (itemStack.stackTagCompound == null) itemStack.setTagCompound(new NBTTagCompound()); if (itemStack.stackTagCompound.hasKey("filled")) { @@ -44,7 +44,7 @@ public class ItemVoidShard extends Item { itemStack.setTagCompound(new NBTTagCompound()); int experience = entityPlayer.experienceLevel; int experienceSubtract = entityPlayer.experienceLevel - 30; - if (itemStack.stackTagCompound.getBoolean("filled") == false) { + if (!itemStack.stackTagCompound.getBoolean("filled")) { if (experience > 0 && experience <= 30) { entityPlayer.experienceLevel = 0; itemStack.stackTagCompound.setInteger("xpStored", experience); diff --git a/common/MysticWorld/Lib/BlockIds.java b/common/MysticWorld/Lib/BlockIds.java deleted file mode 100644 index 76b3432..0000000 --- a/common/MysticWorld/Lib/BlockIds.java +++ /dev/null @@ -1,21 +0,0 @@ -package mysticworld.lib; - -public class BlockIds { - public static int ORE_STONE_1 = 600; - public static int BUSH = 601; - public static int POISON_BUSH = 602; - public static int WEAKNESS_BUSH = 603; - public static int SLOWNESS_BUSH = 604; - public static int HARMING_BUSH = 605; - public static int WITHER_BUSH = 606; - public static int HEALTH_BUSH = 607; - public static int SPEED_BUSH = 608; - public static int FIRE_RESISTANCE_BUSH = 609; - public static int REGEN_BUSH = 610; - public static int NIGHT_VISION_BUSH = 611; - public static int INVISIBILITY_BUSH = 612; - public static int LIGHT_CUBE = 613; - public static int PLATFORM = 614; - public static int PILLAR = 615; - public static int PILLAR_INSERT = 616; -} diff --git a/common/MysticWorld/Lib/EntityIds.java b/common/MysticWorld/Lib/EntityIds.java deleted file mode 100644 index dac5313..0000000 --- a/common/MysticWorld/Lib/EntityIds.java +++ /dev/null @@ -1,14 +0,0 @@ -package mysticworld.lib; - -public class EntityIds { - - //Entity IDs - public static int ENTITY_AIR_CHARGE = 1; - public static int ENTITY_FIREBALL = 2; - public static int ENTITY_EARTH_CHARGE = 3; - public static int ENTITY_ENERGY_CHARGE = 4; - public static int ENTITY_WATER_CHARGE = 5; - - public static int ENTITY_PIGMAN = 6; - -} diff --git a/common/MysticWorld/Lib/ItemIds.java b/common/MysticWorld/Lib/ItemIds.java deleted file mode 100644 index 1a99d9b..0000000 --- a/common/MysticWorld/Lib/ItemIds.java +++ /dev/null @@ -1,35 +0,0 @@ -package mysticworld.lib; - -public class ItemIds { - public static int STAFF_PARTS = 5503; - public static int IMBUED_SHARD = 5504; - public static int FIRE_STAFF = 5505; - public static int WATER_STAFF = 5506; - public static int EARTH_STAFF = 5507; - public static int AIR_STAFF = 5508; - public static int ENERGY_STAFF = 5509; - public static int STAFF_POWER = 5510; - public static int BUSH_FRUIT = 5511; - public static int VERDITE_HELMET = 5512; - public static int VERDITE_CHESTPLATE = 5513; - public static int VERDITE_LEGGINGS = 5514; - public static int VERDITE_BOOTS = 5515; - public static int MITHRIL_HELMET = 5516; - public static int MITHRIL_CHESTPLATE = 5517; - public static int MITHRIL_LEGGINGS = 5518; - public static int MITHRIL_BOOTS = 5519; - public static int ADAMANTINE_HELMET = 5520; - public static int ADAMANTINE_CHESTPLATE = 5521; - public static int ADAMANTINE_LEGGINGS = 5522; - public static int ADAMANTINE_BOOTS = 5523; - public static int IRIDIUM_HELMET = 5524; - public static int IRIDIUM_CHESTPLATE = 5525; - public static int IRIDIUM_LEGGINGS = 5526; - public static int IRIDIUM_BOOTS = 5527; - public static int FIRE_ORB = 5528; - public static int WATER_ORB = 5529; - public static int EARTH_ORB = 5530; - public static int AIR_ORB = 5531; - public static int ENERGY_ORB = 5532; - public static int VOID_SHARD = 5533; -} diff --git a/common/MysticWorld/Lib/Strings.java b/common/MysticWorld/Lib/Strings.java index e5b811a..efa79f0 100644 --- a/common/MysticWorld/Lib/Strings.java +++ b/common/MysticWorld/Lib/Strings.java @@ -80,7 +80,4 @@ public class Strings { //Tile Entity Names public static final String PILLAR_INSERT_TE_NAME = "pillarInsert"; - //Config Category Names - public static final String ENTITY_CATEGORY = "entity"; - } diff --git a/common/MysticWorld/Model/ModelOrb.java b/common/MysticWorld/Model/ModelOrb.java index 6a985ec..cc4b2aa 100644 --- a/common/MysticWorld/Model/ModelOrb.java +++ b/common/MysticWorld/Model/ModelOrb.java @@ -1,14 +1,16 @@ package mysticworld.model; import net.minecraft.client.model.ModelBase; +import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.AdvancedModelLoader; import net.minecraftforge.client.model.IModelCustom; public class ModelOrb extends ModelBase { + private static final ResourceLocation orb = new ResourceLocation("mysticworld", "models/orb.obj"); private IModelCustom modelOrb; public ModelOrb() { - modelOrb = AdvancedModelLoader.loadModel("/assets/mysticworld/models/orb.obj"); + modelOrb = AdvancedModelLoader.loadModel(orb); } public void render() { diff --git a/common/MysticWorld/Model/ModelPillarInsert.java b/common/MysticWorld/Model/ModelPillarInsert.java index 7a785d0..83d8634 100644 --- a/common/MysticWorld/Model/ModelPillarInsert.java +++ b/common/MysticWorld/Model/ModelPillarInsert.java @@ -70,10 +70,5 @@ public class ModelPillarInsert extends ModelBase model.rotateAngleY = y; model.rotateAngleZ = z; } - - public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) - { - super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); - } } diff --git a/common/MysticWorld/Model/ModelStaff.java b/common/MysticWorld/Model/ModelStaff.java index 15bcb18..40d253a 100644 --- a/common/MysticWorld/Model/ModelStaff.java +++ b/common/MysticWorld/Model/ModelStaff.java @@ -142,9 +142,4 @@ public class ModelStaff extends ModelBase model.rotateAngleY = y; model.rotateAngleZ = z; } - - public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) - { - super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); - } } diff --git a/common/MysticWorld/MysticWorld.java b/common/MysticWorld/MysticWorld.java index 9b68fb0..0628152 100644 --- a/common/MysticWorld/MysticWorld.java +++ b/common/MysticWorld/MysticWorld.java @@ -1,61 +1,60 @@ package mysticworld; +import cpw.mods.fml.common.FMLCommonHandler; import mysticworld.biome.BiomeHandler; import mysticworld.blocks.BlockHandler; import mysticworld.entity.EntityHandler; import mysticworld.items.ItemHandler; -import mysticworld.lib.Booleans; import mysticworld.tiles.TileEntityHandler; import mysticworld.util.Config; import mysticworld.util.RecipeHandler; import mysticworld.util.Reference; import mysticworld.util.TickHandler; -import mysticworld.worldgen.WorldGenBushes; -import mysticworld.worldgen.WorldGenStones; +import mysticworld.worldgen.WorldGenerators; import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.item.ItemStack; +import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; -import cpw.mods.fml.common.registry.TickRegistry; -import cpw.mods.fml.relauncher.Side; @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION_NUMBER) -@NetworkMod(clientSideRequired = true, serverSideRequired = false) public class MysticWorld { @Instance(Reference.MOD_ID) public static MysticWorld instance; @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; public static final CreativeTabs MysticWorldTab = new CreativeTabs("MysticWorldTab") { - @Override - public ItemStack getIconItemStack() { - return new ItemStack(ItemHandler.earthStaff, 1); - } - }; + + @Override + public Item getTabIconItem() { + return ItemHandler.earthStaff; + } + }; + public boolean ENABLE = true; @EventHandler public void load(FMLInitializationEvent event) { - TickRegistry.registerTickHandler(new TickHandler(), Side.SERVER); - BlockHandler.init(); - ItemHandler.init(); - TileEntityHandler.init(); - if (Booleans.ENABLE_BUSH_GEN) - GameRegistry.registerWorldGenerator(new WorldGenBushes()); - GameRegistry.registerWorldGenerator(new WorldGenStones()); - EntityHandler.init(); - RecipeHandler.init(); - proxy.registerRenders(); + if(ENABLE){ + FMLCommonHandler.instance().bus().register(new TickHandler()); + GameRegistry.registerWorldGenerator(new WorldGenerators(), 100); + EntityHandler.init(); + proxy.registerRenders(); + } } @EventHandler public void preInit(FMLPreInitializationEvent event) { Config.initialize(event.getSuggestedConfigurationFile()); - BiomeHandler.init(); + if(ENABLE){ + BiomeHandler.init(); + BlockHandler.init(); + ItemHandler.init(); + TileEntityHandler.init(); + RecipeHandler.init(); + } } } diff --git a/common/MysticWorld/Renderer/RenderStaffPower.java b/common/MysticWorld/Renderer/RenderStaffPower.java index 4e7c33b..7f9380f 100644 --- a/common/MysticWorld/Renderer/RenderStaffPower.java +++ b/common/MysticWorld/Renderer/RenderStaffPower.java @@ -5,7 +5,7 @@ import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.entity.Entity; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; @@ -28,7 +28,7 @@ public class RenderStaffPower extends Render { this.bindEntityTexture(entity); GL11.glTranslatef((float) par2, (float) par4, (float) par6); GL11.glEnable(GL12.GL_RESCALE_NORMAL); - Icon icon = ItemHandler.staffPower.getIconFromDamage(this.meta); + IIcon icon = ItemHandler.staffPower.getIconFromDamage(this.meta); Tessellator tessellator = Tessellator.instance; float f3 = icon.getMinU(); float f4 = icon.getMaxU(); diff --git a/common/MysticWorld/Util/Config.java b/common/MysticWorld/Util/Config.java index e3c782b..8756ab0 100644 --- a/common/MysticWorld/Util/Config.java +++ b/common/MysticWorld/Util/Config.java @@ -2,17 +2,16 @@ package mysticworld.util; import java.io.File; -import mysticworld.lib.BlockIds; +import mysticworld.MysticWorld; import mysticworld.lib.Booleans; -import mysticworld.lib.ItemIds; -import mysticworld.lib.Strings; -import net.minecraftforge.common.Configuration; +import net.minecraftforge.common.config.Configuration; public class Config { public static Configuration config; public static void initialize(File file) { config = new Configuration(file); + MysticWorld.instance.ENABLE = config.get("General", "Enable", true).getBoolean(true); //Boolean Configurations Booleans.ENABLE_BUSH_GEN = config.get("World Generation", "Enable Bush Generation", true).getBoolean(true); Booleans.ENABLE_GLACIER_GEN = config.get("World Generation", "Enable Glacier Biome", true).getBoolean(true); @@ -20,45 +19,6 @@ public class Config { Booleans.ENABLE_MOUNTAIN_GEN = config.get("World Generation", "Enable Mountain Biome", true).getBoolean(true); Booleans.ENABLE_STEPPE_GEN = config.get("World Generation", "Enable Steppe Biome", true).getBoolean(true); Booleans.ENABLE_TUNDRA_GEN = config.get("World Generation", "Enable Tundra Biome", true).getBoolean(true); - //Block Configuration - BlockIds.ORE_STONE_1 = config.getBlock(Strings.IMBUED_STONE_NAME, BlockIds.ORE_STONE_1).getInt(BlockIds.ORE_STONE_1); - BlockIds.BUSH = config.getBlock(Strings.BUSH_NAME, BlockIds.BUSH).getInt(BlockIds.BUSH); - BlockIds.LIGHT_CUBE = config.getBlock(Strings.LIGHT_CUBE_NAME, BlockIds.LIGHT_CUBE).getInt(BlockIds.LIGHT_CUBE); - BlockIds.PLATFORM = config.getBlock(Strings.PLATFORM_NAME, BlockIds.PLATFORM).getInt(BlockIds.PLATFORM); - BlockIds.PILLAR = config.getBlock(Strings.PILLAR_NAME, BlockIds.PILLAR).getInt(BlockIds.PILLAR); - BlockIds.PILLAR_INSERT = config.getBlock(Strings.PILLAR_INSERT_NAME, BlockIds.PILLAR_INSERT).getInt(BlockIds.PILLAR_INSERT); - //Item Configuration - ItemIds.IMBUED_SHARD = config.getItem(Strings.IMBUED_SHARD_NAME, ItemIds.IMBUED_SHARD).getInt(ItemIds.IMBUED_SHARD); - ItemIds.STAFF_PARTS = config.getItem(Strings.STAFF_NAME, ItemIds.STAFF_PARTS).getInt(ItemIds.STAFF_PARTS); - ItemIds.FIRE_STAFF = config.getItem(Strings.FIRE_STAFF_NAME, ItemIds.FIRE_STAFF).getInt(ItemIds.FIRE_STAFF); - ItemIds.WATER_STAFF = config.getItem(Strings.WATER_STAFF_NAME, ItemIds.WATER_STAFF).getInt(ItemIds.WATER_STAFF); - ItemIds.EARTH_STAFF = config.getItem(Strings.EARTH_STAFF_NAME, ItemIds.EARTH_STAFF).getInt(ItemIds.EARTH_STAFF); - ItemIds.AIR_STAFF = config.getItem(Strings.AIR_STAFF_NAME, ItemIds.AIR_STAFF).getInt(ItemIds.AIR_STAFF); - ItemIds.ENERGY_STAFF = config.getItem(Strings.ENERGY_STAFF_NAME, ItemIds.ENERGY_STAFF).getInt(ItemIds.ENERGY_STAFF); - ItemIds.STAFF_POWER = config.getItem(Strings.POWER_STAFF_NAME, ItemIds.STAFF_POWER).getInt(ItemIds.STAFF_POWER); - ItemIds.BUSH_FRUIT = config.getItem(Strings.BUSH_FRUIT_NAME, ItemIds.BUSH_FRUIT).getInt(ItemIds.BUSH_FRUIT); - ItemIds.VERDITE_HELMET = config.getItem(Strings.VERDITE_HELMET_NAME, ItemIds.VERDITE_HELMET).getInt(ItemIds.VERDITE_HELMET); - ItemIds.VERDITE_CHESTPLATE = config.getItem(Strings.VERDITE_CHESTPLATE_NAME, ItemIds.VERDITE_CHESTPLATE).getInt(ItemIds.VERDITE_CHESTPLATE); - ItemIds.VERDITE_LEGGINGS = config.getItem(Strings.VERDITE_LEGGINGS_NAME, ItemIds.VERDITE_LEGGINGS).getInt(ItemIds.VERDITE_LEGGINGS); - ItemIds.VERDITE_BOOTS = config.getItem(Strings.VERDITE_BOOTS_NAME, ItemIds.VERDITE_BOOTS).getInt(ItemIds.VERDITE_BOOTS); - ItemIds.MITHRIL_HELMET = config.getItem(Strings.MITHRIL_HELMET_NAME, ItemIds.MITHRIL_HELMET).getInt(ItemIds.MITHRIL_HELMET); - ItemIds.MITHRIL_CHESTPLATE = config.getItem(Strings.MITHRIL_CHESTPLATE_NAME, ItemIds.MITHRIL_CHESTPLATE).getInt(ItemIds.MITHRIL_CHESTPLATE); - ItemIds.MITHRIL_LEGGINGS = config.getItem(Strings.MITHRIL_LEGGINGS_NAME, ItemIds.MITHRIL_LEGGINGS).getInt(ItemIds.MITHRIL_LEGGINGS); - ItemIds.MITHRIL_BOOTS = config.getItem(Strings.MITHRIL_BOOTS_NAME, ItemIds.MITHRIL_BOOTS).getInt(ItemIds.MITHRIL_BOOTS); - ItemIds.ADAMANTINE_HELMET = config.getItem(Strings.ADAMANTINE_HELMET_NAME, ItemIds.ADAMANTINE_HELMET).getInt(ItemIds.ADAMANTINE_HELMET); - ItemIds.ADAMANTINE_CHESTPLATE = config.getItem(Strings.ADAMANTINE_CHESTPLATE_NAME, ItemIds.ADAMANTINE_CHESTPLATE).getInt(ItemIds.ADAMANTINE_CHESTPLATE); - ItemIds.ADAMANTINE_LEGGINGS = config.getItem(Strings.ADAMANTINE_LEGGINGS_NAME, ItemIds.ADAMANTINE_LEGGINGS).getInt(ItemIds.ADAMANTINE_LEGGINGS); - ItemIds.ADAMANTINE_BOOTS = config.getItem(Strings.ADAMANTINE_BOOTS_NAME, ItemIds.ADAMANTINE_BOOTS).getInt(ItemIds.ADAMANTINE_BOOTS); - ItemIds.IRIDIUM_HELMET = config.getItem(Strings.IRIDIUM_HELMET_NAME, ItemIds.IRIDIUM_HELMET).getInt(ItemIds.IRIDIUM_HELMET); - ItemIds.IRIDIUM_CHESTPLATE = config.getItem(Strings.IRIDIUM_CHESTPLATE_NAME, ItemIds.IRIDIUM_CHESTPLATE).getInt(ItemIds.IRIDIUM_CHESTPLATE); - ItemIds.IRIDIUM_LEGGINGS = config.getItem(Strings.IRIDIUM_LEGGINGS_NAME, ItemIds.IRIDIUM_LEGGINGS).getInt(ItemIds.IRIDIUM_LEGGINGS); - ItemIds.IRIDIUM_BOOTS = config.getItem(Strings.IRIDIUM_BOOTS_NAME, ItemIds.IRIDIUM_BOOTS).getInt(ItemIds.IRIDIUM_BOOTS); - ItemIds.FIRE_ORB = config.getItem(Strings.FIRE_ORB_NAME, ItemIds.FIRE_ORB).getInt(ItemIds.FIRE_ORB); - ItemIds.WATER_ORB = config.getItem(Strings.WATER_ORB_NAME, ItemIds.WATER_ORB).getInt(ItemIds.WATER_ORB); - ItemIds.EARTH_ORB = config.getItem(Strings.EARTH_ORB_NAME, ItemIds.EARTH_ORB).getInt(ItemIds.EARTH_ORB); - ItemIds.AIR_ORB = config.getItem(Strings.AIR_ORB_NAME, ItemIds.AIR_ORB).getInt(ItemIds.AIR_ORB); - ItemIds.ENERGY_ORB = config.getItem(Strings.ENERGY_ORB_NAME, ItemIds.ENERGY_ORB).getInt(ItemIds.ENERGY_ORB); - ItemIds.VOID_SHARD = config.getItem(Strings.VOID_SHARD_NAME, ItemIds.VOID_SHARD).getInt(ItemIds.VOID_SHARD); config.save(); } } \ No newline at end of file diff --git a/common/MysticWorld/Util/RecipeHandler.java b/common/MysticWorld/Util/RecipeHandler.java index c1d64ba..dacdeaf 100644 --- a/common/MysticWorld/Util/RecipeHandler.java +++ b/common/MysticWorld/Util/RecipeHandler.java @@ -13,27 +13,27 @@ public class RecipeHandler { } private static void bootsRecipe(Item output, ItemStack input) { - GameRegistry.addRecipe(new ItemStack(output), new Object[] { "# #", "# #", '#', input }); + GameRegistry.addRecipe(new ItemStack(output), "# #", "# #", '#', input); } private static void chestplateRecipe(Item output, ItemStack input) { - GameRegistry.addRecipe(new ItemStack(output), new Object[] { "# #", "###", "###", '#', input }); + GameRegistry.addRecipe(new ItemStack(output), "# #", "###", "###", '#', input); } private static void helmetRecipe(Item output, ItemStack input) { - GameRegistry.addRecipe(new ItemStack(output), new Object[] { "###", "# #", '#', input }); + GameRegistry.addRecipe(new ItemStack(output), "###", "# #", '#', input); } private static void itemRecipes() { //Staff Hilt Recipe - GameRegistry.addRecipe(new ItemStack(ItemHandler.staffParts, 1, 1), new Object[] { " # ", "#$#", " # ", '#', Item.ingotGold, '$', Item.diamond }); + GameRegistry.addRecipe(new ItemStack(ItemHandler.staffParts, 1, 1), " # ", "#$#", " # ", '#', net.minecraft.init.Items.gold_ingot, '$', net.minecraft.init.Items.diamond); //Staff Handle Recipe - GameRegistry.addRecipe(new ItemStack(ItemHandler.staffParts, 1, 2), new Object[] { "#", "$", "S", '#', Item.goldNugget, '$', Item.stick, 'S', Item.dyePowder }); + GameRegistry.addRecipe(new ItemStack(ItemHandler.staffParts, 1, 2), "#", "$", "S", '#', net.minecraft.init.Items.gold_nugget, '$', net.minecraft.init.Items.stick, 'S', net.minecraft.init.Items.dye); //Staff Topper Recipe - GameRegistry.addRecipe(new ItemStack(ItemHandler.staffParts, 1, 3), new Object[] { " # ", "#$#", " # ", '#', Item.ingotGold, '$', Item.netherStar }); + GameRegistry.addRecipe(new ItemStack(ItemHandler.staffParts, 1, 3), " # ", "#$#", " # ", '#', net.minecraft.init.Items.gold_ingot, '$', net.minecraft.init.Items.nether_star); //Staff Recipe - GameRegistry.addRecipe(new ItemStack(ItemHandler.staffParts, 1, 0), new Object[] { " #", " X ", "Y ", '#', new ItemStack(ItemHandler.staffParts, 1, 3), 'X', - new ItemStack(ItemHandler.staffParts, 1, 2), 'Y', new ItemStack(ItemHandler.staffParts, 1, 1) }); + GameRegistry.addRecipe(new ItemStack(ItemHandler.staffParts, 1, 0), " #", " X ", "Y ", '#', new ItemStack(ItemHandler.staffParts, 1, 3), 'X', + new ItemStack(ItemHandler.staffParts, 1, 2), 'Y', new ItemStack(ItemHandler.staffParts, 1, 1)); //Orb Recipes orbRecipe(ItemHandler.fireOrb, new ItemStack(ItemHandler.imbuedShard, 1, 0)); orbRecipe(ItemHandler.waterOrb, new ItemStack(ItemHandler.imbuedShard, 1, 1)); @@ -69,15 +69,15 @@ public class RecipeHandler { } private static void itemSmelting() { - GameRegistry.addSmelting(ItemHandler.imbuedShard.itemID, new ItemStack(ItemHandler.voidShard), 0.5f); + GameRegistry.addSmelting(ItemHandler.imbuedShard, new ItemStack(ItemHandler.voidShard), 0.5f); } private static void leggingsRecipe(Item output, ItemStack input) { - GameRegistry.addRecipe(new ItemStack(output), new Object[] { "###", "# #", "# #", '#', input }); + GameRegistry.addRecipe(new ItemStack(output), "###", "# #", "# #", '#', input); } private static void orbRecipe(Item output, ItemStack input) { - GameRegistry.addRecipe(new ItemStack(output), new Object[] { "##", "##", '#', input }); + GameRegistry.addRecipe(new ItemStack(output), "##", "##", '#', input); } private static void staffRecipe(Item output, ItemStack input) { diff --git a/common/MysticWorld/Util/TickHandler.java b/common/MysticWorld/Util/TickHandler.java index 6eb38b8..73e52ad 100644 --- a/common/MysticWorld/Util/TickHandler.java +++ b/common/MysticWorld/Util/TickHandler.java @@ -1,56 +1,36 @@ package mysticworld.util; -import java.util.EnumSet; import java.util.Random; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; +import cpw.mods.fml.common.gameevent.TickEvent; import mysticworld.blocks.BlockHandler; +import net.minecraft.block.Block; import net.minecraft.enchantment.Enchantment; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.entity.player.InventoryPlayer; -import net.minecraft.item.Item; +import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; -import cpw.mods.fml.common.IScheduledTickHandler; -import cpw.mods.fml.common.TickType; -public class TickHandler implements IScheduledTickHandler { +public class TickHandler { public static final Enchantment[] enchantmentsPick = { Enchantment.efficiency, Enchantment.fortune, Enchantment.silkTouch, Enchantment.unbreaking }; - @Override - public String getLabel() { - return "mystic world tick"; + @SubscribeEvent + public void tickStart(TickEvent.PlayerTickEvent event) { + if(event.phase== TickEvent.Phase.START && event.side.isServer() && event.player.worldObj.getWorldTime()%20==0) + pillarTick(event.player, event.player.worldObj, new Random()); } - @Override - public int nextTickSpacing() { - return 20; - } - - @Override - public void tickEnd(EnumSet type, Object... tickData) { - } - - @Override - public EnumSet ticks() { - return EnumSet.of(TickType.PLAYER); - } - - @Override - public void tickStart(EnumSet type, Object... tickData) { - EntityPlayer player = (EntityPlayer) tickData[0]; - pillarTick(player, player.worldObj, player.inventory, new Random()); - } - - private static void pillarTick(EntityPlayer player, World world, InventoryPlayer inventory, Random rand) { - ItemStack itemStack = inventory.getCurrentItem(); + private static void pillarTick(EntityPlayer player, World world, Random rand) { + ItemStack itemStack = player.inventory.getCurrentItem(); int blockX = (int) player.posX - 1; int blockY = (int) (player.posY - 0.15D); int blockZ = (int) player.posZ - 1; - int blockId = world.getBlockId(blockX, blockY, blockZ); + Block blockId = world.getBlock(blockX, blockY, blockZ); int blockMeta = world.getBlockMetadata(blockX, blockY, blockZ); - if (blockId == BlockHandler.pillarPlatform.blockID) { + if (blockId == BlockHandler.pillarPlatform) { switch (blockMeta) { //food case 0: @@ -85,8 +65,8 @@ public class TickHandler implements IScheduledTickHandler { //enchanter case 7: if (itemStack != null - && (itemStack.itemID == Item.pickaxeWood.itemID || itemStack.itemID == Item.pickaxeStone.itemID || itemStack.itemID == Item.pickaxeIron.itemID - || itemStack.itemID == Item.pickaxeGold.itemID || itemStack.itemID == Item.pickaxeDiamond.itemID)) { + && (itemStack.getItem() == Items.wooden_pickaxe || itemStack.getItem() == Items.stone_pickaxe || itemStack.getItem() == Items.iron_pickaxe + || itemStack.getItem() == Items.golden_pickaxe || itemStack.getItem() == Items.diamond_pickaxe)) { if (itemStack.isItemEnchanted() != true && player.experienceLevel >= 10) { player.experienceLevel -= 10; itemStack.addEnchantment(enchantmentsPick[rand.nextInt(3)], rand.nextInt(4) + 1); diff --git a/common/MysticWorld/WorldGen/BushesGen.java b/common/MysticWorld/WorldGen/BushesGen.java index baecf4a..fb73023 100644 --- a/common/MysticWorld/WorldGen/BushesGen.java +++ b/common/MysticWorld/WorldGen/BushesGen.java @@ -3,7 +3,7 @@ package mysticworld.worldgen; import java.util.Random; import mysticworld.blocks.BlockHandler; -import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; @@ -15,8 +15,8 @@ public class BushesGen extends WorldGenerator { int i1 = par3 + par2Random.nextInt(8) - par2Random.nextInt(8); int j1 = par4 + par2Random.nextInt(4) - par2Random.nextInt(4); int k1 = par5 + par2Random.nextInt(8) - par2Random.nextInt(8); - if (par1World.isAirBlock(i1, j1, k1) && par1World.getBlockId(i1, j1 - 1, k1) == Block.grass.blockID && BlockHandler.bush.canPlaceBlockAt(par1World, i1, j1, k1)) { - par1World.setBlock(i1, j1, k1, BlockHandler.bush.blockID, bushType, 2); + if (par1World.isAirBlock(i1, j1, k1) && par1World.getBlock(i1, j1 - 1, k1) == Blocks.grass && BlockHandler.bush.canPlaceBlockAt(par1World, i1, j1, k1)) { + par1World.setBlock(i1, j1, k1, BlockHandler.bush, bushType, 2); } } return true; diff --git a/common/MysticWorld/WorldGen/StonesGen.java b/common/MysticWorld/WorldGen/StonesGen.java index 5a31bff..43fd9cc 100644 --- a/common/MysticWorld/WorldGen/StonesGen.java +++ b/common/MysticWorld/WorldGen/StonesGen.java @@ -3,7 +3,7 @@ package mysticworld.worldgen; import java.util.Random; import mysticworld.blocks.BlockHandler; -import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; @@ -14,8 +14,8 @@ public class StonesGen extends WorldGenerator { int i1 = par3 + par2Random.nextInt(8) - par2Random.nextInt(8); int j1 = par4 + par2Random.nextInt(4) - par2Random.nextInt(4); int k1 = par5 + par2Random.nextInt(8) - par2Random.nextInt(8); - if (par1World.isAirBlock(i1, j1, k1) && par1World.getBlockId(i1, j1 - 1, k1) == Block.grass.blockID && BlockHandler.oreImbuedStone.canPlaceBlockAt(par1World, i1, j1, k1)) { - par1World.setBlock(i1, j1, k1, BlockHandler.oreImbuedStone.blockID, par2Random.nextInt(5), 2); + if (par1World.isAirBlock(i1, j1, k1) && par1World.getBlock(i1, j1 - 1, k1) == Blocks.grass && BlockHandler.oreImbuedStone.canPlaceBlockAt(par1World, i1, j1, k1)) { + par1World.setBlock(i1, j1, k1, BlockHandler.oreImbuedStone, par2Random.nextInt(5), 2); } } return true; diff --git a/common/MysticWorld/WorldGen/WorldGenStones.java b/common/MysticWorld/WorldGen/WorldGenStones.java deleted file mode 100644 index 6bc68cc..0000000 --- a/common/MysticWorld/WorldGen/WorldGenStones.java +++ /dev/null @@ -1,30 +0,0 @@ -package mysticworld.worldgen; - -import java.util.Random; - -import net.minecraft.world.World; -import net.minecraft.world.chunk.IChunkProvider; -import net.minecraft.world.gen.feature.WorldGenerator; - -import cpw.mods.fml.common.IWorldGenerator; - -public class WorldGenStones implements IWorldGenerator { - public static final WorldGenerator stones = new StonesGen(); - - @Override - public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { - switch (world.provider.dimensionId) { - case 0: - generateSurface(world, random, chunkX * 16, chunkZ * 16); - } - } - - private void generateSurface(World world, Random random, int blockX, int blockZ) { - for (int i = 0; i < 1; i++) { - int Xcoord1 = blockX + random.nextInt(16) + 8; - int Ycoord1 = random.nextInt(11) + 60; - int Zcoord1 = blockZ + random.nextInt(16) + 8; - stones.generate(world, random, Xcoord1, Ycoord1, Zcoord1); - } - } -} \ No newline at end of file diff --git a/common/assets/mysticworld/lang/de_DE.lang b/common/assets/mysticworld/lang/de_DE.lang index c9fa7a1..8e6ce7d 100644 --- a/common/assets/mysticworld/lang/de_DE.lang +++ b/common/assets/mysticworld/lang/de_DE.lang @@ -1,9 +1,9 @@  -tile.imbuedStoneFire.name=Magmatischer Felsbrocken -tile.imbuedStoneWater.name=Aquatischer Felsbrocken -tile.imbuedStoneEarth.name=Fruchtbarer Felsbrocken -tile.imbuedStoneAir.name=Durchlüfteter Felsbrocken -tile.imbuedStoneEnergy.name=Kinetischer Felsbrocken +imbuedStoneFire.name=Magmatischer Felsbrocken +imbuedStoneWater.name=Aquatischer Felsbrocken +imbuedStoneEarth.name=Fruchtbarer Felsbrocken +imbuedStoneAir.name=Durchlüfteter Felsbrocken +imbuedStoneEnergy.name=Kinetischer Felsbrocken Bush.name=Gewöhnlicher Busch Poisonous Bush.name=Giftiger Busch diff --git a/common/assets/mysticworld/lang/en_US.lang b/common/assets/mysticworld/lang/en_US.lang index 3b8e63d..c015889 100644 --- a/common/assets/mysticworld/lang/en_US.lang +++ b/common/assets/mysticworld/lang/en_US.lang @@ -1,9 +1,9 @@  -tile.imbuedStoneFire.name=Magmatic Stone Chunk -tile.imbuedStoneWater.name=Aquatic Stone Chunk -tile.imbuedStoneEarth.name=Fertile Stone Chunk -tile.imbuedStoneAir.name=Aerated Stone Chunk -tile.imbuedStoneEnergy.name=Kinetic Stone Chunk +imbuedStoneFire.name=Magmatic Stone Chunk +imbuedStoneWater.name=Aquatic Stone Chunk +imbuedStoneEarth.name=Fertile Stone Chunk +imbuedStoneAir.name=Aerated Stone Chunk +imbuedStoneEnergy.name=Kinetic Stone Chunk Bush.name=Mundane Bush Poisonous Bush.name=Poisonous Bush diff --git a/common/mysticores/Items/ItemHatchet.java b/common/mysticores/Items/ItemHatchet.java new file mode 100644 index 0000000..59a074c --- /dev/null +++ b/common/mysticores/Items/ItemHatchet.java @@ -0,0 +1,9 @@ +package mysticores.items; + +import net.minecraft.item.ItemAxe; + +public class ItemHatchet extends ItemAxe{ + public ItemHatchet(ToolMaterial mat) { + super(mat); + } +} diff --git a/common/mysticores/Items/ItemPick.java b/common/mysticores/Items/ItemPick.java new file mode 100644 index 0000000..0c2d6f4 --- /dev/null +++ b/common/mysticores/Items/ItemPick.java @@ -0,0 +1,9 @@ +package mysticores.items; + +import net.minecraft.item.ItemPickaxe; + +public class ItemPick extends ItemPickaxe{ + public ItemPick(ToolMaterial mat) { + super(mat); + } +} diff --git a/common/mysticores/worldgen/WorldGenOres.java b/common/mysticores/worldgen/WorldGenOres.java index b2a2695..cb31c75 100644 --- a/common/mysticores/worldgen/WorldGenOres.java +++ b/common/mysticores/worldgen/WorldGenOres.java @@ -4,21 +4,21 @@ import java.util.Random; import mysticores.blocks.BlockHandler; import mysticores.lib.Rarity; -import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class WorldGenOres implements IWorldGenerator { - public static final WorldGenMinable adamantine = new WorldGenMinable(BlockHandler.BlockBase.blockID, 0, 3); - public static final WorldGenMinable amethyst = new WorldGenMinable(BlockHandler.BlockBase.blockID, 1, 4, Block.stone.blockID); - public static final WorldGenMinable iridium = new WorldGenMinable(BlockHandler.BlockBase.blockID, 2, 6, Block.stone.blockID); - public static final WorldGenMinable mithril = new WorldGenMinable(BlockHandler.BlockBase.blockID, 3, 6, Block.stone.blockID); - public static final WorldGenMinable tourmaline = new WorldGenMinable(BlockHandler.BlockBase.blockID, 4, 4, Block.stone.blockID); - public static final WorldGenMinable topaz = new WorldGenMinable(BlockHandler.BlockBase.blockID, 5, 4, Block.stone.blockID); - public static final WorldGenMinable verdite = new WorldGenMinable(BlockHandler.BlockBase.blockID, 6, 9, Block.stone.blockID); - public static final WorldGenMinable agate = new WorldGenMinable(BlockHandler.BlockBase.blockID, 11, 4, Block.stone.blockID); + public static final WorldGenMinable adamantine = new WorldGenMinable(BlockHandler.BlockBase, 0, 3, Blocks.stone); + public static final WorldGenMinable amethyst = new WorldGenMinable(BlockHandler.BlockBase, 1, 4, Blocks.stone); + public static final WorldGenMinable iridium = new WorldGenMinable(BlockHandler.BlockBase, 2, 6, Blocks.stone); + public static final WorldGenMinable mithril = new WorldGenMinable(BlockHandler.BlockBase, 3, 6, Blocks.stone); + public static final WorldGenMinable tourmaline = new WorldGenMinable(BlockHandler.BlockBase, 4, 4, Blocks.stone); + public static final WorldGenMinable topaz = new WorldGenMinable(BlockHandler.BlockBase, 5, 4, Blocks.stone); + public static final WorldGenMinable verdite = new WorldGenMinable(BlockHandler.BlockBase, 6, 9, Blocks.stone); + public static final WorldGenMinable agate = new WorldGenMinable(BlockHandler.BlockBase, 11, 4, Blocks.stone); @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { diff --git a/common/mysticstones/blocks/BlockMulti.java b/common/mysticstones/blocks/BlockMulti.java index b62d9a3..6005670 100644 --- a/common/mysticstones/blocks/BlockMulti.java +++ b/common/mysticstones/blocks/BlockMulti.java @@ -10,15 +10,15 @@ import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; public class BlockMulti extends Block { - Icon[] textures; + IIcon[] textures; - public BlockMulti(int par1, Material par2Material) { - super(par1, par2Material); + public BlockMulti(Material par2Material) { + super(par2Material); setCreativeTab(MysticStones.MysticStonesTab); } @@ -29,26 +29,22 @@ public class BlockMulti extends Block { @Override @SideOnly(Side.CLIENT) - public Icon getIcon(int side, int meta) { + public IIcon getIcon(int side, int meta) { return textures[meta]; } @Override public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) { - int id = idPicked(world, x, y, z); - if (id == 0) { - return null; - } - Item item = Item.itemsList[id]; + Item item = getItem(world, x, y, z); if (item == null) { return null; } - return new ItemStack(id, 1, getDamageValue(world, x, y, z)); + return new ItemStack(item, 1, getDamageValue(world, x, y, z)); } @Override @SideOnly(Side.CLIENT) - public void getSubBlocks(int i, CreativeTabs tab, List list) { + public void getSubBlocks(Item i, CreativeTabs tab, List list) { for (int j = 0; j < textures.length; j++) { list.add(new ItemStack(i, 1, j)); } diff --git a/common/mysticstones/blocks/ItemBlockMulti.java b/common/mysticstones/blocks/ItemBlockMulti.java index 952a23a..2a50eca 100644 --- a/common/mysticstones/blocks/ItemBlockMulti.java +++ b/common/mysticstones/blocks/ItemBlockMulti.java @@ -1,39 +1,22 @@ package mysticstones.blocks; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; -import net.minecraft.item.ItemBlock; +import net.minecraft.item.ItemBlockWithMetadata; import net.minecraft.item.ItemStack; -import net.minecraft.util.Icon; import net.minecraft.util.MathHelper; -public class ItemBlockMulti extends ItemBlock { - private String[] types; - private Block block; +import java.util.ArrayList; - public ItemBlockMulti(int par1, Block block, String[] names) { - super(par1); +public class ItemBlockMulti extends ItemBlockWithMetadata { + private ArrayList types; + public ItemBlockMulti(Block block, ArrayList names) { + super(block, block); this.types = names; - this.block = block; - setMaxDamage(0); - setHasSubtypes(true); - } - - @Override - @SideOnly(Side.CLIENT) - public Icon getIconFromDamage(int par1) { - return block.getIcon(2, par1); - } - - @Override - public int getMetadata(int par1) { - return par1; } @Override public String getUnlocalizedName(ItemStack itemStack) { - int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, types.length); - return types[meta]; + int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, types.size()); + return types.get(meta); } } diff --git a/common/mysticstones/worldgen/WorldGeneratorStones.java b/common/mysticstones/worldgen/WorldGeneratorStones.java index e7ddd51..c6a5aef 100644 --- a/common/mysticstones/worldgen/WorldGeneratorStones.java +++ b/common/mysticstones/worldgen/WorldGeneratorStones.java @@ -4,20 +4,20 @@ import java.util.Random; import mysticstones.MysticStones; import mysticstones.util.Config; -import net.minecraft.block.Block; +import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class WorldGeneratorStones implements IWorldGenerator { - public static final WorldGenMinable anorthosite = new WorldGenMinable(MysticStones.stones.blockID, 0, 24, Block.stone.blockID); - public static final WorldGenMinable limestone = new WorldGenMinable(MysticStones.stones.blockID, 2, 48, Block.stone.blockID); - public static final WorldGenMinable marble = new WorldGenMinable(MysticStones.stones.blockID, 4, 24, Block.stone.blockID); - public static final WorldGenMinable migmatite = new WorldGenMinable(MysticStones.stones.blockID, 6, 48, Block.stone.blockID); - public static final WorldGenMinable orthogneiss = new WorldGenMinable(MysticStones.stones.blockID, 8, 48, Block.stone.blockID); - public static final WorldGenMinable slate = new WorldGenMinable(MysticStones.stones.blockID, 10, 24, Block.stone.blockID); - public static final WorldGenMinable travertine = new WorldGenMinable(MysticStones.stones.blockID, 12, 24, Block.stone.blockID); + public static final WorldGenMinable anorthosite = new WorldGenMinable(MysticStones.stones, 0, 24, Blocks.stone); + public static final WorldGenMinable limestone = new WorldGenMinable(MysticStones.stones, 2, 48, Blocks.stone); + public static final WorldGenMinable marble = new WorldGenMinable(MysticStones.stones, 4, 24, Blocks.stone); + public static final WorldGenMinable migmatite = new WorldGenMinable(MysticStones.stones, 6, 48, Blocks.stone); + public static final WorldGenMinable orthogneiss = new WorldGenMinable(MysticStones.stones, 8, 48, Blocks.stone); + public static final WorldGenMinable slate = new WorldGenMinable(MysticStones.stones, 10, 24, Blocks.stone); + public static final WorldGenMinable travertine = new WorldGenMinable(MysticStones.stones, 12, 24, Blocks.stone); @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { diff --git a/common/MysticWorld/Blocks/BlockBush.java b/common/mysticworld/Blocks/BlockBushes.java similarity index 59% rename from common/MysticWorld/Blocks/BlockBush.java rename to common/mysticworld/Blocks/BlockBushes.java index 19f10bf..bae85a8 100644 --- a/common/MysticWorld/Blocks/BlockBush.java +++ b/common/mysticworld/Blocks/BlockBushes.java @@ -6,13 +6,15 @@ import java.util.Random; import mysticworld.MysticWorld; import mysticworld.items.ItemHandler; import net.minecraft.block.Block; -import net.minecraft.block.BlockFlower; +import net.minecraft.block.BlockBush; import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IconRegister; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.init.Blocks; +import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.AxisAlignedBB; -import net.minecraft.util.Icon; +import net.minecraft.util.IIcon; import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerGrass; import net.minecraft.world.IBlockAccess; @@ -21,23 +23,23 @@ import net.minecraftforge.common.EnumPlantType; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -public class BlockBush extends BlockFlower { - Icon[] textures; +public class BlockBushes extends BlockBush { + IIcon[] textures; - public BlockBush(int id) { - super(id, Material.leaves); + public BlockBushes() { + super(Material.leaves); setCreativeTab(MysticWorld.MysticWorldTab); - setHardness(0.3F); - setResistance(0.1F); - setStepSound(Block.soundGrassFootstep); - setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F); + setHardness(0.3F); + setResistance(0.1F); + setStepSound(Block.soundTypeGrass); + setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.5F, 0.75F); } @Override @SideOnly(Side.CLIENT) public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) { int l = par1IBlockAccess.getBlockMetadata(par2, par3, par4); - return l == -1 ? 16777215 : par1IBlockAccess.getBiomeGenForCoords(par2, par4).getBiomeGrassColor(); + return l == -1 ? 16777215 : par1IBlockAccess.getBiomeGenForCoords(par2, par4).getBiomeGrassColor(par2, par3, par4); } @Override @@ -55,17 +57,17 @@ public class BlockBush extends BlockFlower { @Override public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4) { - return AxisAlignedBB.getAABBPool().getAABB(par2 + this.minX, par3 + this.minY, par4 + this.minZ, par2 + this.maxX, par3 + this.maxY, par4 + this.maxZ); + return AxisAlignedBB.getAABBPool().getAABB(par2 + this.getBlockBoundsMinX(), par3 + this.getBlockBoundsMinY(), par4 + this.getBlockBoundsMinZ(), par2 + this.getBlockBoundsMaxX(), par3 + this.getBlockBoundsMaxY(), par4 + this.getBlockBoundsMaxZ()); } @Override @SideOnly(Side.CLIENT) - public Icon getIcon(int side, int meta) { + public IIcon getIcon(int side, int meta) { return textures[meta]; } @Override - public EnumPlantType getPlantType(World world, int x, int y, int z) { + public EnumPlantType getPlantType(IBlockAccess world, int x, int y, int z) { return EnumPlantType.Plains; } @@ -82,15 +84,15 @@ public class BlockBush extends BlockFlower { @Override @SideOnly(Side.CLIENT) - public void getSubBlocks(int i, CreativeTabs tab, List list) { + public void getSubBlocks(Item i, CreativeTabs tab, List list) { for (int j = 0; j < 12; j++) { list.add(new ItemStack(i, 1, j)); } } @Override - public int idDropped(int par1, Random par2Random, int par3) { - return ItemHandler.bushFruit.itemID; + public Item getItemDropped(int par1, Random par2Random, int par3) { + return ItemHandler.bushFruit; } @Override @@ -100,15 +102,15 @@ public class BlockBush extends BlockFlower { @Override @SideOnly(Side.CLIENT) - public void registerIcons(IconRegister iconRegister) { - textures = new Icon[16]; + public void registerBlockIcons(IIconRegister iconRegister) { + textures = new IIcon[16]; for (int i = 0; i < 12; i++) { - textures[i] = iconRegister.registerIcon("mysticworld:" + ItemBush.BUSH_TYPES[i]); + textures[i] = iconRegister.registerIcon("mysticworld:" + BlockHandler.BUSH_TYPES.get(i)); } } @Override - protected boolean canThisPlantGrowOnThisBlockID(int par1) { - return par1 == Block.grass.blockID || par1 == Block.dirt.blockID; + protected boolean canPlaceBlockOn(Block par1) { + return par1 == Blocks.grass || par1 == Blocks.dirt; } } diff --git a/common/mysticworld/Blocks/ItemBlockMulti.java b/common/mysticworld/Blocks/ItemBlockMulti.java new file mode 100644 index 0000000..2ab15ec --- /dev/null +++ b/common/mysticworld/Blocks/ItemBlockMulti.java @@ -0,0 +1,22 @@ +package mysticworld.blocks; + +import net.minecraft.block.Block; +import net.minecraft.item.ItemBlockWithMetadata; +import net.minecraft.item.ItemStack; +import net.minecraft.util.MathHelper; + +import java.util.ArrayList; + +public class ItemBlockMulti extends ItemBlockWithMetadata { + public final ArrayList names; + public ItemBlockMulti(Block block, ArrayList names) { + super(block, block); + this.names = names; + } + + @Override + public String getUnlocalizedName(ItemStack itemStack) { + int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, names.size()); + return names.get(meta); + } +} diff --git a/common/MysticWorld/WorldGen/WorldGenBushes.java b/common/mysticworld/WorldGen/WorldGenerators.java similarity index 50% rename from common/MysticWorld/WorldGen/WorldGenBushes.java rename to common/mysticworld/WorldGen/WorldGenerators.java index ef9d6a6..f0f4796 100644 --- a/common/MysticWorld/WorldGen/WorldGenBushes.java +++ b/common/mysticworld/WorldGen/WorldGenerators.java @@ -2,14 +2,16 @@ package mysticworld.worldgen; import java.util.Random; +import mysticworld.lib.Booleans; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenerator; import cpw.mods.fml.common.IWorldGenerator; -public class WorldGenBushes implements IWorldGenerator { +public class WorldGenerators implements IWorldGenerator { public static final WorldGenerator bushes = new BushesGen(); + public static final WorldGenerator stones = new StonesGen(); @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { @@ -20,11 +22,15 @@ public class WorldGenBushes implements IWorldGenerator { } private void generateSurface(World world, Random random, int blockX, int blockZ) { - for (int i = 0; i < 1; i++) { - int Xcoord1 = blockX + random.nextInt(16) + 8; - int Ycoord1 = random.nextInt(11) + 60; - int Zcoord1 = blockZ + random.nextInt(16) + 8; - bushes.generate(world, random, Xcoord1, Ycoord1, Zcoord1); - } + int Xcoord1 = blockX + random.nextInt(16) + 8; + int Ycoord1 = random.nextInt(11) + 60; + int Zcoord1 = blockZ + random.nextInt(16) + 8; + stones.generate(world, random, Xcoord1, Ycoord1, Zcoord1); + if (Booleans.ENABLE_BUSH_GEN){ + Xcoord1 = blockX + random.nextInt(16) + 8; + Ycoord1 = random.nextInt(11) + 60; + Zcoord1 = blockZ + random.nextInt(16) + 8; + bushes.generate(world, random, Xcoord1, Ycoord1, Zcoord1); + } } } \ No newline at end of file diff --git a/common/mysticworld/items/ItemHandler.java b/common/mysticworld/items/ItemHandler.java index 511cf71..cc15932 100644 --- a/common/mysticworld/items/ItemHandler.java +++ b/common/mysticworld/items/ItemHandler.java @@ -1,7 +1,5 @@ package mysticworld.items; -import mysticworld.MysticWorld; -import mysticworld.lib.ItemIds; import mysticworld.lib.Strings; import net.minecraft.item.Item; @@ -44,43 +42,43 @@ public class ItemHandler { public static Item voidShard; public static void init() { - staffParts = new ItemStaffParts(ItemIds.STAFF_PARTS); - imbuedShard = new ItemImbuedShard(ItemIds.IMBUED_SHARD); - bushFruit = new ItemBushFruit(ItemIds.BUSH_FRUIT, 2); - fireStaff = new ItemStaffFire(ItemIds.FIRE_STAFF).setUnlocalizedName(Strings.FIRE_STAFF_NAME); - waterStaff = new ItemStaffWater(ItemIds.WATER_STAFF).setUnlocalizedName(Strings.WATER_STAFF_NAME); - earthStaff = new ItemStaffEarth(ItemIds.EARTH_STAFF).setUnlocalizedName(Strings.EARTH_STAFF_NAME); - airStaff = new ItemStaffAir(ItemIds.AIR_STAFF).setUnlocalizedName(Strings.AIR_STAFF_NAME); - energyStaff = new ItemStaffEnegy(ItemIds.ENERGY_STAFF).setUnlocalizedName(Strings.ENERGY_STAFF_NAME); - staffPower = new ItemStaffPower(ItemIds.STAFF_POWER); - fireOrb = new ItemOrbFire(ItemIds.FIRE_ORB).setUnlocalizedName(Strings.FIRE_ORB_NAME); - waterOrb = new ItemOrbWater(ItemIds.WATER_ORB).setUnlocalizedName(Strings.WATER_ORB_NAME); - earthOrb = new ItemOrbEarth(ItemIds.EARTH_ORB).setUnlocalizedName(Strings.EARTH_ORB_NAME); - airOrb = new ItemOrbAir(ItemIds.AIR_ORB).setUnlocalizedName(Strings.AIR_ORB_NAME); - energyOrb = new ItemOrbEnergy(ItemIds.ENERGY_ORB).setUnlocalizedName(Strings.ENERGY_ORB_NAME); - verditeHelmet = new ItemArmorVerdite(ItemIds.VERDITE_HELMET, EnumArmor.Verdite, MysticWorld.proxy.addArmor(EnumArmor.Verdite.name()), 0).setUnlocalizedName(Strings.VERDITE_HELMET_NAME); - verditeChestplate = new ItemArmorVerdite(ItemIds.VERDITE_CHESTPLATE, EnumArmor.Verdite, MysticWorld.proxy.addArmor(EnumArmor.Verdite.name()), 1) + staffParts = new ItemStaffParts(); + imbuedShard = new ItemImbuedShard(); + bushFruit = new ItemBushFruit(2); + fireStaff = new ItemStaffFire().setUnlocalizedName(Strings.FIRE_STAFF_NAME); + waterStaff = new ItemStaffWater().setUnlocalizedName(Strings.WATER_STAFF_NAME); + earthStaff = new ItemStaffEarth().setUnlocalizedName(Strings.EARTH_STAFF_NAME); + airStaff = new ItemStaffAir().setUnlocalizedName(Strings.AIR_STAFF_NAME); + energyStaff = new ItemStaffEnegy().setUnlocalizedName(Strings.ENERGY_STAFF_NAME); + staffPower = new ItemStaffPower(); + fireOrb = new ItemOrbFire().setUnlocalizedName(Strings.FIRE_ORB_NAME); + waterOrb = new ItemOrbWater().setUnlocalizedName(Strings.WATER_ORB_NAME); + earthOrb = new ItemOrbEarth().setUnlocalizedName(Strings.EARTH_ORB_NAME); + airOrb = new ItemOrbAir().setUnlocalizedName(Strings.AIR_ORB_NAME); + energyOrb = new ItemOrbEnergy().setUnlocalizedName(Strings.ENERGY_ORB_NAME); + verditeHelmet = new ItemArmorVerdite(EnumArmor.Verdite, 0).setUnlocalizedName(Strings.VERDITE_HELMET_NAME); + verditeChestplate = new ItemArmorVerdite(EnumArmor.Verdite, 1) .setUnlocalizedName(Strings.VERDITE_CHESTPLATE_NAME); - verditeLeggings = new ItemArmorVerdite(ItemIds.VERDITE_LEGGINGS, EnumArmor.Verdite, MysticWorld.proxy.addArmor(EnumArmor.Verdite.name()), 2).setUnlocalizedName(Strings.VERDITE_LEGGINGS_NAME); - verditeBoots = new ItemArmorVerdite(ItemIds.VERDITE_BOOTS, EnumArmor.Verdite, MysticWorld.proxy.addArmor(EnumArmor.Verdite.name()), 3).setUnlocalizedName(Strings.VERDITE_BOOTS_NAME); - mithrilHelmet = new ItemArmorMithril(ItemIds.MITHRIL_HELMET, EnumArmor.Mithril, MysticWorld.proxy.addArmor(EnumArmor.Mithril.name()), 0).setUnlocalizedName(Strings.MITHRIL_HELMET_NAME); - mithrilChestplate = new ItemArmorMithril(ItemIds.MITHRIL_CHESTPLATE, EnumArmor.Mithril, MysticWorld.proxy.addArmor(EnumArmor.Mithril.name()), 1) + verditeLeggings = new ItemArmorVerdite(EnumArmor.Verdite, 2).setUnlocalizedName(Strings.VERDITE_LEGGINGS_NAME); + verditeBoots = new ItemArmorVerdite(EnumArmor.Verdite, 3).setUnlocalizedName(Strings.VERDITE_BOOTS_NAME); + mithrilHelmet = new ItemArmorMithril(EnumArmor.Mithril, 0).setUnlocalizedName(Strings.MITHRIL_HELMET_NAME); + mithrilChestplate = new ItemArmorMithril(EnumArmor.Mithril, 1) .setUnlocalizedName(Strings.MITHRIL_CHESTPLATE_NAME); - mithrilLeggings = new ItemArmorMithril(ItemIds.MITHRIL_LEGGINGS, EnumArmor.Mithril, MysticWorld.proxy.addArmor(EnumArmor.Mithril.name()), 2).setUnlocalizedName(Strings.MITHRIL_LEGGINGS_NAME); - mithrilBoots = new ItemArmorMithril(ItemIds.MITHRIL_BOOTS, EnumArmor.Mithril, MysticWorld.proxy.addArmor(EnumArmor.Mithril.name()), 3).setUnlocalizedName(Strings.MITHRIL_BOOTS_NAME); - adamantineHelmet = new ItemArmorAdamantine(ItemIds.ADAMANTINE_HELMET, EnumArmor.Adamantine, MysticWorld.proxy.addArmor(EnumArmor.Adamantine.name()), 0) + mithrilLeggings = new ItemArmorMithril(EnumArmor.Mithril, 2).setUnlocalizedName(Strings.MITHRIL_LEGGINGS_NAME); + mithrilBoots = new ItemArmorMithril(EnumArmor.Mithril, 3).setUnlocalizedName(Strings.MITHRIL_BOOTS_NAME); + adamantineHelmet = new ItemArmorAdamantine(EnumArmor.Adamantine, 0) .setUnlocalizedName(Strings.ADAMANTINE_HELMET_NAME); - adamantineChestplate = new ItemArmorAdamantine(ItemIds.ADAMANTINE_CHESTPLATE, EnumArmor.Adamantine, MysticWorld.proxy.addArmor(EnumArmor.Adamantine.name()), 1) + adamantineChestplate = new ItemArmorAdamantine(EnumArmor.Adamantine, 1) .setUnlocalizedName(Strings.ADAMANTINE_CHESTPLATE_NAME); - adamantineLeggings = new ItemArmorAdamantine(ItemIds.ADAMANTINE_LEGGINGS, EnumArmor.Adamantine, MysticWorld.proxy.addArmor(EnumArmor.Adamantine.name()), 2) + adamantineLeggings = new ItemArmorAdamantine(EnumArmor.Adamantine, 2) .setUnlocalizedName(Strings.ADAMANTINE_LEGGINGS_NAME); - adamantineBoots = new ItemArmorAdamantine(ItemIds.ADAMANTINE_BOOTS, EnumArmor.Adamantine, MysticWorld.proxy.addArmor(EnumArmor.Adamantine.name()), 3) + adamantineBoots = new ItemArmorAdamantine(EnumArmor.Adamantine, 3) .setUnlocalizedName(Strings.ADAMANTINE_BOOTS_NAME); - iridiumHelmet = new ItemArmorIridium(ItemIds.IRIDIUM_HELMET, EnumArmor.Iridium, MysticWorld.proxy.addArmor(EnumArmor.Iridium.name()), 0).setUnlocalizedName(Strings.IRIDIUM_HELMET_NAME); - iridiumChestplate = new ItemArmorIridium(ItemIds.IRIDIUM_CHESTPLATE, EnumArmor.Iridium, MysticWorld.proxy.addArmor(EnumArmor.Iridium.name()), 1) + iridiumHelmet = new ItemArmorIridium(EnumArmor.Iridium, 0).setUnlocalizedName(Strings.IRIDIUM_HELMET_NAME); + iridiumChestplate = new ItemArmorIridium(EnumArmor.Iridium, 1) .setUnlocalizedName(Strings.IRIDIUM_CHESTPLATE_NAME); - iridiumLeggings = new ItemArmorIridium(ItemIds.IRIDIUM_LEGGINGS, EnumArmor.Iridium, MysticWorld.proxy.addArmor(EnumArmor.Iridium.name()), 2).setUnlocalizedName(Strings.IRIDIUM_LEGGINGS_NAME); - iridiumBoots = new ItemArmorIridium(ItemIds.IRIDIUM_BOOTS, EnumArmor.Iridium, MysticWorld.proxy.addArmor(EnumArmor.Iridium.name()), 3).setUnlocalizedName(Strings.IRIDIUM_BOOTS_NAME); - voidShard = new ItemVoidShard(ItemIds.VOID_SHARD).setUnlocalizedName(Strings.VOID_SHARD_NAME).setTextureName("mysticworld:ShardVoid"); + iridiumLeggings = new ItemArmorIridium(EnumArmor.Iridium, 2).setUnlocalizedName(Strings.IRIDIUM_LEGGINGS_NAME); + iridiumBoots = new ItemArmorIridium(EnumArmor.Iridium, 3).setUnlocalizedName(Strings.IRIDIUM_BOOTS_NAME); + voidShard = new ItemVoidShard().setUnlocalizedName(Strings.VOID_SHARD_NAME).setTextureName("mysticworld:ShardVoid"); } } diff --git a/common/mysticworld/tiles/TileEntityPillarInsert.java b/common/mysticworld/tiles/TileEntityPillarInsert.java index c74307f..dea1dfa 100644 --- a/common/mysticworld/tiles/TileEntityPillarInsert.java +++ b/common/mysticworld/tiles/TileEntityPillarInsert.java @@ -1,9 +1,9 @@ package mysticworld.tiles; 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.network.NetworkManager; +import net.minecraft.network.Packet; +import net.minecraft.network.play.server.S35PacketUpdateTileEntity; import net.minecraft.tileentity.TileEntity; public class TileEntityPillarInsert extends TileEntity { @@ -11,21 +11,11 @@ public class TileEntityPillarInsert extends TileEntity { public Packet getDescriptionPacket() { NBTTagCompound nbtTag = new NBTTagCompound(); this.writeToNBT(nbtTag); - return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, nbtTag); + return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 1, nbtTag); } @Override - public void onDataPacket(INetworkManager net, Packet132TileEntityData packet) { - readFromNBT(packet.data); - } - - @Override - public void readFromNBT(NBTTagCompound par1) { - super.readFromNBT(par1); - } - - @Override - public void writeToNBT(NBTTagCompound par1) { - super.writeToNBT(par1); + public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet) { + readFromNBT(packet.func_148857_g()); } } From 6197b7eca17aa5bd8f463a7d82e388b408594d87 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 3 Mar 2014 18:48:18 +0100 Subject: [PATCH 32/59] Regitered items-Removed useless one --- common/MysticWorld/Client/ClientProxy.java | 14 +++--- common/MysticWorld/Items/ItemBushFruit.java | 1 - common/MysticWorld/Items/ItemImbuedShard.java | 1 - common/MysticWorld/Items/ItemStaffPower.java | 43 ------------------- common/MysticWorld/Lib/Strings.java | 6 +-- .../Renderer/RenderStaffPower.java | 27 ++++-------- common/mysticworld/CommonProxy.java | 3 -- common/mysticworld/items/ItemHandler.java | 37 ++++++++-------- 8 files changed, 36 insertions(+), 96 deletions(-) delete mode 100644 common/MysticWorld/Items/ItemStaffPower.java diff --git a/common/MysticWorld/Client/ClientProxy.java b/common/MysticWorld/Client/ClientProxy.java index e330a01..03ee013 100644 --- a/common/MysticWorld/Client/ClientProxy.java +++ b/common/MysticWorld/Client/ClientProxy.java @@ -62,20 +62,20 @@ public class ClientProxy extends CommonProxy { BlockPillarInsert.RENDER_PILLAR_INSERT = RenderingRegistry.getNextAvailableRenderId(); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockHandler.pillarInsert), new BlockPillarInsertRenderer()); MinecraftForgeClient.registerItemRenderer(ItemHandler.fireStaff, new StaffItemRenderer("Fire")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.waterStaff, new StaffItemRenderer("Water")); MinecraftForgeClient.registerItemRenderer(ItemHandler.earthStaff, new StaffItemRenderer("Earth")); MinecraftForgeClient.registerItemRenderer(ItemHandler.airStaff, new StaffItemRenderer("Air")); MinecraftForgeClient.registerItemRenderer(ItemHandler.energyStaff, new StaffItemRenderer("Energy")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.waterStaff, new StaffItemRenderer("Water")); MinecraftForgeClient.registerItemRenderer(ItemHandler.fireOrb, new OrbItemRenderer("Fire")); + MinecraftForgeClient.registerItemRenderer(ItemHandler.waterOrb, new OrbItemRenderer("Water")); MinecraftForgeClient.registerItemRenderer(ItemHandler.earthOrb, new OrbItemRenderer("Earth")); MinecraftForgeClient.registerItemRenderer(ItemHandler.airOrb, new OrbItemRenderer("Air")); MinecraftForgeClient.registerItemRenderer(ItemHandler.energyOrb, new OrbItemRenderer("Energy")); - MinecraftForgeClient.registerItemRenderer(ItemHandler.waterOrb, new OrbItemRenderer("Water")); - RenderingRegistry.registerEntityRenderingHandler(EntityChargeFire.class, new RenderStaffPower(0)); - RenderingRegistry.registerEntityRenderingHandler(EntityChargeWater.class, new RenderStaffPower(1)); - RenderingRegistry.registerEntityRenderingHandler(EntityChargeEarth.class, new RenderStaffPower(2)); - RenderingRegistry.registerEntityRenderingHandler(EntityChargeAir.class, new RenderStaffPower(3)); - RenderingRegistry.registerEntityRenderingHandler(EntityChargeEnergy.class, new RenderStaffPower(4)); + RenderingRegistry.registerEntityRenderingHandler(EntityChargeFire.class, new RenderStaffPower("Fire")); + RenderingRegistry.registerEntityRenderingHandler(EntityChargeWater.class, new RenderStaffPower("Water")); + RenderingRegistry.registerEntityRenderingHandler(EntityChargeEarth.class, new RenderStaffPower("Earth")); + RenderingRegistry.registerEntityRenderingHandler(EntityChargeAir.class, new RenderStaffPower("Air")); + RenderingRegistry.registerEntityRenderingHandler(EntityChargeEnergy.class, new RenderStaffPower("Energy")); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPillarInsert.class, new TileEntityPillarInsertRenderer()); } diff --git a/common/MysticWorld/Items/ItemBushFruit.java b/common/MysticWorld/Items/ItemBushFruit.java index ce12fad..e9d8765 100644 --- a/common/MysticWorld/Items/ItemBushFruit.java +++ b/common/MysticWorld/Items/ItemBushFruit.java @@ -28,7 +28,6 @@ public class ItemBushFruit extends ItemFood { this.setCreativeTab(MysticWorld.MysticWorldTab); maxStackSize = 64; setAlwaysEdible(); - setUnlocalizedName("bushFruit"); } @Override diff --git a/common/MysticWorld/Items/ItemImbuedShard.java b/common/MysticWorld/Items/ItemImbuedShard.java index a31ab59..782c234 100644 --- a/common/MysticWorld/Items/ItemImbuedShard.java +++ b/common/MysticWorld/Items/ItemImbuedShard.java @@ -20,7 +20,6 @@ public class ItemImbuedShard extends Item { public ItemImbuedShard() { super(); this.setHasSubtypes(true); - this.setUnlocalizedName(Strings.IMBUED_SHARD_NAME); this.setCreativeTab(MysticWorld.MysticWorldTab); } diff --git a/common/MysticWorld/Items/ItemStaffPower.java b/common/MysticWorld/Items/ItemStaffPower.java deleted file mode 100644 index 025e775..0000000 --- a/common/MysticWorld/Items/ItemStaffPower.java +++ /dev/null @@ -1,43 +0,0 @@ -package mysticworld.items; - -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.util.IIcon; -import net.minecraft.util.MathHelper; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class ItemStaffPower extends Item { - private IIcon[] icons; - private static final String[] CHARGE_NAMES = new String[] { "Fire", "Water", "Earth", "Air", "Energy" }; - - public ItemStaffPower() { - super(); - this.setHasSubtypes(true); - this.setCreativeTab(null); - maxStackSize = 64; - } - - @Override - @SideOnly(Side.CLIENT) - public IIcon getIconFromDamage(int meta) { - int j = MathHelper.clamp_int(meta, 0, 5); - return icons[j]; - } - - @Override - public String getUnlocalizedName(ItemStack itemStack) { - int meta = MathHelper.clamp_int(itemStack.getItemDamage(), 0, 5); - return super.getUnlocalizedName() + CHARGE_NAMES[meta]; - } - - @Override - @SideOnly(Side.CLIENT) - public void registerIcons(IIconRegister iconRegister) { - icons = new IIcon[CHARGE_NAMES.length]; - for (int i = 0; i < CHARGE_NAMES.length; ++i) { - icons[i] = iconRegister.registerIcon("mysticworld:Charge" + CHARGE_NAMES[i]); - } - } -} diff --git a/common/MysticWorld/Lib/Strings.java b/common/MysticWorld/Lib/Strings.java index efa79f0..82c2398 100644 --- a/common/MysticWorld/Lib/Strings.java +++ b/common/MysticWorld/Lib/Strings.java @@ -25,10 +25,6 @@ public class Strings { public static final String PILLAR_INSERT_NAME = "pillarInsert"; //Item Names - public static final String STAFF_HILT_NAME = "staffHilt"; - public static final String STAFF_HANDLE_NAME = "staffHandle"; - public static final String STAFF_HEAD_NAME = "staffHead"; - public static final String STAFF_NAME = "staff"; public static final String IMBUED_SHARD_NAME = "imbuedShard"; @@ -38,7 +34,7 @@ public class Strings { public static final String AIR_STAFF_NAME = "airStaff"; public static final String ENERGY_STAFF_NAME = "energyStaff"; - public static final String POWER_STAFF_NAME = "staffPoweredItem"; + public static final String STAFF_PART_NAME = "mysticworld:staffparts"; public static final String FIRE_ORB_NAME = "fireOrb"; public static final String WATER_ORB_NAME = "waterOrb"; diff --git a/common/MysticWorld/Renderer/RenderStaffPower.java b/common/MysticWorld/Renderer/RenderStaffPower.java index 7f9380f..569231d 100644 --- a/common/MysticWorld/Renderer/RenderStaffPower.java +++ b/common/MysticWorld/Renderer/RenderStaffPower.java @@ -1,21 +1,17 @@ package mysticworld.renderer; -import mysticworld.items.ItemHandler; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; -import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.entity.Entity; -import net.minecraft.util.IIcon; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; public class RenderStaffPower extends Render { - private int meta = 0; - - public RenderStaffPower(int par1) { - this.meta = par1; + private final ResourceLocation location; + public RenderStaffPower(String type) { + location = new ResourceLocation("mysticworld","textures/items/Charge"+type+".png"); } @Override @@ -26,14 +22,9 @@ public class RenderStaffPower extends Render { public void doRenderEntity(Entity entity, double par2, double par4, double par6, float par8, float par9) { GL11.glPushMatrix(); this.bindEntityTexture(entity); - GL11.glTranslatef((float) par2, (float) par4, (float) par6); + GL11.glTranslatef((float) par2, (float) par4, (float) par6); GL11.glEnable(GL12.GL_RESCALE_NORMAL); - IIcon icon = ItemHandler.staffPower.getIconFromDamage(this.meta); Tessellator tessellator = Tessellator.instance; - float f3 = icon.getMinU(); - float f4 = icon.getMaxU(); - float f5 = icon.getMinV(); - float f6 = icon.getMaxV(); float f7 = 1.0F; float f8 = 0.5F; float f9 = 0.25F; @@ -41,10 +32,10 @@ public class RenderStaffPower extends Render { GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F); tessellator.startDrawingQuads(); tessellator.setNormal(0.0F, 1.0F, 0.0F); - tessellator.addVertexWithUV(0.0F - f8, 0.0F - f9, 0.0D, f3, f6); - tessellator.addVertexWithUV(f7 - f8, 0.0F - f9, 0.0D, f4, f6); - tessellator.addVertexWithUV(f7 - f8, 1.0F - f9, 0.0D, f4, f5); - tessellator.addVertexWithUV(0.0F - f8, 1.0F - f9, 0.0D, f3, f5); + tessellator.addVertexWithUV(0.0F - f8, 0.0F - f9, 0.0D, 0, 1); + tessellator.addVertexWithUV(f7 - f8, 0.0F - f9, 0.0D, 1, 1); + tessellator.addVertexWithUV(f7 - f8, 1.0F - f9, 0.0D, 1, 0); + tessellator.addVertexWithUV(0.0F - f8, 1.0F - f9, 0.0D, 0, 0); tessellator.draw(); GL11.glDisable(GL12.GL_RESCALE_NORMAL); GL11.glPopMatrix(); @@ -52,6 +43,6 @@ public class RenderStaffPower extends Render { @Override protected ResourceLocation getEntityTexture(Entity par1Entity) { - return TextureMap.locationItemsTexture; + return location; } } diff --git a/common/mysticworld/CommonProxy.java b/common/mysticworld/CommonProxy.java index 21fc9e8..c2ba2d8 100644 --- a/common/mysticworld/CommonProxy.java +++ b/common/mysticworld/CommonProxy.java @@ -3,9 +3,6 @@ package mysticworld; import net.minecraft.world.World; public class CommonProxy { - public int addArmor(String armor) { - return 0; - } public void airFeetFX(World worldObj, double x, double y, double z, float scale, int age) { } diff --git a/common/mysticworld/items/ItemHandler.java b/common/mysticworld/items/ItemHandler.java index cc15932..71638cd 100644 --- a/common/mysticworld/items/ItemHandler.java +++ b/common/mysticworld/items/ItemHandler.java @@ -1,8 +1,11 @@ package mysticworld.items; +import cpw.mods.fml.common.registry.GameRegistry; import mysticworld.lib.Strings; import net.minecraft.item.Item; +import java.lang.reflect.Field; + public class ItemHandler { public static Item staffParts; public static Item imbuedShard; @@ -42,43 +45,41 @@ public class ItemHandler { public static Item voidShard; public static void init() { - staffParts = new ItemStaffParts(); - imbuedShard = new ItemImbuedShard(); - bushFruit = new ItemBushFruit(2); + staffParts = new ItemStaffParts().setUnlocalizedName(Strings.STAFF_PART_NAME); + imbuedShard = new ItemImbuedShard().setUnlocalizedName(Strings.IMBUED_SHARD_NAME); + bushFruit = new ItemBushFruit(2).setUnlocalizedName(Strings.BUSH_FRUIT_NAME); fireStaff = new ItemStaffFire().setUnlocalizedName(Strings.FIRE_STAFF_NAME); waterStaff = new ItemStaffWater().setUnlocalizedName(Strings.WATER_STAFF_NAME); earthStaff = new ItemStaffEarth().setUnlocalizedName(Strings.EARTH_STAFF_NAME); airStaff = new ItemStaffAir().setUnlocalizedName(Strings.AIR_STAFF_NAME); energyStaff = new ItemStaffEnegy().setUnlocalizedName(Strings.ENERGY_STAFF_NAME); - staffPower = new ItemStaffPower(); fireOrb = new ItemOrbFire().setUnlocalizedName(Strings.FIRE_ORB_NAME); waterOrb = new ItemOrbWater().setUnlocalizedName(Strings.WATER_ORB_NAME); earthOrb = new ItemOrbEarth().setUnlocalizedName(Strings.EARTH_ORB_NAME); airOrb = new ItemOrbAir().setUnlocalizedName(Strings.AIR_ORB_NAME); energyOrb = new ItemOrbEnergy().setUnlocalizedName(Strings.ENERGY_ORB_NAME); verditeHelmet = new ItemArmorVerdite(EnumArmor.Verdite, 0).setUnlocalizedName(Strings.VERDITE_HELMET_NAME); - verditeChestplate = new ItemArmorVerdite(EnumArmor.Verdite, 1) - .setUnlocalizedName(Strings.VERDITE_CHESTPLATE_NAME); + verditeChestplate = new ItemArmorVerdite(EnumArmor.Verdite, 1).setUnlocalizedName(Strings.VERDITE_CHESTPLATE_NAME); verditeLeggings = new ItemArmorVerdite(EnumArmor.Verdite, 2).setUnlocalizedName(Strings.VERDITE_LEGGINGS_NAME); verditeBoots = new ItemArmorVerdite(EnumArmor.Verdite, 3).setUnlocalizedName(Strings.VERDITE_BOOTS_NAME); mithrilHelmet = new ItemArmorMithril(EnumArmor.Mithril, 0).setUnlocalizedName(Strings.MITHRIL_HELMET_NAME); - mithrilChestplate = new ItemArmorMithril(EnumArmor.Mithril, 1) - .setUnlocalizedName(Strings.MITHRIL_CHESTPLATE_NAME); + mithrilChestplate = new ItemArmorMithril(EnumArmor.Mithril, 1).setUnlocalizedName(Strings.MITHRIL_CHESTPLATE_NAME); mithrilLeggings = new ItemArmorMithril(EnumArmor.Mithril, 2).setUnlocalizedName(Strings.MITHRIL_LEGGINGS_NAME); mithrilBoots = new ItemArmorMithril(EnumArmor.Mithril, 3).setUnlocalizedName(Strings.MITHRIL_BOOTS_NAME); - adamantineHelmet = new ItemArmorAdamantine(EnumArmor.Adamantine, 0) - .setUnlocalizedName(Strings.ADAMANTINE_HELMET_NAME); - adamantineChestplate = new ItemArmorAdamantine(EnumArmor.Adamantine, 1) - .setUnlocalizedName(Strings.ADAMANTINE_CHESTPLATE_NAME); - adamantineLeggings = new ItemArmorAdamantine(EnumArmor.Adamantine, 2) - .setUnlocalizedName(Strings.ADAMANTINE_LEGGINGS_NAME); - adamantineBoots = new ItemArmorAdamantine(EnumArmor.Adamantine, 3) - .setUnlocalizedName(Strings.ADAMANTINE_BOOTS_NAME); + adamantineHelmet = new ItemArmorAdamantine(EnumArmor.Adamantine, 0).setUnlocalizedName(Strings.ADAMANTINE_HELMET_NAME); + adamantineChestplate = new ItemArmorAdamantine(EnumArmor.Adamantine, 1).setUnlocalizedName(Strings.ADAMANTINE_CHESTPLATE_NAME); + adamantineLeggings = new ItemArmorAdamantine(EnumArmor.Adamantine, 2).setUnlocalizedName(Strings.ADAMANTINE_LEGGINGS_NAME); + adamantineBoots = new ItemArmorAdamantine(EnumArmor.Adamantine, 3).setUnlocalizedName(Strings.ADAMANTINE_BOOTS_NAME); iridiumHelmet = new ItemArmorIridium(EnumArmor.Iridium, 0).setUnlocalizedName(Strings.IRIDIUM_HELMET_NAME); - iridiumChestplate = new ItemArmorIridium(EnumArmor.Iridium, 1) - .setUnlocalizedName(Strings.IRIDIUM_CHESTPLATE_NAME); + iridiumChestplate = new ItemArmorIridium(EnumArmor.Iridium, 1).setUnlocalizedName(Strings.IRIDIUM_CHESTPLATE_NAME); iridiumLeggings = new ItemArmorIridium(EnumArmor.Iridium, 2).setUnlocalizedName(Strings.IRIDIUM_LEGGINGS_NAME); iridiumBoots = new ItemArmorIridium(EnumArmor.Iridium, 3).setUnlocalizedName(Strings.IRIDIUM_BOOTS_NAME); voidShard = new ItemVoidShard().setUnlocalizedName(Strings.VOID_SHARD_NAME).setTextureName("mysticworld:ShardVoid"); + for(Field f:ItemHandler.class.getFields()){ + try{ + Item item = (Item)f.get(null); + GameRegistry.registerItem(item,item.getUnlocalizedName()); + }catch (Exception e){} + } } } From bf9af1a51d9e0338dc41fbe8c68f3d1626a871ce Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 3 Mar 2014 18:49:37 +0100 Subject: [PATCH 33/59] Cleaned things --- common/MysticOres/Items/Items.java | 7 ++----- common/MysticOres/Util/RecipeManager.java | 6 +++--- common/MysticRuins/MysticRuins.java | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index e4b069c..8cb882a 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -20,7 +20,7 @@ public class Items { public static Item Satchel; public static void initialize() { - Resource = new ItemResource(); + Resource = new ItemResource().setUnlocalizedName("mysticores:resources"); VerditeSword = new ItemSword(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticores:VerditeSword") .setCreativeTab(MysticOres.MysticOresTab); VerditePickaxe = new ItemPick(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticores:VerditePickaxe") @@ -81,10 +81,7 @@ public class Items { Item it = (Item) f.get(null); GameRegistry.registerItem(it,it.getUnlocalizedName()); } - } catch (IllegalArgumentException e) { - e.printStackTrace(); - } catch (IllegalAccessException e) { - e.printStackTrace(); + } catch (Exception e) { } } } diff --git a/common/MysticOres/Util/RecipeManager.java b/common/MysticOres/Util/RecipeManager.java index 4e8488b..0ca7d0d 100644 --- a/common/MysticOres/Util/RecipeManager.java +++ b/common/MysticOres/Util/RecipeManager.java @@ -38,11 +38,11 @@ public class RecipeManager { private static void recipes() { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.glass, 1), "##", "##", '#', OreDictManager.INGOTS[11])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.obsidian, 1), "##", "##", '#', OreDictManager.INGOTS[12])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 7), "XXX", "XOX", "XXX", Character.valueOf('X'), Blocks.dirt, Character.valueOf('O'), + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 7), "XXX", "XOX", "XXX", 'X', Blocks.dirt, 'O', OreDictManager.INGOTS[6])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 16, 7), "XXX", "XOX", "XXX", Character.valueOf('X'), OreDictManager.ORES[3], Character.valueOf('O'), + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 16, 7), "XXX", "XOX", "XXX", 'X', OreDictManager.ORES[3], 'O', OreDictManager.INGOTS[6])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 3), "XXX", "XOX", "XXX", Character.valueOf('X'), Blocks.dirt, Character.valueOf('O'), + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 3), "XXX", "XOX", "XXX", 'X', Blocks.dirt, 'O', OreDictManager.INGOTS[8])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 12), "###", "#D#", "###", '#', OreDictManager.INGOTS[11], 'D', OreDictManager.INGOTS[12])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 1, 7), "##", "##", '#', OreDictManager.INGOTS[10])); diff --git a/common/MysticRuins/MysticRuins.java b/common/MysticRuins/MysticRuins.java index 9825303..f6c1b21 100644 --- a/common/MysticRuins/MysticRuins.java +++ b/common/MysticRuins/MysticRuins.java @@ -5,7 +5,7 @@ import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; -@Mod(modid = "MysticRuins", name = "Mystic Ruins", version = "0.1") +@Mod(modid = "mysticruins", name = "Mystic Ruins", version = "0.1") public class MysticRuins { public static boolean ENABLE = true; @EventHandler From f181a51ca09028802f43777952f801af9b07fdba Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 4 Mar 2014 01:22:48 +0100 Subject: [PATCH 34/59] Changed ruins to use chance within tries per chunk --- common/MysticRuins/Config.java | 8 ++-- common/MysticRuins/StructureRuin$1.java | 62 ++++++++++--------------- common/mysticruins/WorldGenMystic.java | 44 ++++++++++-------- 3 files changed, 53 insertions(+), 61 deletions(-) diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index e8df56e..6a795ff 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -69,17 +69,17 @@ public class Config { build.append(","); } config.addCustomCategoryComment("General", build.toString()); - RuinRarity = config.get("General", "Ruin Rarity", 2, "Tries per chunk : lower to make rarer").getInt(); - DunRarity = config.get("General", "Mystic Dungeon Rarity", 1, "Tries per chunk : lower to make rarer").getInt(); + RuinRarity = config.get("General", "Ruin Rarity", 200, "Chance per chunk : lower to make rarer").getInt(); + DunRarity = config.get("General", "Mystic Dungeon Rarity", 100, "Chance per chunk : lower to make rarer").getInt(); String[] ID; for (int i = 0; i < allows.length; i++) { ID = config .get("General", allows[i], i < 2 ? "0,[2;10]" : "ALL,-WATER", i < 2 ? "Use [id1;id2] to add a range of id, prefix with - to exclude" : "Use ALL or * for all biomes, select with biome id or biome tags, prefix with - to exclude") .getString().split(","); - allowId[i] = new HashSet(); + allowId[i] = new HashSet(); if (i > 1) { - allowType[i - 2] = new HashSet(); + allowType[i - 2] = new HashSet(); } for (String txt : ID) { if (i > 1 && txt.startsWith("-")) { diff --git a/common/MysticRuins/StructureRuin$1.java b/common/MysticRuins/StructureRuin$1.java index 4886e2a..edf1d21 100644 --- a/common/MysticRuins/StructureRuin$1.java +++ b/common/MysticRuins/StructureRuin$1.java @@ -29,36 +29,32 @@ public class StructureRuin$1 extends WorldGenerator { int i3 = random.nextInt(8) + 5; int l3 = random.nextInt(8) + 5; int k4 = random.nextInt(4) + 3; - int j5 = 1; - int i6 = 0; - int l6 = 1; - boolean flag = false; - int k7 = random.nextInt(100); int j8 = random.nextInt(100); + int j5; if (j8 <= 20) { j5 = 0; } else { j5 = random.nextInt(4) + 5; } setBlock(world, j1, k1 - j5, l1, Blocks.stonebrick); - setBlockAndMetadata(world, j1, (k1 - j5) + 1, l1, Blocks.stonebrick, 1); setBlock(world, j1, (k1 - j5) + 2, l1, Blocks.stonebrick); + setBlock(world, j1, (k1 - j5) + 4, l1 + 1, Blocks.stonebrick); + setBlock(world, j1, (k1 - j5) + 3, l1 + 2, Blocks.stonebrick); + setBlock(world, j1, (k1 - j5) + 1, l1 + 3, Blocks.stonebrick); + setBlock(world, j1, (k1 - j5) + 2, l1 + 3, Blocks.stonebrick); + setBlockAndMetadata(world, j1, k1 - j5, l1 + 3, Blocks.stonebrick, 1); + setBlockAndMetadata(world, j1, (k1 - j5) + 1, l1, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1, (k1 - j5) + 2, l1 + 1, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1, (k1 - j5) + 3, l1 + 1, Blocks.stonebrick, 1); - setBlock(world, j1, (k1 - j5) + 4, l1 + 1, Blocks.stonebrick); setBlockAndMetadata(world, j1, (k1 - j5) + 5, l1 + 1, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1, (k1 - j5) + 2, l1 + 2, Blocks.stonebrick, 1); - setBlock(world, j1, (k1 - j5) + 3, l1 + 2, Blocks.stonebrick); setBlockAndMetadata(world, j1, (k1 - j5) + 4, l1 + 2, Blocks.stonebrick, 1); - setBlockAndMetadata(world, j1, k1 - j5, l1 + 3, Blocks.stonebrick, 1); - setBlock(world, j1, (k1 - j5) + 1, l1 + 3, Blocks.stonebrick); - setBlock(world, j1, (k1 - j5) + 2, l1 + 3, Blocks.stonebrick); setBlock(world, j1, k1 - j5 - k4 - 1, l1 + 2, Blocks.dirt); setBlock(world, j1, k1 - j5 - k4, l1 + 2, Blocks.chest); ChestFiller.fillWithValuables(world.getTileEntity(j1, k1 - j5 - k4, l1 + 2)); - l6 = 1; - i6 = 0; - flag = false; + int l6 = 1; + int i6 = 0; + boolean flag = false; do { if (world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) || world.isAirBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 6) || world.getBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 4) == Blocks.water || world.getBlock(j1 + l3, k1 - j5 - l6, l1 + l3 + 5) == Blocks.water @@ -69,21 +65,21 @@ public class StructureRuin$1 extends WorldGenerator { } } while (!flag && l6++ < 12); setBlock(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick); + setBlock(world, j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick); + setBlock(world, j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick); + setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Blocks.stonebrick); + setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Blocks.stonebrick); setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1 + l3 + 1, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1 + l3 + 1, ((k1 - j5) + 1) - i6, l1 + l3 + 4, Blocks.stonebrick, 1); - setBlock(world, j1 + l3 + 2, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick); setBlockAndMetadata(world, j1 + l3 + 3, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1 + l3 + 4, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick, 1); - setBlock(world, j1 + l3 + 5, k1 - j5 - i6, l1 + l3 + 4, Blocks.stonebrick); setBlockAndMetadata(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 5, Blocks.stonebrick, 1); - setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 5, Blocks.stonebrick); setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 6, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 3) - i6, l1 + l3 + 6, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1 + l3, k1 - j5 - i6, l1 + l3 + 7, Blocks.stonebrick, 1); - setBlock(world, j1 + l3, ((k1 - j5) + 1) - i6, l1 + l3 + 7, Blocks.stonebrick); setBlockAndMetadata(world, j1 + l3, ((k1 - j5) + 2) - i6, l1 + l3 + 7, Blocks.stonebrick, 1); - k7 = random.nextInt(100); + int k7 = random.nextInt(100); if (k7 <= 30) { setBlock(world, j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5, Blocks.mob_spawner); TileEntityMobSpawner spawner = (TileEntityMobSpawner) world.getTileEntity(j1 + l3, k1 - j5 - i6 - k4, l1 + l3 + 5); @@ -122,12 +118,8 @@ public class StructureRuin$1 extends WorldGenerator { int j3 = random.nextInt(8) + 5; int i4 = random.nextInt(8) + 5; int l4 = random.nextInt(4) + 3; - int k5 = 1; - int j6 = 0; - int i7 = 1; - boolean flag1 = false; - int l7 = random.nextInt(100); int k8 = random.nextInt(100); + int k5; if (k8 <= 20) { k5 = 0; } else { @@ -146,9 +138,9 @@ public class StructureRuin$1 extends WorldGenerator { setBlockAndMetadata(world, j1 + 2, k1 - k5, l1, Blocks.stonebrick, 1); setBlock(world, j1, k1 - k5 - l4, l1 + 2, Blocks.dirt); setBlock(world, j1, k1 - k5 - l4 - 1, l1 + 2, Blocks.dirt); - i7 = 1; - j6 = 0; - flag1 = false; + int i7 = 1; + int j6 = 0; + boolean flag1 = false; do { if (world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 4) || world.isAirBlock(j1 - k2, k1 - k5 - i7, l1 - 5) || world.isAirBlock(j1 - k2 - 1, k1 - k5 - i7, l1 - 5) || world.getBlock(j1 - k2, k1 - k5 - i7, l1 - 4) == Blocks.water || world.getBlock(j1 - k2, k1 - k5 - i7, l1 - 5) == Blocks.water @@ -171,7 +163,7 @@ public class StructureRuin$1 extends WorldGenerator { setBlockAndMetadata(world, j1 - k2 - 1, ((k1 - k5) + 1) - j6, l1 - 5, Blocks.stonebrick, 1); setBlockAndMetadata(world, j1 - k2 - 1, ((k1 - k5) + 2) - j6, l1 - 5, Blocks.stonebrick, 1); setBlock(world, j1 - k2 - 2, k1 - k5 - j6, l1 - 5, Blocks.stonebrick); - l7 = random.nextInt(100); + int l7 = random.nextInt(100); if (l7 <= 30) { setBlock(world, j1 - k2 - 1, k1 - k5 - j6 - l4, l1 - 5, Blocks.dirt); setBlock(world, j1 - k2 - 1, k1 - k5 - j6 - l4 - 1, l1 - 5, Blocks.dirt); @@ -279,12 +271,8 @@ public class StructureRuin$1 extends WorldGenerator { int k3 = random.nextInt(8) + 5; int j4 = random.nextInt(8) + 5; int i5 = random.nextInt(4) + 3; - int l5 = 1; - int k6 = 0; - int j7 = 1; - boolean flag2 = false; - int i8 = random.nextInt(100); int l8 = random.nextInt(100); + int l5; if (l8 <= 20) { l5 = 0; } else { @@ -306,9 +294,9 @@ public class StructureRuin$1 extends WorldGenerator { setBlockAndMetadata(world, j1, (k1 - l5) + 1, l1 + 2, Blocks.stonebrick, 1); setBlock(world, j1, k1 - l5 - i5, l1 + 1, Blocks.dirt); setBlock(world, j1, k1 - l5 - i5 - 1, l1 + 1, Blocks.dirt); - j7 = 1; - k6 = 0; - flag2 = false; + int j7 = 1; + int k6 = 0; + boolean flag2 = false; do { if (world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) || world.isAirBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 4) || world.getBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 2) == Blocks.water || world.getBlock(j1 + k3 + l2, k1 - l5 - j7, l1 + j4 + 3) == Blocks.water @@ -334,7 +322,7 @@ public class StructureRuin$1 extends WorldGenerator { setBlockAndMetadata(world, j1 + k3 + l2, ((k1 - l5) + 1) - k6, l1 + j4 + 3, Blocks.stonebrick, 1); setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 4, Blocks.stonebrick); setBlock(world, j1 + k3 + l2, k1 - l5 - k6, l1 + j4 + 6, Blocks.stonebrick); - i8 = random.nextInt(100); + int i8 = random.nextInt(100); if (i8 <= 30) { setBlock(world, j1 + k3 + l2, k1 - l5 - k6 - i5, l1 + j4 + 1, Blocks.dirt); setBlock(world, j1 + k3 + l2, k1 - l5 - k6 - i5 - 1, l1 + j4 + 1, Blocks.dirt); diff --git a/common/mysticruins/WorldGenMystic.java b/common/mysticruins/WorldGenMystic.java index 0ccb1d9..9a9c73e 100644 --- a/common/mysticruins/WorldGenMystic.java +++ b/common/mysticruins/WorldGenMystic.java @@ -18,13 +18,13 @@ public class WorldGenMystic implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { - if (Config.allowId[0].contains(world.provider.dimensionId)) { + if (Config.RuinRarity>0 && Config.allowId[0].contains(world.provider.dimensionId)) { generateRuins(world, random, chunkX * 16, chunkZ * 16); } if (world.getWorldInfo().getTerrainType() == WorldType.FLAT) { return; } - if (Config.allowId[1].contains(world.provider.dimensionId)) { + if (Config.DunRarity>0 && Config.allowId[1].contains(world.provider.dimensionId)) { generateDungeon(world, random, chunkX * 16, chunkZ * 16); } } @@ -32,30 +32,34 @@ public class WorldGenMystic implements IWorldGenerator { private void generateDungeon(World world, Random random, int blockX, int blockZ) { int Xcoord1, Ycoord1, Zcoord1; BiomeGenBase biome; - for (int i = 0; i < Config.DunRarity; i++) { - Xcoord1 = blockX + random.nextInt(16) + 8; - Ycoord1 = random.nextInt(9) + 28; - Zcoord1 = blockZ + random.nextInt(16) + 8; - biome = world.getBiomeGenForCoords(Xcoord1, Zcoord1); - if (Config.allowId[3].contains(biome.biomeID) && Config.allowType[1].containsAll(Arrays.asList(BiomeDictionary.getTypesForBiome(biome)))) { - if (dungeon.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) - break; - } + for (int i = 0; i-Config.DunRarity/100<0F; i++) { + if(random.nextInt(Config.DunRarity)>1){ + Xcoord1 = blockX + random.nextInt(16) + 8; + Ycoord1 = random.nextInt(9) + 28; + Zcoord1 = blockZ + random.nextInt(16) + 8; + biome = world.getBiomeGenForCoords(Xcoord1, Zcoord1); + if (Config.allowId[3].contains(biome.biomeID) && Config.allowType[1].containsAll(Arrays.asList(BiomeDictionary.getTypesForBiome(biome)))) { + if (dungeon.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) + break; + } + } } } private void generateRuins(World world, Random random, int blockX, int blockZ) { int Xcoord1, Ycoord1, Zcoord1; BiomeGenBase biome; - for (int i = 0; i < Config.RuinRarity; i++) { - Xcoord1 = blockX + random.nextInt(16) + 8; - Ycoord1 = random.nextInt(11) + 60; - Zcoord1 = blockZ + random.nextInt(16) + 8; - biome = world.getBiomeGenForCoords(Xcoord1, Zcoord1); - if (Config.allowId[2].contains(biome.biomeID) && Config.allowType[0].containsAll(Arrays.asList(BiomeDictionary.getTypesForBiome(biome)))) { - if (ruin.generate(world, random, Xcoord1, Ycoord1, Zcoord1) || ruin1.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) - break; - } + for (int i = 0; i-Config.RuinRarity/100<0F; i++) { + if(random.nextInt(Config.RuinRarity)>1){ + Xcoord1 = blockX + random.nextInt(16) + 8; + Ycoord1 = random.nextInt(11) + 60; + Zcoord1 = blockZ + random.nextInt(16) + 8; + biome = world.getBiomeGenForCoords(Xcoord1, Zcoord1); + if (Config.allowId[2].contains(biome.biomeID) && Config.allowType[0].containsAll(Arrays.asList(BiomeDictionary.getTypesForBiome(biome)))) { + if (ruin.generate(world, random, Xcoord1, Ycoord1, Zcoord1) || ruin1.generate(world, random, Xcoord1, Ycoord1, Zcoord1)) + break; + } + } } } } \ No newline at end of file From 7022a18f5daeab74e2ab378e9db9214dc799ec9f Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 4 Mar 2014 01:23:27 +0100 Subject: [PATCH 35/59] Added gem transmutations recipes --- common/MysticOres/Util/RecipeManager.java | 89 ++++++++++++++++++++- common/MysticStones/Util/RecipeHandler.java | 9 +-- 2 files changed, 91 insertions(+), 7 deletions(-) diff --git a/common/MysticOres/Util/RecipeManager.java b/common/MysticOres/Util/RecipeManager.java index 0ca7d0d..a0a7e1e 100644 --- a/common/MysticOres/Util/RecipeManager.java +++ b/common/MysticOres/Util/RecipeManager.java @@ -9,7 +9,82 @@ import net.minecraftforge.oredict.ShapedOreRecipe; import net.minecraftforge.oredict.ShapelessOreRecipe; import cpw.mods.fml.common.registry.GameRegistry; +import java.util.HashMap; +import java.util.Map; + public class RecipeManager { + private static HashMap agateConverted = new HashMap(); + static{ + agateConverted.put("stone",new ItemStack(net.minecraft.init.Items.slime_ball,8)); + agateConverted.put(new ItemStack(Blocks.sand),new ItemStack(Blocks.grass,8)); + agateConverted.put(new ItemStack(net.minecraft.init.Items.reeds),new ItemStack(net.minecraft.init.Items.wheat,16)); + agateConverted.put(new ItemStack(net.minecraft.init.Items.slime_ball),new ItemStack(Blocks.cactus,32)); + agateConverted.put("shardGlass",new ItemStack(net.minecraft.init.Items.flint,8)); + agateConverted.put("plankWood",new ItemStack(Blocks.bookshelf,8)); + agateConverted.put("stickWood",new ItemStack(net.minecraft.init.Items.leather,8)); + agateConverted.put(new ItemStack(Blocks.dirt),new ItemStack(BlockHandler.BlockBase, 8, 7)); + agateConverted.put(new ItemStack(net.minecraft.init.Items.egg),new ItemStack(net.minecraft.init.Items.wheat_seeds, 32)); + agateConverted.put(new ItemStack(Blocks.gravel),new ItemStack(Blocks.coal_ore,8)); + agateConverted.put(new ItemStack(net.minecraft.init.Items.wheat_seeds),new ItemStack(Blocks.deadbush, 8)); + agateConverted.put(new ItemStack(Blocks.glass),new ItemStack(Blocks.wool,8,0)); + agateConverted.put(new ItemStack(net.minecraft.init.Items.iron_ingot),new ItemStack(Items.Resource, 16, 0)); + agateConverted.put("oreGold",new ItemStack(BlockHandler.BlockBase, 16, 7)); + agateConverted.put("cobblestone",new ItemStack(Blocks.mossy_cobblestone, 8, 0)); + agateConverted.put("treeSapling",new ItemStack(net.minecraft.init.Items.wheat_seeds,16,0)); + } + private static HashMap amethystConverted = new HashMap(); + static{ + amethystConverted.put(new ItemStack(net.minecraft.init.Items.egg), new ItemStack(net.minecraft.init.Items.cookie, 8)); + amethystConverted.put("plankWood", new ItemStack(Blocks.noteblock, 8)); + amethystConverted.put("shardObsidian", new ItemStack(Items.Resource, 8, 4)); + amethystConverted.put("stickWood", new ItemStack(Items.Resource, 8, 13)); + amethystConverted.put(new ItemStack(Blocks.dirt), new ItemStack(Blocks.iron_ore, 8)); + amethystConverted.put(new ItemStack(Blocks.brick_block), new ItemStack(Blocks.tnt, 8)); + amethystConverted.put("treeSapling", new ItemStack(Blocks.leaves, 16)); + amethystConverted.put("oreRedstone", new ItemStack(Blocks.diamond_ore, 4)); + amethystConverted.put(new ItemStack(net.minecraft.init.Items.slime_ball), new ItemStack(net.minecraft.init.Items.cake)); + amethystConverted.put(new ItemStack(Blocks.glass), new ItemStack(Blocks.lit_pumpkin, 8)); + amethystConverted.put("shardGlass", new ItemStack(Items.Resource, 8, 12)); + amethystConverted.put("stone", new ItemStack(Blocks.monster_egg, 8)); + amethystConverted.put(new ItemStack(Blocks.lapis_block), new ItemStack(net.minecraft.init.Items.diamond, 8)); + amethystConverted.put(new ItemStack(Blocks.sand), new ItemStack(Blocks.gold_ore, 16)); + amethystConverted.put(new ItemStack(net.minecraft.init.Items.reeds), new ItemStack(net.minecraft.init.Items.book, 8)); + } + private static HashMap tourmalineConverted = new HashMap(); + static{ + tourmalineConverted.put(new ItemStack(Blocks.sand), new ItemStack(Blocks.glass, 16)); + tourmalineConverted.put("oreCoal", new ItemStack(Blocks.lapis_ore, 8)); + tourmalineConverted.put(new ItemStack(net.minecraft.init.Items.egg), new ItemStack(net.minecraft.init.Items.sugar, 16)); + tourmalineConverted.put(new ItemStack(net.minecraft.init.Items.wheat_seeds), new ItemStack(Blocks.brown_mushroom, 8)); + tourmalineConverted.put(new ItemStack(Blocks.glass), new ItemStack(Blocks.snow_layer, 8)); + tourmalineConverted.put("stone", new ItemStack(Blocks.glass, 8)); + tourmalineConverted.put(new ItemStack(Blocks.iron_block), new ItemStack(Blocks.lapis_block, 8)); + tourmalineConverted.put("plankWood", new ItemStack(Blocks.sandstone, 16)); + tourmalineConverted.put("stickWood", new ItemStack(net.minecraft.init.Items.string, 8)); + tourmalineConverted.put(new ItemStack(Blocks.snow), new ItemStack(Blocks.ice, 8)); + tourmalineConverted.put("treeSapling", new ItemStack(net.minecraft.init.Items.reeds, 8)); + tourmalineConverted.put(new ItemStack(Blocks.dirt), new ItemStack(Blocks.snow, 8)); + tourmalineConverted.put(new ItemStack(net.minecraft.init.Items.reeds), new ItemStack(net.minecraft.init.Items.snowball, 16)); + tourmalineConverted.put(new ItemStack(net.minecraft.init.Items.slime_ball), new ItemStack(net.minecraft.init.Items.clay_ball, 16)); + } + private static HashMap topazeConverted = new HashMap(); + static{ + topazeConverted.put("stone", new ItemStack(Blocks.sandstone, 16)); + topazeConverted.put(new ItemStack(Blocks.iron_block), new ItemStack(Blocks.gold_block, 8)); + topazeConverted.put(new ItemStack(Blocks.sand), new ItemStack(Blocks.sponge, 8)); + topazeConverted.put("oreLapis", new ItemStack(Blocks.redstone_ore, 8)); + topazeConverted.put(new ItemStack(net.minecraft.init.Items.egg), new ItemStack(net.minecraft.init.Items.feather, 32)); + topazeConverted.put(new ItemStack(net.minecraft.init.Items.wheat), new ItemStack(Blocks.red_mushroom, 8)); + topazeConverted.put(new ItemStack(Blocks.glass), new ItemStack(Blocks.glowstone, 8)); + topazeConverted.put("shardObsidian", new ItemStack(Items.Resource, 16, 11)); + topazeConverted.put("cobblestone", new ItemStack(Blocks.netherrack, 16)); + topazeConverted.put("treeSapling", new ItemStack(Blocks.log, 16)); + topazeConverted.put(new ItemStack(Blocks.dirt), new ItemStack(Blocks.iron_ore, 8)); + topazeConverted.put(new ItemStack(net.minecraft.init.Items.reeds), new ItemStack(net.minecraft.init.Items.apple, 1)); + topazeConverted.put("shardGlass", new ItemStack(net.minecraft.init.Items.arrow, 32)); + topazeConverted.put("plankWood", new ItemStack(Blocks.wooden_door, 8)); + topazeConverted.put("stickWood", new ItemStack(net.minecraft.init.Items.bone, 8)); + } public static void initialize() { recipes(); toolRecipes(); @@ -23,7 +98,7 @@ public class RecipeManager { GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 2, 10), OreDictManager.INGOTS[9], OreDictManager.INGOTS[10])); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.gunpowder, 2), OreDictManager.INGOTS[9], net.minecraft.init.Items.gunpowder)); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 2, 4), OreDictManager.INGOTS[9], OreDictManager.INGOTS[4])); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.coal_ore, 2), OreDictManager.INGOTS[9], Blocks.coal_ore)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.coal_ore, 2), OreDictManager.INGOTS[9], "oreCoal")); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.iron_ore, 3), OreDictManager.INGOTS[9], "oreIron")); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.gold_ore, 3), OreDictManager.INGOTS[9], "oreGold")); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.redstone_ore, 2), OreDictManager.INGOTS[9], "oreRedstone")); @@ -54,6 +129,18 @@ public class RecipeManager { GameRegistry.addShapelessRecipe(new ItemStack(Items.Resource, 4, 11), Blocks.glass); GameRegistry.addShapelessRecipe(new ItemStack(Items.Resource, 4, 12), Blocks.obsidian); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 8, 9), OreDictManager.INGOTS[5], OreDictManager.INGOTS[7], OreDictManager.INGOTS[8], OreDictManager.INGOTS[6])); + for(Map.Entry entry:agateConverted.entrySet()){ + GameRegistry.addRecipe(new ShapedOreRecipe(entry.getValue(), "###", "#o#", "###", 'o', "gemAgate", '#', entry.getKey())); + } + for(Map.Entry entry:amethystConverted.entrySet()){ + GameRegistry.addRecipe(new ShapedOreRecipe(entry.getValue(), "###", "#o#", "###", 'o', "gemAmethyst", '#', entry.getKey())); + } + for(Map.Entry entry:tourmalineConverted.entrySet()){ + GameRegistry.addRecipe(new ShapedOreRecipe(entry.getValue(), "###", "#o#", "###", 'o', "gemTourmaline", '#', entry.getKey())); + } + for(Map.Entry entry:topazeConverted.entrySet()){ + GameRegistry.addRecipe(new ShapedOreRecipe(entry.getValue(), "###", "#o#", "###", 'o', "gemTopaz", '#', entry.getKey())); + } } private static void smelting() { diff --git a/common/MysticStones/Util/RecipeHandler.java b/common/MysticStones/Util/RecipeHandler.java index 030be19..9087037 100644 --- a/common/MysticStones/Util/RecipeHandler.java +++ b/common/MysticStones/Util/RecipeHandler.java @@ -6,7 +6,6 @@ import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraftforge.oredict.OreDictionary; import net.minecraftforge.oredict.ShapedOreRecipe; import net.minecraftforge.oredict.ShapelessOreRecipe; -import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.registry.GameRegistry; public class RecipeHandler { @@ -33,11 +32,9 @@ public class RecipeHandler { } public static void craftReinforced() { - if (Loader.isModLoaded("MysticOres")) { - for (int i = 0; i < MATERIALS.length; i++) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MysticStones.reinforcedBricks, 1, i), true, "#$#", "$$$", "#$#", '$', MATERIALS[i], '#', "stone")); - } - } + for (int i = 0; i < MATERIALS.length; i++) { + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MysticStones.reinforcedBricks, 1, i), true, "#$#", "$$$", "#$#", '$', MATERIALS[i], '#', "stone")); + } } public static void craftStoneBricks() { From 38f342cfc6b54ddf4af220500cab0d6186bb36d0 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 4 Mar 2014 16:20:28 +0100 Subject: [PATCH 36/59] Cleaned things --- common/MysticWorld/Blocks/BlockImbuedStone.java | 2 ++ common/MysticWorld/Blocks/BlockLightCube.java | 3 +++ common/MysticWorld/Blocks/BlockPillar.java | 1 - common/MysticWorld/Blocks/BlockPillarInsert.java | 1 + common/MysticWorld/Blocks/BlockPillarPlatform.java | 3 +++ common/MysticWorld/Blocks/BlockPlatform.java | 3 +++ 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/common/MysticWorld/Blocks/BlockImbuedStone.java b/common/MysticWorld/Blocks/BlockImbuedStone.java index 63a465a..771b7d6 100644 --- a/common/MysticWorld/Blocks/BlockImbuedStone.java +++ b/common/MysticWorld/Blocks/BlockImbuedStone.java @@ -45,11 +45,13 @@ public class BlockImbuedStone extends Block { } @Override + @SideOnly(Side.CLIENT) public IIcon getIcon(int side, int meta) { return textures[meta]; } @Override + @SideOnly(Side.CLIENT) public void getSubBlocks(Item i, CreativeTabs tab, List list) { for (int j = 0; j < 5; j++) { list.add(new ItemStack(i, 1, j)); diff --git a/common/MysticWorld/Blocks/BlockLightCube.java b/common/MysticWorld/Blocks/BlockLightCube.java index 8548e95..cac83b3 100644 --- a/common/MysticWorld/Blocks/BlockLightCube.java +++ b/common/MysticWorld/Blocks/BlockLightCube.java @@ -2,6 +2,8 @@ package mysticworld.blocks; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -22,6 +24,7 @@ public class BlockLightCube extends Block { } @Override + @SideOnly(Side.CLIENT) public void randomDisplayTick(World world, int x, int y, int z, Random random) { MysticWorld.proxy.lightCubeFX(world, x + random.nextDouble(), y + 0.75D, z + random.nextDouble(), 0.0D, 0.0D, 0.0D, 1.0F); MysticWorld.proxy.lightCubeFX(world, x + random.nextDouble(), y + 0.75D, z + random.nextDouble(), 0.0D, 0.0D, 0.0D, 1.0F); diff --git a/common/MysticWorld/Blocks/BlockPillar.java b/common/MysticWorld/Blocks/BlockPillar.java index a4c9d24..52dcdff 100644 --- a/common/MysticWorld/Blocks/BlockPillar.java +++ b/common/MysticWorld/Blocks/BlockPillar.java @@ -3,7 +3,6 @@ package mysticworld.blocks; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; -import net.minecraft.world.IBlockAccess; public class BlockPillar extends Block { public BlockPillar() { diff --git a/common/MysticWorld/Blocks/BlockPillarInsert.java b/common/MysticWorld/Blocks/BlockPillarInsert.java index eaf007d..2d9ae2b 100644 --- a/common/MysticWorld/Blocks/BlockPillarInsert.java +++ b/common/MysticWorld/Blocks/BlockPillarInsert.java @@ -35,6 +35,7 @@ public class BlockPillarInsert extends Block { } @Override + @SideOnly(Side.CLIENT) public int getRenderBlockPass() { return 1; } diff --git a/common/MysticWorld/Blocks/BlockPillarPlatform.java b/common/MysticWorld/Blocks/BlockPillarPlatform.java index 7467aa6..9ef339a 100644 --- a/common/MysticWorld/Blocks/BlockPillarPlatform.java +++ b/common/MysticWorld/Blocks/BlockPillarPlatform.java @@ -2,6 +2,8 @@ package mysticworld.blocks; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -26,6 +28,7 @@ public class BlockPillarPlatform extends Block { } @Override + @SideOnly(Side.CLIENT) public void randomDisplayTick(World world, int x, int y, int z, Random rand) { double posX = x; double posY = y; diff --git a/common/MysticWorld/Blocks/BlockPlatform.java b/common/MysticWorld/Blocks/BlockPlatform.java index c97973c..a9dc1e1 100644 --- a/common/MysticWorld/Blocks/BlockPlatform.java +++ b/common/MysticWorld/Blocks/BlockPlatform.java @@ -2,6 +2,8 @@ package mysticworld.blocks; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -28,6 +30,7 @@ public class BlockPlatform extends Block { } @Override + @SideOnly(Side.CLIENT) public void randomDisplayTick(World world, int x, int y, int z, Random rand) { double posX = x; double posY = y; From 99896f7a79a77bfff716407633d4e51ee312d1ed Mon Sep 17 00:00:00 2001 From: GotoLink Date: Fri, 7 Mar 2014 15:35:26 +0100 Subject: [PATCH 37/59] Fixed iridium helmet night vision flickering --- common/MysticWorld/Items/ItemArmorIridium.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/MysticWorld/Items/ItemArmorIridium.java b/common/MysticWorld/Items/ItemArmorIridium.java index b2b4939..b0a5905 100644 --- a/common/MysticWorld/Items/ItemArmorIridium.java +++ b/common/MysticWorld/Items/ItemArmorIridium.java @@ -29,19 +29,18 @@ public class ItemArmorIridium extends ItemArmor { @Override public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { ItemStack helmet = player.getEquipmentInSlot(4); - ItemStack plate = player.getEquipmentInSlot(3); - ItemStack legs = player.getEquipmentInSlot(2); - ItemStack boots = player.getEquipmentInSlot(1); if (helmet != null) { if (helmet.getItem() == ItemHandler.iridiumHelmet) { - player.addPotionEffect((new PotionEffect(Potion.nightVision.getId(), 200, 0))); + player.addPotionEffect((new PotionEffect(Potion.nightVision.getId(), 210, 0))); } } + ItemStack plate = player.getEquipmentInSlot(3); if (plate != null) { if (plate.getItem() == ItemHandler.iridiumChestplate) { player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 200, 0))); } } + ItemStack legs = player.getEquipmentInSlot(2); if (legs != null) { if (legs.getItem() == ItemHandler.iridiumLeggings) { player.addPotionEffect((new PotionEffect(Potion.moveSpeed.getId(), 200, 2))); @@ -49,6 +48,7 @@ public class ItemArmorIridium extends ItemArmor { player.stepHeight = 1.001F; } } + ItemStack boots = player.getEquipmentInSlot(1); if (boots != null) { if (boots.getItem() == ItemHandler.iridiumBoots) { player.fallDistance = 0.0F; From 5a4c8df305ec8ffdfbd0a5801b01d74b2ec5250e Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sun, 16 Mar 2014 23:36:08 +0100 Subject: [PATCH 38/59] Fixed reinforced glass being too transparent --- common/MysticOres/Blocks/BlockBase.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/MysticOres/Blocks/BlockBase.java b/common/MysticOres/Blocks/BlockBase.java index 86fd526..1bea703 100644 --- a/common/MysticOres/Blocks/BlockBase.java +++ b/common/MysticOres/Blocks/BlockBase.java @@ -13,6 +13,7 @@ import net.minecraft.entity.Entity; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; +import net.minecraft.util.Facing; import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.IBlockAccess; @@ -178,12 +179,11 @@ public class BlockBase extends Block { @Override @SideOnly(Side.CLIENT) - public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int par) { + public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int side) { int meta = world.getBlockMetadata(x, y, z); - Block blockID = world.getBlock(x, y, z); - if (meta == 12 && blockID == this) - return false; - else + if (meta == 12 && world.getBlock(x, y, z) == this){ + return !(world.getBlock(x-Facing.offsetsXForSide[side], y-Facing.offsetsYForSide[side], z-Facing.offsetsZForSide[side])==this&&world.getBlockMetadata(x-Facing.offsetsXForSide[side], y-Facing.offsetsYForSide[side], z-Facing.offsetsZForSide[side])==meta); + }else return true; } From c38060919f5c7cd1c9ca565dd36df649c977aaf8 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sun, 16 Mar 2014 23:36:30 +0100 Subject: [PATCH 39/59] Fixed entities rendering too close --- common/MysticWorld/Entity/EntityChargeAir.java | 6 ++++++ common/MysticWorld/Entity/EntityChargeEarth.java | 6 ++++++ common/MysticWorld/Entity/EntityChargeEnergy.java | 6 ++++++ common/MysticWorld/Entity/EntityChargeFire.java | 6 ++++++ common/MysticWorld/Entity/EntityChargeWater.java | 6 ++++++ 5 files changed, 30 insertions(+) diff --git a/common/MysticWorld/Entity/EntityChargeAir.java b/common/MysticWorld/Entity/EntityChargeAir.java index 3a510be..cd6066a 100644 --- a/common/MysticWorld/Entity/EntityChargeAir.java +++ b/common/MysticWorld/Entity/EntityChargeAir.java @@ -170,4 +170,10 @@ public class EntityChargeAir extends Entity { @Override protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { } + + @Override + @SideOnly(Side.CLIENT) + public boolean isInRangeToRenderDist(double par1){ + return par1 > 1.0D && super.isInRangeToRenderDist(par1); + } } \ No newline at end of file diff --git a/common/MysticWorld/Entity/EntityChargeEarth.java b/common/MysticWorld/Entity/EntityChargeEarth.java index c552b59..f26a020 100644 --- a/common/MysticWorld/Entity/EntityChargeEarth.java +++ b/common/MysticWorld/Entity/EntityChargeEarth.java @@ -189,4 +189,10 @@ public class EntityChargeEarth extends Entity { @Override protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { } + + @Override + @SideOnly(Side.CLIENT) + public boolean isInRangeToRenderDist(double par1){ + return par1 > 1.0D && super.isInRangeToRenderDist(par1); + } } diff --git a/common/MysticWorld/Entity/EntityChargeEnergy.java b/common/MysticWorld/Entity/EntityChargeEnergy.java index d05f54b..724a874 100644 --- a/common/MysticWorld/Entity/EntityChargeEnergy.java +++ b/common/MysticWorld/Entity/EntityChargeEnergy.java @@ -167,4 +167,10 @@ public class EntityChargeEnergy extends Entity { @Override protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { } + + @Override + @SideOnly(Side.CLIENT) + public boolean isInRangeToRenderDist(double par1){ + return par1 > 1.0D && super.isInRangeToRenderDist(par1); + } } \ No newline at end of file diff --git a/common/MysticWorld/Entity/EntityChargeFire.java b/common/MysticWorld/Entity/EntityChargeFire.java index 859c144..008677b 100644 --- a/common/MysticWorld/Entity/EntityChargeFire.java +++ b/common/MysticWorld/Entity/EntityChargeFire.java @@ -175,4 +175,10 @@ public class EntityChargeFire extends Entity { @Override protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { } + + @Override + @SideOnly(Side.CLIENT) + public boolean isInRangeToRenderDist(double par1){ + return par1 > 1.0D && super.isInRangeToRenderDist(par1); + } } diff --git a/common/MysticWorld/Entity/EntityChargeWater.java b/common/MysticWorld/Entity/EntityChargeWater.java index 8eb3aeb..45ac24d 100644 --- a/common/MysticWorld/Entity/EntityChargeWater.java +++ b/common/MysticWorld/Entity/EntityChargeWater.java @@ -172,4 +172,10 @@ public class EntityChargeWater extends Entity { @Override protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { } + + @Override + @SideOnly(Side.CLIENT) + public boolean isInRangeToRenderDist(double par1){ + return par1 > 1.0D && super.isInRangeToRenderDist(par1); + } } From 06f1cbcce9ac91cce912f468c3df25bd756f6c39 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sun, 16 Mar 2014 23:37:30 +0100 Subject: [PATCH 40/59] Fixed staves and orbs particles -Also fixed air stuff SMP crash --- common/MysticWorld/Items/ItemOrbAir.java | 31 ++++--- common/MysticWorld/Items/ItemOrbEarth.java | 2 +- common/MysticWorld/Items/ItemOrbEnergy.java | 8 +- common/MysticWorld/Items/ItemOrbFire.java | 8 +- common/MysticWorld/Items/ItemOrbWater.java | 5 +- common/MysticWorld/Items/ItemStaffAir.java | 85 ++++++++------------ common/MysticWorld/Items/ItemStaffEarth.java | 5 +- common/MysticWorld/Items/ItemStaffEnegy.java | 7 +- common/MysticWorld/Items/ItemStaffFire.java | 7 +- common/MysticWorld/Items/ItemStaffWater.java | 5 +- 10 files changed, 66 insertions(+), 97 deletions(-) diff --git a/common/MysticWorld/Items/ItemOrbAir.java b/common/MysticWorld/Items/ItemOrbAir.java index 99ac3e1..9eb75d7 100644 --- a/common/MysticWorld/Items/ItemOrbAir.java +++ b/common/MysticWorld/Items/ItemOrbAir.java @@ -8,8 +8,6 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.MathHelper; import net.minecraft.world.World; -import org.lwjgl.input.Mouse; - public class ItemOrbAir extends ItemOrb { public ItemOrbAir() { super(); @@ -25,6 +23,18 @@ public class ItemOrbAir extends ItemOrb { return itemStack; } + @Override + public void onPlayerStoppedUsing(ItemStack itemStack, World world, EntityPlayer player, int par4) { + if (itemStack.stackTagCompound.getInteger("chargeTime") > 0) { + if (player.onGround) { + world.playSoundEffect(player.posX, player.posY, player.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); + player.setVelocity(0.0D, 1.0D + (itemStack.stackTagCompound.getInteger("chargeTime")) * (2.5D * (1.0D / itemStack.stackTagCompound.getInteger("maxChargeTime"))), 0.0D); + itemStack.damageItem(1, player); + } + } + resetData(itemStack); + } + @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { if (itemStack.stackTagCompound == null) @@ -36,16 +46,7 @@ public class ItemOrbAir extends ItemOrb { if (par5) { player.fallDistance = 0.0F; chargeEffect(itemStack, world, player); - if (!Mouse.isButtonDown(1)) { - if (itemStack.stackTagCompound.getInteger("chargeTime") > 0) { - if (player.onGround) { - world.playSoundEffect(player.posX, player.posY, player.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - player.setVelocity(0.0D, 1.0D + (itemStack.stackTagCompound.getInteger("chargeTime")) * (2.5D * (1.0D / itemStack.stackTagCompound.getInteger("maxChargeTime"))), 0.0D); - itemStack.damageItem(1, player); - } - } - resetData(itemStack); - } else { + if (player.isUsingItem()) { if (itemStack.stackTagCompound.getBoolean("charging")) { incrementData(itemStack); } @@ -71,8 +72,7 @@ public class ItemOrbAir extends ItemOrb { private void chargeEffect(ItemStack itemStack, World world, EntityPlayer player) { double particleX = (player.posX - 0.5D) + rand.nextDouble(); double particleZ = (player.posZ - 0.5D) + rand.nextDouble(); - if (!world.isRemote) - MysticWorld.proxy.airFeetFX(world, particleX, player.posY, particleZ, 1.0f, 15); + MysticWorld.proxy.airFeetFX(world, particleX, player.posY, particleZ, 1.0f, 15); } private void incrementData(ItemStack itemStack) { @@ -93,7 +93,6 @@ public class ItemOrbAir extends ItemOrb { double particleY = player.posY; double particleZ = player.posZ + (MathHelper.sin(itemStack.stackTagCompound.getFloat("angle"))) * itemStack.stackTagCompound.getDouble("radius"); float particleScale = ((itemStack.stackTagCompound.getInteger("chargeTime")) * (5.0f * (1 / (float) itemStack.stackTagCompound.getInteger("maxChargeTime")))); - if (!world.isRemote) - MysticWorld.proxy.airFeetFX(world, particleX, particleY, particleZ, 1.0f + particleScale, 15); + MysticWorld.proxy.airFeetFX(world, particleX, particleY, particleZ, 1.0f + particleScale, 15); } } diff --git a/common/MysticWorld/Items/ItemOrbEarth.java b/common/MysticWorld/Items/ItemOrbEarth.java index e1ad6de..c0ac44c 100644 --- a/common/MysticWorld/Items/ItemOrbEarth.java +++ b/common/MysticWorld/Items/ItemOrbEarth.java @@ -30,7 +30,7 @@ public class ItemOrbEarth extends ItemOrb { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; - if (!world.isRemote && par5) { + if (par5) { MysticWorld.proxy.earthFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } diff --git a/common/MysticWorld/Items/ItemOrbEnergy.java b/common/MysticWorld/Items/ItemOrbEnergy.java index 81ef707..9202fa3 100644 --- a/common/MysticWorld/Items/ItemOrbEnergy.java +++ b/common/MysticWorld/Items/ItemOrbEnergy.java @@ -51,11 +51,9 @@ public class ItemOrbEnergy extends ItemOrb { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - if (!world.isRemote && par5) { - player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); - MysticWorld.proxy.energyFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); + if (entity instanceof EntityPlayer && par5) { + ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); + MysticWorld.proxy.energyFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemOrbFire.java b/common/MysticWorld/Items/ItemOrbFire.java index 8b1d909..3c155f2 100644 --- a/common/MysticWorld/Items/ItemOrbFire.java +++ b/common/MysticWorld/Items/ItemOrbFire.java @@ -1,7 +1,6 @@ package mysticworld.items; import mysticworld.MysticWorld; -import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; @@ -67,10 +66,9 @@ public class ItemOrbFire extends ItemOrb { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - EntityPlayer player = (EntityPlayer) entity; - if (!world.isRemote && par5) { - player.addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); - MysticWorld.proxy.fireFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); + if (entity instanceof EntityPlayer && par5) { + ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); + MysticWorld.proxy.fireFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemOrbWater.java b/common/MysticWorld/Items/ItemOrbWater.java index cb18d8f..368054a 100644 --- a/common/MysticWorld/Items/ItemOrbWater.java +++ b/common/MysticWorld/Items/ItemOrbWater.java @@ -74,9 +74,8 @@ public class ItemOrbWater extends ItemOrb { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - EntityPlayer player = (EntityPlayer) entity; - if (!world.isRemote && par5) { - MysticWorld.proxy.waterFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); + if (par5) { + MysticWorld.proxy.waterFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaffAir.java b/common/MysticWorld/Items/ItemStaffAir.java index e8376fa..f828809 100644 --- a/common/MysticWorld/Items/ItemStaffAir.java +++ b/common/MysticWorld/Items/ItemStaffAir.java @@ -1,15 +1,13 @@ package mysticworld.items; +import cpw.mods.fml.common.ObfuscationReflectionHelper; import mysticworld.MysticWorld; import mysticworld.entity.EntityChargeAir; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; -import org.lwjgl.input.Mouse; - public class ItemStaffAir extends ItemStaff { public ItemStaffAir() { super(); @@ -17,64 +15,45 @@ public class ItemStaffAir extends ItemStaff { @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { - if (itemStack.stackTagCompound == null) - itemStack.setTagCompound(new NBTTagCompound()); - if (!itemStack.stackTagCompound.getBoolean("charging")) { - itemStack.stackTagCompound.setBoolean("charging", true); - } + player.setItemInUse(itemStack, this.getMaxItemUseDuration(itemStack)); return itemStack; } + @Override + public int getMaxItemUseDuration(ItemStack itemStack){ + return 3*20; + } + + @Override + public void onPlayerStoppedUsing(ItemStack itemStack, World world, EntityPlayer player, int time) { + int charge = getMaxItemUseDuration(itemStack)-time; + if (charge > 0) { + if (!world.isRemote) { + world.playAuxSFXAtEntity(null, 1009, (int) player.posX, (int) player.posY, (int) player.posZ, 0); + world.spawnEntityInWorld(new EntityChargeAir(world, player, 1.0f + charge * (5.0f * (1 / (float) getMaxItemUseDuration(itemStack))), charge * (2.5D * (1.0D / getMaxItemUseDuration(itemStack))))); + itemStack.damageItem(1, player); + } + } + } + @Override - public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - if (itemStack.stackTagCompound == null) - itemStack.setTagCompound(new NBTTagCompound()); - EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - itemStack.stackTagCompound.setInteger("maxChargeTime", 3 * 20); - if (currentItem != null) { - if (currentItem.getItem() == itemStack.getItem()) { - player.fallDistance = 0.0F; - chargeEffect(itemStack, world, player); - if (!Mouse.isButtonDown(1)) { - if (itemStack.stackTagCompound.getInteger("chargeTime") > 0) { - if (!world.isRemote) { - world.playAuxSFXAtEntity(null, 1009, (int) player.posX, (int) player.posY, (int) player.posZ, 0); - world.spawnEntityInWorld(new EntityChargeAir(world, player, 1.0f + ((itemStack.stackTagCompound.getInteger("chargeTime")) * (5.0f * (1 / (float) itemStack.stackTagCompound - .getInteger("maxChargeTime")))), (itemStack.stackTagCompound.getInteger("chargeTime")) * (2.5D * (1.0D / itemStack.stackTagCompound.getInteger("maxChargeTime"))))); - itemStack.damageItem(1, player); - } - } - resetData(itemStack); - } else { - if (itemStack.stackTagCompound.getBoolean("charging") == true) { - incrementData(itemStack); - } - } - } - } else { - resetData(itemStack); - } - if (itemStack.stackTagCompound.getInteger("chargeTime") > itemStack.stackTagCompound.getInteger("maxChargeTime")) { - itemStack.stackTagCompound.setInteger("chargeTime", itemStack.stackTagCompound.getInteger("maxChargeTime")); + public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean current) { + if (current) { + entity.fallDistance = 0.0F; + if(entity instanceof EntityPlayer){ + if(((EntityPlayer) entity).isUsingItem()){ + int charge = ObfuscationReflectionHelper.getPrivateValue(EntityPlayer.class,(EntityPlayer) entity, "itemInUseCount", "field_71072_f"); + chargeEffect(itemStack, world, entity, getMaxItemUseDuration(itemStack) - charge); + } + } } } - private void chargeEffect(ItemStack itemStack, World world, EntityPlayer player) { + private void chargeEffect(ItemStack itemStack, World world, Entity player, int charge) { double particleX = (player.posX - 0.5D) + rand.nextDouble(); - double particleY = player.posY + (player.height / itemStack.stackTagCompound.getInteger("maxChargeTime") * itemStack.stackTagCompound.getInteger("chargeTime")); + double particleY = player.posY + (charge * player.height / getMaxItemUseDuration(itemStack)); double particleZ = (player.posZ - 0.5D) + rand.nextDouble(); - float particleScale = ((itemStack.stackTagCompound.getInteger("chargeTime")) * (5.0f * (1 / (float) itemStack.stackTagCompound.getInteger("maxChargeTime")))); - if (!world.isRemote) - MysticWorld.proxy.airFeetFX(world, particleX, particleY, particleZ, 1.0f + particleScale, 15); - } - - private void incrementData(ItemStack itemStack) { - itemStack.stackTagCompound.setInteger("chargeTime", itemStack.stackTagCompound.getInteger("chargeTime") + 1); - } - - private void resetData(ItemStack itemStack) { - itemStack.stackTagCompound.setInteger("chargeTime", 0); - itemStack.stackTagCompound.setBoolean("charging", false); + float particleScale = charge * (5.0f * (1 / (float) getMaxItemUseDuration(itemStack))); + MysticWorld.proxy.airFeetFX(world, particleX, particleY, particleZ, 1.0f + particleScale, 15); } } diff --git a/common/MysticWorld/Items/ItemStaffEarth.java b/common/MysticWorld/Items/ItemStaffEarth.java index 729a810..850736c 100644 --- a/common/MysticWorld/Items/ItemStaffEarth.java +++ b/common/MysticWorld/Items/ItemStaffEarth.java @@ -53,9 +53,8 @@ public class ItemStaffEarth extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - EntityPlayer player = (EntityPlayer) entity; - if (!world.isRemote && par5) { - MysticWorld.proxy.earthFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); + if (par5) { + MysticWorld.proxy.earthFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } diff --git a/common/MysticWorld/Items/ItemStaffEnegy.java b/common/MysticWorld/Items/ItemStaffEnegy.java index 706be06..03fad1d 100644 --- a/common/MysticWorld/Items/ItemStaffEnegy.java +++ b/common/MysticWorld/Items/ItemStaffEnegy.java @@ -77,10 +77,9 @@ public class ItemStaffEnegy extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - EntityPlayer player = (EntityPlayer) entity; - if (!world.isRemote && par5) { - player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); - MysticWorld.proxy.energyFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); + if (entity instanceof EntityPlayer && par5) { + ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); + MysticWorld.proxy.energyFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaffFire.java b/common/MysticWorld/Items/ItemStaffFire.java index 4c89a2b..5fb97be 100644 --- a/common/MysticWorld/Items/ItemStaffFire.java +++ b/common/MysticWorld/Items/ItemStaffFire.java @@ -81,10 +81,9 @@ public class ItemStaffFire extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - EntityPlayer player = (EntityPlayer) entity; - if (!world.isRemote && par5) { - player.addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); - MysticWorld.proxy.fireFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); + if (entity instanceof EntityPlayer && par5) { + ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); + MysticWorld.proxy.fireFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaffWater.java b/common/MysticWorld/Items/ItemStaffWater.java index 2c68cd5..6d665e4 100644 --- a/common/MysticWorld/Items/ItemStaffWater.java +++ b/common/MysticWorld/Items/ItemStaffWater.java @@ -87,9 +87,8 @@ public class ItemStaffWater extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - EntityPlayer player = (EntityPlayer) entity; - if (!world.isRemote && par5) { - MysticWorld.proxy.waterFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); + if (par5) { + MysticWorld.proxy.waterFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); } } } \ No newline at end of file From 338d0c20e77685533486ff4fecd68291a07c6575 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 22 Mar 2014 03:15:50 +0100 Subject: [PATCH 41/59] Rearranged ores generation-recipes-oredictionary --- common/MysticOres/Blocks/BlockHandler.java | 3 +- common/MysticOres/MysticOres.java | 17 +- common/MysticOres/Util/OreDictManager.java | 22 --- common/MysticOres/Util/RecipeManager.java | 153 +++++++++--------- common/MysticOres/Util/ToolRecipes.java | 35 ++-- .../MysticOres/Worldgen/GeneratorManager.java | 15 -- .../Worldgen/NetherGenMineable.java | 36 ----- common/mysticores/worldgen/WorldGenOres.java | 35 +++- 8 files changed, 145 insertions(+), 171 deletions(-) delete mode 100644 common/MysticOres/Util/OreDictManager.java delete mode 100644 common/MysticOres/Worldgen/GeneratorManager.java delete mode 100644 common/MysticOres/Worldgen/NetherGenMineable.java diff --git a/common/MysticOres/Blocks/BlockHandler.java b/common/MysticOres/Blocks/BlockHandler.java index c2d29f0..754e6df 100644 --- a/common/MysticOres/Blocks/BlockHandler.java +++ b/common/MysticOres/Blocks/BlockHandler.java @@ -12,7 +12,6 @@ public class BlockHandler { public static Block BlockBase; public static void initialize() { - BlockBase = new BlockBase().setStepSound(Block.soundTypeStone); - GameRegistry.registerBlock(BlockBase, ItemBase.class, "Base Blocks", "mysticores", BLOCK_NAMES); + BlockBase = GameRegistry.registerBlock(new BlockBase().setStepSound(Block.soundTypeStone), ItemBase.class, "Base Blocks", "mysticores", BLOCK_NAMES); } } diff --git a/common/MysticOres/MysticOres.java b/common/MysticOres/MysticOres.java index 47921ca..d761c48 100644 --- a/common/MysticOres/MysticOres.java +++ b/common/MysticOres/MysticOres.java @@ -5,9 +5,8 @@ import cpw.mods.fml.relauncher.SideOnly; import mysticores.blocks.BlockHandler; import mysticores.items.Items; import mysticores.util.ConfigurationManager; -import mysticores.util.OreDictManager; import mysticores.util.RecipeManager; -import mysticores.worldgen.GeneratorManager; +import mysticores.worldgen.WorldGenOres; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -17,6 +16,7 @@ import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; +import net.minecraftforge.oredict.OreDictionary; @Mod(modid = "mysticores", name = "Mystic Ores", version = "0.1") public class MysticOres implements IFuelHandler { @@ -37,6 +37,10 @@ public class MysticOres implements IFuelHandler { return 7; } }; + public static final String[] INGOTS = { "ingotVerdite", "ingotMithril", "ingotAdamantine", "ingotIridium", "fuelIridium", "gemTourmaline", "gemAgate", "gemTopaz", "gemAmethyst", "dustMystic", + " shardBloodstone", "shardGlass", "shardObsidian", "rodObsidian" }; + public static final String[] ORES = { "oreAdamantine", "oreAmethyst", "oreIridium", "oreMithril", "oreSapphire", "oreTopaz", "oreVerdite", "oreBloodstone", "oreBlackSoulstone", + "oreBlueSoulstone", "oreRedSoulstone", "oreAgate" }; @Override public int getBurnTime(ItemStack fuel) { @@ -52,9 +56,14 @@ public class MysticOres implements IFuelHandler { if(ENABLE){ BlockHandler.initialize(); Items.initialize(); - OreDictManager.initialize(); + for (int i = 0; i < INGOTS.length; i++) { + OreDictionary.registerOre(INGOTS[i], new ItemStack(Items.Resource, 1, i)); + } + for (int i = 0; i < ORES.length; i++) { + OreDictionary.registerOre(ORES[i], new ItemStack(BlockHandler.BlockBase, 1, i)); + } RecipeManager.initialize(); - GeneratorManager.initialize(); + GameRegistry.registerWorldGenerator(new WorldGenOres(), 100); GameRegistry.registerFuelHandler(this); } } diff --git a/common/MysticOres/Util/OreDictManager.java b/common/MysticOres/Util/OreDictManager.java deleted file mode 100644 index 79fae4e..0000000 --- a/common/MysticOres/Util/OreDictManager.java +++ /dev/null @@ -1,22 +0,0 @@ -package mysticores.util; - -import mysticores.blocks.BlockHandler; -import mysticores.items.Items; -import net.minecraft.item.ItemStack; -import net.minecraftforge.oredict.OreDictionary; - -public class OreDictManager { - public static final String[] INGOTS = { "ingotVerdite", "ingotMithril", "ingotAdamantine", "ingotIridium", "fuelIridium", "gemTourmaline", "gemAgate", "gemTopaz", "gemAmethyst", "dustMystic", - " shardBloodstone", "shardGlass", "shardObsidian", "rodObsidian" }; - public static final String[] ORES = { "oreAdamantine", "oreAmethyst", "oreIridium", "oreMithril", "oreSapphire", "oreTopaz", "oreVerdite", "oreBloodstone", "oreBlackSoulstone", - "oreBlueSoulstone", "oreRedSoulstone", "oreAgate" }; - - public static void initialize() { - for (int i = 0; i < INGOTS.length; i++) { - OreDictionary.registerOre(INGOTS[i], new ItemStack(Items.Resource, 1, i)); - } - for (int i = 0; i < ORES.length; i++) { - OreDictionary.registerOre(ORES[i], new ItemStack(BlockHandler.BlockBase, 1, i)); - } - } -} diff --git a/common/MysticOres/Util/RecipeManager.java b/common/MysticOres/Util/RecipeManager.java index a0a7e1e..a2307ce 100644 --- a/common/MysticOres/Util/RecipeManager.java +++ b/common/MysticOres/Util/RecipeManager.java @@ -1,5 +1,6 @@ package mysticores.util; +import mysticores.MysticOres; import mysticores.blocks.BlockHandler; import mysticores.items.Items; import net.minecraft.init.Blocks; @@ -93,42 +94,42 @@ public class RecipeManager { } private static void powderRecipes() { - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.gold_ore, 2), OreDictManager.INGOTS[9], "oreGold")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.iron_ore, 2), OreDictManager.INGOTS[9], "oreIron")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 2, 10), OreDictManager.INGOTS[9], OreDictManager.INGOTS[10])); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.gunpowder, 2), OreDictManager.INGOTS[9], net.minecraft.init.Items.gunpowder)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 2, 4), OreDictManager.INGOTS[9], OreDictManager.INGOTS[4])); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.coal_ore, 2), OreDictManager.INGOTS[9], "oreCoal")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.iron_ore, 3), OreDictManager.INGOTS[9], "oreIron")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.gold_ore, 3), OreDictManager.INGOTS[9], "oreGold")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.redstone_ore, 2), OreDictManager.INGOTS[9], "oreRedstone")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.lapis_ore, 2), OreDictManager.INGOTS[9], "oreLapis")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.diamond_ore, 2), OreDictManager.INGOTS[9], "oreDiamond")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.sugar, 18), OreDictManager.INGOTS[9], net.minecraft.init.Items.sugar)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.redstone, 12), OreDictManager.INGOTS[9], net.minecraft.init.Items.redstone)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.glowstone_dust, 6), OreDictManager.INGOTS[9], net.minecraft.init.Items.glowstone_dust)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.gunpowder, 3), OreDictManager.INGOTS[9], net.minecraft.init.Items.gunpowder)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.gold_ore, 2), MysticOres.INGOTS[9], "oreGold")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.iron_ore, 2), MysticOres.INGOTS[9], "oreIron")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 2, 10), MysticOres.INGOTS[9], MysticOres.INGOTS[10])); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.gunpowder, 2), MysticOres.INGOTS[9], net.minecraft.init.Items.gunpowder)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 2, 4), MysticOres.INGOTS[9], MysticOres.INGOTS[4])); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.coal_ore, 2), MysticOres.INGOTS[9], "oreCoal")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.iron_ore, 3), MysticOres.INGOTS[9], "oreIron")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.gold_ore, 3), MysticOres.INGOTS[9], "oreGold")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.redstone_ore, 2), MysticOres.INGOTS[9], "oreRedstone")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.lapis_ore, 2), MysticOres.INGOTS[9], "oreLapis")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.diamond_ore, 2), MysticOres.INGOTS[9], "oreDiamond")); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.sugar, 18), MysticOres.INGOTS[9], net.minecraft.init.Items.sugar)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.redstone, 12), MysticOres.INGOTS[9], net.minecraft.init.Items.redstone)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.glowstone_dust, 6), MysticOres.INGOTS[9], net.minecraft.init.Items.glowstone_dust)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(net.minecraft.init.Items.gunpowder, 3), MysticOres.INGOTS[9], net.minecraft.init.Items.gunpowder)); } private static void recipes() { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.glass, 1), "##", "##", '#', OreDictManager.INGOTS[11])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.obsidian, 1), "##", "##", '#', OreDictManager.INGOTS[12])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.glass, 1), "##", "##", '#', MysticOres.INGOTS[11])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.obsidian, 1), "##", "##", '#', MysticOres.INGOTS[12])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 7), "XXX", "XOX", "XXX", 'X', Blocks.dirt, 'O', - OreDictManager.INGOTS[6])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 16, 7), "XXX", "XOX", "XXX", 'X', OreDictManager.ORES[3], 'O', - OreDictManager.INGOTS[6])); + MysticOres.INGOTS[6])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 16, 7), "XXX", "XOX", "XXX", 'X', MysticOres.ORES[3], 'O', + MysticOres.INGOTS[6])); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 3), "XXX", "XOX", "XXX", 'X', Blocks.dirt, 'O', - OreDictManager.INGOTS[8])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 12), "###", "#D#", "###", '#', OreDictManager.INGOTS[11], 'D', OreDictManager.INGOTS[12])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 1, 7), "##", "##", '#', OreDictManager.INGOTS[10])); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BlockHandler.BlockBase, 2, 7), OreDictManager.INGOTS[9], OreDictManager.ORES[7])); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BlockHandler.BlockBase, 2, 3), OreDictManager.INGOTS[9], OreDictManager.ORES[3])); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BlockHandler.BlockBase, 2, 0), OreDictManager.INGOTS[9], OreDictManager.ORES[0])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Resource, 2, 13), "#", "#", '#', OreDictManager.INGOTS[12])); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Resource, 1, 3), "###", "#O#", "###", '#', OreDictManager.INGOTS[4], 'O', OreDictManager.INGOTS[2])); + MysticOres.INGOTS[8])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 8, 12), "###", "#D#", "###", '#', MysticOres.INGOTS[11], 'D', MysticOres.INGOTS[12])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockHandler.BlockBase, 1, 7), "##", "##", '#', MysticOres.INGOTS[10])); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BlockHandler.BlockBase, 2, 7), MysticOres.INGOTS[9], MysticOres.ORES[7])); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BlockHandler.BlockBase, 2, 3), MysticOres.INGOTS[9], MysticOres.ORES[3])); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BlockHandler.BlockBase, 2, 0), MysticOres.INGOTS[9], MysticOres.ORES[0])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Resource, 2, 13), "#", "#", '#', MysticOres.INGOTS[12])); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Resource, 1, 3), "###", "#O#", "###", '#', MysticOres.INGOTS[4], 'O', MysticOres.INGOTS[2])); GameRegistry.addShapelessRecipe(new ItemStack(Items.Resource, 4, 11), Blocks.glass); GameRegistry.addShapelessRecipe(new ItemStack(Items.Resource, 4, 12), Blocks.obsidian); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 8, 9), OreDictManager.INGOTS[5], OreDictManager.INGOTS[7], OreDictManager.INGOTS[8], OreDictManager.INGOTS[6])); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.Resource, 8, 9), MysticOres.INGOTS[5], MysticOres.INGOTS[7], MysticOres.INGOTS[8], MysticOres.INGOTS[6])); for(Map.Entry entry:agateConverted.entrySet()){ GameRegistry.addRecipe(new ShapedOreRecipe(entry.getValue(), "###", "#o#", "###", 'o', "gemAgate", '#', entry.getKey())); } @@ -144,53 +145,57 @@ public class RecipeManager { } private static void smelting() { - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 6), new ItemStack(Items.Resource, 1, 0), 0.4F); - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 3), new ItemStack(Items.Resource, 1, 1), 0.7F); - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 0), new ItemStack(Items.Resource, 1, 2), 0.9F); - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 2), new ItemStack(Items.Resource, 1, 4), 0.4F); - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 4), new ItemStack(Items.Resource, 1, 5), 0.4F); - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 11), new ItemStack(Items.Resource, 1, 6), 0.4F); - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 5), new ItemStack(Items.Resource, 1, 7), 0.4F); - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 1), new ItemStack(Items.Resource, 1, 8), 0.4F); - FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, 7), new ItemStack(Items.Resource, 1, 10), 0.4F); + smeltBlockIntoResource(6, 0, 0.4F); + smeltBlockIntoResource(3, 1, 0.7F); + smeltBlockIntoResource(0, 2, 0.9F); + smeltBlockIntoResource(2, 4, 0.4F); + smeltBlockIntoResource(4, 5, 0.4F); + smeltBlockIntoResource(11, 6, 0.4F); + smeltBlockIntoResource(5, 7, 0.4F); + smeltBlockIntoResource(1, 8, 0.4F); + smeltBlockIntoResource(7, 10, 0.4F); } + private static void smeltBlockIntoResource(int metaInput, int metaOutput, float exp){ + FurnaceRecipes.smelting().func_151394_a(new ItemStack(BlockHandler.BlockBase,1, metaInput), new ItemStack(Items.Resource, 1, metaOutput), exp); + } + private static void toolRecipes() { - ToolRecipes.SwordRecipe(Items.VerditeSword, OreDictManager.INGOTS[0]); - ToolRecipes.PickaxeRecipe(Items.VerditePickaxe, OreDictManager.INGOTS[0]); - ToolRecipes.ShovelRecipe(Items.VerditeShovel, OreDictManager.INGOTS[0]); - ToolRecipes.AxeRecipe(Items.VerditeAxe, OreDictManager.INGOTS[0]); - ToolRecipes.HoeRecipe(Items.VerditeHoe, OreDictManager.INGOTS[0]); - ToolRecipes.SwordRecipe(Items.MithrilSword, OreDictManager.INGOTS[1]); - ToolRecipes.PickaxeRecipe(Items.MithrilPickaxe, OreDictManager.INGOTS[1]); - ToolRecipes.ShovelRecipe(Items.MithrilShovel, OreDictManager.INGOTS[1]); - ToolRecipes.AxeRecipe(Items.MithrilAxe, OreDictManager.INGOTS[1]); - ToolRecipes.HoeRecipe(Items.MithrilHoe, OreDictManager.INGOTS[1]); - ToolRecipes.AdvancedSwordRecipe(Items.AdamantineSword, OreDictManager.INGOTS[2]); - ToolRecipes.AdvancedPickaxeRecipe(Items.AdamantinePickaxe, OreDictManager.INGOTS[2]); - ToolRecipes.AdvancedShovelRecipe(Items.AdamantineShovel, OreDictManager.INGOTS[2]); - ToolRecipes.AdvancedAxeRecipe(Items.AdamantineAxe, OreDictManager.INGOTS[2]); - ToolRecipes.AdvancedHoeRecipe(Items.AdamantineHoe, OreDictManager.INGOTS[2]); - ToolRecipes.AdvancedSwordRecipe(Items.IridiumSword, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedPickaxeRecipe(Items.IridiumPickaxe, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedShovelRecipe(Items.IridiumShovel, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedAxeRecipe(Items.IridiumAxe, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedHoeRecipe(Items.IridiumHoe, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedSwordRecipe(Items.IridiumSword, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedPickaxeRecipe(Items.IridiumPickaxe, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedShovelRecipe(Items.IridiumShovel, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedAxeRecipe(Items.IridiumAxe, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedHoeRecipe(Items.IridiumHoe, OreDictManager.INGOTS[3]); - ToolRecipes.AdvancedSwordRecipe(Items.ObsidianSword, new ItemStack(Blocks.obsidian)); - ToolRecipes.AdvancedPickaxeRecipe(Items.ObsidianPickaxe, new ItemStack(Blocks.obsidian)); - ToolRecipes.AdvancedShovelRecipe(Items.ObsidianShovel, new ItemStack(Blocks.obsidian)); - ToolRecipes.AdvancedAxeRecipe(Items.ObsidianAxe, new ItemStack(Blocks.obsidian)); - ToolRecipes.AdvancedHoeRecipe(Items.ObsidianHoe, new ItemStack(Blocks.obsidian)); - ToolRecipes.AdvancedSwordRecipe(Items.BloodstoneSword, OreDictManager.ORES[7]); - ToolRecipes.AdvancedPickaxeRecipe(Items.BloodstonePickaxe, OreDictManager.ORES[7]); - ToolRecipes.AdvancedShovelRecipe(Items.BloodstoneShovel, OreDictManager.ORES[7]); - ToolRecipes.AdvancedAxeRecipe(Items.BloodstoneAxe, OreDictManager.ORES[7]); - ToolRecipes.AdvancedHoeRecipe(Items.BloodstoneHoe, OreDictManager.ORES[7]); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Satchel, 1), "#$#", "$%$", "#$#", '#', net.minecraft.init.Items.string, '$', OreDictManager.INGOTS[9], '%', Blocks.ender_chest)); + ToolRecipes.sword(Items.VerditeSword, MysticOres.INGOTS[0]); + ToolRecipes.pickaxe(Items.VerditePickaxe, MysticOres.INGOTS[0]); + ToolRecipes.shovel(Items.VerditeShovel, MysticOres.INGOTS[0]); + ToolRecipes.axe(Items.VerditeAxe, MysticOres.INGOTS[0]); + ToolRecipes.hoe(Items.VerditeHoe, MysticOres.INGOTS[0]); + ToolRecipes.sword(Items.MithrilSword, MysticOres.INGOTS[1]); + ToolRecipes.pickaxe(Items.MithrilPickaxe, MysticOres.INGOTS[1]); + ToolRecipes.shovel(Items.MithrilShovel, MysticOres.INGOTS[1]); + ToolRecipes.axe(Items.MithrilAxe, MysticOres.INGOTS[1]); + ToolRecipes.hoe(Items.MithrilHoe, MysticOres.INGOTS[1]); + ToolRecipes.advancedSword(Items.AdamantineSword, MysticOres.INGOTS[2]); + ToolRecipes.advancedPickaxe(Items.AdamantinePickaxe, MysticOres.INGOTS[2]); + ToolRecipes.advancedShovel(Items.AdamantineShovel, MysticOres.INGOTS[2]); + ToolRecipes.advancedAxe(Items.AdamantineAxe, MysticOres.INGOTS[2]); + ToolRecipes.advancedHoe(Items.AdamantineHoe, MysticOres.INGOTS[2]); + ToolRecipes.advancedSword(Items.IridiumSword, MysticOres.INGOTS[3]); + ToolRecipes.advancedPickaxe(Items.IridiumPickaxe, MysticOres.INGOTS[3]); + ToolRecipes.advancedShovel(Items.IridiumShovel, MysticOres.INGOTS[3]); + ToolRecipes.advancedAxe(Items.IridiumAxe, MysticOres.INGOTS[3]); + ToolRecipes.advancedHoe(Items.IridiumHoe, MysticOres.INGOTS[3]); + ToolRecipes.advancedSword(Items.IridiumSword, MysticOres.INGOTS[3]); + ToolRecipes.advancedPickaxe(Items.IridiumPickaxe, MysticOres.INGOTS[3]); + ToolRecipes.advancedShovel(Items.IridiumShovel, MysticOres.INGOTS[3]); + ToolRecipes.advancedAxe(Items.IridiumAxe, MysticOres.INGOTS[3]); + ToolRecipes.advancedHoe(Items.IridiumHoe, MysticOres.INGOTS[3]); + ToolRecipes.advancedSword(Items.ObsidianSword, new ItemStack(Blocks.obsidian)); + ToolRecipes.advancedPickaxe(Items.ObsidianPickaxe, new ItemStack(Blocks.obsidian)); + ToolRecipes.advancedShovel(Items.ObsidianShovel, new ItemStack(Blocks.obsidian)); + ToolRecipes.advancedAxe(Items.ObsidianAxe, new ItemStack(Blocks.obsidian)); + ToolRecipes.advancedHoe(Items.ObsidianHoe, new ItemStack(Blocks.obsidian)); + ToolRecipes.advancedSword(Items.BloodstoneSword, MysticOres.ORES[7]); + ToolRecipes.advancedPickaxe(Items.BloodstonePickaxe, MysticOres.ORES[7]); + ToolRecipes.advancedShovel(Items.BloodstoneShovel, MysticOres.ORES[7]); + ToolRecipes.advancedAxe(Items.BloodstoneAxe, MysticOres.ORES[7]); + ToolRecipes.advancedHoe(Items.BloodstoneHoe, MysticOres.ORES[7]); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.Satchel, 1), "#$#", "$%$", "#$#", '#', net.minecraft.init.Items.string, '$', MysticOres.INGOTS[9], '%', Blocks.ender_chest)); } } diff --git a/common/MysticOres/Util/ToolRecipes.java b/common/MysticOres/Util/ToolRecipes.java index eda088c..062a5e3 100644 --- a/common/MysticOres/Util/ToolRecipes.java +++ b/common/MysticOres/Util/ToolRecipes.java @@ -1,52 +1,53 @@ package mysticores.util; +import mysticores.MysticOres; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.ShapedOreRecipe; import cpw.mods.fml.common.registry.GameRegistry; public class ToolRecipes { - public static void AdvancedAxeRecipe(Item output, Object input) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "#S ", " S ", 'S', OreDictManager.INGOTS[13], '#', input)); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S# ", "S ", 'S', OreDictManager.INGOTS[13], '#', input)); + public static void advancedAxe(Item output, Object input) { + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "#S ", " S ", 'S', MysticOres.INGOTS[13], '#', input)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S# ", "S ", 'S', MysticOres.INGOTS[13], '#', input)); } - public static void AdvancedHoeRecipe(Item output, Object input) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", " S ", " S ", 'S', OreDictManager.INGOTS[13], '#', input)); - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S ", "S ", 'S', OreDictManager.INGOTS[13], '#', input)); + public static void advancedHoe(Item output, Object input) { + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", " S ", " S ", 'S', MysticOres.INGOTS[13], '#', input)); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S ", "S ", 'S', MysticOres.INGOTS[13], '#', input)); } - public static void AdvancedPickaxeRecipe(Item output, Object input) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "###", " S ", " S ", 'S', OreDictManager.INGOTS[13], '#', input)); + public static void advancedPickaxe(Item output, Object input) { + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "###", " S ", " S ", 'S', MysticOres.INGOTS[13], '#', input)); } - public static void AdvancedShovelRecipe(Item output, Object input) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "S", "S", 'S', OreDictManager.INGOTS[13], '#', input)); + public static void advancedShovel(Item output, Object input) { + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "S", "S", 'S', MysticOres.INGOTS[13], '#', input)); } - public static void AdvancedSwordRecipe(Item output, Object input) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "#", "S", 'S', OreDictManager.INGOTS[13], '#', input)); + public static void advancedSword(Item output, Object input) { + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "#", "S", 'S', MysticOres.INGOTS[13], '#', input)); } - public static void AxeRecipe(Item output, Object input) { + public static void axe(Item output, Object input) { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "#S ", " S ", 'S', "stickWood", '#', input)); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S# ", "S ", 'S', "stickWood", '#', input)); } - public static void HoeRecipe(Item output, Object input) { + public static void hoe(Item output, Object input) { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", " S ", " S ", 'S', "stickWood", '#', input)); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S ", "S ", 'S', "stickWood", '#', input)); } - public static void PickaxeRecipe(Item output, Object input) { + public static void pickaxe(Item output, Object input) { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "###", " S ", " S ", 'S', "stickWood", '#', input)); } - public static void ShovelRecipe(Item output, Object input) { + public static void shovel(Item output, Object input) { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "S", "S", 'S', "stickWood", '#', input)); } - public static void SwordRecipe(Item output, Object input) { + public static void sword(Item output, Object input) { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "#", "S", 'S', "stickWood", '#', input)); } } diff --git a/common/MysticOres/Worldgen/GeneratorManager.java b/common/MysticOres/Worldgen/GeneratorManager.java deleted file mode 100644 index 2db2afe..0000000 --- a/common/MysticOres/Worldgen/GeneratorManager.java +++ /dev/null @@ -1,15 +0,0 @@ -package mysticores.worldgen; - -import mysticores.blocks.BlockHandler; -import mysticores.lib.Rarity; -import cpw.mods.fml.common.registry.GameRegistry; - -public class GeneratorManager { - public static void initialize() { - GameRegistry.registerWorldGenerator(new WorldGenOres(), 100); - GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase, 7, Rarity.BLOODSTONE + 1), 100); - GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase, 8, Rarity.BLACKSOULSTONE + 1), 100); - GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase, 9, Rarity.BLUESOULSTONE + 1), 100); - GameRegistry.registerWorldGenerator(new NetherGenMineable(BlockHandler.BlockBase, 10, Rarity.REDSOULSTONE), 100); - } -} diff --git a/common/MysticOres/Worldgen/NetherGenMineable.java b/common/MysticOres/Worldgen/NetherGenMineable.java deleted file mode 100644 index ca516da..0000000 --- a/common/MysticOres/Worldgen/NetherGenMineable.java +++ /dev/null @@ -1,36 +0,0 @@ -package mysticores.worldgen; - -import java.util.Random; - -import net.minecraft.block.Block; -import net.minecraft.world.World; -import net.minecraft.world.chunk.IChunkProvider; -import net.minecraft.world.gen.feature.WorldGenerator; -import cpw.mods.fml.common.IWorldGenerator; - -public class NetherGenMineable implements IWorldGenerator { - private WorldGenerator helper; - - public NetherGenMineable(Block blockId, int numBlocks) { - helper = new NetherGenHelper(blockId, numBlocks); - } - - public NetherGenMineable(Block blockId, int meta, int numBlocks) { - helper = new NetherGenHelper(blockId, meta, numBlocks); - } - - @Override - public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { - if (world.provider.isHellWorld) - generateNether(world, random, chunkX * 16, chunkZ * 16); - } - - private void generateNether(World world, Random random, int i, int j) { - for (int j1 = 0; j1 < 50; j1++) { - int Xcoordinate = i + random.nextInt(16); - int Zcoordinate = j + random.nextInt(16); - int Ycoordinate = random.nextInt(256); - helper.generate(world, random, Xcoordinate, Ycoordinate, Zcoordinate); - } - } -} \ No newline at end of file diff --git a/common/mysticores/worldgen/WorldGenOres.java b/common/mysticores/worldgen/WorldGenOres.java index cb31c75..25d54ce 100644 --- a/common/mysticores/worldgen/WorldGenOres.java +++ b/common/mysticores/worldgen/WorldGenOres.java @@ -19,12 +19,18 @@ public class WorldGenOres implements IWorldGenerator { public static final WorldGenMinable topaz = new WorldGenMinable(BlockHandler.BlockBase, 5, 4, Blocks.stone); public static final WorldGenMinable verdite = new WorldGenMinable(BlockHandler.BlockBase, 6, 9, Blocks.stone); public static final WorldGenMinable agate = new WorldGenMinable(BlockHandler.BlockBase, 11, 4, Blocks.stone); + public static final NetherGenHelper bloodstone = new NetherGenHelper(BlockHandler.BlockBase, 7, Rarity.BLOODSTONE + 1); + public static final NetherGenHelper blackSoulstone = new NetherGenHelper(BlockHandler.BlockBase, 8, Rarity.BLACKSOULSTONE + 1); + public static final NetherGenHelper blueSoulstone = new NetherGenHelper(BlockHandler.BlockBase, 9, Rarity.BLUESOULSTONE + 1); + public static final NetherGenHelper redSoulstone = new NetherGenHelper(BlockHandler.BlockBase, 10, Rarity.REDSOULSTONE); @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { if (!world.provider.isHellWorld) { generateSurface(world, random, chunkX * 16, chunkZ * 16); - } + }else{ + generateNether(world, random, chunkX * 16, chunkZ * 16); + } } private void generateSurface(World world, Random random, int blockX, int blockZ) { @@ -77,4 +83,31 @@ public class WorldGenOres implements IWorldGenerator { verdite.generate(world, random, Xcoord, Ycoord, Zcoord); } } + + private void generateNether(World world, Random random, int i, int j) { + for (int j1 = 0; j1 < 50; j1++) { + int Xcoordinate = i + random.nextInt(16); + int Zcoordinate = j + random.nextInt(16); + int Ycoordinate = random.nextInt(256); + bloodstone.generate(world, random, Xcoordinate, Ycoordinate, Zcoordinate); + } + for (int j1 = 0; j1 < 50; j1++) { + int Xcoordinate = i + random.nextInt(16); + int Zcoordinate = j + random.nextInt(16); + int Ycoordinate = random.nextInt(256); + blackSoulstone.generate(world, random, Xcoordinate, Ycoordinate, Zcoordinate); + } + for (int j1 = 0; j1 < 50; j1++) { + int Xcoordinate = i + random.nextInt(16); + int Zcoordinate = j + random.nextInt(16); + int Ycoordinate = random.nextInt(256); + blueSoulstone.generate(world, random, Xcoordinate, Ycoordinate, Zcoordinate); + } + for (int j1 = 0; j1 < 50; j1++) { + int Xcoordinate = i + random.nextInt(16); + int Zcoordinate = j + random.nextInt(16); + int Ycoordinate = random.nextInt(256); + redSoulstone.generate(world, random, Xcoordinate, Ycoordinate, Zcoordinate); + } + } } \ No newline at end of file From 0cd1169e507303e9b07791a81d492795f1f3aada Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 22 Mar 2014 03:16:35 +0100 Subject: [PATCH 42/59] Remove useless stuff --- common/MysticWorld/Items/ItemOrb.java | 4 ---- common/MysticWorld/Items/ItemOrbEnergy.java | 2 +- common/MysticWorld/Items/ItemOrbFire.java | 2 +- common/MysticWorld/Items/ItemOrbWater.java | 2 +- common/MysticWorld/Items/ItemStaff.java | 4 ---- common/MysticWorld/Items/ItemStaffEnegy.java | 2 +- common/MysticWorld/Items/ItemStaffFire.java | 2 +- common/MysticWorld/Items/ItemStaffWater.java | 2 +- 8 files changed, 6 insertions(+), 14 deletions(-) diff --git a/common/MysticWorld/Items/ItemOrb.java b/common/MysticWorld/Items/ItemOrb.java index 38012b1..6467c44 100644 --- a/common/MysticWorld/Items/ItemOrb.java +++ b/common/MysticWorld/Items/ItemOrb.java @@ -1,7 +1,5 @@ package mysticworld.items; -import java.util.Random; - import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -10,8 +8,6 @@ import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; public class ItemOrb extends Item { - Random rand = new Random(); - public ItemOrb() { super(); this.setMaxStackSize(1); diff --git a/common/MysticWorld/Items/ItemOrbEnergy.java b/common/MysticWorld/Items/ItemOrbEnergy.java index 9202fa3..bd2b05d 100644 --- a/common/MysticWorld/Items/ItemOrbEnergy.java +++ b/common/MysticWorld/Items/ItemOrbEnergy.java @@ -53,7 +53,7 @@ public class ItemOrbEnergy extends ItemOrb { public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { if (entity instanceof EntityPlayer && par5) { ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); - MysticWorld.proxy.energyFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); + MysticWorld.proxy.energyFX(world, (entity.posX - 0.5D) + itemRand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + itemRand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemOrbFire.java b/common/MysticWorld/Items/ItemOrbFire.java index 3c155f2..cd33300 100644 --- a/common/MysticWorld/Items/ItemOrbFire.java +++ b/common/MysticWorld/Items/ItemOrbFire.java @@ -68,7 +68,7 @@ public class ItemOrbFire extends ItemOrb { public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { if (entity instanceof EntityPlayer && par5) { ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); - MysticWorld.proxy.fireFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); + MysticWorld.proxy.fireFX(world, (entity.posX - 0.5D) + itemRand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + itemRand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemOrbWater.java b/common/MysticWorld/Items/ItemOrbWater.java index 368054a..0017449 100644 --- a/common/MysticWorld/Items/ItemOrbWater.java +++ b/common/MysticWorld/Items/ItemOrbWater.java @@ -75,7 +75,7 @@ public class ItemOrbWater extends ItemOrb { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { if (par5) { - MysticWorld.proxy.waterFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); + MysticWorld.proxy.waterFX(world, (entity.posX - 0.5D) + itemRand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + itemRand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaff.java b/common/MysticWorld/Items/ItemStaff.java index 588e6f8..b86b02f 100644 --- a/common/MysticWorld/Items/ItemStaff.java +++ b/common/MysticWorld/Items/ItemStaff.java @@ -1,7 +1,5 @@ package mysticworld.items; -import java.util.Random; - import mysticworld.MysticWorld; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; @@ -9,8 +7,6 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemStaff extends Item { - Random rand = new Random(); - public ItemStaff() { super(); this.setMaxStackSize(1); diff --git a/common/MysticWorld/Items/ItemStaffEnegy.java b/common/MysticWorld/Items/ItemStaffEnegy.java index 03fad1d..734d6e0 100644 --- a/common/MysticWorld/Items/ItemStaffEnegy.java +++ b/common/MysticWorld/Items/ItemStaffEnegy.java @@ -79,7 +79,7 @@ public class ItemStaffEnegy extends ItemStaff { public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { if (entity instanceof EntityPlayer && par5) { ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 20, 2)); - MysticWorld.proxy.energyFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); + MysticWorld.proxy.energyFX(world, (entity.posX - 0.5D) + itemRand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + itemRand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaffFire.java b/common/MysticWorld/Items/ItemStaffFire.java index 5fb97be..4054ba0 100644 --- a/common/MysticWorld/Items/ItemStaffFire.java +++ b/common/MysticWorld/Items/ItemStaffFire.java @@ -83,7 +83,7 @@ public class ItemStaffFire extends ItemStaff { public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { if (entity instanceof EntityPlayer && par5) { ((EntityPlayer)entity).addPotionEffect(new PotionEffect(Potion.fireResistance.getId(), 20, 0)); - MysticWorld.proxy.fireFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); + MysticWorld.proxy.fireFX(world, (entity.posX - 0.5D) + itemRand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + itemRand.nextDouble(), 1.0F); } } } diff --git a/common/MysticWorld/Items/ItemStaffWater.java b/common/MysticWorld/Items/ItemStaffWater.java index 6d665e4..b70a8f3 100644 --- a/common/MysticWorld/Items/ItemStaffWater.java +++ b/common/MysticWorld/Items/ItemStaffWater.java @@ -88,7 +88,7 @@ public class ItemStaffWater extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { if (par5) { - MysticWorld.proxy.waterFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); + MysticWorld.proxy.waterFX(world, (entity.posX - 0.5D) + itemRand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + itemRand.nextDouble(), 1.0F); } } } \ No newline at end of file From d98091f8504ac3fcb47231f55fde97a2eec44660 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 22 Mar 2014 03:17:15 +0100 Subject: [PATCH 43/59] Fixed eath types bonemeal consuming --- common/MysticWorld/Items/ItemOrbEarth.java | 35 +++++++++++++++++--- common/MysticWorld/Items/ItemStaffEarth.java | 5 ++- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/common/MysticWorld/Items/ItemOrbEarth.java b/common/MysticWorld/Items/ItemOrbEarth.java index c0ac44c..d5f514c 100644 --- a/common/MysticWorld/Items/ItemOrbEarth.java +++ b/common/MysticWorld/Items/ItemOrbEarth.java @@ -1,11 +1,15 @@ package mysticworld.items; +import cpw.mods.fml.common.eventhandler.Event; import mysticworld.MysticWorld; +import net.minecraft.block.Block; +import net.minecraft.block.IGrowable; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemDye; import net.minecraft.item.ItemStack; import net.minecraft.world.World; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.event.entity.player.BonemealEvent; public class ItemOrbEarth extends ItemOrb { public ItemOrbEarth() { @@ -31,11 +35,34 @@ public class ItemOrbEarth extends ItemOrb { public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { EntityPlayer player = (EntityPlayer) entity; if (par5) { - MysticWorld.proxy.earthFX(world, (player.posX - 0.5D) + rand.nextDouble(), player.posY, (player.posZ - 0.5D) + rand.nextDouble(), 1.0F); + MysticWorld.proxy.earthFX(world, (player.posX - 0.5D) + itemRand.nextDouble(), player.posY, (player.posZ - 0.5D) + itemRand.nextDouble(), 1.0F); } } - public static boolean applyBonemeal(ItemStack itemStack, World par1World, int par2, int par3, int par4, EntityPlayer player) { - return ItemDye.applyBonemeal(itemStack, par1World, par2, par3, par4, player); + public static boolean applyBonemeal(ItemStack itemStack, World world, int x, int y, int z, EntityPlayer player) { + Block block = world.getBlock(x, y, z); + BonemealEvent event = new BonemealEvent(player, world, block, x, y, z); + if (MinecraftForge.EVENT_BUS.post(event)){ + return false; + } + if (event.getResult() == Event.Result.ALLOW){ + if (!world.isRemote){ + itemStack.damageItem(1, player); + } + return true; + } + if (block instanceof IGrowable){ + IGrowable igrowable = (IGrowable)block; + if (igrowable.func_149851_a(world, x, y, z, world.isRemote)){ + if (!world.isRemote){ + if (igrowable.func_149852_a(world, world.rand, x, y, z)){ + igrowable.func_149853_b(world, world.rand, x, y, z); + } + itemStack.damageItem(1, player); + } + return true; + } + } + return false; } } diff --git a/common/MysticWorld/Items/ItemStaffEarth.java b/common/MysticWorld/Items/ItemStaffEarth.java index 850736c..7de7ef7 100644 --- a/common/MysticWorld/Items/ItemStaffEarth.java +++ b/common/MysticWorld/Items/ItemStaffEarth.java @@ -4,7 +4,6 @@ import mysticworld.MysticWorld; import mysticworld.entity.EntityChargeEarth; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemDye; import net.minecraft.item.ItemStack; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; @@ -54,11 +53,11 @@ public class ItemStaffEarth extends ItemStaff { @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { if (par5) { - MysticWorld.proxy.earthFX(world, (entity.posX - 0.5D) + rand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + rand.nextDouble(), 1.0F); + MysticWorld.proxy.earthFX(world, (entity.posX - 0.5D) + itemRand.nextDouble(), entity.posY, (entity.posZ - 0.5D) + itemRand.nextDouble(), 1.0F); } } public static boolean applyBonemeal(ItemStack itemStack, World par1World, int par2, int par3, int par4, EntityPlayer player) { - return ItemDye.applyBonemeal(itemStack, par1World, par2, par3, par4, player); + return ItemOrbEarth.applyBonemeal(itemStack, par1World, par2, par3, par4, player); } } From 39bf9eb782e5fc716fe4dece1c7cb345db0131fe Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sat, 22 Mar 2014 17:07:49 +0100 Subject: [PATCH 44/59] Fixed air power --- common/MysticWorld/Items/ItemOrbAir.java | 92 ++++++++++------------ common/MysticWorld/Items/ItemStaffAir.java | 25 +++--- 2 files changed, 53 insertions(+), 64 deletions(-) diff --git a/common/MysticWorld/Items/ItemOrbAir.java b/common/MysticWorld/Items/ItemOrbAir.java index 9eb75d7..62e0702 100644 --- a/common/MysticWorld/Items/ItemOrbAir.java +++ b/common/MysticWorld/Items/ItemOrbAir.java @@ -5,6 +5,8 @@ import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.potion.Potion; +import net.minecraft.potion.PotionEffect; import net.minecraft.util.MathHelper; import net.minecraft.world.World; @@ -15,84 +17,74 @@ public class ItemOrbAir extends ItemOrb { @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { - if (itemStack.stackTagCompound == null) - itemStack.setTagCompound(new NBTTagCompound()); - if (!itemStack.stackTagCompound.getBoolean("charging")) { - itemStack.stackTagCompound.setBoolean("charging", true); - } - return itemStack; + player.setItemInUse(itemStack, this.getMaxItemUseDuration(itemStack)); + return itemStack; } @Override - public void onPlayerStoppedUsing(ItemStack itemStack, World world, EntityPlayer player, int par4) { - if (itemStack.stackTagCompound.getInteger("chargeTime") > 0) { + public int getMaxItemUseDuration(ItemStack itemStack){ + return 5*20; + } + + @Override + public void onPlayerStoppedUsing(ItemStack itemStack, World world, EntityPlayer player, int time) { + int charge = getMaxItemUseDuration(itemStack)-time; + if (charge > 0) { if (player.onGround) { world.playSoundEffect(player.posX, player.posY, player.posZ, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F); - player.setVelocity(0.0D, 1.0D + (itemStack.stackTagCompound.getInteger("chargeTime")) * (2.5D * (1.0D / itemStack.stackTagCompound.getInteger("maxChargeTime"))), 0.0D); + if(!world.isRemote){ + player.addPotionEffect(new PotionEffect(Potion.jump.getId(), 50, charge*25/getMaxItemUseDuration(itemStack))); + } itemStack.damageItem(1, player); } + resetData(itemStack); } - resetData(itemStack); } @Override public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) { - if (itemStack.stackTagCompound == null) - itemStack.setTagCompound(new NBTTagCompound()); - EntityPlayer player = (EntityPlayer) entity; - ItemStack currentItem = player.inventory.getCurrentItem(); - itemStack.stackTagCompound.setInteger("maxChargeTime", 5 * 20); - if (currentItem != null) { - if (par5) { - player.fallDistance = 0.0F; - chargeEffect(itemStack, world, player); - if (player.isUsingItem()) { - if (itemStack.stackTagCompound.getBoolean("charging")) { - incrementData(itemStack); - } - spiralEffect(itemStack, world, player); - } - } - } else { - resetData(itemStack); - itemStack.stackTagCompound.setFloat("angle", 0); - itemStack.stackTagCompound.setDouble("radius", 0); - } - if (itemStack.stackTagCompound.getInteger("chargeTime") > itemStack.stackTagCompound.getInteger("maxChargeTime")) { - itemStack.stackTagCompound.setInteger("chargeTime", itemStack.stackTagCompound.getInteger("maxChargeTime")); - } - if (itemStack.stackTagCompound.getDouble("radius") > 2.5D) { - itemStack.stackTagCompound.setDouble("radius", 2.5D); - } - if (itemStack.stackTagCompound.getFloat("angle") > 6.0f) { - itemStack.stackTagCompound.setFloat("angle", 0.0f); - } + if (par5) { + entity.fallDistance = 0.0F; + chargeEffect(itemStack, world, entity); + } } - private void chargeEffect(ItemStack itemStack, World world, EntityPlayer player) { - double particleX = (player.posX - 0.5D) + rand.nextDouble(); - double particleZ = (player.posZ - 0.5D) + rand.nextDouble(); + @Override + public void onUsingTick(ItemStack stack, EntityPlayer player, int count){ + if (stack.stackTagCompound == null){ + stack.setTagCompound(new NBTTagCompound()); + } + incrementData(stack, getMaxItemUseDuration(stack) - count); + spiralEffect(stack, player.worldObj, player, getMaxItemUseDuration(stack) - count); + } + + private void chargeEffect(ItemStack itemStack, World world, Entity player) { + double particleX = (player.posX - 0.5D) + itemRand.nextDouble(); + double particleZ = (player.posZ - 0.5D) + itemRand.nextDouble(); MysticWorld.proxy.airFeetFX(world, particleX, player.posY, particleZ, 1.0f, 15); } - private void incrementData(ItemStack itemStack) { - itemStack.stackTagCompound.setInteger("chargeTime", itemStack.stackTagCompound.getInteger("chargeTime") + 1); + private void incrementData(ItemStack itemStack, int charge) { itemStack.stackTagCompound.setFloat("angle", itemStack.stackTagCompound.getFloat("angle") + 0.2f); - itemStack.stackTagCompound.setDouble("radius", itemStack.stackTagCompound.getInteger("chargeTime") * 0.025D); + itemStack.stackTagCompound.setDouble("radius", charge * 0.025D); + if (itemStack.stackTagCompound.getDouble("radius") > 2.5D) { + itemStack.stackTagCompound.setDouble("radius", 2.5D); + } + if (itemStack.stackTagCompound.getFloat("angle") > 6.0f) { + itemStack.stackTagCompound.setFloat("angle", 0.0f); + } } private void resetData(ItemStack itemStack) { - itemStack.stackTagCompound.setInteger("chargeTime", 0); - itemStack.stackTagCompound.setBoolean("charging", false); itemStack.stackTagCompound.setFloat("angle", 0); itemStack.stackTagCompound.setDouble("radius", 0); } - private void spiralEffect(ItemStack itemStack, World world, EntityPlayer player) { + private void spiralEffect(ItemStack itemStack, World world, EntityPlayer player, int charge) { double particleX = player.posX + (MathHelper.cos(itemStack.stackTagCompound.getFloat("angle"))) * itemStack.stackTagCompound.getDouble("radius"); double particleY = player.posY; double particleZ = player.posZ + (MathHelper.sin(itemStack.stackTagCompound.getFloat("angle"))) * itemStack.stackTagCompound.getDouble("radius"); - float particleScale = ((itemStack.stackTagCompound.getInteger("chargeTime")) * (5.0f * (1 / (float) itemStack.stackTagCompound.getInteger("maxChargeTime")))); + float particleScale = charge * 5.0f / getMaxItemUseDuration(itemStack); MysticWorld.proxy.airFeetFX(world, particleX, particleY, particleZ, 1.0f + particleScale, 15); } } diff --git a/common/MysticWorld/Items/ItemStaffAir.java b/common/MysticWorld/Items/ItemStaffAir.java index f828809..1d8cea6 100644 --- a/common/MysticWorld/Items/ItemStaffAir.java +++ b/common/MysticWorld/Items/ItemStaffAir.java @@ -1,6 +1,5 @@ package mysticworld.items; -import cpw.mods.fml.common.ObfuscationReflectionHelper; import mysticworld.MysticWorld; import mysticworld.entity.EntityChargeAir; import net.minecraft.entity.Entity; @@ -21,18 +20,17 @@ public class ItemStaffAir extends ItemStaff { @Override public int getMaxItemUseDuration(ItemStack itemStack){ - return 3*20; + return 5*20; } @Override public void onPlayerStoppedUsing(ItemStack itemStack, World world, EntityPlayer player, int time) { int charge = getMaxItemUseDuration(itemStack)-time; if (charge > 0) { - if (!world.isRemote) { - world.playAuxSFXAtEntity(null, 1009, (int) player.posX, (int) player.posY, (int) player.posZ, 0); + world.playAuxSFXAtEntity(player, 1009, (int) player.posX, (int) player.posY, (int) player.posZ, 0); + if (!world.isRemote) world.spawnEntityInWorld(new EntityChargeAir(world, player, 1.0f + charge * (5.0f * (1 / (float) getMaxItemUseDuration(itemStack))), charge * (2.5D * (1.0D / getMaxItemUseDuration(itemStack))))); - itemStack.damageItem(1, player); - } + itemStack.damageItem(1, player); } } @@ -40,19 +38,18 @@ public class ItemStaffAir extends ItemStaff { public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean current) { if (current) { entity.fallDistance = 0.0F; - if(entity instanceof EntityPlayer){ - if(((EntityPlayer) entity).isUsingItem()){ - int charge = ObfuscationReflectionHelper.getPrivateValue(EntityPlayer.class,(EntityPlayer) entity, "itemInUseCount", "field_71072_f"); - chargeEffect(itemStack, world, entity, getMaxItemUseDuration(itemStack) - charge); - } - } } } + @Override + public void onUsingTick(ItemStack stack, EntityPlayer player, int count){ + chargeEffect(stack, player.worldObj, player, getMaxItemUseDuration(stack) - count); + } + private void chargeEffect(ItemStack itemStack, World world, Entity player, int charge) { - double particleX = (player.posX - 0.5D) + rand.nextDouble(); + double particleX = (player.posX - 0.5D) + itemRand.nextDouble(); double particleY = player.posY + (charge * player.height / getMaxItemUseDuration(itemStack)); - double particleZ = (player.posZ - 0.5D) + rand.nextDouble(); + double particleZ = (player.posZ - 0.5D) + itemRand.nextDouble(); float particleScale = charge * (5.0f * (1 / (float) getMaxItemUseDuration(itemStack))); MysticWorld.proxy.airFeetFX(world, particleX, particleY, particleZ, 1.0f + particleScale, 15); } From b585d3a9da40274feb03a7fff048802c0e41f653 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Wed, 26 Mar 2014 19:51:29 +0100 Subject: [PATCH 45/59] Fixed generation crash --- common/mysticores/worldgen/WorldGenOres.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/mysticores/worldgen/WorldGenOres.java b/common/mysticores/worldgen/WorldGenOres.java index 25d54ce..c8fb70d 100644 --- a/common/mysticores/worldgen/WorldGenOres.java +++ b/common/mysticores/worldgen/WorldGenOres.java @@ -35,21 +35,21 @@ public class WorldGenOres implements IWorldGenerator { private void generateSurface(World world, Random random, int blockX, int blockZ) { for (int i = 0; i < Rarity.ADAMANTINE; i++) { - int Xcoord = blockX + random.nextInt(8); + int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(13) + 3; - int Zcoord = blockZ + random.nextInt(8); + int Zcoord = blockZ + random.nextInt(16); adamantine.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.AGATE; i++) { - int Xcoord = blockX + random.nextInt(32); + int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(57) + 3; - int Zcoord = blockZ + random.nextInt(32); + int Zcoord = blockZ + random.nextInt(16); agate.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.AMETHYST; i++) { - int Xcoord = blockX + random.nextInt(24); + int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(57) + 3; - int Zcoord = blockZ + random.nextInt(24); + int Zcoord = blockZ + random.nextInt(16); amethyst.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.IRIDIUM; i++) { @@ -71,9 +71,9 @@ public class WorldGenOres implements IWorldGenerator { topaz.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.TOURMALINE; i++) { - int Xcoord = blockX + random.nextInt(32); + int Xcoord = blockX + random.nextInt(16); int Ycoord = random.nextInt(57) + 3; - int Zcoord = blockZ + random.nextInt(32); + int Zcoord = blockZ + random.nextInt(16); tourmaline.generate(world, random, Xcoord, Ycoord, Zcoord); } for (int i = 0; i < Rarity.VERDITE; i++) { From 04f8b5fb1c55f2aafba8488adec4460257714ea1 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Wed, 2 Apr 2014 02:28:34 +0200 Subject: [PATCH 46/59] Prevent making empty creative tabs (those crash) --- common/MysticOres/MysticOres.java | 29 ++++++++++++++------------- common/MysticStones/MysticStones.java | 25 ++++++++++++----------- common/MysticWorld/MysticWorld.java | 14 ++++++------- 3 files changed, 35 insertions(+), 33 deletions(-) diff --git a/common/MysticOres/MysticOres.java b/common/MysticOres/MysticOres.java index d761c48..04a47a0 100644 --- a/common/MysticOres/MysticOres.java +++ b/common/MysticOres/MysticOres.java @@ -23,20 +23,7 @@ public class MysticOres implements IFuelHandler { @Instance("mysticores") public static MysticOres instance; public boolean ENABLE = true; - public static final CreativeTabs MysticOresTab = new CreativeTabs("MysticOresTab") { - - @Override - public Item getTabIconItem() { - return Item.getItemFromBlock(BlockHandler.BlockBase); - } - - @Override - @SideOnly(Side.CLIENT) - public int func_151243_f() - { - return 7; - } - }; + public static CreativeTabs MysticOresTab; public static final String[] INGOTS = { "ingotVerdite", "ingotMithril", "ingotAdamantine", "ingotIridium", "fuelIridium", "gemTourmaline", "gemAgate", "gemTopaz", "gemAmethyst", "dustMystic", " shardBloodstone", "shardGlass", "shardObsidian", "rodObsidian" }; public static final String[] ORES = { "oreAdamantine", "oreAmethyst", "oreIridium", "oreMithril", "oreSapphire", "oreTopaz", "oreVerdite", "oreBloodstone", "oreBlackSoulstone", @@ -54,6 +41,20 @@ public class MysticOres implements IFuelHandler { public void preInit(FMLPreInitializationEvent event) { ConfigurationManager.initialize(event.getSuggestedConfigurationFile()); if(ENABLE){ + MysticOresTab = new CreativeTabs("MysticOresTab") { + + @Override + public Item getTabIconItem() { + return Item.getItemFromBlock(BlockHandler.BlockBase); + } + + @Override + @SideOnly(Side.CLIENT) + public int func_151243_f() + { + return 7; + } + }; BlockHandler.initialize(); Items.initialize(); for (int i = 0; i < INGOTS.length; i++) { diff --git a/common/MysticStones/MysticStones.java b/common/MysticStones/MysticStones.java index c8503fe..5bd677c 100644 --- a/common/MysticStones/MysticStones.java +++ b/common/MysticStones/MysticStones.java @@ -24,18 +24,7 @@ public class MysticStones { public static MysticStones instance; public static boolean ENABLE = true; public static Block planks, stones, stoneBricks, reinforcedBricks; - public static final CreativeTabs MysticStonesTab = new CreativeTabs("MysticStonesTab") { - @Override - @SideOnly(Side.CLIENT) - public int func_151243_f() - { - return 4; - } - @Override - public Item getTabIconItem() { - return Item.getItemFromBlock(MysticStones.reinforcedBricks); - } - }; + public static CreativeTabs MysticStonesTab; public static final ArrayList PLANK_TYPE = new ArrayList(Arrays.asList("Purple Planks", "Green Planks", "Black Planks", "Orange Planks", "Red Planks", "Blue Planks", "Yellow Planks")); public static final ArrayList STONEBRICK_TYPES = new ArrayList(Arrays.asList("Anorthosite Bricks", "Limestone Bricks", "Marble Bricks", "Migmatite Bricks", "Orthogneiss Bricks", "Slate Bricks", "Travertine Bricks")); @@ -47,6 +36,18 @@ public class MysticStones { public void preInit(FMLPreInitializationEvent event) { Config.initialize(event.getSuggestedConfigurationFile()); if(ENABLE){ + MysticStonesTab = new CreativeTabs("MysticStonesTab") { + @Override + @SideOnly(Side.CLIENT) + public int func_151243_f() + { + return 4; + } + @Override + public Item getTabIconItem() { + return Item.getItemFromBlock(MysticStones.reinforcedBricks); + } + }; planks = new BlockPlanks(); stones = new BlockStones(); stoneBricks = new BlockStoneBricks(); diff --git a/common/MysticWorld/MysticWorld.java b/common/MysticWorld/MysticWorld.java index 0628152..8cff156 100644 --- a/common/MysticWorld/MysticWorld.java +++ b/common/MysticWorld/MysticWorld.java @@ -27,13 +27,7 @@ public class MysticWorld { public static MysticWorld instance; @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; - public static final CreativeTabs MysticWorldTab = new CreativeTabs("MysticWorldTab") { - - @Override - public Item getTabIconItem() { - return ItemHandler.earthStaff; - } - }; + public static CreativeTabs MysticWorldTab; public boolean ENABLE = true; @EventHandler @@ -50,6 +44,12 @@ public class MysticWorld { public void preInit(FMLPreInitializationEvent event) { Config.initialize(event.getSuggestedConfigurationFile()); if(ENABLE){ + MysticWorldTab = new CreativeTabs("MysticWorldTab") { + @Override + public Item getTabIconItem() { + return ItemHandler.earthStaff; + } + }; BiomeHandler.init(); BlockHandler.init(); ItemHandler.init(); From 4dae675f378f4c742bdfdda9a29323c5ca2b4c86 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 8 Apr 2014 16:51:27 +0200 Subject: [PATCH 47/59] Added config for imbued stones generation --- common/MysticWorld/Lib/Booleans.java | 1 + common/MysticWorld/Util/Config.java | 1 + common/MysticWorld/WorldGen/StonesGen.java | 13 ++++--------- .../mysticworld/WorldGen/WorldGenerators.java | 18 +++++++++--------- 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/common/MysticWorld/Lib/Booleans.java b/common/MysticWorld/Lib/Booleans.java index 8284535..3822330 100644 --- a/common/MysticWorld/Lib/Booleans.java +++ b/common/MysticWorld/Lib/Booleans.java @@ -2,6 +2,7 @@ package mysticworld.lib; public class Booleans { + public static boolean ENABLE_IMBUED_STONE_GEN; public static boolean ENABLE_BUSH_GEN; public static boolean ENABLE_GLACIER_GEN; public static boolean ENABLE_JUNGLE_REWRITE; diff --git a/common/MysticWorld/Util/Config.java b/common/MysticWorld/Util/Config.java index 8756ab0..be6501e 100644 --- a/common/MysticWorld/Util/Config.java +++ b/common/MysticWorld/Util/Config.java @@ -13,6 +13,7 @@ public class Config { config = new Configuration(file); MysticWorld.instance.ENABLE = config.get("General", "Enable", true).getBoolean(true); //Boolean Configurations + Booleans.ENABLE_IMBUED_STONE_GEN = config.get("World Generation", "Enable Imbued Stones Generation", true).getBoolean(true); Booleans.ENABLE_BUSH_GEN = config.get("World Generation", "Enable Bush Generation", true).getBoolean(true); Booleans.ENABLE_GLACIER_GEN = config.get("World Generation", "Enable Glacier Biome", true).getBoolean(true); Booleans.ENABLE_JUNGLE_REWRITE = config.get("World Generation", "Enable Vanilla Jungle Biome Modification", true).getBoolean(true); diff --git a/common/MysticWorld/WorldGen/StonesGen.java b/common/MysticWorld/WorldGen/StonesGen.java index 43fd9cc..0df055a 100644 --- a/common/MysticWorld/WorldGen/StonesGen.java +++ b/common/MysticWorld/WorldGen/StonesGen.java @@ -9,15 +9,10 @@ import net.minecraft.world.gen.feature.WorldGenerator; public class StonesGen extends WorldGenerator { @Override - public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5) { - for (int l = 0; l < 1; ++l) { - int i1 = par3 + par2Random.nextInt(8) - par2Random.nextInt(8); - int j1 = par4 + par2Random.nextInt(4) - par2Random.nextInt(4); - int k1 = par5 + par2Random.nextInt(8) - par2Random.nextInt(8); - if (par1World.isAirBlock(i1, j1, k1) && par1World.getBlock(i1, j1 - 1, k1) == Blocks.grass && BlockHandler.oreImbuedStone.canPlaceBlockAt(par1World, i1, j1, k1)) { - par1World.setBlock(i1, j1, k1, BlockHandler.oreImbuedStone, par2Random.nextInt(5), 2); - } - } + public boolean generate(World par1World, Random par2Random, int i1, int j1, int k1) { + if (par1World.isAirBlock(i1, j1, k1) && par1World.getBlock(i1, j1 - 1, k1) == Blocks.grass && BlockHandler.oreImbuedStone.canPlaceBlockAt(par1World, i1, j1, k1)) { + par1World.setBlock(i1, j1, k1, BlockHandler.oreImbuedStone, par2Random.nextInt(5), 2); + } return true; } } diff --git a/common/mysticworld/WorldGen/WorldGenerators.java b/common/mysticworld/WorldGen/WorldGenerators.java index f0f4796..4d5379e 100644 --- a/common/mysticworld/WorldGen/WorldGenerators.java +++ b/common/mysticworld/WorldGen/WorldGenerators.java @@ -15,22 +15,22 @@ public class WorldGenerators implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { - switch (world.provider.dimensionId) { - case 0: + if(world.provider.dimensionId==0) { generateSurface(world, random, chunkX * 16, chunkZ * 16); } } private void generateSurface(World world, Random random, int blockX, int blockZ) { - int Xcoord1 = blockX + random.nextInt(16) + 8; - int Ycoord1 = random.nextInt(11) + 60; - int Zcoord1 = blockZ + random.nextInt(16) + 8; - stones.generate(world, random, Xcoord1, Ycoord1, Zcoord1); + int Ycoord1; + if(Booleans.ENABLE_IMBUED_STONE_GEN){ + int Xcoord1 = blockX + random.nextInt(16); + Ycoord1 = random.nextInt(15) + 56; + int Zcoord1 = blockZ + random.nextInt(16); + stones.generate(world, random, Xcoord1, Ycoord1, Zcoord1); + } if (Booleans.ENABLE_BUSH_GEN){ - Xcoord1 = blockX + random.nextInt(16) + 8; Ycoord1 = random.nextInt(11) + 60; - Zcoord1 = blockZ + random.nextInt(16) + 8; - bushes.generate(world, random, Xcoord1, Ycoord1, Zcoord1); + bushes.generate(world, random, blockX + 8, Ycoord1, blockZ + 8); } } } \ No newline at end of file From 2c1cd82061a0b6a66d35f2fbb101122957a2af65 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 3 Jun 2014 19:09:19 +0200 Subject: [PATCH 48/59] Merging charge entities --- .../MysticWorld/Entity/EntityChargeAir.java | 130 +---------------- .../MysticWorld/Entity/EntityChargeEarth.java | 137 +----------------- .../Entity/EntityChargeEnergy.java | 129 +---------------- .../MysticWorld/Entity/EntityChargeFire.java | 128 +--------------- .../MysticWorld/Entity/EntityChargeWater.java | 133 ++--------------- 5 files changed, 38 insertions(+), 619 deletions(-) diff --git a/common/MysticWorld/Entity/EntityChargeAir.java b/common/MysticWorld/Entity/EntityChargeAir.java index cd6066a..5dc256b 100644 --- a/common/MysticWorld/Entity/EntityChargeAir.java +++ b/common/MysticWorld/Entity/EntityChargeAir.java @@ -1,22 +1,12 @@ package mysticworld.entity; -import java.util.List; - import mysticworld.MysticWorld; -import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.Vec3; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; -public class EntityChargeAir extends Entity { - public EntityPlayer shootingEntity; - private int ticksInAir = 0; +public class EntityChargeAir extends EntityCharge { private float particleScale = 1.0f; private double powerHeight = 0.75D; @@ -25,108 +15,18 @@ public class EntityChargeAir extends Entity { } public EntityChargeAir(World par1World, EntityPlayer par2EntityPlayer, float pScale, double pHeight) { - super(par1World); - this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); - this.setPosition(this.posX, this.posY, this.posZ); - this.motionX = -MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.motionY = (-MathHelper.sin((this.rotationPitch) / 180.0F * (float) Math.PI)); - this.motionZ = MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.shootingEntity = par2EntityPlayer; + super(par1World,par2EntityPlayer); this.particleScale = pScale; this.powerHeight = pHeight; } @Override - public boolean canBeCollidedWith() { - return true; - } - - @Override - public float getBrightness(float par1) { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public int getBrightnessForRender(float par1) { - return 15728880; - } - - @Override - public float getCollisionBorderSize() { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public float getShadowSize() { - return 0.0F; - } - - @Override - public void onUpdate() { - if (!this.worldObj.isRemote && (this.shootingEntity != null && this.shootingEntity.isDead || !this.worldObj.blockExists((int) this.posX, (int) this.posY, (int) this.posZ))) { - this.setDead(); - } else { - super.onUpdate(); - Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); - vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - if (movingobjectposition != null) { - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord); - } - Entity entity = null; - List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D)); - double d0 = 0.0D; - for (int j = 0; j < list.size(); ++j) { - Entity entity1 = (Entity) list.get(j); - if (entity1.canBeCollidedWith() && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) { - float f = 0.3F; - AxisAlignedBB axisalignedbb = entity1.boundingBox.expand(f, f, f); - MovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31); - if (movingobjectposition1 != null) { - double d1 = vec3.distanceTo(movingobjectposition1.hitVec); - if (d1 < d0 || d0 == 0.0D) { - entity = entity1; - d0 = d1; - } - } - } - } - if (entity != null) { - movingobjectposition = new MovingObjectPosition(entity); - } - if (movingobjectposition != null) { - this.onImpact(movingobjectposition); - } - this.posX += this.motionX; - this.posY += this.motionY; - this.posZ += this.motionZ; - float f2 = this.getMotionFactor(); - if (this.isInWater()) { - for (int k = 0; k < 4; ++k) { - float f3 = 0.25F; - this.worldObj.spawnParticle("bubble", this.posX - this.motionX * f3, this.posY - this.motionY * f3, this.posZ - this.motionZ * f3, this.motionX, this.motionY, this.motionZ); - } - f2 = 0.8F; - } - MysticWorld.proxy.airFeetFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), particleScale, 15); - MysticWorld.proxy.airFeetFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), particleScale, 15); - this.setPosition(this.posX, this.posY, this.posZ); - } - } - - @Override - protected void entityInit() { - } - - protected float getMotionFactor() { - return 0.95F; + public void chargeFX() { + MysticWorld.proxy.airFeetFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), particleScale, 15); + MysticWorld.proxy.airFeetFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), particleScale, 15); } + @Override protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (!this.worldObj.isRemote) { this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "random.explode", 4.0F, (1.0F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F); @@ -135,7 +35,7 @@ public class EntityChargeAir extends Entity { if (f3 > 0.0F) { par1MovingObjectPosition.entityHit.addVelocity(this.motionX * 2 * 0.6000000238418579D / f3, 1.0D + powerHeight, this.motionZ * 2 * 0.6000000238418579D / f3); } - } else { + } /*else { int i = par1MovingObjectPosition.blockX; int j = par1MovingObjectPosition.blockY; int k = par1MovingObjectPosition.blockZ; @@ -158,22 +58,8 @@ public class EntityChargeAir extends Entity { case 5: ++i; } - } + }*/ this.setDead(); } } - - @Override - protected void readEntityFromNBT(NBTTagCompound nbttagcompound) { - } - - @Override - protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { - } - - @Override - @SideOnly(Side.CLIENT) - public boolean isInRangeToRenderDist(double par1){ - return par1 > 1.0D && super.isInRangeToRenderDist(par1); - } } \ No newline at end of file diff --git a/common/MysticWorld/Entity/EntityChargeEarth.java b/common/MysticWorld/Entity/EntityChargeEarth.java index f26a020..62e54e6 100644 --- a/common/MysticWorld/Entity/EntityChargeEarth.java +++ b/common/MysticWorld/Entity/EntityChargeEarth.java @@ -1,140 +1,33 @@ package mysticworld.entity; -import java.util.List; import java.util.Random; import mysticworld.MysticWorld; -import net.minecraft.block.Block; -import net.minecraft.entity.Entity; -import net.minecraft.entity.boss.EntityDragon; -import net.minecraft.entity.boss.EntityWither; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; -import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.DamageSource; import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.Vec3; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class EntityChargeEarth extends Entity { - public EntityPlayer shootingEntity; - public EntityPlayer entityPlayer; - public EntityDragon entityDragon; - public EntityWither entityWither; - private int ticksInAir = 0; +public class EntityChargeEarth extends EntityCharge { public EntityChargeEarth(World par1World) { super(par1World); } public EntityChargeEarth(World par1World, EntityPlayer par2EntityPlayer) { - super(par1World); - this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); - this.setPosition(this.posX, this.posY, this.posZ); - this.motionX = -MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.motionY = (-MathHelper.sin((this.rotationPitch) / 180.0F * (float) Math.PI)); - this.motionZ = MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.shootingEntity = par2EntityPlayer; + super(par1World,par2EntityPlayer); } @Override - public boolean canBeCollidedWith() { - return true; - } - - @Override - public float getBrightness(float par1) { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public int getBrightnessForRender(float par1) { - return 15728880; - } - - @Override - public float getCollisionBorderSize() { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public float getShadowSize() { - return 0.0F; - } - - @Override - public void onUpdate() { - if (!this.worldObj.isRemote && (this.shootingEntity != null && this.shootingEntity.isDead || !this.worldObj.blockExists((int) this.posX, (int) this.posY, (int) this.posZ))) { - this.setDead(); - } else { - super.onUpdate(); - Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); - vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - if (movingobjectposition != null) { - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord); - } - Entity entity = null; - List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D)); - double d0 = 0.0D; - for (int j = 0; j < list.size(); ++j) { - Entity entity1 = (Entity) list.get(j); - if (entity1.canBeCollidedWith() && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) { - float f = 0.3F; - AxisAlignedBB axisalignedbb = entity1.boundingBox.expand(f, f, f); - MovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31); - if (movingobjectposition1 != null) { - double d1 = vec3.distanceTo(movingobjectposition1.hitVec); - if (d1 < d0 || d0 == 0.0D) { - entity = entity1; - d0 = d1; - } - } - } - } - if (entity != null) { - movingobjectposition = new MovingObjectPosition(entity); - } - if (movingobjectposition != null) { - this.onImpact(movingobjectposition); - } - this.posX += this.motionX; - this.posY += this.motionY; - this.posZ += this.motionZ; - float f2 = this.getMotionFactor(); - if (this.isInWater()) { - for (int k = 0; k < 4; ++k) { - float f3 = 0.25F; - this.worldObj.spawnParticle("bubble", this.posX - this.motionX * f3, this.posY - this.motionY * f3, this.posZ - this.motionZ * f3, this.motionX, this.motionY, this.motionZ); - } - f2 = 0.8F; - } - MysticWorld.proxy.earthFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), 1.0F); - this.setPosition(this.posX, this.posY, this.posZ); - } - } - - @Override - protected void entityInit() { - } - - protected float getMotionFactor() { - return 0.95F; + public void chargeFX() { + MysticWorld.proxy.earthFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), 1.0F); } + @Override protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { Random rand = new Random(); if (!this.worldObj.isRemote) { @@ -142,7 +35,7 @@ public class EntityChargeEarth extends Entity { if (par1MovingObjectPosition.entityHit != null) { double f3 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ); if (f3 > 0.0F) { - par1MovingObjectPosition.entityHit.addVelocity(this.motionX * 1 * 0.6000000238418579D / f3, 0.1D, this.motionZ * 1 * 0.6000000238418579D / f3); + par1MovingObjectPosition.entityHit.addVelocity(this.motionX * 0.6000000238418579D / f3, 0.1D, this.motionZ * 0.6000000238418579D / f3); } par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.magic, 20); this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Items.wheat_seeds, rand.nextInt(4)))); @@ -154,7 +47,7 @@ public class EntityChargeEarth extends Entity { this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Blocks.sapling, rand.nextInt(2), 2))); this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Blocks.sapling, rand.nextInt(2), 3))); this.worldObj.spawnEntityInWorld(new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(Items.melon_seeds, rand.nextInt(3)))); - } else { + }/* else { int i = par1MovingObjectPosition.blockX; int j = par1MovingObjectPosition.blockY; int k = par1MovingObjectPosition.blockZ; @@ -177,22 +70,8 @@ public class EntityChargeEarth extends Entity { case 5: ++i; } - } + }*/ this.setDead(); } } - - @Override - protected void readEntityFromNBT(NBTTagCompound nbttagcompound) { - } - - @Override - protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { - } - - @Override - @SideOnly(Side.CLIENT) - public boolean isInRangeToRenderDist(double par1){ - return par1 > 1.0D && super.isInRangeToRenderDist(par1); - } } diff --git a/common/MysticWorld/Entity/EntityChargeEnergy.java b/common/MysticWorld/Entity/EntityChargeEnergy.java index 724a874..e6ba12c 100644 --- a/common/MysticWorld/Entity/EntityChargeEnergy.java +++ b/common/MysticWorld/Entity/EntityChargeEnergy.java @@ -1,128 +1,27 @@ package mysticworld.entity; -import java.util.List; - import mysticworld.MysticWorld; -import net.minecraft.entity.Entity; import net.minecraft.entity.effect.EntityLightningBolt; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.Vec3; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class EntityChargeEnergy extends Entity { - public EntityPlayer shootingEntity; - private int ticksInAir = 0; +public class EntityChargeEnergy extends EntityCharge { public EntityChargeEnergy(World par1World) { super(par1World); } public EntityChargeEnergy(World par1World, EntityPlayer par2EntityPlayer) { - super(par1World); - this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); - this.setPosition(this.posX, this.posY, this.posZ); - this.motionX = -MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.motionY = (-MathHelper.sin((this.rotationPitch) / 180.0F * (float) Math.PI)); - this.motionZ = MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.shootingEntity = par2EntityPlayer; + super(par1World,par2EntityPlayer); } @Override - public boolean canBeCollidedWith() { - return true; - } - - @Override - public float getBrightness(float par1) { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public int getBrightnessForRender(float par1) { - return 15728880; - } - - @Override - public float getCollisionBorderSize() { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public float getShadowSize() { - return 0.0F; - } - - @Override - public void onUpdate() { - if (!this.worldObj.isRemote && (this.shootingEntity != null && this.shootingEntity.isDead || !this.worldObj.blockExists((int) this.posX, (int) this.posY, (int) this.posZ))) { - this.setDead(); - } else { - super.onUpdate(); - Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); - vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - if (movingobjectposition != null) { - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord); - } - Entity entity = null; - List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D)); - double d0 = 0.0D; - for (int j = 0; j < list.size(); ++j) { - Entity entity1 = (Entity) list.get(j); - if (entity1.canBeCollidedWith() && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) { - float f = 0.3F; - AxisAlignedBB axisalignedbb = entity1.boundingBox.expand(f, f, f); - MovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31); - if (movingobjectposition1 != null) { - double d1 = vec3.distanceTo(movingobjectposition1.hitVec); - if (d1 < d0 || d0 == 0.0D) { - entity = entity1; - d0 = d1; - } - } - } - } - if (entity != null) { - movingobjectposition = new MovingObjectPosition(entity); - } - if (movingobjectposition != null) { - this.onImpact(movingobjectposition); - } - this.posX += this.motionX; - this.posY += this.motionY; - this.posZ += this.motionZ; - float f2 = this.getMotionFactor(); - if (this.isInWater()) { - for (int k = 0; k < 4; ++k) { - float f3 = 0.25F; - this.worldObj.spawnParticle("bubble", this.posX - this.motionX * f3, this.posY - this.motionY * f3, this.posZ - this.motionZ * f3, this.motionX, this.motionY, this.motionZ); - } - f2 = 0.8F; - } - MysticWorld.proxy.energyFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), 1.0F); - this.setPosition(this.posX, this.posY, this.posZ); - } - } - - @Override - protected void entityInit() { - } - - protected float getMotionFactor() { - return 0.95F; + public void chargeFX() { + MysticWorld.proxy.energyFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), 1.0F); } + @Override protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { int i = par1MovingObjectPosition.blockX; int j = par1MovingObjectPosition.blockY; @@ -136,7 +35,7 @@ public class EntityChargeEnergy extends Entity { worldObj.addWeatherEffect(new EntityLightningBolt(worldObj, par1MovingObjectPosition.entityHit.posX, par1MovingObjectPosition.entityHit.posY, par1MovingObjectPosition.entityHit.posZ)); } else { worldObj.addWeatherEffect(new EntityLightningBolt(worldObj, i, j, k)); - switch (par1MovingObjectPosition.sideHit) { + /*switch (par1MovingObjectPosition.sideHit) { case 0: --j; break; @@ -154,23 +53,9 @@ public class EntityChargeEnergy extends Entity { break; case 5: ++i; - } + }*/ } this.setDead(); } } - - @Override - protected void readEntityFromNBT(NBTTagCompound nbttagcompound) { - } - - @Override - protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { - } - - @Override - @SideOnly(Side.CLIENT) - public boolean isInRangeToRenderDist(double par1){ - return par1 > 1.0D && super.isInRangeToRenderDist(par1); - } } \ No newline at end of file diff --git a/common/MysticWorld/Entity/EntityChargeFire.java b/common/MysticWorld/Entity/EntityChargeFire.java index 008677b..1cd722a 100644 --- a/common/MysticWorld/Entity/EntityChargeFire.java +++ b/common/MysticWorld/Entity/EntityChargeFire.java @@ -1,137 +1,35 @@ package mysticworld.entity; -import java.util.List; - import mysticworld.MysticWorld; -import net.minecraft.block.Block; -import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.DamageSource; import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.Vec3; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class EntityChargeFire extends Entity { - public EntityPlayer shootingEntity; - private int ticksInAir = 0; +public class EntityChargeFire extends EntityCharge { public EntityChargeFire(World par1World) { super(par1World); } public EntityChargeFire(World par1World, EntityPlayer par2EntityPlayer) { - super(par1World); - this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); - this.setPosition(this.posX, this.posY, this.posZ); - this.motionX = -MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.motionY = (-MathHelper.sin((this.rotationPitch) / 180.0F * (float) Math.PI)); - this.motionZ = MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.shootingEntity = par2EntityPlayer; + super(par1World,par2EntityPlayer); } @Override - public boolean canBeCollidedWith() { - return true; - } - - @Override - public float getBrightness(float par1) { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public int getBrightnessForRender(float par1) { - return 15728880; - } - - @Override - public float getCollisionBorderSize() { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public float getShadowSize() { - return 0.0F; - } - - @Override - public void onUpdate() { - if (!this.worldObj.isRemote && (this.shootingEntity != null && this.shootingEntity.isDead || !this.worldObj.blockExists((int) this.posX, (int) this.posY, (int) this.posZ))) { - this.setDead(); - } else { - super.onUpdate(); - Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); - vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - if (movingobjectposition != null) { - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord); - } - Entity entity = null; - List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D)); - double d0 = 0.0D; - for (int j = 0; j < list.size(); ++j) { - Entity entity1 = (Entity) list.get(j); - if (entity1.canBeCollidedWith() && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) { - float f = 0.3F; - AxisAlignedBB axisalignedbb = entity1.boundingBox.expand(f, f, f); - MovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31); - if (movingobjectposition1 != null) { - double d1 = vec3.distanceTo(movingobjectposition1.hitVec); - if (d1 < d0 || d0 == 0.0D) { - entity = entity1; - d0 = d1; - } - } - } - } - if (entity != null) { - movingobjectposition = new MovingObjectPosition(entity); - } - if (movingobjectposition != null) { - this.onImpact(movingobjectposition); - } - this.posX += this.motionX; - this.posY += this.motionY; - this.posZ += this.motionZ; - float f2 = this.getMotionFactor(); - if (this.isInWater()) { - for (int k = 0; k < 4; ++k) { - float f3 = 0.25F; - this.worldObj.spawnParticle("bubble", this.posX - this.motionX * f3, this.posY - this.motionY * f3, this.posZ - this.motionZ * f3, this.motionX, this.motionY, this.motionZ); - } - f2 = 0.8F; - } - MysticWorld.proxy.fireFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), 1.0F); - this.setPosition(this.posX, this.posY, this.posZ); - } - } - - @Override - protected void entityInit() { - } - - protected float getMotionFactor() { - return 0.95F; + public void chargeFX() { + MysticWorld.proxy.fireFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), 1.0F); } + @Override protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (!this.worldObj.isRemote) { this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "random.explode", 4.0F, (1.0F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F); if (par1MovingObjectPosition.entityHit != null) { double f3 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ); if (f3 > 0.0F) { - par1MovingObjectPosition.entityHit.addVelocity(this.motionX * 1 * 0.6000000238418579D / f3, 0.1D, this.motionZ * 1 * 0.6000000238418579D / f3); + par1MovingObjectPosition.entityHit.addVelocity(this.motionX * 0.6000000238418579D / f3, 0.1D, this.motionZ * 0.6000000238418579D / f3); } if (!par1MovingObjectPosition.entityHit.isImmuneToFire()) { par1MovingObjectPosition.entityHit.setFire(5); @@ -167,18 +65,4 @@ public class EntityChargeFire extends Entity { this.setDead(); } } - - @Override - protected void readEntityFromNBT(NBTTagCompound nbttagcompound) { - } - - @Override - protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { - } - - @Override - @SideOnly(Side.CLIENT) - public boolean isInRangeToRenderDist(double par1){ - return par1 > 1.0D && super.isInRangeToRenderDist(par1); - } } diff --git a/common/MysticWorld/Entity/EntityChargeWater.java b/common/MysticWorld/Entity/EntityChargeWater.java index 45ac24d..c77c2b0 100644 --- a/common/MysticWorld/Entity/EntityChargeWater.java +++ b/common/MysticWorld/Entity/EntityChargeWater.java @@ -1,135 +1,34 @@ package mysticworld.entity; -import java.util.List; - import mysticworld.MysticWorld; -import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.DamageSource; import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; -import net.minecraft.util.Vec3; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class EntityChargeWater extends Entity { - public EntityPlayer shootingEntity; - private int ticksInAir = 0; +public class EntityChargeWater extends EntityCharge { public EntityChargeWater(World par1World) { super(par1World); } public EntityChargeWater(World par1World, EntityPlayer par2EntityPlayer) { - super(par1World); - this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); - this.setPosition(this.posX, this.posY, this.posZ); - this.motionX = -MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.motionY = (-MathHelper.sin((this.rotationPitch) / 180.0F * (float) Math.PI)); - this.motionZ = MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); - this.shootingEntity = par2EntityPlayer; + super(par1World,par2EntityPlayer); } @Override - public boolean canBeCollidedWith() { - return true; - } - - @Override - public float getBrightness(float par1) { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public int getBrightnessForRender(float par1) { - return 15728880; - } - - @Override - public float getCollisionBorderSize() { - return 1.0F; - } - - @Override - @SideOnly(Side.CLIENT) - public float getShadowSize() { - return 0.0F; - } - - @Override - public void onUpdate() { - if (!this.worldObj.isRemote && (this.shootingEntity != null && this.shootingEntity.isDead || !this.worldObj.blockExists((int) this.posX, (int) this.posY, (int) this.posZ))) { - this.setDead(); - } else { - super.onUpdate(); - Vec3 vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - Vec3 vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); - vec3 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX, this.posY, this.posZ); - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); - if (movingobjectposition != null) { - vec31 = this.worldObj.getWorldVec3Pool().getVecFromPool(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord); - } - Entity entity = null; - List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D)); - double d0 = 0.0D; - for (int j = 0; j < list.size(); ++j) { - Entity entity1 = (Entity) list.get(j); - if (entity1.canBeCollidedWith() && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) { - float f = 0.3F; - AxisAlignedBB axisalignedbb = entity1.boundingBox.expand(f, f, f); - MovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31); - if (movingobjectposition1 != null) { - double d1 = vec3.distanceTo(movingobjectposition1.hitVec); - if (d1 < d0 || d0 == 0.0D) { - entity = entity1; - d0 = d1; - } - } - } - } - if (entity != null) { - movingobjectposition = new MovingObjectPosition(entity); - } - if (movingobjectposition != null) { - this.onImpact(movingobjectposition); - } - this.posX += this.motionX; - this.posY += this.motionY; - this.posZ += this.motionZ; - float f2 = this.getMotionFactor(); - if (this.isInWater()) { - for (int k = 0; k < 4; ++k) { - float f3 = 0.25F; - this.worldObj.spawnParticle("bubble", this.posX - this.motionX * f3, this.posY - this.motionY * f3, this.posZ - this.motionZ * f3, this.motionX, this.motionY, this.motionZ); - } - f2 = 0.8F; - } - MysticWorld.proxy.waterFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), 1.0F); - this.setPosition(this.posX, this.posY, this.posZ); - } - } - - @Override - protected void entityInit() { - } - - protected float getMotionFactor() { - return 0.95F; + public void chargeFX() { + MysticWorld.proxy.waterFX(this.worldObj, this.posX + (rand.nextDouble() / 2), this.posY + 0.5D, this.posZ + (rand.nextDouble() / 2), 1.0F); } + @Override protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (!this.worldObj.isRemote) { this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "random.explode", 4.0F, (1.0F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F); if (par1MovingObjectPosition.entityHit != null) { double f3 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ); if (f3 > 0.0F) { - par1MovingObjectPosition.entityHit.addVelocity(this.motionX * 1 * 0.6000000238418579D / f3, 0.1D, this.motionZ * 1 * 0.6000000238418579D / f3); + par1MovingObjectPosition.entityHit.addVelocity(this.motionX * 0.6000000238418579D / f3, 0.1D, this.motionZ * 0.6000000238418579D / f3); } if (par1MovingObjectPosition.entityHit.isImmuneToFire()) { par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.magic, 20); @@ -137,8 +36,8 @@ public class EntityChargeWater extends Entity { if (par1MovingObjectPosition.entityHit.isBurning()) { par1MovingObjectPosition.entityHit.extinguish(); } - } else { - int i = par1MovingObjectPosition.blockX; + }/* else { + /*int i = par1MovingObjectPosition.blockX; int j = par1MovingObjectPosition.blockY; int k = par1MovingObjectPosition.blockZ; switch (par1MovingObjectPosition.sideHit) { @@ -160,22 +59,8 @@ public class EntityChargeWater extends Entity { case 5: ++i; } - } + }*/ this.setDead(); } } - - @Override - protected void readEntityFromNBT(NBTTagCompound nbttagcompound) { - } - - @Override - protected void writeEntityToNBT(NBTTagCompound nbttagcompound) { - } - - @Override - @SideOnly(Side.CLIENT) - public boolean isInRangeToRenderDist(double par1){ - return par1 > 1.0D && super.isInRangeToRenderDist(par1); - } } From 07b69ca8e032b4aa34ee43fd17c2a145804c3a88 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 3 Jun 2014 19:09:45 +0200 Subject: [PATCH 49/59] Cleaning stuff --- common/MysticOres/Blocks/BlockHandler.java | 2 +- common/MysticOres/Items/EnumTools.java | 26 ++++++++++--------- common/MysticRuins/Config.java | 2 +- common/MysticWorld/Biome/BiomeGenJungle.java | 1 - common/MysticWorld/Entity/EntityHandler.java | 10 +++---- common/MysticWorld/Items/EnumArmor.java | 8 +++--- common/MysticWorld/Items/ItemImbuedShard.java | 1 - 7 files changed, 25 insertions(+), 25 deletions(-) diff --git a/common/MysticOres/Blocks/BlockHandler.java b/common/MysticOres/Blocks/BlockHandler.java index 754e6df..69aa7ef 100644 --- a/common/MysticOres/Blocks/BlockHandler.java +++ b/common/MysticOres/Blocks/BlockHandler.java @@ -7,7 +7,7 @@ import java.util.ArrayList; import java.util.Arrays; public class BlockHandler { - public static ArrayList BLOCK_NAMES = new ArrayList(Arrays.asList("Adamantine Ore", "Amethyst Ore", "Iridium Ore", "Mithril Ore", "Tourmaline Ore", "Topaz Ore", "Verdite Ore", "Bloodstone", "Black Soulstone", + public static final ArrayList BLOCK_NAMES = new ArrayList(Arrays.asList("Adamantine Ore", "Amethyst Ore", "Iridium Ore", "Mithril Ore", "Tourmaline Ore", "Topaz Ore", "Verdite Ore", "Bloodstone", "Black Soulstone", "Blue Soulstone", "Red Soulstone", "Agate Ore", "Tempered Glass")); public static Block BlockBase; diff --git a/common/MysticOres/Items/EnumTools.java b/common/MysticOres/Items/EnumTools.java index 5388c45..1bb53e4 100644 --- a/common/MysticOres/Items/EnumTools.java +++ b/common/MysticOres/Items/EnumTools.java @@ -6,17 +6,19 @@ import net.minecraftforge.common.util.EnumHelper; public class EnumTools { - static Item.ToolMaterial verditeToolMaterial = EnumHelper.addToolMaterial("Verdite", 1, 262, 5.0F, 1, 5); - static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("Mithril", 2, 500, 7.0F, 2, 9); - static Item.ToolMaterial adamantineToolMaterial = EnumHelper.addToolMaterial("Adamantine", 3, 3000, 10.0F, 5, 13); - static Item.ToolMaterial iridiumToolMaterial = EnumHelper.addToolMaterial("Iridium", 3, 4000, 12.0F, 7, 15); - static Item.ToolMaterial obsidianToolMaterial = EnumHelper.addToolMaterial("Obsidian", 2, 100, 4.0F, 6, 11); - static Item.ToolMaterial bloodstoneToolMaterial = EnumHelper.addToolMaterial("Bloodstone", 3, 200, 16.0F, 8, 12); + public static final Item.ToolMaterial verditeToolMaterial = EnumHelper.addToolMaterial("Verdite", 1, 262, 5.0F, 1, 5); + public static final Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("Mithril", 2, 500, 7.0F, 2, 9); + public static final Item.ToolMaterial adamantineToolMaterial = EnumHelper.addToolMaterial("Adamantine", 3, 3000, 10.0F, 5, 13); + public static final Item.ToolMaterial iridiumToolMaterial = EnumHelper.addToolMaterial("Iridium", 3, 4000, 12.0F, 7, 15); + public static final Item.ToolMaterial obsidianToolMaterial = EnumHelper.addToolMaterial("Obsidian", 2, 100, 4.0F, 6, 11); + public static final Item.ToolMaterial bloodstoneToolMaterial = EnumHelper.addToolMaterial("Bloodstone", 3, 200, 16.0F, 8, 12); - static { verditeToolMaterial.customCraftingMaterial = Items.Resource; } - static { mithrilToolMaterial.customCraftingMaterial = Items.Resource; } - static { adamantineToolMaterial.customCraftingMaterial = Items.Resource; } - static { iridiumToolMaterial.customCraftingMaterial = Items.Resource; } - static { obsidianToolMaterial.customCraftingMaterial = Item.getItemFromBlock(Blocks.obsidian); } - static { bloodstoneToolMaterial.customCraftingMaterial = Items.Resource; } + static { + verditeToolMaterial.customCraftingMaterial = Items.Resource; + mithrilToolMaterial.customCraftingMaterial = Items.Resource; + adamantineToolMaterial.customCraftingMaterial = Items.Resource; + iridiumToolMaterial.customCraftingMaterial = Items.Resource; + obsidianToolMaterial.customCraftingMaterial = Item.getItemFromBlock(Blocks.obsidian); + bloodstoneToolMaterial.customCraftingMaterial = Items.Resource; + } } diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 6a795ff..8e5937d 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -154,7 +154,7 @@ public class Config { String[] item; for (String txt : items) { item = txt.split(":"); - Item id = null; + Item id; int amount = 1, data = 0; try { switch (item.length) { diff --git a/common/MysticWorld/Biome/BiomeGenJungle.java b/common/MysticWorld/Biome/BiomeGenJungle.java index 56899b0..0356dbc 100644 --- a/common/MysticWorld/Biome/BiomeGenJungle.java +++ b/common/MysticWorld/Biome/BiomeGenJungle.java @@ -3,7 +3,6 @@ package mysticworld.biome; import java.util.Random; import net.minecraft.world.gen.feature.WorldGenAbstractTree; -import net.minecraft.world.gen.feature.WorldGenHugeTrees; import net.minecraft.world.gen.feature.WorldGenMegaJungle; import net.minecraft.world.gen.feature.WorldGenTrees; diff --git a/common/MysticWorld/Entity/EntityHandler.java b/common/MysticWorld/Entity/EntityHandler.java index ea84b64..121a1e5 100644 --- a/common/MysticWorld/Entity/EntityHandler.java +++ b/common/MysticWorld/Entity/EntityHandler.java @@ -6,11 +6,11 @@ import cpw.mods.fml.common.registry.EntityRegistry; public class EntityHandler { //Entity IDs - public static int ENTITY_AIR_CHARGE = 1; - public static int ENTITY_FIREBALL = 2; - public static int ENTITY_EARTH_CHARGE = 3; - public static int ENTITY_ENERGY_CHARGE = 4; - public static int ENTITY_WATER_CHARGE = 5; + public static final int ENTITY_AIR_CHARGE = 1; + public static final int ENTITY_FIREBALL = 2; + public static final int ENTITY_EARTH_CHARGE = 3; + public static final int ENTITY_ENERGY_CHARGE = 4; + public static final int ENTITY_WATER_CHARGE = 5; public static void init() { EntityRegistry.registerModEntity(EntityChargeAir.class, Strings.ENTITY_AIR_CHARGE_NAME, ENTITY_AIR_CHARGE, MysticWorld.instance, 80, 3, false); EntityRegistry.registerModEntity(EntityChargeFire.class, Strings.ENTITY_FIREBALL_NAME, ENTITY_FIREBALL, MysticWorld.instance, 80, 3, false); diff --git a/common/MysticWorld/Items/EnumArmor.java b/common/MysticWorld/Items/EnumArmor.java index 4e8192f..cdf8a99 100644 --- a/common/MysticWorld/Items/EnumArmor.java +++ b/common/MysticWorld/Items/EnumArmor.java @@ -5,8 +5,8 @@ import net.minecraftforge.common.util.EnumHelper; public class EnumArmor { - static ItemArmor.ArmorMaterial Verdite = EnumHelper.addArmorMaterial("Verdite", 262, new int[]{2, 5, 4, 1}, 5); - static ItemArmor.ArmorMaterial Mithril = EnumHelper.addArmorMaterial("Mithril", 500, new int[]{2, 7, 6, 2}, 9); - static ItemArmor.ArmorMaterial Adamantine = EnumHelper.addArmorMaterial("Adamantine", 3000, new int[]{4, 9, 6, 4}, 13); - static ItemArmor.ArmorMaterial Iridium = EnumHelper.addArmorMaterial("Iridium", 4000, new int[]{4, 10, 7, 5}, 15); + public static final ItemArmor.ArmorMaterial Verdite = EnumHelper.addArmorMaterial("Verdite", 262, new int[]{2, 5, 4, 1}, 5); + public static final ItemArmor.ArmorMaterial Mithril = EnumHelper.addArmorMaterial("Mithril", 500, new int[]{2, 7, 6, 2}, 9); + public static final ItemArmor.ArmorMaterial Adamantine = EnumHelper.addArmorMaterial("Adamantine", 3000, new int[]{4, 9, 6, 4}, 13); + public static final ItemArmor.ArmorMaterial Iridium = EnumHelper.addArmorMaterial("Iridium", 4000, new int[]{4, 10, 7, 5}, 15); } diff --git a/common/MysticWorld/Items/ItemImbuedShard.java b/common/MysticWorld/Items/ItemImbuedShard.java index 782c234..a4d084d 100644 --- a/common/MysticWorld/Items/ItemImbuedShard.java +++ b/common/MysticWorld/Items/ItemImbuedShard.java @@ -3,7 +3,6 @@ package mysticworld.items; import java.util.List; import mysticworld.MysticWorld; -import mysticworld.lib.Strings; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; From 6badf4c9dec608a7fcffde44601de19d7fac94f2 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 3 Jun 2014 19:43:01 +0200 Subject: [PATCH 50/59] Merging armors --- .gitignore | 15 +++++----- .../Items/ItemArmorAdamantine.java | 29 ------------------- .../MysticWorld/Items/ItemArmorIridium.java | 23 ++------------- .../MysticWorld/Items/ItemArmorMithril.java | 29 ------------------- .../MysticWorld/Items/ItemArmorVerdite.java | 29 ------------------- common/mysticworld/items/ItemHandler.java | 24 +++++++-------- 6 files changed, 22 insertions(+), 127 deletions(-) delete mode 100644 common/MysticWorld/Items/ItemArmorAdamantine.java delete mode 100644 common/MysticWorld/Items/ItemArmorMithril.java delete mode 100644 common/MysticWorld/Items/ItemArmorVerdite.java diff --git a/.gitignore b/.gitignore index d06ac50..7f750cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ +/*/ /* -!/common/assets/ -!/common/mysticores/ -!/common/mysticruins/ -!/common/mysticstones/ -!/common/mysticworld/ -!/common/mcmod.info -!/common/build.gradle \ No newline at end of file +!common/assets/** +!common/mysticores/** +!common/mysticruins/** +!common/mysticstones/** +!common/mysticworld/** +!common/mcmod.info +!common/build.gradle \ No newline at end of file diff --git a/common/MysticWorld/Items/ItemArmorAdamantine.java b/common/MysticWorld/Items/ItemArmorAdamantine.java deleted file mode 100644 index 8dcecef..0000000 --- a/common/MysticWorld/Items/ItemArmorAdamantine.java +++ /dev/null @@ -1,29 +0,0 @@ -package mysticworld.items; - -import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.entity.Entity; -import net.minecraft.item.ItemArmor; -import net.minecraft.item.ItemStack; - -public class ItemArmorAdamantine extends ItemArmor { - int ArmorType; - - public ItemArmorAdamantine(ArmorMaterial par2EnumArmorMaterial, int par4) { - super(par2EnumArmorMaterial, 0, par4); - this.ArmorType = par4; - this.setMaxDamage(3000); - this.setCreativeTab(MysticWorld.MysticWorldTab); - } - - @Override - public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { - int suffix = this.armorType == 2 ? 2 : 1; - return "mysticworld:textures/models/armor/Adamantine_layer_" + suffix + ".png"; - } - - @Override - public void registerIcons(IIconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticworld:AdamantineArmor_" + ArmorType); - } -} diff --git a/common/MysticWorld/Items/ItemArmorIridium.java b/common/MysticWorld/Items/ItemArmorIridium.java index b0a5905..fdaae09 100644 --- a/common/MysticWorld/Items/ItemArmorIridium.java +++ b/common/MysticWorld/Items/ItemArmorIridium.java @@ -1,29 +1,15 @@ package mysticworld.items; -import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; -public class ItemArmorIridium extends ItemArmor { - int ArmorType; - +public class ItemArmorIridium extends ItemMaterialArmor { public ItemArmorIridium(ArmorMaterial par2EnumArmorMaterial, int par4) { - super(par2EnumArmorMaterial, 0, par4); - this.ArmorType = par4; + super(par2EnumArmorMaterial, par4); this.setMaxDamage(4000); - this.setCreativeTab(MysticWorld.MysticWorldTab); - } - - @Override - public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { - int suffix = this.armorType == 2 ? 2 : 1; - return "mysticworld:textures/models/armor/Iridium_layer_" + suffix + ".png"; } @Override @@ -56,9 +42,4 @@ public class ItemArmorIridium extends ItemArmor { } } } - - @Override - public void registerIcons(IIconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticworld:IridiumArmor_" + ArmorType); - } } \ No newline at end of file diff --git a/common/MysticWorld/Items/ItemArmorMithril.java b/common/MysticWorld/Items/ItemArmorMithril.java deleted file mode 100644 index d6bd4e8..0000000 --- a/common/MysticWorld/Items/ItemArmorMithril.java +++ /dev/null @@ -1,29 +0,0 @@ -package mysticworld.items; - -import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.entity.Entity; -import net.minecraft.item.ItemArmor; -import net.minecraft.item.ItemStack; - -public class ItemArmorMithril extends ItemArmor { - int ArmorType; - - public ItemArmorMithril(ArmorMaterial par2EnumArmorMaterial, int par4) { - super(par2EnumArmorMaterial, 0, par4); - this.ArmorType = par4; - this.setMaxDamage(500); - this.setCreativeTab(MysticWorld.MysticWorldTab); - } - - @Override - public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { - int suffix = this.armorType == 2 ? 2 : 1; - return "mysticworld:textures/models/armor/Mithril_layer_" + suffix + ".png"; - } - - @Override - public void registerIcons(IIconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticworld:MithrilArmor_" + ArmorType); - } -} diff --git a/common/MysticWorld/Items/ItemArmorVerdite.java b/common/MysticWorld/Items/ItemArmorVerdite.java deleted file mode 100644 index 2d2b295..0000000 --- a/common/MysticWorld/Items/ItemArmorVerdite.java +++ /dev/null @@ -1,29 +0,0 @@ -package mysticworld.items; - -import mysticworld.MysticWorld; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.entity.Entity; -import net.minecraft.item.ItemArmor; -import net.minecraft.item.ItemStack; - -public class ItemArmorVerdite extends ItemArmor { - int ArmorType; - - public ItemArmorVerdite(ArmorMaterial par2EnumArmorMaterial, int par4) { - super(par2EnumArmorMaterial, 0, par4); - this.ArmorType = par4; - this.setMaxDamage(262); - this.setCreativeTab(MysticWorld.MysticWorldTab); - } - - @Override - public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { - int suffix = this.armorType == 2 ? 2 : 1; - return "mysticworld:textures/models/armor/Verdite_layer_" + suffix + ".png"; - } - - @Override - public void registerIcons(IIconRegister iconRegister) { - itemIcon = iconRegister.registerIcon("mysticworld:VerditeArmor_" + ArmorType); - } -} diff --git a/common/mysticworld/items/ItemHandler.java b/common/mysticworld/items/ItemHandler.java index 71638cd..ac19c5e 100644 --- a/common/mysticworld/items/ItemHandler.java +++ b/common/mysticworld/items/ItemHandler.java @@ -58,18 +58,18 @@ public class ItemHandler { earthOrb = new ItemOrbEarth().setUnlocalizedName(Strings.EARTH_ORB_NAME); airOrb = new ItemOrbAir().setUnlocalizedName(Strings.AIR_ORB_NAME); energyOrb = new ItemOrbEnergy().setUnlocalizedName(Strings.ENERGY_ORB_NAME); - verditeHelmet = new ItemArmorVerdite(EnumArmor.Verdite, 0).setUnlocalizedName(Strings.VERDITE_HELMET_NAME); - verditeChestplate = new ItemArmorVerdite(EnumArmor.Verdite, 1).setUnlocalizedName(Strings.VERDITE_CHESTPLATE_NAME); - verditeLeggings = new ItemArmorVerdite(EnumArmor.Verdite, 2).setUnlocalizedName(Strings.VERDITE_LEGGINGS_NAME); - verditeBoots = new ItemArmorVerdite(EnumArmor.Verdite, 3).setUnlocalizedName(Strings.VERDITE_BOOTS_NAME); - mithrilHelmet = new ItemArmorMithril(EnumArmor.Mithril, 0).setUnlocalizedName(Strings.MITHRIL_HELMET_NAME); - mithrilChestplate = new ItemArmorMithril(EnumArmor.Mithril, 1).setUnlocalizedName(Strings.MITHRIL_CHESTPLATE_NAME); - mithrilLeggings = new ItemArmorMithril(EnumArmor.Mithril, 2).setUnlocalizedName(Strings.MITHRIL_LEGGINGS_NAME); - mithrilBoots = new ItemArmorMithril(EnumArmor.Mithril, 3).setUnlocalizedName(Strings.MITHRIL_BOOTS_NAME); - adamantineHelmet = new ItemArmorAdamantine(EnumArmor.Adamantine, 0).setUnlocalizedName(Strings.ADAMANTINE_HELMET_NAME); - adamantineChestplate = new ItemArmorAdamantine(EnumArmor.Adamantine, 1).setUnlocalizedName(Strings.ADAMANTINE_CHESTPLATE_NAME); - adamantineLeggings = new ItemArmorAdamantine(EnumArmor.Adamantine, 2).setUnlocalizedName(Strings.ADAMANTINE_LEGGINGS_NAME); - adamantineBoots = new ItemArmorAdamantine(EnumArmor.Adamantine, 3).setUnlocalizedName(Strings.ADAMANTINE_BOOTS_NAME); + verditeHelmet = new ItemMaterialArmor(EnumArmor.Verdite, 0).setUnlocalizedName(Strings.VERDITE_HELMET_NAME).setMaxDamage(262); + verditeChestplate = new ItemMaterialArmor(EnumArmor.Verdite, 1).setUnlocalizedName(Strings.VERDITE_CHESTPLATE_NAME).setMaxDamage(262); + verditeLeggings = new ItemMaterialArmor(EnumArmor.Verdite, 2).setUnlocalizedName(Strings.VERDITE_LEGGINGS_NAME).setMaxDamage(262); + verditeBoots = new ItemMaterialArmor(EnumArmor.Verdite, 3).setUnlocalizedName(Strings.VERDITE_BOOTS_NAME).setMaxDamage(262); + mithrilHelmet = new ItemMaterialArmor(EnumArmor.Mithril, 0).setUnlocalizedName(Strings.MITHRIL_HELMET_NAME).setMaxDamage(500); + mithrilChestplate = new ItemMaterialArmor(EnumArmor.Mithril, 1).setUnlocalizedName(Strings.MITHRIL_CHESTPLATE_NAME).setMaxDamage(500); + mithrilLeggings = new ItemMaterialArmor(EnumArmor.Mithril, 2).setUnlocalizedName(Strings.MITHRIL_LEGGINGS_NAME).setMaxDamage(500); + mithrilBoots = new ItemMaterialArmor(EnumArmor.Mithril, 3).setUnlocalizedName(Strings.MITHRIL_BOOTS_NAME).setMaxDamage(500); + adamantineHelmet = new ItemMaterialArmor(EnumArmor.Adamantine, 0).setUnlocalizedName(Strings.ADAMANTINE_HELMET_NAME).setMaxDamage(3000); + adamantineChestplate = new ItemMaterialArmor(EnumArmor.Adamantine, 1).setUnlocalizedName(Strings.ADAMANTINE_CHESTPLATE_NAME).setMaxDamage(3000); + adamantineLeggings = new ItemMaterialArmor(EnumArmor.Adamantine, 2).setUnlocalizedName(Strings.ADAMANTINE_LEGGINGS_NAME).setMaxDamage(3000); + adamantineBoots = new ItemMaterialArmor(EnumArmor.Adamantine, 3).setUnlocalizedName(Strings.ADAMANTINE_BOOTS_NAME).setMaxDamage(3000); iridiumHelmet = new ItemArmorIridium(EnumArmor.Iridium, 0).setUnlocalizedName(Strings.IRIDIUM_HELMET_NAME); iridiumChestplate = new ItemArmorIridium(EnumArmor.Iridium, 1).setUnlocalizedName(Strings.IRIDIUM_CHESTPLATE_NAME); iridiumLeggings = new ItemArmorIridium(EnumArmor.Iridium, 2).setUnlocalizedName(Strings.IRIDIUM_LEGGINGS_NAME); From 7a5056ee4c4d647fe34b310cf2650fdc07f5234b Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 3 Jun 2014 19:43:07 +0200 Subject: [PATCH 51/59] Update Forge --- common/MysticMods_common.iml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/MysticMods_common.iml b/common/MysticMods_common.iml index 8627346..16cee9c 100644 --- a/common/MysticMods_common.iml +++ b/common/MysticMods_common.iml @@ -50,7 +50,7 @@ - + From 6406bd333d3e6bce878c485af1791ad8caeedcde Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 21 Jul 2014 18:02:21 +0200 Subject: [PATCH 52/59] Update to 1.7.10 --- common/MysticMods_common.iml | 14 ++------------ common/MysticOres/Blocks/BlockHandler.java | 2 +- common/MysticWorld/Blocks/BlockHandler.java | 5 ++--- common/mysticworld/Blocks/BlockBushes.java | 2 +- common/mysticworld/items/ItemHandler.java | 6 ------ 5 files changed, 6 insertions(+), 23 deletions(-) diff --git a/common/MysticMods_common.iml b/common/MysticMods_common.iml index 16cee9c..9ef36fb 100644 --- a/common/MysticMods_common.iml +++ b/common/MysticMods_common.iml @@ -17,18 +17,13 @@ - - - - - @@ -37,20 +32,15 @@ - - - - - - - + + diff --git a/common/MysticOres/Blocks/BlockHandler.java b/common/MysticOres/Blocks/BlockHandler.java index 69aa7ef..d8ea945 100644 --- a/common/MysticOres/Blocks/BlockHandler.java +++ b/common/MysticOres/Blocks/BlockHandler.java @@ -12,6 +12,6 @@ public class BlockHandler { public static Block BlockBase; public static void initialize() { - BlockBase = GameRegistry.registerBlock(new BlockBase().setStepSound(Block.soundTypeStone), ItemBase.class, "Base Blocks", "mysticores", BLOCK_NAMES); + BlockBase = GameRegistry.registerBlock(new BlockBase().setStepSound(Block.soundTypeStone), ItemBase.class, "Base Blocks", BLOCK_NAMES); } } diff --git a/common/MysticWorld/Blocks/BlockHandler.java b/common/MysticWorld/Blocks/BlockHandler.java index 3f9c8e8..a9abb4e 100644 --- a/common/MysticWorld/Blocks/BlockHandler.java +++ b/common/MysticWorld/Blocks/BlockHandler.java @@ -1,7 +1,6 @@ package mysticworld.blocks; import mysticworld.lib.Strings; -import mysticworld.util.Reference; import net.minecraft.block.Block; import cpw.mods.fml.common.registry.GameRegistry; @@ -16,8 +15,8 @@ public class BlockHandler { public static Block oreImbuedStone, bush, lightCube, pillarPlatform, pillar, pillarInsert; public static void init() { - oreImbuedStone = GameRegistry.registerBlock(new BlockImbuedStone().setBlockName(Strings.IMBUED_STONE_NAME), ItemBlockMulti.class, Strings.IMBUED_STONE_NAME, Reference.MOD_ID, IMBUED_STONE_TYPE); - bush = GameRegistry.registerBlock(new BlockBushes().setBlockName(Strings.BUSH_NAME), ItemBlockMulti.class, Strings.BUSH_NAME, Reference.MOD_ID, BUSH_TYPES); + oreImbuedStone = GameRegistry.registerBlock(new BlockImbuedStone().setBlockName(Strings.IMBUED_STONE_NAME), ItemBlockMulti.class, Strings.IMBUED_STONE_NAME, IMBUED_STONE_TYPE); + bush = GameRegistry.registerBlock(new BlockBushes().setBlockName(Strings.BUSH_NAME), ItemBlockMulti.class, Strings.BUSH_NAME, BUSH_TYPES); lightCube = GameRegistry.registerBlock(new BlockLightCube().setBlockName(Strings.LIGHT_CUBE_NAME).setBlockTextureName("mysticworld:lightCube"), Strings.LIGHT_CUBE_NAME); pillarPlatform = GameRegistry.registerBlock(new BlockPlatform().setBlockName(Strings.PLATFORM_NAME).setBlockTextureName("mysticworld:Platform"), Strings.PLATFORM_NAME); pillar = GameRegistry.registerBlock(new BlockPillar().setBlockName(Strings.PILLAR_NAME).setBlockTextureName("mysticworld:Pillar"), Strings.PILLAR_NAME); diff --git a/common/mysticworld/Blocks/BlockBushes.java b/common/mysticworld/Blocks/BlockBushes.java index bae85a8..474dea4 100644 --- a/common/mysticworld/Blocks/BlockBushes.java +++ b/common/mysticworld/Blocks/BlockBushes.java @@ -57,7 +57,7 @@ public class BlockBushes extends BlockBush { @Override public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4) { - return AxisAlignedBB.getAABBPool().getAABB(par2 + this.getBlockBoundsMinX(), par3 + this.getBlockBoundsMinY(), par4 + this.getBlockBoundsMinZ(), par2 + this.getBlockBoundsMaxX(), par3 + this.getBlockBoundsMaxY(), par4 + this.getBlockBoundsMaxZ()); + return AxisAlignedBB.getBoundingBox(par2 + this.getBlockBoundsMinX(), par3 + this.getBlockBoundsMinY(), par4 + this.getBlockBoundsMinZ(), par2 + this.getBlockBoundsMaxX(), par3 + this.getBlockBoundsMaxY(), par4 + this.getBlockBoundsMaxZ()); } @Override diff --git a/common/mysticworld/items/ItemHandler.java b/common/mysticworld/items/ItemHandler.java index ac19c5e..c2aa7ce 100644 --- a/common/mysticworld/items/ItemHandler.java +++ b/common/mysticworld/items/ItemHandler.java @@ -14,12 +14,6 @@ public class ItemHandler { public static Item earthStaff; public static Item airStaff; public static Item energyStaff; - public static Item fireStaffPower; - public static Item waterStaffPower; - public static Item earthStaffPower; - public static Item airStaffPower; - public static Item energyStaffPower; - public static Item staffPower; public static Item fireOrb; public static Item waterOrb; public static Item earthOrb; From 374ded52b36253d071810daea9c4c89514e3df56 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 22 Jul 2014 17:19:45 +0200 Subject: [PATCH 53/59] Fixed gitignore --- .gitignore | 19 +- common/MysticOres/Items/Items.java | 2 +- common/MysticWorld/Lib/Strings.java | 2 +- common/assets/mysticores/lang/ru_RU.lang | 68 + common/assets/mysticstones/lang/ru_RU.lang | 43 + common/assets/mysticworld/lang/ru_RU.lang | 69 + common/assets/mysticworld/models/orb.obj | 1962 +++++++++++++++++ common/build.gradle | 41 + common/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 51017 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + common/gradlew | 164 ++ common/gradlew.bat | 90 + common/mcmod.info | 70 + common/mysticworld/entity/EntityCharge.java | 138 ++ .../mysticworld/items/ItemMaterialArmor.java | 25 + 15 files changed, 2689 insertions(+), 10 deletions(-) create mode 100644 common/assets/mysticores/lang/ru_RU.lang create mode 100644 common/assets/mysticstones/lang/ru_RU.lang create mode 100644 common/assets/mysticworld/lang/ru_RU.lang create mode 100644 common/assets/mysticworld/models/orb.obj create mode 100644 common/build.gradle create mode 100644 common/gradle/wrapper/gradle-wrapper.jar create mode 100644 common/gradle/wrapper/gradle-wrapper.properties create mode 100644 common/gradlew create mode 100644 common/gradlew.bat create mode 100644 common/mcmod.info create mode 100644 common/mysticworld/entity/EntityCharge.java create mode 100644 common/mysticworld/items/ItemMaterialArmor.java diff --git a/.gitignore b/.gitignore index 7f750cd..9b52529 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,13 @@ -/*/ -/* +/common/* -!common/assets/** -!common/mysticores/** -!common/mysticruins/** -!common/mysticstones/** -!common/mysticworld/** +!.gitignore +!*LICENSE.md +!README.md +!common/assets/ +!common/mysticores/ +!common/mysticruins/ +!common/mysticstones/ +!common/mysticworld/ !common/mcmod.info -!common/build.gradle \ No newline at end of file +!common/build.gradle +!common/gradle* \ No newline at end of file diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index 8cb882a..409a85b 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -20,7 +20,7 @@ public class Items { public static Item Satchel; public static void initialize() { - Resource = new ItemResource().setUnlocalizedName("mysticores:resources"); + Resource = new ItemResource().setUnlocalizedName("Resources"); VerditeSword = new ItemSword(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticores:VerditeSword") .setCreativeTab(MysticOres.MysticOresTab); VerditePickaxe = new ItemPick(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticores:VerditePickaxe") diff --git a/common/MysticWorld/Lib/Strings.java b/common/MysticWorld/Lib/Strings.java index 82c2398..398794f 100644 --- a/common/MysticWorld/Lib/Strings.java +++ b/common/MysticWorld/Lib/Strings.java @@ -34,7 +34,7 @@ public class Strings { public static final String AIR_STAFF_NAME = "airStaff"; public static final String ENERGY_STAFF_NAME = "energyStaff"; - public static final String STAFF_PART_NAME = "mysticworld:staffparts"; + public static final String STAFF_PART_NAME = "staffparts"; public static final String FIRE_ORB_NAME = "fireOrb"; public static final String WATER_ORB_NAME = "waterOrb"; diff --git a/common/assets/mysticores/lang/ru_RU.lang b/common/assets/mysticores/lang/ru_RU.lang new file mode 100644 index 0000000..c8f51ab --- /dev/null +++ b/common/assets/mysticores/lang/ru_RU.lang @@ -0,0 +1,68 @@ + +item.VerditeSword.name=Вердитовый меч +item.VerditePickaxe.name=Вердитовая кирка +item.VerditeShovel.name=Вердитовая лопата +item.VerditeAxe.name=Вердитовый топор +item.VerditeHoe.name=Вердитовая мотыга + +item.MithrilSword.name=Мифриловый меч +item.MithrilPickaxe.name=Мифриловая кирка +item.MithrilShovel.name=Мифриловая лопата +item.MithrilAxe.name=Мифриловый топор +item.MithrilHoe.name=Мифриловая мотыга + +item.AdamantineSword.name=Адамантиновый меч +item.AdamantinePickaxe.name=Адамантиновая кирка +item.AdamantineShovel.name=Адамантиновая лопата +item.AdamantineAxe.name=Адамантиновый топор +item.AdamantineHoe.name=Адамантиновая мотыга + +item.IridiumSword.name=Иридиевый меч +item.IridiumPickaxe.name=Иридиевая кирка +item.IridiumShovel.name=Иридиевая лопата +item.IridiumAxe.name=Иридиевый топор +item.IridiumHoe.name=Иридиевая мотыга + +item.ObsidianSword.name=Обсидиановый меч +item.ObsidianPickaxe.name=Обсидиановая кирка +item.ObsidianShovel.name=Обсидиановая лопата +item.ObsidianAxe.name=Обсидиановый топор +item.ObsidianHoe.name=Обсидиановая мотыга + +item.BloodstoneSword.name=Меч из кровавого камня +item.BloodstonePickaxe.name=Кирка из кровавого камня +item.BloodstoneShovel.name=Лопата из кровавого камня +item.BloodstoneAxe.name=Топор из кровавого камня +item.BloodstoneHoe.name=Мотыга из кровавого камня + +Verdite Ingot.name=Вердитовый слиток +Mithril Ingot.name=Мифриловый слиток +Adamantine Ingot.name=Адамантиновый слиток +Iridium Ingot.name=Иридиевый слиток +Iridium Nugget.name=Иридиевый самородок +Tourmaline Gem.name=Турмалин +Agate Gem.name=Агат +Topaz Gem.name=Топаз +Amethyst Gem.name=Аметист +Mystic Powder.name=Мистическая пыль +Bloodstone Shard.name=Осколок кровавого камня +Glass Shard.name=Осколок стекла +Obsidian Shard.name=Осколок обсидиана +Obsidian Rod.name=Обсидиановый стержень +item.Satchel.name=Магический рюкзак + +Adamantine Ore.name=Адамантиновая руда +Amethyst Ore.name=Аметистовая руда +Iridium Ore.name=Иридиевая руда +Mithril Ore.name=Мифриловая руда +Tourmaline Ore.name=Турмалиновая руда +Topaz Ore.name=Топазовая руда +Verdite Ore.name=Вердитовая руда +Bloodstone.name=Кровавый камень +Black Soulstone.name=Чёрный Камень Душ +Blue Soulstone.name=Синий Камень Душ +Red Soulstone.name=Красный Камень Душ +Agate Ore.name=Агатовая руда +Tempered Glass.name=Закалённое стекло + +itemGroup.MysticOresTab=MysticMods (Руды и инструменты) \ No newline at end of file diff --git a/common/assets/mysticstones/lang/ru_RU.lang b/common/assets/mysticstones/lang/ru_RU.lang new file mode 100644 index 0000000..2bc286b --- /dev/null +++ b/common/assets/mysticstones/lang/ru_RU.lang @@ -0,0 +1,43 @@ + +Purple Planks.name=Фиолетовые доски +Green Planks.name=Зелёные доски +Black Planks.name=Чёрные доски +Orange Planks.name=Оранжевые доски +Red Planks.name=Красные доски +Blue Planks.name=Синие доски +Yellow Planks.name=Жёлтые доски + +Smooth Anorthosite.name=Гладкий анортозит +Smooth Limestone.name=Гладкий известняк +Smooth Slate.name=Гладкий сланец +Smooth Migmatite.name=Гладкий мигматит +Smooth Orthogneiss.name=Гладкий ортогнейс +Smooth Marble.name=Гладкий мрамор +Smooth Travertine.name=Гладкий травертин + +Anorthosite.name=Анортозит +Limestone.name=Известняк +Slate.name=Сланец +Migmatite.name=Мигматит +Orthogneiss.name=Ортогнейс +Marble.name=Мрамор +Travertine.name=Травертин + +Anorthosite Bricks.name=Анортозитовый кирпич +Limestone Bricks.name=Известняковый кирпич +Slate Bricks.name=Сланцевый кирпич +Migmatite Bricks.name=Мигматитовый кирпич +Orthogneiss Bricks.name=Ортогнейсовый кирпич +Marble Bricks.name=Мраморный кирпич +Travertine Bricks.name=Травертиновый кирпич + +Verdite Bricks.name=Вердитовый армированный кирпич +Mithril Bricks.name=Мифриловый армированный кирпич +Adamantine Bricks.name=Адамантиновый армированный кирпич +Iridium Bricks.name=Иридиевый армированный кирпич +Topaz Bricks.name=Топазовый армированный кирпич +Tourmaline Bricks.name=Турмалиновый армированный кирпич +Amethyst Bricks.name=Аметистовый армированный кирпич +Agate Bricks.name=Агатовый армированный кирпич + +itemGroup.MysticStonesTab=MysticMods (Камни и доски) \ No newline at end of file diff --git a/common/assets/mysticworld/lang/ru_RU.lang b/common/assets/mysticworld/lang/ru_RU.lang new file mode 100644 index 0000000..e200c80 --- /dev/null +++ b/common/assets/mysticworld/lang/ru_RU.lang @@ -0,0 +1,69 @@ + +imbuedStoneFire.name=Часть Магмового Камня +imbuedStoneWater.name=Часть Камня Воды +imbuedStoneEarth.name=Часть Камня Изобилия +imbuedStoneAir.name=Часть Камня Воздуха +imbuedStoneEnergy.name=Часть Камня Энергии + +Bush.name=Кусты Мира +Poisonous Bush.name=Ядовитый куст +Weakness Bush.name=Куст слабости +Slowness Bush.name=Куст замедления +Harming Bush.name=Вредный куст +Wither Bush.name=Куст-иссушитель +Health Bush.name=Лечащий куст +Speed Bush.name=Куст скорости +Fire Resistance Bush.name=Куст спасения от огня +Regen Bush.name=Куст регенерации +Night Vision Bush.name=Куст ночного зрения +Invisibility Bush.name=Куст-невидимка + +tile.platform.name=Навершие колонны +tile.pillar.name=Колонна +tile.pillarInsert.name=Колонна + +Staff.name=Посох +Hilt.name=Древко посоха +Handle.name=Рукоять посоха +Head.name=Навершие посоха + +item.imbuedShardFire.name=Магмовый осколок +item.imbuedShardWater.name=Водяной осколок +item.imbuedShardEarth.name=Осколок изобилия +item.imbuedShardAir.name=Воздушный осколок +item.imbuedShardEnergy.name=Энергетический осколок +item.fireStaff.name=Магмовый посох +item.waterStaff.name=Посох Воды +item.earthStaff.name=Посох Изобилия +item.airStaff.name=Посох Воздуха +item.energyStaff.name=Посох Энергии +item.bushFruit.name=Таинственный фрукт + +item.verditeHelmet.name=Вердитовый шлем +item.verditeChestplate.name=Вердитовый нагрудник +item.verditeLeggings.name=Вердитовые поножи +item.verditeBoots.name=Вердитовые ботинки + +item.mithrilHelmet.name=Мифриловый шлем +item.mithrilChestplate.name=Мифриловый нагрудник +item.mithrilLeggings.name=Мифриловые поножи +item.mithrilBoots.name=Мифриловые ботинки + +item.adamantineHelmet.name=Адамантиновый шлем +item.adamantineChestplate.name=Адамантиновый нагрудник +item.adamantineLeggings.name=Адамантиновые поножи +item.adamantineBoots.name=Адамантиновые ботинки + +item.iridiumHelmet.name=Иридиевый шлем +item.iridiumChestplate.name=Иридиевый нагрудник +item.iridiumLeggings.name=Иридиевые поножи +item.iridiumBoots.name=Иридиевые ботинки + +item.fireOrb.name=Магмовый шар +item.waterOrb.name=Водяной шар +item.earthOrb.name=Шар изобилия +item.airOrb.name=Воздушный шар +item.energyOrb.name=Энергетический шар +item.voidShard.name=Пустой осколок + +itemGroup.MysticWorldTab=MysticMods (Мир) \ No newline at end of file diff --git a/common/assets/mysticworld/models/orb.obj b/common/assets/mysticworld/models/orb.obj new file mode 100644 index 0000000..355f618 --- /dev/null +++ b/common/assets/mysticworld/models/orb.obj @@ -0,0 +1,1962 @@ +# Blender v2.68 (sub 0) OBJ File: '' +# www.blender.org +mtllib orb.mtl +o Sphere +v -0.195090 0.980785 0.000000 +v -0.382683 0.923880 0.000000 +v -0.555570 0.831470 0.000000 +v -0.707107 0.707107 0.000000 +v -0.831470 0.555570 0.000000 +v -0.923880 0.382683 0.000000 +v -0.980785 0.195090 0.000000 +v -1.000000 0.000000 0.000000 +v -0.980785 -0.195090 0.000000 +v -0.923880 -0.382683 0.000000 +v -0.831470 -0.555570 0.000000 +v -0.707107 -0.707107 0.000000 +v -0.555570 -0.831470 0.000000 +v -0.382683 -0.923880 0.000000 +v -0.195090 -0.980785 0.000000 +v -0.191342 0.980785 -0.038060 +v -0.375330 0.923880 -0.074658 +v -0.544895 0.831470 -0.108386 +v -0.693520 0.707107 -0.137950 +v -0.815493 0.555570 -0.162212 +v -0.906127 0.382683 -0.180240 +v -0.961940 0.195090 -0.191342 +v -0.980785 0.000000 -0.195090 +v -0.961940 -0.195090 -0.191342 +v -0.906127 -0.382683 -0.180240 +v -0.815493 -0.555570 -0.162212 +v -0.693520 -0.707107 -0.137950 +v -0.544895 -0.831470 -0.108386 +v -0.375330 -0.923880 -0.074658 +v -0.191341 -0.980785 -0.038060 +v -0.180240 0.980785 -0.074658 +v -0.353553 0.923880 -0.146447 +v -0.513280 0.831470 -0.212608 +v -0.653281 0.707107 -0.270598 +v -0.768178 0.555570 -0.318190 +v -0.853553 0.382683 -0.353553 +v -0.906127 0.195090 -0.375330 +v -0.923880 0.000000 -0.382684 +v -0.906127 -0.195090 -0.375330 +v -0.853553 -0.382683 -0.353554 +v -0.768178 -0.555570 -0.318190 +v -0.653281 -0.707107 -0.270598 +v -0.513280 -0.831470 -0.212608 +v -0.353553 -0.923880 -0.146447 +v -0.180240 -0.980785 -0.074658 +v -0.162212 0.980785 -0.108387 +v -0.318190 0.923880 -0.212608 +v -0.461940 0.831470 -0.308658 +v -0.587938 0.707107 -0.392848 +v -0.691342 0.555570 -0.461940 +v -0.768178 0.382683 -0.513280 +v -0.815493 0.195090 -0.544895 +v -0.831470 0.000000 -0.555570 +v -0.815493 -0.195090 -0.544895 +v -0.768178 -0.382683 -0.513280 +v -0.691342 -0.555570 -0.461940 +v -0.587938 -0.707107 -0.392848 +v -0.461940 -0.831470 -0.308658 +v -0.318189 -0.923880 -0.212608 +v -0.162211 -0.980785 -0.108386 +v -0.137950 0.980785 -0.137950 +v -0.270598 0.923880 -0.270598 +v -0.392847 0.831470 -0.392848 +v -0.500000 0.707107 -0.500000 +v -0.587938 0.555570 -0.587938 +v -0.653281 0.382683 -0.653282 +v -0.693520 0.195090 -0.693520 +v -0.707107 0.000000 -0.707107 +v -0.693520 -0.195090 -0.693520 +v -0.653281 -0.382683 -0.653282 +v -0.587938 -0.555570 -0.587938 +v -0.500000 -0.707107 -0.500000 +v -0.392847 -0.831470 -0.392848 +v -0.270598 -0.923880 -0.270598 +v -0.137949 -0.980785 -0.137950 +v -0.108386 0.980785 -0.162212 +v -0.212607 0.923880 -0.318190 +v -0.308658 0.831470 -0.461940 +v -0.392847 0.707107 -0.587938 +v -0.461940 0.555570 -0.691342 +v -0.513280 0.382683 -0.768178 +v -0.544895 0.195090 -0.815493 +v -0.555570 0.000000 -0.831470 +v -0.544895 -0.195090 -0.815493 +v -0.513280 -0.382683 -0.768178 +v -0.461940 -0.555570 -0.691342 +v -0.392847 -0.707107 -0.587938 +v -0.308658 -0.831470 -0.461940 +v -0.212607 -0.923880 -0.318190 +v -0.108386 -0.980785 -0.162212 +v -0.074658 0.980785 -0.180240 +v -0.146446 0.923880 -0.353554 +v -0.212607 0.831470 -0.513280 +v -0.270598 0.707107 -0.653282 +v -0.318189 0.555570 -0.768178 +v -0.353553 0.382683 -0.853554 +v -0.375330 0.195090 -0.906128 +v -0.382683 0.000000 -0.923880 +v -0.375330 -0.195090 -0.906128 +v -0.353553 -0.382683 -0.853554 +v -0.318189 -0.555570 -0.768178 +v -0.270598 -0.707107 -0.653282 +v -0.212607 -0.831470 -0.513280 +v -0.146446 -0.923880 -0.353553 +v -0.074658 -0.980785 -0.180240 +v -0.038060 0.980785 -0.191342 +v -0.074658 0.923880 -0.375331 +v -0.108386 0.831470 -0.544895 +v -0.137949 0.707107 -0.693520 +v -0.162211 0.555570 -0.815493 +v -0.180240 0.382683 -0.906128 +v -0.191341 0.195090 -0.961940 +v -0.195090 0.000000 -0.980785 +v -0.191341 -0.195090 -0.961940 +v -0.180240 -0.382683 -0.906128 +v -0.162211 -0.555570 -0.815493 +v -0.137949 -0.707107 -0.693520 +v -0.108386 -0.831470 -0.544895 +v -0.074658 -0.923880 -0.375330 +v -0.038060 -0.980785 -0.191342 +v 0.000000 0.980785 -0.195091 +v 0.000000 0.923880 -0.382684 +v 0.000000 0.831470 -0.555570 +v 0.000000 0.707107 -0.707107 +v 0.000000 0.555570 -0.831470 +v 0.000000 0.382683 -0.923880 +v 0.000000 0.195090 -0.980785 +v 0.000000 0.000000 -1.000000 +v 0.000000 -0.195090 -0.980785 +v 0.000000 -0.382683 -0.923880 +v 0.000000 -0.555570 -0.831470 +v 0.000000 -0.707107 -0.707107 +v 0.000000 -0.831470 -0.555570 +v 0.000000 -0.923880 -0.382684 +v 0.000000 -0.980785 -0.195090 +v 0.038061 0.980785 -0.191342 +v 0.074658 0.923880 -0.375330 +v 0.108387 0.831470 -0.544895 +v 0.137950 0.707107 -0.693520 +v 0.162212 0.555570 -0.815493 +v 0.180240 0.382683 -0.906128 +v 0.191342 0.195090 -0.961940 +v 0.195091 0.000000 -0.980785 +v 0.191342 -0.195090 -0.961940 +v 0.180240 -0.382683 -0.906128 +v 0.162212 -0.555570 -0.815493 +v 0.137950 -0.707107 -0.693520 +v 0.108387 -0.831470 -0.544895 +v 0.074658 -0.923880 -0.375330 +v 0.038061 -0.980785 -0.191342 +v 0.074658 0.980785 -0.180240 +v 0.146447 0.923880 -0.353554 +v 0.212608 0.831470 -0.513280 +v 0.270598 0.707107 -0.653282 +v 0.318190 0.555570 -0.768178 +v 0.353554 0.382683 -0.853553 +v 0.375331 0.195090 -0.906127 +v 0.382684 0.000000 -0.923880 +v 0.375331 -0.195090 -0.906127 +v 0.353554 -0.382683 -0.853553 +v 0.318190 -0.555570 -0.768178 +v 0.270598 -0.707107 -0.653282 +v 0.212608 -0.831470 -0.513280 +v 0.146447 -0.923880 -0.353553 +v 0.074658 -0.980785 -0.180240 +v 0.108387 0.980785 -0.162212 +v 0.212608 0.923880 -0.318190 +v 0.308659 0.831470 -0.461940 +v 0.392848 0.707107 -0.587938 +v 0.461940 0.555570 -0.691342 +v 0.513280 0.382683 -0.768178 +v 0.544895 0.195090 -0.815493 +v 0.555571 0.000000 -0.831470 +v 0.544895 -0.195090 -0.815493 +v 0.513280 -0.382683 -0.768178 +v 0.461940 -0.555570 -0.691342 +v 0.392848 -0.707107 -0.587938 +v 0.308659 -0.831470 -0.461940 +v 0.212608 -0.923880 -0.318190 +v 0.108387 -0.980785 -0.162212 +v 0.137950 0.980785 -0.137950 +v 0.270599 0.923880 -0.270598 +v 0.392848 0.831470 -0.392847 +v 0.500000 0.707107 -0.500000 +v 0.587938 0.555570 -0.587938 +v 0.653282 0.382683 -0.653281 +v 0.693520 0.195090 -0.693520 +v 0.707107 0.000000 -0.707107 +v 0.693520 -0.195090 -0.693520 +v 0.653282 -0.382683 -0.653281 +v 0.587938 -0.555570 -0.587938 +v 0.500000 -0.707107 -0.500000 +v 0.392848 -0.831470 -0.392847 +v 0.270598 -0.923880 -0.270598 +v 0.137950 -0.980785 -0.137950 +v 0.162212 0.980785 -0.108387 +v 0.318190 0.923880 -0.212608 +v 0.461940 0.831470 -0.308658 +v 0.587938 0.707107 -0.392847 +v 0.691342 0.555570 -0.461940 +v 0.768178 0.382683 -0.513280 +v 0.815493 0.195090 -0.544895 +v 0.831470 0.000000 -0.555570 +v 0.815493 -0.195090 -0.544895 +v 0.768178 -0.382683 -0.513280 +v 0.691342 -0.555570 -0.461940 +v 0.587938 -0.707107 -0.392847 +v 0.461940 -0.831470 -0.308658 +v 0.318190 -0.923880 -0.212608 +v 0.162212 -0.980785 -0.108386 +v 0.180241 0.980785 -0.074658 +v 0.353554 0.923880 -0.146447 +v 0.513280 0.831470 -0.212607 +v 0.653282 0.707107 -0.270598 +v 0.768178 0.555570 -0.318190 +v 0.853554 0.382683 -0.353553 +v 0.906128 0.195090 -0.375330 +v 0.923880 0.000000 -0.382683 +v 0.906128 -0.195090 -0.375330 +v 0.853554 -0.382683 -0.353553 +v 0.768178 -0.555570 -0.318190 +v 0.653282 -0.707107 -0.270598 +v 0.513280 -0.831470 -0.212607 +v 0.353554 -0.923880 -0.146447 +v 0.180240 -0.980785 -0.074658 +v 0.191342 0.980785 -0.038060 +v 0.375331 0.923880 -0.074658 +v 0.544895 0.831470 -0.108386 +v 0.693520 0.707107 -0.137950 +v 0.815493 0.555570 -0.162212 +v 0.906128 0.382683 -0.180240 +v 0.961940 0.195090 -0.191342 +v 0.980785 0.000000 -0.195090 +v 0.961940 -0.195090 -0.191342 +v 0.906128 -0.382683 -0.180240 +v 0.815493 -0.555570 -0.162212 +v 0.693520 -0.707107 -0.137950 +v 0.544895 -0.831470 -0.108386 +v 0.375331 -0.923880 -0.074658 +v 0.191342 -0.980785 -0.038060 +v 0.195091 0.980785 0.000000 +v 0.382684 0.923880 0.000000 +v 0.555570 0.831470 0.000000 +v 0.707107 0.707107 0.000000 +v 0.831470 0.555570 0.000000 +v 0.923880 0.382683 0.000000 +v 0.980785 0.195090 0.000000 +v 1.000000 0.000000 0.000000 +v 0.980785 -0.195090 0.000000 +v 0.923880 -0.382683 0.000000 +v 0.831470 -0.555570 0.000000 +v 0.707107 -0.707107 0.000000 +v 0.555570 -0.831470 0.000000 +v 0.382684 -0.923880 0.000000 +v 0.195091 -0.980785 0.000000 +v 0.191342 0.980785 0.038060 +v 0.375331 0.923880 0.074658 +v 0.544895 0.831470 0.108386 +v 0.693520 0.707107 0.137950 +v 0.815493 0.555570 0.162212 +v 0.906128 0.382683 0.180240 +v 0.961940 0.195090 0.191342 +v 0.980785 0.000000 0.195090 +v 0.961940 -0.195090 0.191342 +v 0.906128 -0.382683 0.180240 +v 0.815493 -0.555570 0.162212 +v 0.693520 -0.707107 0.137950 +v 0.544895 -0.831470 0.108386 +v 0.375331 -0.923880 0.074658 +v 0.191342 -0.980785 0.038060 +v 0.180240 0.980785 0.074658 +v 0.353554 0.923880 0.146447 +v 0.513280 0.831470 0.212608 +v 0.653282 0.707107 0.270598 +v 0.768178 0.555570 0.318190 +v 0.853554 0.382683 0.353553 +v 0.906127 0.195090 0.375330 +v 0.923880 0.000000 0.382684 +v 0.906128 -0.195090 0.375330 +v 0.853553 -0.382683 0.353553 +v 0.768178 -0.555570 0.318190 +v 0.653282 -0.707107 0.270598 +v 0.513280 -0.831470 0.212608 +v 0.353554 -0.923880 0.146447 +v 0.180240 -0.980785 0.074658 +v 0.162212 0.980785 0.108387 +v 0.318190 0.923880 0.212608 +v 0.461940 0.831470 0.308658 +v 0.587938 0.707107 0.392847 +v 0.691342 0.555570 0.461940 +v 0.768178 0.382683 0.513280 +v 0.815493 0.195090 0.544895 +v 0.831470 0.000000 0.555570 +v 0.815493 -0.195090 0.544895 +v 0.768178 -0.382683 0.513280 +v 0.691342 -0.555570 0.461940 +v 0.587938 -0.707107 0.392847 +v 0.461940 -0.831470 0.308658 +v 0.318190 -0.923880 0.212608 +v 0.162212 -0.980785 0.108386 +v 0.137950 0.980785 0.137950 +v 0.270598 0.923880 0.270598 +v 0.392848 0.831470 0.392847 +v 0.500000 0.707107 0.500000 +v 0.587938 0.555570 0.587938 +v 0.653282 0.382683 0.653281 +v 0.693520 0.195090 0.693520 +v 0.707107 0.000000 0.707107 +v 0.693520 -0.195090 0.693520 +v 0.653282 -0.382683 0.653281 +v 0.587938 -0.555570 0.587938 +v 0.500000 -0.707107 0.500000 +v 0.392848 -0.831470 0.392847 +v 0.270598 -0.923880 0.270598 +v 0.137950 -0.980785 0.137950 +v 0.108387 0.980785 0.162212 +v 0.212608 0.923880 0.318190 +v 0.308658 0.831470 0.461940 +v 0.392848 0.707107 0.587938 +v 0.461940 0.555570 0.691342 +v 0.513280 0.382683 0.768178 +v 0.544895 0.195090 0.815493 +v 0.555570 0.000000 0.831470 +v 0.544895 -0.195090 0.815493 +v 0.513280 -0.382683 0.768178 +v 0.461940 -0.555570 0.691342 +v 0.392848 -0.707107 0.587938 +v 0.308658 -0.831470 0.461940 +v 0.212608 -0.923880 0.318190 +v 0.108387 -0.980785 0.162212 +v 0.000000 -1.000000 0.000000 +v 0.074658 0.980785 0.180240 +v 0.146447 0.923880 0.353554 +v 0.212608 0.831470 0.513280 +v 0.270598 0.707107 0.653281 +v 0.318190 0.555570 0.768178 +v 0.353553 0.382683 0.853553 +v 0.375330 0.195090 0.906127 +v 0.382683 0.000000 0.923879 +v 0.375330 -0.195090 0.906127 +v 0.353554 -0.382683 0.853553 +v 0.318190 -0.555570 0.768178 +v 0.270598 -0.707107 0.653281 +v 0.212608 -0.831470 0.513280 +v 0.146447 -0.923880 0.353553 +v 0.074658 -0.980785 0.180240 +v 0.038061 0.980785 0.191342 +v 0.074658 0.923880 0.375330 +v 0.108387 0.831470 0.544895 +v 0.137950 0.707107 0.693520 +v 0.162212 0.555570 0.815493 +v 0.180240 0.382683 0.906127 +v 0.191342 0.195090 0.961939 +v 0.195090 0.000000 0.980785 +v 0.191342 -0.195090 0.961939 +v 0.180240 -0.382683 0.906127 +v 0.162212 -0.555570 0.815493 +v 0.137950 -0.707107 0.693520 +v 0.108387 -0.831470 0.544895 +v 0.074658 -0.923880 0.375330 +v 0.038061 -0.980785 0.191342 +v 0.000000 0.980785 0.195091 +v 0.000000 0.923880 0.382683 +v 0.000000 0.831470 0.555570 +v 0.000000 0.707107 0.707107 +v 0.000000 0.555570 0.831469 +v 0.000000 0.382683 0.923879 +v 0.000000 0.195090 0.980785 +v 0.000000 0.000000 1.000000 +v 0.000000 -0.195090 0.980785 +v 0.000000 -0.382683 0.923879 +v 0.000000 -0.555570 0.831469 +v 0.000000 -0.707107 0.707107 +v 0.000000 -0.831470 0.555570 +v 0.000000 -0.923880 0.382683 +v 0.000000 -0.980785 0.195090 +v -0.038060 0.980785 0.191342 +v -0.074658 0.923880 0.375330 +v -0.108386 0.831470 0.544895 +v -0.137949 0.707107 0.693520 +v -0.162211 0.555570 0.815493 +v -0.180240 0.382683 0.906127 +v -0.191341 0.195090 0.961939 +v -0.195090 0.000000 0.980785 +v -0.191342 -0.195090 0.961939 +v -0.180240 -0.382683 0.906127 +v -0.162211 -0.555570 0.815493 +v -0.137949 -0.707107 0.693520 +v -0.108386 -0.831470 0.544895 +v -0.074658 -0.923880 0.375330 +v -0.038060 -0.980785 0.191342 +v -0.074658 0.980785 0.180240 +v -0.146446 0.923880 0.353553 +v -0.212607 0.831470 0.513280 +v -0.270598 0.707107 0.653281 +v -0.318189 0.555570 0.768177 +v -0.353553 0.382683 0.853553 +v -0.375330 0.195090 0.906127 +v -0.382683 0.000000 0.923879 +v -0.375330 -0.195090 0.906127 +v -0.353553 -0.382683 0.853553 +v -0.318189 -0.555570 0.768177 +v -0.270598 -0.707107 0.653281 +v -0.212607 -0.831470 0.513280 +v -0.146446 -0.923880 0.353553 +v -0.074658 -0.980785 0.180240 +v -0.108386 0.980785 0.162212 +v -0.212607 0.923880 0.318190 +v -0.308658 0.831470 0.461939 +v -0.392847 0.707107 0.587937 +v -0.461939 0.555570 0.691341 +v -0.513280 0.382683 0.768177 +v -0.544895 0.195090 0.815493 +v -0.555570 0.000000 0.831469 +v -0.544895 -0.195090 0.815493 +v -0.513279 -0.382683 0.768177 +v -0.461939 -0.555570 0.691341 +v -0.392847 -0.707107 0.587937 +v -0.308658 -0.831470 0.461939 +v -0.212607 -0.923880 0.318189 +v -0.108386 -0.980785 0.162212 +v -0.137950 0.980785 0.137950 +v -0.270598 0.923880 0.270598 +v -0.392847 0.831470 0.392847 +v -0.500000 0.707107 0.500000 +v -0.587937 0.555570 0.587937 +v -0.653281 0.382683 0.653281 +v -0.693519 0.195090 0.693519 +v -0.707106 0.000000 0.707106 +v -0.693520 -0.195090 0.693519 +v -0.653281 -0.382683 0.653281 +v -0.587937 -0.555570 0.587937 +v -0.500000 -0.707107 0.500000 +v -0.392847 -0.831470 0.392847 +v -0.270598 -0.923880 0.270598 +v -0.137949 -0.980785 0.137950 +v -0.162212 0.980785 0.108386 +v -0.318189 0.923880 0.212607 +v -0.461939 0.831470 0.308658 +v -0.587937 0.707107 0.392847 +v -0.691341 0.555570 0.461939 +v -0.768177 0.382683 0.513279 +v -0.815492 0.195090 0.544895 +v -0.831469 0.000000 0.555570 +v -0.815493 -0.195090 0.544895 +v -0.768177 -0.382683 0.513280 +v -0.691341 -0.555570 0.461939 +v -0.587937 -0.707107 0.392847 +v -0.461939 -0.831470 0.308658 +v -0.318189 -0.923880 0.212607 +v -0.162211 -0.980785 0.108386 +v 0.000000 1.000000 0.000000 +v -0.180240 0.980785 0.074658 +v -0.353553 0.923880 0.146446 +v -0.513279 0.831470 0.212607 +v -0.653281 0.707107 0.270598 +v -0.768177 0.555570 0.318189 +v -0.853553 0.382683 0.353553 +v -0.906127 0.195090 0.375330 +v -0.923879 0.000000 0.382683 +v -0.906127 -0.195090 0.375330 +v -0.853553 -0.382683 0.353553 +v -0.768177 -0.555570 0.318189 +v -0.653281 -0.707107 0.270598 +v -0.513279 -0.831470 0.212607 +v -0.353553 -0.923880 0.146446 +v -0.180240 -0.980785 0.074658 +v -0.191342 0.980785 0.038060 +v -0.375330 0.923880 0.074658 +v -0.544895 0.831470 0.108386 +v -0.693519 0.707107 0.137949 +v -0.815493 0.555570 0.162211 +v -0.906127 0.382683 0.180240 +v -0.961939 0.195090 0.191341 +v -0.980784 0.000000 0.195090 +v -0.961939 -0.195090 0.191341 +v -0.906127 -0.382683 0.180240 +v -0.815493 -0.555570 0.162211 +v -0.693519 -0.707107 0.137949 +v -0.544895 -0.831470 0.108386 +v -0.375330 -0.923880 0.074658 +v -0.191341 -0.980785 0.038060 +vt 0.225255 0.747791 +vt 0.200185 0.745510 +vt 0.202014 0.735870 +vt 0.083378 0.733891 +vt 0.045216 0.729934 +vt 0.089718 0.701687 +vt 0.132563 0.314124 +vt 0.159085 0.299902 +vt 0.147340 0.335836 +vt 0.116708 0.737324 +vt 0.103254 0.329885 +vt 0.146637 0.740347 +vt 0.121737 0.711556 +vt 0.069356 0.347937 +vt 0.121535 0.357021 +vt 0.206517 0.274331 +vt 0.228654 0.262287 +vt 0.231406 0.266316 +vt 0.174198 0.743051 +vt 0.150502 0.720360 +vt 0.029445 0.369408 +vt 0.091889 0.381279 +vt 0.183517 0.286764 +vt 0.212051 0.282443 +vt 0.177006 0.728389 +vt 0.000100 0.725360 +vt 0.053061 0.690360 +vt 0.191933 0.299115 +vt 0.226157 0.742999 +vt 0.205688 0.726773 +vt 0.068477 0.653078 +vt 0.170557 0.316746 +vt 0.166017 0.354256 +vt 0.102219 0.671338 +vt 0.131697 0.687265 +vt 0.120451 0.409593 +vt 0.234890 0.269729 +vt 0.158191 0.701512 +vt 0.056984 0.410042 +vt 0.202588 0.309583 +vt 0.182620 0.714557 +vt 0.009705 0.677072 +vt 0.028546 0.631587 +vt 0.185070 0.331027 +vt 0.219059 0.289318 +vt 0.215073 0.317772 +vt 0.190825 0.702086 +vt 0.055899 0.590652 +vt 0.202072 0.342206 +vt 0.227977 0.738475 +vt 0.211066 0.718568 +vt 0.090869 0.619520 +vt 0.187902 0.368689 +vt 0.120400 0.644012 +vt 0.144787 0.380062 +vt 0.172083 0.398133 +vt 0.146205 0.665384 +vt 0.238973 0.272397 +vt 0.169411 0.684525 +vt 0.091814 0.444541 +vt 0.153955 0.431817 +vt 0.202373 0.410550 +vt 0.227271 0.294693 +vt 0.236371 0.298363 +vt 0.183728 0.670054 +vt 0.132646 0.471641 +vt 0.191136 0.447112 +vt 0.228908 0.323369 +vt 0.201305 0.691455 +vt 0.119378 0.590975 +vt 0.220916 0.349860 +vt 0.230644 0.734393 +vt 0.234056 0.730909 +vt 0.143563 0.620758 +vt 0.212169 0.378591 +vt 0.164703 0.646753 +vt 0.170818 0.602470 +vt 0.234501 0.416839 +vt 0.186480 0.632090 +vt 0.230585 0.454892 +vt 0.243498 0.274217 +vt 0.248290 0.275119 +vt 0.200594 0.658655 +vt 0.177960 0.490317 +vt 0.246010 0.300188 +vt 0.217942 0.711569 +vt 0.213657 0.683073 +vt 0.090712 0.555840 +vt 0.131647 0.528489 +vt 0.240885 0.353700 +vt 0.226051 0.706046 +vt 0.238082 0.728159 +vt 0.235081 0.702211 +vt 0.152908 0.568541 +vt 0.201116 0.589850 +vt 0.237895 0.383583 +vt 0.261217 0.353579 +vt 0.267242 0.416758 +vt 0.219359 0.650764 +vt 0.253166 0.275070 +vt 0.226053 0.499845 +vt 0.275101 0.499845 +vt 0.243564 0.326164 +vt 0.255818 0.300099 +vt 0.227408 0.677262 +vt 0.190169 0.553079 +vt 0.244686 0.700212 +vt 0.177131 0.509649 +vt 0.229732 0.545184 +vt 0.258482 0.326051 +vt 0.281135 0.349501 +vt 0.242568 0.726246 +vt 0.233295 0.583384 +vt 0.264101 0.383473 +vt 0.210699 0.621956 +vt 0.299347 0.410306 +vt 0.239303 0.646686 +vt 0.270804 0.454854 +vt 0.265420 0.298100 +vt 0.323232 0.490300 +vt 0.257938 0.274070 +vt 0.262423 0.272159 +vt 0.242028 0.674245 +vt 0.259660 0.646578 +vt 0.310258 0.446989 +vt 0.368604 0.471560 +vt 0.273091 0.323033 +vt 0.286831 0.317227 +vt 0.254497 0.700125 +vt 0.225417 0.500045 +vt 0.274648 0.500045 +vt 0.299879 0.341621 +vt 0.247340 0.725246 +vt 0.266116 0.583319 +vt 0.289785 0.378264 +vt 0.236430 0.616742 +vt 0.329588 0.397724 +vt 0.262683 0.616648 +vt 0.313967 0.368151 +vt 0.356806 0.379489 +vt 0.279646 0.650442 +vt 0.347437 0.431590 +vt 0.274448 0.294268 +vt 0.266450 0.269410 +vt 0.256956 0.674139 +vt 0.409474 0.444332 +vt 0.299176 0.308854 +vt 0.264136 0.701954 +vt 0.270074 0.545159 +vt 0.309646 0.553004 +vt 0.316729 0.330240 +vt 0.252216 0.725196 +vt 0.298320 0.589659 +vt 0.346927 0.568418 +vt 0.335718 0.353520 +vt 0.331040 0.315792 +vt 0.288451 0.621678 +vt 0.328668 0.602160 +vt 0.379955 0.356294 +vt 0.312741 0.631638 +vt 0.380916 0.409238 +vt 0.282555 0.288749 +vt 0.269863 0.265928 +vt 0.271617 0.676946 +vt 0.298495 0.658132 +vt 0.444269 0.409650 +vt 0.289430 0.281755 +vt 0.273233 0.705628 +vt 0.322933 0.509649 +vt 0.257008 0.726098 +vt 0.285450 0.682561 +vt 0.281439 0.711006 +vt 0.368417 0.528488 +vt 0.380485 0.590809 +vt 0.309653 0.298235 +vt 0.342262 0.298829 +vt 0.261532 0.727917 +vt 0.355994 0.620341 +vt 0.354206 0.334928 +vt 0.398144 0.329027 +vt 0.334623 0.646146 +vt 0.409408 0.380782 +vt 0.272531 0.261848 +vt 0.315481 0.669351 +vt 0.471647 0.368836 +vt 0.294810 0.273555 +vt 0.274352 0.257325 +vt 0.297921 0.690765 +vt 0.329952 0.683669 +vt 0.431815 0.347310 +vt 0.447272 0.310101 +vt 0.317860 0.285776 +vt 0.323481 0.271955 +vt 0.288438 0.717882 +vt 0.409352 0.555839 +vt 0.444165 0.590651 +vt 0.349962 0.280001 +vt 0.265614 0.730584 +vt 0.379248 0.643503 +vt 0.368718 0.313085 +vt 0.410673 0.298729 +vt 0.353253 0.664643 +vt 0.378696 0.288828 +vt 0.417056 0.266562 +vt 0.367917 0.686420 +vt 0.298488 0.264462 +vt 0.275256 0.252534 +vt 0.308552 0.701245 +vt 0.341352 0.700534 +vt 0.490551 0.323453 +vt 0.455180 0.270580 +vt 0.300322 0.254827 +vt 0.293961 0.725991 +vt 0.409030 0.619318 +vt 0.431466 0.652847 +vt 0.353845 0.260029 +vt 0.269097 0.733996 +vt 0.397537 0.670758 +vt 0.383754 0.263085 +vt 0.410157 0.701056 +vt 0.353758 0.239681 +vt 0.417043 0.233759 +vt 0.378051 0.710639 +vt 0.275208 0.247658 +vt 0.316934 0.713598 +vt 0.349243 0.719300 +vt 0.500246 0.275239 +vt 0.455230 0.230265 +vt 0.326298 0.257302 +vt 0.300241 0.245018 +vt 0.322745 0.727349 +vt 0.471518 0.631585 +vt 0.490359 0.677070 +vt 0.271848 0.738023 +vt 0.297795 0.735022 +vt 0.299795 0.744627 +vt 0.446928 0.690109 +vt 0.454824 0.729672 +vt 0.326204 0.242379 +vt 0.349704 0.219736 +vt 0.273760 0.742508 +vt 0.416624 0.733235 +vt 0.383694 0.236844 +vt 0.378518 0.211113 +vt 0.410632 0.201581 +vt 0.383265 0.736370 +vt 0.274210 0.242885 +vt 0.353321 0.739244 +vt 0.500353 0.226044 +vt 0.447414 0.190702 +vt 0.298248 0.235412 +vt 0.325761 0.741969 +vt 0.353429 0.759600 +vt 0.490860 0.177758 +vt 0.472125 0.132236 +vt 0.323201 0.227758 +vt 0.317403 0.214003 +vt 0.325868 0.756896 +vt 0.499965 0.725357 +vt 0.454850 0.770016 +vt 0.341835 0.200963 +vt 0.274761 0.747281 +vt 0.299881 0.754438 +vt 0.416688 0.766057 +vt 0.398063 0.171264 +vt 0.383359 0.762624 +vt 0.272300 0.238399 +vt 0.378329 0.788391 +vt 0.432026 0.153414 +vt 0.379817 0.143974 +vt 0.294420 0.226379 +vt 0.288902 0.218266 +vt 0.349564 0.779587 +vt 0.444860 0.091230 +vt 0.309031 0.201641 +vt 0.323060 0.771558 +vt 0.499965 0.774590 +vt 0.490359 0.822877 +vt 0.330453 0.184082 +vt 0.274811 0.752156 +vt 0.298053 0.764077 +vt 0.410348 0.798261 +vt 0.368419 0.186882 +vt 0.353783 0.165081 +vt 0.315993 0.169744 +vt 0.397847 0.828609 +vt 0.356591 0.120763 +vt 0.368368 0.812683 +vt 0.409652 0.119834 +vt 0.269552 0.234371 +vt 0.281907 0.211384 +vt 0.341874 0.798436 +vt 0.410106 0.056322 +vt 0.317446 0.785390 +vt 0.447004 0.809588 +vt 0.471518 0.868362 +vt 0.273909 0.756948 +vt 0.294379 0.773174 +vt 0.431588 0.846870 +vt 0.444165 0.909296 +vt 0.298407 0.191149 +vt 0.285937 0.182932 +vt 0.272090 0.761472 +vt 0.289000 0.781379 +vt 0.379665 0.855935 +vt 0.335171 0.146551 +vt 0.299010 0.158502 +vt 0.329274 0.102527 +vt 0.353860 0.834563 +vt 0.381148 0.091257 +vt 0.266070 0.230957 +vt 0.261988 0.228288 +vt 0.330655 0.815422 +vt 0.369195 0.028858 +vt 0.273702 0.206000 +vt 0.309241 0.797861 +vt 0.316338 0.829893 +vt 0.347606 0.068785 +vt 0.310311 0.053289 +vt 0.264604 0.202320 +vt 0.282125 0.788378 +vt 0.409196 0.880428 +vt 0.380687 0.908971 +vt 0.280156 0.150790 +vt 0.269423 0.765554 +vt 0.356502 0.879189 +vt 0.313295 0.132007 +vt 0.288996 0.122010 +vt 0.335363 0.853194 +vt 0.298915 0.089970 +vt 0.257465 0.226466 +vt 0.313586 0.867857 +vt 0.266681 0.083580 +vt 0.252672 0.225562 +vt 0.298761 0.808492 +vt 0.299472 0.841292 +vt 0.323696 0.009902 +vt 0.270697 0.045369 +vt 0.272103 0.177305 +vt 0.254962 0.200486 +vt 0.274016 0.793901 +vt 0.409352 0.944107 +vt 0.368417 0.971457 +vt 0.260157 0.146905 +vt 0.266010 0.769038 +vt 0.329248 0.897477 +vt 0.263208 0.116948 +vt 0.239780 0.147001 +vt 0.298949 0.910096 +vt 0.236922 0.117019 +vt 0.289367 0.877990 +vt 0.230285 0.045337 +vt 0.247796 0.225611 +vt 0.286409 0.816874 +vt 0.280707 0.849182 +vt 0.275354 0.000188 +vt 0.257434 0.174487 +vt 0.245148 0.200570 +vt 0.272658 0.822685 +vt 0.347157 0.931405 +vt 0.322933 0.990296 +vt 0.261984 0.771788 +vt 0.264985 0.797736 +vt 0.309896 0.946866 +vt 0.274648 0.999900 +vt 0.242496 0.174587 +vt 0.219813 0.151075 +vt 0.257499 0.773701 +vt 0.255380 0.799735 +vt 0.266771 0.916562 +vt 0.233811 0.083608 +vt 0.211151 0.122224 +vt 0.260763 0.853260 +vt 0.190633 0.053201 +vt 0.243022 0.226611 +vt 0.226029 0.000100 +vt 0.227864 0.177601 +vt 0.258038 0.825701 +vt 0.240407 0.853369 +vt 0.177617 0.009651 +vt 0.153269 0.068666 +vt 0.235538 0.202568 +vt 0.226504 0.206403 +vt 0.243111 0.825808 +vt 0.270334 0.954761 +vt 0.225418 0.999900 +vt 0.201023 0.158972 +vt 0.252726 0.774701 +vt 0.245569 0.799822 +vt 0.233950 0.916627 +vt 0.263636 0.883204 +vt 0.201571 0.090057 +vt 0.171205 0.102684 +vt 0.237383 0.883298 +vt 0.211616 0.878268 +vt 0.119638 0.091145 +vt 0.238536 0.228522 +vt 0.234509 0.231273 +vt 0.220420 0.849504 +vt 0.131984 0.028484 +vt 0.214102 0.183416 +vt 0.201741 0.191807 +vt 0.228449 0.823000 +vt 0.229992 0.954787 +vt 0.177134 0.990295 +vt 0.184138 0.170388 +vt 0.247850 0.774751 +vt 0.235930 0.797993 +vt 0.201747 0.910287 +vt 0.186890 0.132366 +vt 0.143886 0.121008 +vt 0.171399 0.897786 +vt 0.165075 0.147055 +vt 0.146552 0.165728 +vt 0.187325 0.868308 +vt 0.091044 0.119777 +vt 0.218392 0.211929 +vt 0.231097 0.234756 +vt 0.201572 0.841815 +vt 0.090895 0.055886 +vt 0.211516 0.218931 +vt 0.214617 0.817386 +vt 0.190421 0.946942 +vt 0.131651 0.971456 +vt 0.169810 0.184885 +vt 0.243058 0.773849 +vt 0.226833 0.794319 +vt 0.191258 0.202450 +vt 0.158594 0.201902 +vt 0.238534 0.772030 +vt 0.218627 0.788941 +vt 0.153140 0.931527 +vt 0.144074 0.879606 +vt 0.120673 0.144325 +vt 0.132038 0.187664 +vt 0.165444 0.853801 +vt 0.068599 0.153461 +vt 0.228430 0.238838 +vt 0.184586 0.830596 +vt 0.055942 0.090813 +vt 0.206141 0.227140 +vt 0.090717 0.944106 +vt 0.028491 0.131928 +vt 0.053184 0.190897 +vt 0.183058 0.214934 +vt 0.177458 0.228777 +vt 0.202146 0.809182 +vt 0.191515 0.798702 +vt 0.119583 0.909137 +vt 0.055904 0.909296 +vt 0.150924 0.220780 +vt 0.234452 0.769363 +vt 0.211629 0.782065 +vt 0.120819 0.856444 +vt 0.122098 0.212014 +vt 0.102468 0.171737 +vt 0.146814 0.835304 +vt 0.226611 0.243361 +vt 0.170115 0.816278 +vt 0.132150 0.813527 +vt 0.089978 0.202184 +vt 0.045407 0.230630 +vt 0.202473 0.236239 +vt 0.225710 0.248151 +vt 0.158715 0.799413 +vt 0.009624 0.177645 +vt 0.174671 0.243442 +vt 0.183133 0.786349 +vt 0.091038 0.880630 +vt 0.028551 0.868363 +vt 0.147097 0.240787 +vt 0.230969 0.765951 +vt 0.206106 0.773956 +vt 0.102531 0.829190 +vt 0.117118 0.237835 +vt 0.089910 0.798892 +vt 0.083689 0.234486 +vt 0.117297 0.264119 +vt 0.122016 0.789308 +vt 0.045571 0.271108 +vt 0.200651 0.245876 +vt 0.225760 0.253025 +vt 0.150824 0.780648 +vt 0.000100 0.226189 +vt 0.200746 0.255680 +vt 0.202271 0.764925 +vt 0.068603 0.847101 +vt 0.009709 0.822880 +vt 0.147262 0.261143 +vt 0.228218 0.761924 +vt 0.226306 0.757439 +vt 0.174805 0.258361 +vt 0.151408 0.281052 +vt 0.200272 0.755320 +vt 0.053139 0.809840 +vt 0.083443 0.766713 +vt 0.122641 0.289821 +vt 0.083834 0.267394 +vt 0.116802 0.763577 +vt 0.053666 0.310742 +vt 0.226759 0.257795 +vt 0.177322 0.772599 +vt 0.146746 0.760704 +vt 0.000312 0.275649 +vt 0.202750 0.265274 +vt 0.000102 0.774593 +vt 0.250033 0.749973 +vt 0.250481 0.250342 +vt 0.225305 0.752666 +vt 0.010250 0.324041 +vt 0.177847 0.272958 +vt 0.174305 0.757979 +vt 0.045242 0.770277 +vt 0.090373 0.299673 +usemtl None +s off +f 15/1 14/2 29/3 +f 10/4 9/5 25/6 +f 5/7 4/8 20/9 +f 11/10 10/4 25/6 +f 6/11 5/7 20/9 +f 12/12 11/10 26/13 +f 7/14 6/11 21/15 +f 2/16 1/17 16/18 +f 13/19 12/12 27/20 +f 8/21 7/14 22/22 +f 3/23 2/16 17/24 +f 14/2 13/19 28/25 +f 9/5 8/26 24/27 +f 4/8 3/23 18/28 +f 30/29 29/3 44/30 +f 25/6 24/27 39/31 +f 20/9 19/32 35/33 +f 26/13 25/6 40/34 +f 21/15 20/9 35/33 +f 27/20 26/13 41/35 +f 22/22 21/15 37/36 +f 17/24 16/18 31/37 +f 28/25 27/20 42/38 +f 23/39 22/22 37/36 +f 18/28 17/24 33/40 +f 29/3 28/25 43/41 +f 24/27 23/42 38/43 +f 19/32 18/28 34/44 +f 33/40 32/45 48/46 +f 44/30 43/41 58/47 +f 39/31 38/43 53/48 +f 34/44 33/40 49/49 +f 45/50 44/30 59/51 +f 40/34 39/31 54/52 +f 35/33 34/44 50/53 +f 41/35 40/34 55/54 +f 36/55 35/33 51/56 +f 42/38 41/35 56/57 +f 37/36 36/55 51/56 +f 32/45 31/37 46/58 +f 43/41 42/38 57/59 +f 38/60 37/36 52/61 +f 52/61 51/56 66/62 +f 47/63 46/58 62/64 +f 58/47 57/59 72/65 +f 53/66 52/61 67/67 +f 48/46 47/63 63/68 +f 59/51 58/47 73/69 +f 54/52 53/48 69/70 +f 49/49 48/46 64/71 +f 60/72 59/51 75/73 +f 55/54 54/52 70/74 +f 50/53 49/49 65/75 +f 56/57 55/54 70/74 +f 51/56 50/53 66/62 +f 57/59 56/57 71/76 +f 71/76 70/74 85/77 +f 66/62 65/75 81/78 +f 72/65 71/76 86/79 +f 67/67 66/62 82/80 +f 62/64 61/81 76/82 +f 73/69 72/65 87/83 +f 68/84 67/67 82/80 +f 63/68 62/64 77/85 +f 74/86 73/69 88/87 +f 69/70 68/88 83/89 +f 64/71 63/68 79/90 +f 75/73 74/86 89/91 +f 70/74 69/70 85/77 +f 65/75 64/71 79/90 +f 90/92 89/91 104/93 +f 85/77 84/94 100/95 +f 80/96 79/90 94/97 +f 86/79 85/77 100/95 +f 81/78 80/96 96/98 +f 87/83 86/79 102/99 +f 82/80 81/78 96/98 +f 77/85 76/82 91/100 +f 88/87 87/83 102/99 +f 83/101 82/80 98/102 +f 78/103 77/85 92/104 +f 89/91 88/87 103/105 +f 84/94 83/89 99/106 +f 79/90 78/103 94/97 +f 104/93 103/105 119/107 +f 99/106 98/108 114/109 +f 94/97 93/110 109/111 +f 105/112 104/93 119/107 +f 100/95 99/106 115/113 +f 95/114 94/97 109/111 +f 101/115 100/95 115/113 +f 96/98 95/114 111/116 +f 102/99 101/115 117/117 +f 97/118 96/98 111/116 +f 92/104 91/100 107/119 +f 103/105 102/99 117/117 +f 98/102 97/118 113/120 +f 93/110 92/104 107/119 +f 107/119 106/121 121/122 +f 118/123 117/117 132/124 +f 113/120 112/125 128/126 +f 108/127 107/119 123/128 +f 119/107 118/123 134/129 +f 114/109 113/130 128/131 +f 109/111 108/127 124/132 +f 120/133 119/107 134/129 +f 115/113 114/109 130/134 +f 110/135 109/111 124/132 +f 116/136 115/113 130/134 +f 111/116 110/135 126/137 +f 117/117 116/136 131/138 +f 112/125 111/116 126/137 +f 126/137 125/139 141/140 +f 132/124 131/138 147/141 +f 127/142 126/137 141/140 +f 122/143 121/122 136/144 +f 133/145 132/124 147/141 +f 128/126 127/142 143/146 +f 123/128 122/143 138/147 +f 134/129 133/145 149/148 +f 129/149 128/131 144/150 +f 124/132 123/128 139/151 +f 135/152 134/129 149/148 +f 130/134 129/149 145/153 +f 125/139 124/132 139/151 +f 131/138 130/134 145/153 +f 145/153 144/150 159/154 +f 140/155 139/151 154/156 +f 146/157 145/153 160/158 +f 141/140 140/155 156/159 +f 147/141 146/157 161/160 +f 142/161 141/140 156/159 +f 137/162 136/144 151/163 +f 148/164 147/141 162/165 +f 143/146 142/161 158/166 +f 138/147 137/162 152/167 +f 149/148 148/164 164/168 +f 144/150 143/169 159/154 +f 139/151 138/147 154/156 +f 150/170 149/148 164/168 +f 164/168 163/171 179/172 +f 159/154 158/173 174/174 +f 154/156 153/175 169/176 +f 165/177 164/168 179/172 +f 160/158 159/154 175/178 +f 155/179 154/156 169/176 +f 161/160 160/158 175/178 +f 156/159 155/179 171/180 +f 162/165 161/160 176/181 +f 157/182 156/159 171/180 +f 152/167 151/163 166/183 +f 163/171 162/165 177/184 +f 158/166 157/182 173/185 +f 153/175 152/167 167/186 +f 167/186 166/183 181/187 +f 178/188 177/184 192/189 +f 173/185 172/190 187/191 +f 168/192 167/186 183/193 +f 179/172 178/188 194/194 +f 174/174 173/195 188/196 +f 169/176 168/192 184/197 +f 180/198 179/172 194/194 +f 175/178 174/174 190/199 +f 170/200 169/176 184/197 +f 176/181 175/178 190/199 +f 171/180 170/200 186/201 +f 177/184 176/181 191/202 +f 172/190 171/180 186/201 +f 186/201 185/203 201/204 +f 192/189 191/202 206/205 +f 187/191 186/201 201/204 +f 182/206 181/187 196/207 +f 193/208 192/189 207/209 +f 188/210 187/191 202/211 +f 183/193 182/206 197/212 +f 194/194 193/208 209/213 +f 189/214 188/196 204/215 +f 184/197 183/193 199/216 +f 195/217 194/194 209/213 +f 190/199 189/214 205/218 +f 185/203 184/197 200/219 +f 191/202 190/199 205/218 +f 205/218 204/215 220/220 +f 200/219 199/216 214/221 +f 206/205 205/218 220/220 +f 201/204 200/219 216/222 +f 207/209 206/205 221/223 +f 202/211 201/204 216/222 +f 197/212 196/207 211/224 +f 208/225 207/209 222/226 +f 203/227 202/211 217/228 +f 198/229 197/212 212/230 +f 209/213 208/225 223/231 +f 204/215 203/232 218/233 +f 199/216 198/229 214/221 +f 210/234 209/213 224/235 +f 224/235 223/231 239/236 +f 219/237 218/233 234/238 +f 214/221 213/239 229/240 +f 225/241 224/235 239/236 +f 220/220 219/237 235/242 +f 215/243 214/221 230/244 +f 221/223 220/220 235/242 +f 216/222 215/243 231/245 +f 222/226 221/223 236/246 +f 217/228 216/222 231/245 +f 212/230 211/224 226/247 +f 223/231 222/226 237/248 +f 218/249 217/228 232/250 +f 213/239 212/230 227/251 +f 238/252 237/248 252/253 +f 233/254 232/250 248/255 +f 228/256 227/251 243/257 +f 239/236 238/252 253/258 +f 234/238 233/259 249/260 +f 229/240 228/256 244/261 +f 240/262 239/236 254/263 +f 235/242 234/238 250/264 +f 230/244 229/240 244/261 +f 236/246 235/242 250/264 +f 231/245 230/244 246/265 +f 237/248 236/246 251/266 +f 232/250 231/245 246/265 +f 227/251 226/247 241/267 +f 252/253 251/266 266/268 +f 247/269 246/265 261/270 +f 242/271 241/267 257/272 +f 253/258 252/253 267/273 +f 248/255 247/269 263/274 +f 243/257 242/271 258/275 +f 254/263 253/258 268/276 +f 249/260 248/277 263/278 +f 244/261 243/257 259/279 +f 255/280 254/263 269/281 +f 250/264 249/260 265/282 +f 245/283 244/261 259/279 +f 251/266 250/264 265/282 +f 246/265 245/283 261/270 +f 260/284 259/279 274/285 +f 266/268 265/282 280/286 +f 261/270 260/284 276/287 +f 267/273 266/268 281/288 +f 262/289 261/270 276/287 +f 257/272 256/290 272/291 +f 268/276 267/273 282/292 +f 263/274 262/289 278/293 +f 258/275 257/272 272/291 +f 269/281 268/276 283/294 +f 264/295 263/278 278/296 +f 259/279 258/275 274/285 +f 270/297 269/281 284/298 +f 265/282 264/295 280/286 +f 279/299 278/296 293/300 +f 274/285 273/301 288/302 +f 285/303 284/298 299/304 +f 280/286 279/299 295/305 +f 275/306 274/285 289/307 +f 281/288 280/286 295/305 +f 276/287 275/306 291/308 +f 282/292 281/288 296/309 +f 277/310 276/287 291/308 +f 272/291 271/311 286/312 +f 283/294 282/292 297/313 +f 278/293 277/310 293/314 +f 273/301 272/291 287/315 +f 284/298 283/294 299/304 +f 298/316 297/313 312/317 +f 293/314 292/318 307/319 +f 288/302 287/315 302/320 +f 299/304 298/316 314/321 +f 294/322 293/300 309/323 +f 289/307 288/302 304/324 +f 300/325 299/304 314/321 +f 295/305 294/322 310/326 +f 290/327 289/307 304/324 +f 296/309 295/305 310/326 +f 291/308 290/327 305/328 +f 297/313 296/309 311/329 +f 292/318 291/308 306/330 +f 287/315 286/312 301/331 +f 312/317 311/329 326/332 +f 307/319 306/330 321/333 +f 302/320 301/331 316/334 +f 313/335 312/317 327/336 +f 308/337 307/319 322/338 +f 303/339 302/320 317/340 +f 314/321 313/335 329/341 +f 309/323 308/342 323/343 +f 304/324 303/339 319/344 +f 315/345 314/321 329/341 +f 310/326 309/323 325/346 +f 305/328 304/324 319/344 +f 311/329 310/326 325/346 +f 306/330 305/328 320/347 +f 320/347 319/344 335/348 +f 326/332 325/346 341/349 +f 321/333 320/347 336/350 +f 327/336 326/332 342/351 +f 322/338 321/333 338/352 +f 317/340 316/334 332/353 +f 328/354 327/336 343/355 +f 323/356 322/338 338/352 +f 318/357 317/340 333/358 +f 329/341 328/354 344/359 +f 324/360 323/343 339/361 +f 319/344 318/357 335/348 +f 330/362 329/341 345/363 +f 325/346 324/360 341/349 +f 340/364 339/361 354/365 +f 335/348 334/366 350/367 +f 346/368 345/363 360/369 +f 341/349 340/364 356/370 +f 336/350 335/348 350/367 +f 342/351 341/349 356/370 +f 337/371 336/350 351/372 +f 343/355 342/351 358/373 +f 338/352 337/371 353/374 +f 333/358 332/353 347/375 +f 344/359 343/355 358/373 +f 339/376 338/352 353/374 +f 334/366 333/358 349/377 +f 345/363 344/359 359/378 +f 359/378 358/373 373/379 +f 354/380 353/374 368/381 +f 349/377 348/382 363/383 +f 360/369 359/378 374/384 +f 355/385 354/365 369/386 +f 350/367 349/377 365/387 +f 361/388 360/369 375/389 +f 356/370 355/385 371/390 +f 351/372 350/367 365/387 +f 357/391 356/370 371/390 +f 352/392 351/372 367/393 +f 358/373 357/391 373/379 +f 353/374 352/392 368/381 +f 348/382 347/375 363/383 +f 373/379 372/394 387/395 +f 368/381 367/393 383/396 +f 363/383 362/397 377/398 +f 374/384 373/379 388/399 +f 369/400 368/381 383/396 +f 364/401 363/383 379/402 +f 375/389 374/384 389/403 +f 370/404 369/386 384/405 +f 365/387 364/401 380/406 +f 376/407 375/389 390/408 +f 371/390 370/404 386/409 +f 366/410 365/387 380/406 +f 372/394 371/390 386/409 +f 367/393 366/410 382/411 +f 387/395 386/409 401/412 +f 382/411 381/413 396/414 +f 388/399 387/395 402/415 +f 383/396 382/411 398/416 +f 378/417 377/398 392/418 +f 389/403 388/399 403/419 +f 384/420 383/396 398/416 +f 379/402 378/417 393/421 +f 390/408 389/403 404/422 +f 385/423 384/405 399/424 +f 380/406 379/402 395/425 +f 391/426 390/408 405/427 +f 386/409 385/423 401/412 +f 381/413 380/406 396/414 +f 395/425 394/428 410/429 +f 406/430 405/427 420/431 +f 401/412 400/432 416/433 +f 396/414 395/425 410/429 +f 402/415 401/412 416/433 +f 397/434 396/414 411/435 +f 403/419 402/415 417/436 +f 398/416 397/434 413/437 +f 393/421 392/418 407/438 +f 404/422 403/419 418/439 +f 399/440 398/416 413/437 +f 394/428 393/421 408/441 +f 405/427 404/422 420/431 +f 400/432 399/424 414/442 +f 414/443 413/437 428/444 +f 409/445 408/441 424/446 +f 420/431 419/447 434/448 +f 415/449 414/442 429/450 +f 410/429 409/445 425/451 +f 421/452 420/431 435/453 +f 416/433 415/449 431/454 +f 411/435 410/429 426/455 +f 417/436 416/433 431/454 +f 412/456 411/435 426/455 +f 418/439 417/436 432/457 +f 413/437 412/456 428/444 +f 408/441 407/438 422/458 +f 419/447 418/439 433/459 +f 433/459 432/457 447/460 +f 428/444 427/461 443/462 +f 423/463 422/458 437/464 +f 434/448 433/459 448/465 +f 429/466 428/444 443/462 +f 424/446 423/463 439/467 +f 435/453 434/448 449/468 +f 430/469 429/450 444/470 +f 425/451 424/446 440/471 +f 436/472 435/453 450/473 +f 431/454 430/469 446/474 +f 426/455 425/451 441/475 +f 432/457 431/454 446/474 +f 427/461 426/455 441/475 +f 447/460 446/474 462/476 +f 442/477 441/475 457/478 +f 448/465 447/460 463/479 +f 443/462 442/477 459/480 +f 438/481 437/464 453/482 +f 449/468 448/465 464/483 +f 444/484 443/462 459/480 +f 439/467 438/481 454/485 +f 450/473 449/468 466/486 +f 445/487 444/470 460/488 +f 440/471 439/467 456/489 +f 451/490 450/473 467/491 +f 446/474 445/487 462/476 +f 441/475 440/471 456/489 +f 456/489 455/492 471/493 +f 467/491 466/486 481/494 +f 462/476 461/495 477/496 +f 457/478 456/489 472/497 +f 463/479 462/476 477/496 +f 458/498 457/478 472/497 +f 464/483 463/479 478/499 +f 459/480 458/498 474/500 +f 454/485 453/482 468/501 +f 465/502 464/483 479/503 +f 460/504 459/480 474/500 +f 455/492 454/485 469/505 +f 466/486 465/502 481/494 +f 461/495 460/488 475/506 +f 331/507 15/1 30/29 +f 1/17 452/508 16/18 +f 331/507 30/29 45/50 +f 16/18 452/508 31/37 +f 331/507 45/50 60/72 +f 31/37 452/508 46/58 +f 331/507 60/72 75/73 +f 46/58 452/508 61/81 +f 61/81 452/508 76/82 +f 331/507 75/73 90/92 +f 331/507 90/92 105/112 +f 76/82 452/508 91/100 +f 331/507 105/112 120/133 +f 91/100 452/508 106/121 +f 331/507 120/133 135/152 +f 106/121 452/508 121/122 +f 121/122 452/508 136/144 +f 331/507 135/152 150/170 +f 331/507 150/170 165/177 +f 136/144 452/508 151/163 +f 331/507 165/177 180/198 +f 151/163 452/508 166/183 +f 331/507 180/198 195/217 +f 166/183 452/508 181/187 +f 181/187 452/508 196/207 +f 331/507 195/217 210/234 +f 331/507 210/234 225/241 +f 196/207 452/508 211/224 +f 331/507 225/241 240/262 +f 211/224 452/508 226/247 +f 331/507 240/262 255/280 +f 226/247 452/508 241/267 +f 241/267 452/508 256/290 +f 331/507 255/280 270/297 +f 331/507 270/297 285/303 +f 256/290 452/508 271/311 +f 331/507 285/303 300/325 +f 271/311 452/508 286/312 +f 331/507 300/325 315/345 +f 286/312 452/508 301/331 +f 301/331 452/508 316/334 +f 331/507 315/345 330/362 +f 331/507 330/362 346/368 +f 316/334 452/508 332/353 +f 331/507 346/368 361/388 +f 332/353 452/508 347/375 +f 331/507 361/388 376/407 +f 347/375 452/508 362/397 +f 331/507 376/407 391/426 +f 362/397 452/508 377/398 +f 331/507 391/426 406/430 +f 377/398 452/508 392/418 +f 331/507 406/430 421/452 +f 392/418 452/508 407/438 +f 331/507 421/452 436/472 +f 407/438 452/508 422/458 +f 331/507 436/472 451/490 +f 422/458 452/508 437/464 +f 331/507 451/490 467/491 +f 437/464 452/508 453/482 +f 331/507 467/491 482/509 +f 453/482 452/508 468/501 +f 475/510 474/500 7/14 +f 470/511 469/505 2/16 +f 481/494 480/512 14/2 +f 476/513 475/506 8/26 +f 471/493 470/511 3/23 +f 482/509 481/494 15/1 +f 477/496 476/513 10/4 +f 472/497 471/493 4/8 +f 331/507 482/509 15/1 +f 478/499 477/496 11/10 +f 473/514 472/497 5/7 +f 468/501 452/508 1/17 +f 479/503 478/499 12/12 +f 474/500 473/514 6/11 +f 469/505 468/501 1/17 +f 480/512 479/503 13/19 +f 30/29 15/1 29/3 +f 183/193 198/229 199/216 +f 456/489 471/493 472/497 +f 26/13 11/10 25/6 +f 21/15 6/11 20/9 +f 27/20 12/12 26/13 +f 22/22 7/14 21/15 +f 17/24 2/16 16/18 +f 28/25 13/19 27/20 +f 23/39 8/21 22/22 +f 18/28 3/23 17/24 +f 29/3 14/2 28/25 +f 321/333 337/371 338/352 +f 19/32 4/8 18/28 +f 45/50 30/29 44/30 +f 40/34 25/6 39/31 +f 380/406 395/425 396/414 +f 41/35 26/13 40/34 +f 36/55 21/15 35/33 +f 42/38 27/20 41/35 +f 54/52 69/70 70/74 +f 32/45 17/24 31/37 +f 43/41 28/25 42/38 +f 38/60 23/39 37/36 +f 242/271 257/272 258/275 +f 44/30 29/3 43/41 +f 39/31 24/27 38/43 +f 4/8 19/32 20/9 +f 342/351 357/391 358/373 +f 59/51 44/30 58/47 +f 54/52 39/31 53/48 +f 449/468 465/502 466/486 +f 60/72 45/50 59/51 +f 55/54 40/34 54/52 +f 247/269 262/289 263/274 +f 56/57 41/35 55/54 +f 214/221 229/240 230/244 +f 57/59 42/38 56/57 +f 52/61 37/36 51/56 +f 47/63 32/45 46/58 +f 58/47 43/41 57/59 +f 53/66 38/60 52/61 +f 67/67 52/61 66/62 +f 241/267 256/290 257/272 +f 73/69 58/47 72/65 +f 68/84 53/66 67/67 +f 84/94 99/106 100/95 +f 74/86 59/51 73/69 +f 83/89 98/108 99/106 +f 33/40 48/46 49/49 +f 256/290 271/311 272/291 +f 157/182 172/190 173/185 +f 465/502 480/512 481/494 +f 71/76 56/57 70/74 +f 142/161 157/182 158/166 +f 72/65 57/59 71/76 +f 86/79 71/76 85/77 +f 168/192 183/193 184/197 +f 87/83 72/65 86/79 +f 423/463 438/481 439/467 +f 77/85 62/64 76/82 +f 88/87 73/69 87/83 +f 83/101 68/84 82/80 +f 78/103 63/68 77/85 +f 89/91 74/86 88/87 +f 84/94 69/70 83/89 +f 122/143 137/162 138/147 +f 90/92 75/73 89/91 +f 333/358 348/382 349/377 +f 80/96 65/75 79/90 +f 105/112 90/92 104/93 +f 143/169 158/173 159/154 +f 95/114 80/96 94/97 +f 101/115 86/79 100/95 +f 334/366 349/377 350/367 +f 148/164 163/171 164/168 +f 97/118 82/80 96/98 +f 92/104 77/85 91/100 +f 103/105 88/87 102/99 +f 69/70 84/94 85/77 +f 93/110 78/103 92/104 +f 104/93 89/91 103/105 +f 193/208 208/225 209/213 +f 48/46 63/68 64/71 +f 49/49 64/71 65/75 +f 114/109 129/149 130/134 +f 249/260 264/295 265/282 +f 120/133 105/112 119/107 +f 101/115 116/136 117/117 +f 110/135 95/114 109/111 +f 116/136 101/115 115/113 +f 234/238 249/260 250/264 +f 9/5 24/27 25/6 +f 112/125 97/118 111/116 +f 450/473 466/486 467/491 +f 118/123 103/105 117/117 +f 112/125 127/142 128/126 +f 108/127 93/110 107/119 +f 122/143 107/119 121/122 +f 133/145 118/123 132/124 +f 35/33 50/53 51/56 +f 184/197 199/216 200/219 +f 66/62 81/78 82/80 +f 129/149 114/109 128/131 +f 108/127 123/128 124/132 +f 135/152 120/133 134/129 +f 298/316 313/335 314/321 +f 125/139 110/135 124/132 +f 131/138 116/136 130/134 +f 337/371 352/392 353/374 +f 132/124 117/117 131/138 +f 127/142 112/125 126/137 +f 243/257 258/275 259/279 +f 347/375 362/397 363/383 +f 142/161 127/142 141/140 +f 137/162 122/143 136/144 +f 148/164 133/145 147/141 +f 53/48 68/88 69/70 +f 128/131 143/169 144/150 +f 47/63 62/64 63/68 +f 163/171 178/188 179/172 +f 80/96 95/114 96/98 +f 150/170 135/152 149/148 +f 167/186 182/206 183/193 +f 140/155 125/139 139/151 +f 146/157 131/138 145/153 +f 160/158 145/153 159/154 +f 155/179 140/155 154/156 +f 161/160 146/157 160/158 +f 318/357 334/366 335/348 +f 162/165 147/141 161/160 +f 157/182 142/161 156/159 +f 152/167 137/162 151/163 +f 163/171 148/164 162/165 +f 158/173 173/195 174/174 +f 153/175 138/147 152/167 +f 19/32 34/44 35/33 +f 357/391 372/394 373/379 +f 138/147 153/175 154/156 +f 165/177 150/170 164/168 +f 18/28 33/40 34/44 +f 233/259 248/277 249/260 +f 153/175 168/192 169/176 +f 180/198 165/177 179/172 +f 228/256 243/257 244/261 +f 170/200 155/179 169/176 +f 176/181 161/160 175/178 +f 34/44 49/49 50/53 +f 177/184 162/165 176/181 +f 172/190 157/182 171/180 +f 167/186 152/167 166/183 +f 178/188 163/171 177/184 +f 223/231 238/252 239/236 +f 168/192 153/175 167/186 +f 182/206 167/186 181/187 +f 193/208 178/188 192/189 +f 188/210 173/185 187/191 +f 313/335 328/354 329/341 +f 363/383 378/417 379/402 +f 189/214 174/174 188/196 +f 382/411 397/434 398/416 +f 195/217 180/198 194/194 +f 425/451 440/471 441/475 +f 185/203 170/200 184/197 +f 191/202 176/181 190/199 +f 170/200 185/203 186/201 +f 192/189 177/184 191/202 +f 187/191 172/190 186/201 +f 185/203 200/219 201/204 +f 207/209 192/189 206/205 +f 202/211 187/191 201/204 +f 197/212 182/206 196/207 +f 208/225 193/208 207/209 +f 203/227 188/210 202/211 +f 198/229 183/193 197/212 +f 219/237 234/238 235/242 +f 127/142 142/161 143/146 +f 404/422 419/447 420/431 +f 210/234 195/217 209/213 +f 140/155 155/179 156/159 +f 218/233 233/259 234/238 +f 206/205 191/202 205/218 +f 213/239 228/256 229/240 +f 215/243 200/219 214/221 +f 221/223 206/205 220/220 +f 200/219 215/243 216/222 +f 222/226 207/209 221/223 +f 217/228 202/211 216/222 +f 212/230 197/212 211/224 +f 223/231 208/225 222/226 +f 218/249 203/227 217/228 +f 213/239 198/229 212/230 +f 224/235 209/213 223/231 +f 219/237 204/215 218/233 +f 198/229 213/239 214/221 +f 225/241 210/234 224/235 +f 99/106 114/109 115/113 +f 78/103 93/110 94/97 +f 260/284 275/306 276/287 +f 240/262 225/241 239/236 +f 204/215 219/237 220/220 +f 21/15 36/55 37/36 +f 236/246 221/223 235/242 +f 215/243 230/244 231/245 +f 237/248 222/226 236/246 +f 232/250 217/228 231/245 +f 227/251 212/230 226/247 +f 238/252 223/231 237/248 +f 233/254 218/249 232/250 +f 228/256 213/239 227/251 +f 253/258 238/252 252/253 +f 107/119 122/143 123/128 +f 232/250 247/269 248/255 +f 254/263 239/236 253/258 +f 97/118 112/125 113/120 +f 227/251 242/271 243/257 +f 255/280 240/262 254/263 +f 188/196 203/232 204/215 +f 245/283 230/244 244/261 +f 251/266 236/246 250/264 +f 230/244 245/283 246/265 +f 252/253 237/248 251/266 +f 247/269 232/250 246/265 +f 242/271 227/251 241/267 +f 267/273 252/253 266/268 +f 262/289 247/269 261/270 +f 91/100 106/121 107/119 +f 268/276 253/258 267/273 +f 50/53 65/75 66/62 +f 159/154 174/174 175/178 +f 269/281 254/263 268/276 +f 264/295 249/260 263/278 +f 262/289 277/310 278/293 +f 270/297 255/280 269/281 +f 125/139 140/155 141/140 +f 260/284 245/283 259/279 +f 266/268 251/266 265/282 +f 245/283 260/284 261/270 +f 275/306 260/284 274/285 +f 281/288 266/268 280/286 +f 93/110 108/127 109/111 +f 282/292 267/273 281/288 +f 277/310 262/289 276/287 +f 46/58 61/81 62/64 +f 283/294 268/276 282/292 +f 110/135 125/139 126/137 +f 273/301 258/275 272/291 +f 284/298 269/281 283/294 +f 279/299 264/295 278/296 +f 258/275 273/301 274/285 +f 285/303 270/297 284/298 +f 189/214 204/215 205/218 +f 294/322 279/299 293/300 +f 289/307 274/285 288/302 +f 300/325 285/303 299/304 +f 264/295 279/299 280/286 +f 290/327 275/306 289/307 +f 296/309 281/288 295/305 +f 133/145 148/164 149/148 +f 297/313 282/292 296/309 +f 292/318 277/310 291/308 +f 287/315 272/291 286/312 +f 298/316 283/294 297/313 +f 178/188 193/208 194/194 +f 288/302 273/301 287/315 +f 277/310 292/318 293/314 +f 313/335 298/316 312/317 +f 308/337 293/314 307/319 +f 303/339 288/302 302/320 +f 131/138 146/157 147/141 +f 283/294 298/316 299/304 +f 95/114 110/135 111/116 +f 315/345 300/325 314/321 +f 123/128 138/147 139/151 +f 305/328 290/327 304/324 +f 311/329 296/309 310/326 +f 306/330 291/308 305/328 +f 312/317 297/313 311/329 +f 307/319 292/318 306/330 +f 302/320 287/315 301/331 +f 327/336 312/317 326/332 +f 322/338 307/319 321/333 +f 317/340 302/320 316/334 +f 328/354 313/335 327/336 +f 323/356 308/337 322/338 +f 318/357 303/339 317/340 +f 293/300 308/342 309/323 +f 324/360 309/323 323/343 +f 8/26 23/42 24/27 +f 330/362 315/345 329/341 +f 309/323 324/360 325/346 +f 320/347 305/328 319/344 +f 326/332 311/329 325/346 +f 321/333 306/330 320/347 +f 336/350 320/347 335/348 +f 342/351 326/332 341/349 +f 337/371 321/333 336/350 +f 343/355 327/336 342/351 +f 349/377 364/401 365/387 +f 333/358 317/340 332/353 +f 344/359 328/354 343/355 +f 339/376 323/356 338/352 +f 334/366 318/357 333/358 +f 345/363 329/341 344/359 +f 340/364 324/360 339/361 +f 288/302 303/339 304/324 +f 346/368 330/362 345/363 +f 324/360 340/364 341/349 +f 355/385 340/364 354/365 +f 303/339 318/357 319/344 +f 361/388 346/368 360/369 +f 340/364 355/385 356/370 +f 351/372 336/350 350/367 +f 357/391 342/351 356/370 +f 352/392 337/371 351/372 +f 129/149 144/150 145/153 +f 294/322 309/323 310/326 +f 348/382 333/358 347/375 +f 359/378 344/359 358/373 +f 354/380 339/376 353/374 +f 118/123 133/145 134/129 +f 360/369 345/363 359/378 +f 374/384 359/378 373/379 +f 369/400 354/380 368/381 +f 364/401 349/377 363/383 +f 375/389 360/369 374/384 +f 370/404 355/385 369/386 +f 352/392 367/393 368/381 +f 376/407 361/388 375/389 +f 355/385 370/404 371/390 +f 366/410 351/372 365/387 +f 372/394 357/391 371/390 +f 439/467 455/492 456/489 +f 32/45 47/63 48/46 +f 351/372 366/410 367/393 +f 59/51 74/86 75/73 +f 388/399 373/379 387/395 +f 279/299 294/322 295/305 +f 378/417 363/383 377/398 +f 389/403 374/384 388/399 +f 384/420 369/400 383/396 +f 17/24 32/45 33/40 +f 390/408 375/389 389/403 +f 385/423 370/404 384/405 +f 65/75 80/96 81/78 +f 391/426 376/407 390/408 +f 370/404 385/423 386/409 +f 381/413 366/410 380/406 +f 387/395 372/394 386/409 +f 397/434 412/456 413/437 +f 402/415 387/395 401/412 +f 397/434 382/411 396/414 +f 403/419 388/399 402/415 +f 366/410 381/413 382/411 +f 393/421 378/417 392/418 +f 404/422 389/403 403/419 +f 399/440 384/420 398/416 +f 394/428 379/402 393/421 +f 405/427 390/408 404/422 +f 400/432 385/423 399/424 +f 379/402 394/428 395/425 +f 406/430 391/426 405/427 +f 385/423 400/432 401/412 +f 82/80 97/118 98/102 +f 364/401 379/402 380/406 +f 421/452 406/430 420/431 +f 400/432 415/449 416/433 +f 411/435 396/414 410/429 +f 417/436 402/415 416/433 +f 412/456 397/434 411/435 +f 418/439 403/419 417/436 +f 155/179 170/200 171/180 +f 408/441 393/421 407/438 +f 419/447 404/422 418/439 +f 414/443 399/440 413/437 +f 409/445 394/428 408/441 +f 103/105 118/123 119/107 +f 415/449 400/432 414/442 +f 429/466 414/443 428/444 +f 275/306 290/327 291/308 +f 435/453 420/431 434/448 +f 430/469 415/449 429/450 +f 409/445 424/446 425/451 +f 436/472 421/452 435/453 +f 415/449 430/469 431/454 +f 408/441 423/463 424/446 +f 432/457 417/436 431/454 +f 427/461 412/456 426/455 +f 433/459 418/439 432/457 +f 412/456 427/461 428/444 +f 423/463 408/441 422/458 +f 434/448 419/447 433/459 +f 448/465 433/459 447/460 +f 427/461 442/477 443/462 +f 438/481 423/463 437/464 +f 449/468 434/448 448/465 +f 444/484 429/466 443/462 +f 98/108 113/130 114/109 +f 450/473 435/453 449/468 +f 445/487 430/469 444/470 +f 424/446 439/467 440/471 +f 451/490 436/472 450/473 +f 430/469 445/487 446/474 +f 410/429 425/451 426/455 +f 447/460 432/457 446/474 +f 442/477 427/461 441/475 +f 463/479 447/460 462/476 +f 458/498 442/477 457/478 +f 464/483 448/465 463/479 +f 442/477 458/498 459/480 +f 454/485 438/481 453/482 +f 465/502 449/468 464/483 +f 460/504 444/484 459/480 +f 455/492 439/467 454/485 +f 63/68 78/103 79/90 +f 461/495 445/487 460/488 +f 394/428 409/445 410/429 +f 445/487 461/495 462/476 +f 457/478 441/475 456/489 +f 455/492 470/511 471/493 +f 482/509 467/491 481/494 +f 461/495 476/513 477/496 +f 86/79 101/115 102/99 +f 478/499 463/479 477/496 +f 473/514 458/498 472/497 +f 479/503 464/483 478/499 +f 458/498 473/514 474/500 +f 469/505 454/485 468/501 +f 480/512 465/502 479/503 +f 475/510 460/504 474/500 +f 470/511 455/492 469/505 +f 174/174 189/214 190/199 +f 476/513 461/495 475/506 +f 8/21 475/510 7/14 +f 3/23 470/511 2/16 +f 480/512 13/19 14/2 +f 9/5 476/513 8/26 +f 4/8 471/493 3/23 +f 481/494 14/2 15/1 +f 476/513 9/5 10/4 +f 5/7 472/497 4/8 +f 477/496 10/4 11/10 +f 6/11 473/514 5/7 +f 478/499 11/10 12/12 +f 7/14 474/500 6/11 +f 2/16 469/505 1/17 +f 479/503 12/12 13/19 +f 367/393 382/411 383/396 diff --git a/common/build.gradle b/common/build.gradle new file mode 100644 index 0000000..d0cec5c --- /dev/null +++ b/common/build.gradle @@ -0,0 +1,41 @@ +buildscript { + repositories { + mavenCentral() + maven { + name = "forge" + url = "http://files.minecraftforge.net/maven" + } + maven { + name = "sonatype" + url = "https://oss.sonatype.org/content/repositories/snapshots/" + } + } + dependencies { + classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' + } +} +apply plugin: 'forge' +minecraft { + version = "1.7.10-10.13.0.1184" + runDir = "eclipse/assets" +} +archivesBaseName = "MysticMods" +version = "0.1(1.7.2)" +sourceSets.main.java{srcDirs project.projectDir.getPath() include("mysticores/**", "mysticruins/**" , "mysticstones/**", "mysticworld/**")} +sourceSets.main.resources{srcDirs project.projectDir.getPath() include("assets/**" , "*.info")} +processResources { + // this will ensure that this task is redone when the versions change. + inputs.property "version", project.version + inputs.property "mcversion", project.minecraft.version + + // replace stuff in mcmod.info, nothing else + from(project.sourceSets.main.resources.srcDirs) { + include "mcmod.info" + // replace version and mcversion + expand([version:project.version, mcversion:project.minecraft.version]) + } + // copy everything else, thats not mcmod.info + from(project.sourceSets.main.resources.srcDirs) { + include("assets/**", "pack.mcmeta") + } +} \ No newline at end of file diff --git a/common/gradle/wrapper/gradle-wrapper.jar b/common/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..b7612167031001b7b84baf2a959e8ea8ad03c011 GIT binary patch literal 51017 zcmaI7W0WY(vMt)SZQHhOcduS;+qP}nwr$(CZEH2&I&bfL-u=$q_vNUpQ9mL_Wky9t z&WM<$APo!x1poj60q`KZF9Ptl0sYtQZ-e~XWkpp4X(i>v=z#$g{vp^9t%kz;S3u=& zNBQ3cWd-FV#YB}==w!tnWv3=(q-p8qVWnxQW~OEvl^B+o_l_T?XvZX{Wv8hnX#k-v zLX1+5iZm$O&`C>N`ww7dj2*6IL-PlpPVEyN>#oD(JjuU9F4&>RtrkQfFSerWU{tTQdH z_y5pxtmab;+TYJ__gBULWeWeL<$r7Nf2rla*Qo67=wxiI;9&b#Sx)B0j(?xr+y$MT z%#3ZE%nkLOY#sikgkoiDTO>gQA2f>4(fNaNz3SwR6%Uo;2-|r*EXa|epfs{&vJiL^ zXlxG0Zeq{KB;R6PtHN;pK78XW&e%#C?G;h zzE~o`tkY+OmhF}!THQA9@lFwE-Jq{Ncy~)jpMI!82hB2Gs#SPnOQ6RAKm9?<75=-} zE!ZFjQ*u?9En|Rj*O_IdnzR0)7*`A^M!cxpm6N=G;gRhZ?_!5zYQ&x@`*7`&>suh8(vV55ruH`4wv-#{>(SUWrEQWJ zRtmaNweT0zLf_f#(yL^3utc>2!Yhs9Wxs&_=}bl-oLC$ zG`j!q)`AK7nL0l~LF|Ikc{aH3s)Pa-RCv;9Wnz=!zHs8p1jp|SMdD7zgcwi#e1G)X z#s@$<^E~r_fbc1xCS{d}NIWMy{WX(Bv96CEtUJM?X{r>|NKB}{ZJ?Nxu4W3)JL&1o zSYP%UB-r%%d-_s%Ks__5ID}lOZsM*0A%qoc;Leb~U26R$DYA_u>bvknIaI(-0lYm3 zO>5Fx+WC6z$?CSx7xqf>-(vCFE6++*6wNIbnjo6%8rQ0eLz5NZDi8#a@$!Dp8LGc8<4CyY@JqOikVL^ZNj)4^#vwPK~=2>`~@OhEYQ3>4<5)g(Ha7 z5$v}I!~t|8cqob~naK`FLrTLWYJR+Y2vX^8jMvx}KP?E#&8E04<~oJgU954ivP{-h zYRovwc6LlKY)4ZYH=IZ1OruMCdc^CSE!Jb_=zD?=S~wi^2Cu$C^Rcv-8o@>b4no zqbJC=k2`DgmI^VOu3@0r32)#9uouWV48^z^^;{aE+5S-U!2Jq~Fi$`o#xNg9+!psm zIb{DNAWY{FPDn(VmtbB1hDO)Z)r_MU*Q4f$0Vh$#_oL(?!5v`1YfhBcFnVGc^iDma zzxfLA2o{Jh1M3M2OpW6b9(V)$owgcGBmzUE7UlvID>*|D(tbIBghoO3Lb`a-Ta!wu z>81P&0+l{52)z88bLkEt+!4k%l;&l?=89Cvp+wc?h5nyrigTd7ISdK_@bMQJF#l&W z6?HSTa&|O#F%~noG8Qy6Gy;NLe#5)5wD@21RWhXVdQ3j?R>o_9o!F_~U$cmR-n1Osft)f+;RO8pw6%e?Ksc zNuPs3k2kd2nwipr3-^xqb9(#p!N&jnXBid%{xFfCCBG2}v1n-FSlkss2j}%r1cA>f zVp7un0y6K{mAN1%X-W@)T;Xo4Kfnx#B5@ci2lf!N8=HjkET}!)?4NuP1_~5rK%?Lc zED_oes`x=W1gx1~1|S{yg+3TQX-F$YG2~pc&Lqm$rylaoP9%RwgOpB_8A(g1#pqTn zH8bKZ;}wz_q64ZiTyhK0RUuJZ*eWtaJ1YqUrKHMcGCOiutd_BqodlnnEkaE2Qxx!I z$*@02+>lLDB3LP>6*?me11pl%z?@azn3*GXO4T#kQp0pS)eDo=Cz>4Uvx<$JS=nqT z-@7b^H|UL?3A-Sq&G{atSqEGN&mww<0AOZJhSsO-_qN+GAz%CQmX4kKO4RWPcJEVOGt_V+WVqph)&sQG94AW^W-CD?wrkXt8c`pw;FZ8JnY$zHV zD9E0f2=e}3QqjyMc=KGr3DJ~p$&BTY@i!RcfpC;CuO?!qrq|zQ62nlh{oTY=%(POw zU5JmC8gf}3E*;%I?z{4+vN#B=HXMb;mOKIVu)@+2LH%Va-bzT2!Hfjt5J&1yC zEUhonr;Fs!xQj@CQA#v*uYSZ>YpBvkE8!kXCpErL*{6%}P*$cv_vZbE63f8rw1F_6 z={m-72qyvp$JYLdD5b(EWZB9{Yu?Hr8YW%MsHUCxCQH?l|mH(#_E>y1d=QDmSJ=ZBwQ}8gypIL;P0t`G7oa77Osg9 zdf7kugeOcsYq+tqO8+vf7I$^yf$}%#lb7YlZvjq zN~+7tXguWjWzob+E2*RJaC`t;%~qc2qP|60J|bPJP<@AWZ9>27%t*M2AAx1)<@QUOvYQ5 zSfzxlHtkUIhTE!1+V)AV+!i`Dn{77Yps>Fd@9>m}YOpfu(Cy>~qK~qIh~Z}$uL@DN z-7enpQvt`Bfp7b6D3fOU*co8?WBn;rf&#Qk6gXkqJHxjqRkBkKbSQOvV3())DDfb` zd&I%%n|ns+_tRDQzF?-A%P`HLs?$d{+SsqMg(!6JN-ns>KW=9AscPXp+ZBqf9DXpM_-N_238}(YYwj6Ptkq%Jx3$`vWNXSOX_O~4oYTk(O zv~mJCM-#JU{Bhx#AceB0meFkt(zgrtqIn#T?JZd`AUMU>c`efLZ8X&>b z?gM#>-`K11|Ge8?Ai~6R1&qdtGw%)swgsul93b#E&;J6_EyUf;1KvHL@abE8S`F7V z+edS69sd*9#XtThvWxrZOE{;@0UoHyD=_D!F#w!VST{CdL~2GYrxf^!hO^XU!Y%BL z4UfD!im8_{25qDZz87hcFzJvX`H1tKoZ^RsQb*|`TLa{I99%(cv- z>+gZ06~gWuY(x)QS$5K5K^qNBE_qGb9h=3n*}Mx`l)|*UwTW4_StO20#Yk}8#`A*z z&r`v$*1tpVFL*%!`@e#hU;m1pgl%n1%uSsg^qtIYZT<~j5;koX1rS0^6FKB?*=O=; zX-@_6V>BJ45hCt!_gb7Vn4teWGq^Y$|mh{{Wcs2DeSlh$DVnC zf=|+)$C-G!ncy{Ra}X%xcK92GG6gtm&NXukTkdBZ-#S{=oTLQ458wkGfi*=a6Vzj2%6=&8;ZS(BOvnj>_r^|x$1aFZ2O zy2^eusV#7CBW@8*QLDW9b*hl$@D4JIXtH>kzVzpsb32_PsS8xCmFQ3>6#8Mi&8~0Q zvB^WP#V(JI`!7SF9u)`}_;*;pmhz#nP*fjO#z6$I<8M z_6Y>^!H7ZW^e>I0)b0RrX0Y^KFnMoa=*Wd-o}T2GdW3H--5Y77b+QqpPYDWE2IL}Zhl)gvks;8-RaYe3>_pam9q#wrkwz+w>mirf)!S(`Blo&x9k zRSCm}0<9nfZNddf@Qk2YpD_tEfE+X-5{?D&paj*134Y@pAzI+g0#K3>xCRk0!8g!? zv{Qq{yT_H5t!D!&NeQf^iTyzT(^M6`am|naVrj@&TuxamH1o_)`DoW0up`FuzB`+EC5NEcP+CM=9B z#*#Hu7QxQ?M*5fphHCi0K^JP2xX315-|w{BwS+LA&$x--cgG37PHwX z)E~mQh=d$`6=gSr#f<5&F>+NDpU#A%oHHqto5}VF^pa`Xtf0(vDG2o}P4YpyDr%5KHOJ=k{YK<0T^% z)2h7Us`{}YV?+zYIR{if>uQ8r07~X@Ogh_UEMtcbk_hR?iU7Kk95m;=kBxkfx(iP6 zb35$;ncpFrc4vle&jvN?r73mLa!N^i7an5L&(g}coq}iV)mx4WW2Nq?5!75vdW%-( zL8$>TrcDV?X6JSBi}tD?J6n0BC{8sXJ|%kXCTc1W+!l>oY7ESc4dX8G+%eZdr;7tn zrdEb24R=z`gN{+hVQ}E?l3KW+T8V(u)N5(FA^QftMf@Ap27;qRd~^1=_!VywqoZy4 z2gta&0l&RMW}R{R(5ZTs?3EpQ23Dzh=I?2H7Vmj|6zru(W8WkNovz{2{g+;Pfx3~T z;m{km&T;6_)w4Eg;(*1;YV|fF${tvyVSSklPm7r`V??)mB)l7)R_iAuMlGKv>77}> z@+?!;tviEVOAk+jkDMiyj zX;xx5*rb>u;Cm-~3|m=Lo-*|`#pfbGJMA}i6=TI5=eyQ1eH@w(N`_T}>XV8F;;4z4 z+cB)s2#<$lngDgtJ)`(>_& zLBX*z=q3vD%=qNMqflZPv%C&{Glw*wkDih{89U zRq^=23qE|S3oSkgv&4!<-hBc2&VG@;jYCAy3uc#`?uppyB3{1LZU^$6C1%Fmj`IeQ zr{u}g=O=GmZnB}&$J4Q)&ab>8Wac(my9d35?+~@{iG>CT>W;l)Y@%%SL$*W5AKya1 zN1o9b{Lv#op(wb7dkF&SA&=23?|o(p z^yN0MDa`RVeV{-jm?p%14p-8KjEyitb`cu3MJM%&7=s72F#C+)VU8-AmGyX}MO3kR zeow~VVq?FxJtDX@EZrtQ4bE}p&jtRjza%%ww}U2*er>R|Ek;iJ`nY&W#*3F{?AHTk z#@mNfWDiBZ7%3khCtqs^d%(VfXBsc`hAPZ4aG-VYx}w-6)O*hQfaKredl%=QfiPv1EE%k5>F zqGx#4R{TDjqKA6l^NsJY4S5*8;Egc1i};|%4>)loLMdmCW^*Y8SCiQZ&_Qlhm04Mh zM!FdUr=5qJjWJz2gWkwAwMOQ&Q98JNeQU`WuznnSLY7op?MbOa0Pbl)6ws47#AZFh zhMvM$9JS8Y#N{L0%B04}LU&vx!q|C7X_{Irn3jhX1x+C|0b7ZN@)W+xyP8w(y}5wNAYTz zaiT&fg$$G{&J1pP{v}nVGd;FgB(Ao!i`>{#o0_v^pamU#m+>OJ6>%o3`s#^@U`|#~ z0C3)TSg90+j7fu}b*E{N1x9M{NsZ`7klNQpRTG&Z+s*TNM>q#C86CILOSE1MRANZK z$8AQF2M2-T?sF%?;eWX?$B8mZ{T70XrgAj~`|?#s^+n30lY}cIQWyfEc+>mvtJ&pi{AERUPVV$|0xL6@ zZOSFrP7B$orHXrOv^`aVrr-DWx|x(oKtS#oigPLbpJ~U!XWJ3ITpOBR5rrn;N3q z_olWZb`!&GHf#5)NH$uFt2o>@lBPl4t6_*4TZ6ksTcasaz0Aa~oLZ)qu}Sx2J4E(x z)3G-t!e2H;W$8qCV{hQ-W+*=-)(uQ_Ly{i$(-GVsjUD!peM7t927skI$Ht^i;r(jn zcvj~Qhc$a0Nd8E+tU30^xcdqoihXyT9eX`JZHDV&{k?I(w6Gj~^8v2@Wv1>JU%{dJ zG@rAMe(+#M9@Y)2gZj7b{D&;*lf{J2UwrbO=^VXUB7E>6)z3nx7rc zkXL#1pg_7RtEIJ#lK@vkmw1!EcWwqlk=ys$h)DM?r?eJQmm-!1C1_Vn^?Q9h}8wMx^PDE zo;q{jJXd%Cc=Le0tyd||WE2R2*4Gpr0{TW+k%>?s<810%<8>|BdNYNkE7c*Ew> z@>Ia;@g;ExQxGEQ^uXz*`3I9kI z5Xktv5Xm<}{9d@6AwLBBLM}M1Cn2<|Jy3uREj17yust|4@T{oAz@pm{el?Lkms1{} zX)8T^_k*=D*SA8YLGu;C;PQ$dS0r#=@#8u!SB)6An7| zW*y=_RK?kyvenmPbP2F4?c14u4F4^#`lwffS zZ(om6j2;8a-~bt3j*wXmJ#rJp`_~I2)E~<^kXL{pacWwtX0W_xEJYCIA5V zd;O=QGL9A_&HMQh=fx)3MKa!m7CCHkULR|Z zU31|dTN8P6#*wqpSMNvM+t1$D9^2lB!Bkz+0@}}e0?~8%qW2P(-Gmc)>G{v}sBaz# z=cf{(-4_Jk!)F4}GkT+I`r>!FxSfJquyfC+UxFTS-x?Xcif6WgDuTY`nm;=Ex2f~| zbNp0K@_-+v!QZ43(NDF48nQoRk3V>MKXKpus2{Zi)urr#DzZPc(?1fAz`y_K#vl9u zJqf3`S1?dc0n$O%fg@kRE||PX9>O;a_$$#J=M5MOUKFtdR~4M1Hq>j0Q3rNKP@~kS zv`Mx60yk%01u;jjRcm9D@DvTu)r+fm)zomtIsFsoo-!?Hs@r#45$l+m~B!6Wy{E?8SXrGbd9q;rhDHaF5HH?HHLbAzP-i6=W%MV)w`PO_s_W(1|}XP z7w?3})vLhasm`9~GSD#SFq~?M8hXMjLG3mnGPi{MQ->yf4%ib-iNHEbW>A7=tif-l zv532vf);&_Yf5WvBG$?U_OWp3;3d{5?@XTP;YC!UDT5t}i!r?$C~Wz(KCVt>o;Cl9 z&Dibfpd?Qg+7!e_i^3J5c-DIY825O~iWJfvTi$wqJ>1=6B^#RF)or3;s=;YS^0cqw zCDaOMu8#62JyGMT&II!zJLhSmG>T+#qabUzp&mm7Moy!{yxnrBr#|}V~%AmkN zcZV-ne=VZFcv0p;fCvze5q2aHutj&Z?RhfHFQ16%8Bcv8_&tVdr+Parqm zP%_xov?62W+RFf37P;lxiiV^S=V4MtBhxm8kC)RNles2hr%Ye4S@j08YLpAC9^F(8 zT}a=C3^?>Iq1zL>{d#a+U`iD;X;8YzT4QFM``GMunWhr&Zzf#D!&XLK&mTNZ3I;}M zH0nIaq?E?HoiQbWo=8husr8TP^LP^NN7RMdmIT@G2|&M+MQAW7+C{@7Z+SW8_Cg`J zGwnr)$wEv9I{oeO^%D8V!5%^ZNA7~2cgJ=gEVNDQ^ z0$Ct#dSPM14Gu7IP)|%OR^%;_4$>5*367RxIxeCei==1s3mjKgm{|a9sxTZ@Y9yx` z@+u$V1fH;^h`91HeR~SBo;Lp4U&9jTMiBaHAYueHohq`bn`>_C;}A9?vDH!Mrs-DH zen=*Af`xq8;FXPaenXPzI{791m%T_xdbP^;@yanjQ?)W{HZtd) zMgQfKe0u~;^+0E%W?5S;%Iha6biqs2n+i_o(xV0iU(O>lOYnXi=faR&7u}X4t0eQf zb3O-m`m5sZB;@GCZfPlTKgc}Pp1zKi7;y#3an0mBv4xUx6YnNByFU~UcGJWSYMi=i z)*{iximr>a)3ydzly215=zyg}6>nb=@slnY{sCk0-V!SQBpU>p8OPTZsmv>EG#=8i z@4AJ?T5hiLLEl5{nAodz0udAU*pTWgK%JIDpJX8fUGY}%p;HZ(Qehs}q-bhf*&f+_ zr_pj0E;;rQGT%Yz*z>oto6xZ&o-#+pLTb_25*=@DF%I6MwOKM{=6<@?HjI3_+AsBE z${e+K6byprT!pu$iPwAWvA$txa=Hgmhpf&Lhp0m$Qz5LzK9lu@iUOS+0Wez$Hj<&l zSJM{M6p3Wo^_K7JN)lzq+Vluf+&t3SLaLkALPl+AAPN(8y3v3z6e4{(E1BTaDU~-G z9qfQ$l$W*ACp)ZPhroXM24tJa6lGN8>uMau514$F4>W}}l&0Gol@FXgxfAerfmFS^ z3JS_i2Yp-#NNDeb!Tfm-;GmrFkD*L#x@vf;eDpW&A`~^+7b)=p9lulY2j8U+;^89$ z;~aDfS5bXbj$`j|q4-N44nKn?@Q-5&S8B8A>_Eq-B(m~PY`X6~okvzh zPf5HOC-8<@%%35BV+z`Dw;g}Pa!9m81w30oGV23?1HqPDj1+j(*w8rix(ET%wcuPo z%pT{Up-z&KLYs#~^JuEepCq*4&Gu%*1W4XkT%gO02NqPPji<^U=kOwVY$HoDr!+YK z8uha_sraReXo6rT)?*O1;DAHdX1jVKDzv}dUh^ia6{V7_Db;&v#OC*WmiOqk=_!n$ z^#YQlKGpM=;sB^j3;=qZxf9>~Vx+Y%7EuK1t`rk%?E5gGi9oS&lIM%g4>+9NmU#hu0{HE-Sk0=<^yLwy~3D8#xfFB0CQXu%DEI!$jN7Uoslc2{6GhCWj_)CFcdko7>X8VPD7hH*=@=BMN5FWRmOiew{TWoLmP3TLsnXt$0w(0L9P3KB z39(R<;(Us$XsiS!o*4;o4Ko~p6eBmk@hte+ltRGgX;bsWd|2V}vB*GyZ;MTyy0gpd zm-9QrZ?p$mCD9_zBWQO`^fHH>3Z2r6S^9WWQ~f?NH>j9ouWCQYIoR5_WsCRIr>`djw|=@m1G4C;@HA@Eb$A( zrb4?FZ54ULCArYDR5)%8*3PX)4Oni6MrIEb1d9G~;3q^6m?u1PcO`p|6UeEgF;Dty z|6TFgyjz{3=XlT!1`zNd`gt}dcKFurj>XIM^UC{Wx7-3d&1hT8RQ{vf(&$tPYuI<) z0!^v2F?W33o{#I5th-Cx0P+0|LxgWUj$;nz1;`H6!%g!6#XW!*79~(`9D_glZ)hKg zA0RWU^Cle<{7}y}0Smc95?Y(ts!iP0W&lef-3e75H&e)I?~LFW{4qan#~pBowgJ+V zC%Zr+m-O+k6GW=w8dTV5W{U{$^b03pKd2T_Zd92gL^~5F^QV| zsq{ygr7z^>hmK4264`ajDHGL?O|XAj3NuS_ADbSTu62vF<3%@c+&iIz74)ofZa5s?FIebxIKd2SDLUKwbmkyt16?M7f

N(DARnfPMFG|;(rIGZH1uB1rN;y7UlJ8 znb!RwO#5WS_%cPPlwSw94PTKP64}}J!~E1}ch9``2jvUrB*#@up8L&*`tqgq ztTAS@^33w-5hFZAH&{j)?l0<)9X(d`N|yLk!E=iT%PD-FTJ!|hqyj%RFFP`SaL;|_ z$(+VYhKm)K@Oe~+eZK(6ElQNdfimBrdKjeVl57_7p^|)jrzt|wyRonj$j9Bji!


f)EE4q$t9yObmyG04W0z zwEAra3WPkn>3Fb9s8^;JsD2U=J6G7s&CUebJEw+&=yoE*5?$-5j`#sxPl0^y-Nr5f zqODD$5Yec*Q%egs>4=qVe6nv3ffzozQ=Q){+(I-_?VSTi`{dk4@98oU1+Xtx3~B}K zYz=68@z@s5-T1<7tXF^>56vl# z58_Nqz!y-iJ+67h#|Q=}D!^}=s*eO@Y-td)8erJkZxGjR*`DK^rOIeP2<-!0FE>;# z_OWgl^eNX*lnJve=cWYR46lVZ=AlV|p3D5zU?m3qyx2*j8=?;SN-bYo6*=D1Sg&7Y3#^FT*@Odq-Z;-7>QjtU_L^=fm4iA4$-Q>6hmA zRIlHQF-50@Wj_&2!!tn^AW)czs8ybBv96Z%y6@Zh++jREJP+vPs$8uLU;6v)1AzzoXl^+Y(8ayi``o z&7K1gRo6gigwS58-c-J= zk~u7=EQOuN0vTL~k)W5tRTNoAFD8;wMuU8oLTCO5`(q=uhmAg@)=PHx5BZWJV3$9>@tgfGF?th{E_!`6G3pbet--D+P?`sQ$q;Zx z%t`hA!7mSNYBqbm(<&6CGMIfI1yAS~T5gA6nXvS$h>h>wN#+4=OY?AM^bd_h=<%PE%0+efQ zT519u=4vMv>vGC$(Oiv-Z@$I?SJ}mxji%pfti(2zDbrPwfIBq0P-pPg!!Jv~tQD1F zTv)BN(-QI>NYha>=3JRhcV%iBL`_Q!Xat>vr_(U{?OHzS0)dsC3fx41)1>vdi15?TlT$mal%d(AU}&53zZYUUxEieJ z<+tX27~QLrZAwE*+E3R9Nj6(q7ssUbir40&RAiUQoTDqy^EO$UV-mM7JtLpMVa>cui;PDaQ8w<{p=jt0S%`-6Dhm zWls zyQ*A00#tGit}tCy=>eITPG#jlVU^%6m0z(zZ*XiX8}_S9yL!tt5P{BQ)qc?qmxZiH!IXdss0`rYp5n# z9oA?qNyp`%*q~AVu8Y8;=Hg%;;Z)__( z=xL^@qCVbhoXRP`|Kt{~g;>p7?6~^|7h0Y!jnMPgs3+a3u{Wu_ka<&$KAaHcve?M5 z*W=6Q_Nruw^4y&qKoQxui1+J>U{eY#N`&ah(VE59r_frKCL!uBcmUJN`EDfJR-r6p z##}B56~NoHD1Jdi++w6l`B4nLXBk2hSZ&KgKW@C{A7i#pk#9z^H& zPZIxP#3CC)9s^{IT?H!89Y0(MV&8k#CA%C6Dg~9j=gA=V0?ZXa@*QB7`I9n@4yOTE zItq!LXP4b{JHSw50JHrxJtvG0&pqxwvfKDCWSaxo1}y407iZgen=BF{$sIEKCwYajZAQ_j`7Wo3m7%)cYm94mCz{x< zte2=rYlGL>GhB0ITZamFt$Xl?vrot#zt`2%g1gCH-|PbF{ay_cuYeoFr%!t|e-|id zDCDAT3dAnKOZy4lQZ8BjKoHk}F*p143&wCtu2q?%UDE1MKEIknUX5^^o!?R^St54< zyDkS?@9_V0hy9`i6T*L)49#c&02Kc@dH8SQji{Tkq4R%p?~~PC^{|&Qf3k_i8yxJz ztW5X)AON`=jG3h+gv@w=N_5oaltNq1e|M~*8)b83Go49jnyJ%TOQO$#;-1@>g~PT9 zNN>(9bidMVd(O$ed%K#R7ilfrh3+0`IH9j-9wp!Qc5mi1c> zw9!Ur;6w@aTNv!=5um|0bP}q#(DlYBMP@wJUVc13(Ai}N0KTI=qiH5XJ+_CNV zNQZO=A6+AM37@!5%yb@IDuCRkyz?@3u?M`4fBInZA@qYAf5*Xu4z`g8z(>x+Lfm#M zIvs?mv(oA^KRD}xyhaYg2QgB!z>ke*KRnMf;6)vH;Y95brsK!#86tY|1c(#8iGbur z?I|~SvqXs(u2C4}ro1yV;b{Af-u;e$XlLNV7p3nZkm|u0PQ5c`yrx$4Le-5txO@`> z*;T3QDy3)TT3Bs1Zn8DA8%>G-#vLRU9_%JAG=wtv>TKH9FjbqBbtYP;MZs@)#}1*n~=)XfJe-TDf9D-jJB{iK$w(g16V)y*_UNhqV5!X}8mbdyTE=p{I>UHuV-sbK#}b96 z&^f1XpDOFbmcb#UTd|+izeSDM8wb9HN`azk+;yvyz50~bN$91h|E!viQ#|#Embdn| zN35bAR1CW47}}(Qozx}PFG0Ch?$)R$$vP;Ld8yPxZNBgn7>b~K+L7Ib<|yKYEd%59 z7}QI=Y^lYJYSR{T7%g1D%mpjWRw+4739FpVl7J4G-|F5gOH6}3BG#OgETFAn@rK3c z8!D2>?jH_QimsmC7`rA*H*ekeW;oGX!zi>5Q1rt7s;Efvn zO|?tR7x`%U^TNe5NGZYt38ym%h+qM^%!2kKROY;hf}yZRfsgP@#eik?#oCNgGnJp* z0rww?`rUH3J*w<21FlrN`5J8%kSQ&J-{jPk#CFS38y#hvU0S)>8DC{5@fe^$7m{hC zO0q;;BU|b#%(z5)0#tu`yUJE`Q=v2}&$f*hG+mN5D49nzVv+j>&pclt%>C$X?nQ_x1>RX!2; zk%IY6%Cn6oD%WBvRiX?cBdXU*4%RW0^$W`e`sh&k`{m1N4yhaHs`Dz}F!6rfJ8YF5 zoEFps7^pXrt9}Ym_)vykG>h?xra7lR|8lsyi~vqOWOumJtSF>1~RNWW!4#>2b8XQ=thuT1fi6eN#2^v|}E&rvRR>c+bwm z2QFq@s(LpD`54^VJk3Nu#9WMqx9X@OT7foumh$2z-CV!ynNv(_Pn%lKL#esBfQX;H z1nuD!8$UfV`rKA5pWazsrBR%KZMf~W?K z(AbBjx)Yo9+J*R*Neucs*z+JB)hlu+oIYb-a&k-ABVt)mhKjdbT9huyGbXk?>-y!- z0(QkGlMPjT>DH8FqCa4HvnETjbyE{g540?X+hV%Ip}LztD50lqjEo| zPx*FYM)E=}7j^pcd|1O{D|A>0Rj|(05E;f?w4QDLBnr z?c9uk9uYbs^QAcb2O@tEhmfqr=i(&r1P!sHJ8=JOZrlnhAL!uC>W#CcaOKt;Gszmh z!>Gv|s<_s!Z)=`kWuM$+-`osmcQbEwtKRIS&+J?Xo9UoC@bGUwcggbT;$;X<4!+JE zG#(`n&Of(9myY>rBMey347i&Oy~Esra=@Y|oDh-JrRbs;!e2r>dT0g09`z<6(e+QS zg>}}A_n!k1*)gXGjmk|Bp{4Z|1+HzwxkNmYhASO0oU)qE{yY=V@9*M!WU1aH>dh~dAVC3@ysAiglYcrUWP5-gLWNqRPAqe z^B>(kzh8y&WqoYsJJ~>bgbuHWluQwmW)5%e+^AJYmujIk-Qd5>skriFtlx?qc9Sdz zD8@ONpc{Goib=ts)VUZU4N2YSdJr>zc?Ka>0TMWv&4tbZzRX?#83<5k|x5DoqdM5+EW5dGKhYyXC${}r46cRkw;c@*^< zd{W1~8;ls+O0W)17DwjPp zRLwgt&MpBsdX+mO)MJNs9D21oBzm2T;cAB$CRF-SYLqS|(dMn%k;P(4(kwdHSIJ^2TjZz%#_H}N++3cLG(h2F%W zuQ1n_+&nB^dA?=}edrx>{3YOq9tKn#7NmvY<#hfRc+Bw)PeH6DqYEJdc}H%xyZ$%d z3c9vV@U%$%rMQWx=Qh&(w*B1QtBFO}rMFA0LT4M&PA8%)l*^@A2uB+E0mw-|fUq&6CFMb^f~e^-hV4NpL_ zG}Ev>9;82|UDVl&n9~s1(z+}>RIvo}SZGL%fz+>XL_!Wi;o+R)^QPB5A-nra9!4|b z9p8G<7)cgKH&~5C8BLUwP2N*Tr5eKdBcGv=niowuFG`zu#OEzGNPiy`qPxF}b>J2ga@n8Q+i#2dDK~g~5ALr@C%8>tsZB#x zw_)74%99h8?h$l;c7?Ng2eU;%`#L&YGLen3Qhk1-G7;9;MoPM!dvs^&A5AyZsjj1h zM!rB^m~un$2mLd-U-3+#;xg+>y-We=#TM$jW*`5pG{jeu{#!HR1%GSI!y2boLv~5hy3W553S&&&T z5u|~{UrS0k$cadZ&eeAt8>A#s{*Y<0=ify(CgS7{RW?`H8{fU8d z@)}Q@=be+ro2d}$xyEVGhBn_D{k)+g(V`SYx0_9M^Ut;TO7e8)7AC-fnK&$K}ru2%w{>TNOOo4 zHy0>z?sp#h8gU@>q&&JSq}qKM&nkHlsN>t%ckHr7cwy~!xSZ_9DRr_xMv%o_mTV~h z4`b&TT?x0X>56UJww+XL+qUggDzJY-`^?Ri%iT;t zTGRFQ`rdezhA5`VMuMq4P*Tu?tHOST#N$ZCSJWTH5#ZI(WxRH=;jiN>u$pE9cL z98HeORByGr!#qTztg6ui|Y(v^qXBd`6|#3HmJBE_``TzGCc+{s7{R=$_NxddPK{FcS+9td=A~<7{wWUIEo{cuDYLTl zg+JjIa!sn*L}mA9{j_|tzO|mrF+}Y#XyE~|dvIsxb+5N`ozqje{HEOgZ;Mh3lF>sY)WZ|M~1LJ(9nL>1ij)E1&!BX$8R3?=S$Y<)L z^HC=xwEc>CCVg5MNRsGjS@&cQ092Yy^u_tUHRKVvu*!&2l_~cubzB;H+hnyd6BU-R zrin?Z9lZbuda4szuGA2Vqd{>ly`;HI?(=FkI4HG5z>aYtPkihJ!5A^TdrGx%b< z5NFLR5d(TNijz!@17lQAZPg3*4UPLss2J(79Q_;$VcLugsvI`UQjzcK-~5u7o^EZJ z-*bjD(EoQN#6SF!|4m!@HU_C8sUm;zFcL6Cgpq4hkXJSYk@q)N`jG=_SO|fDG&VVl zW$8PmgvLXJY`C^BuXZkbH@XN@Av|PcW$iWl+!%g^eL`7ZO%VSSC>VzN-1avGg4mT2?Uk@+(2ai(|4{DnoS_LklCtv^+A}fpBKhg*TyPyT*-Y{f<>;wIA z4;c;*ZX05=5=!>AtQfHW#vCu}W=9<_3yB1}%wmv$r&gP-pgUuj!CDULOeN(g z642NRX)azS-3DrWYQn0M?%+77b&Hi0HFXx^>gqH{xKQR#R)scA4Y9$>jotd9K@c?D ziUuLUg6KK>D3%4qNM zkeYIyw8}efDy5XNAHegla|tfxxg_y%#FD0ZO6@_zRKOyW$zW%YhNyO+h)4(z{p@xm z9+lmIOEG|^0bJPTmQlv_FTN&t$xW8LYYB`=R`o$reX|CDyYLK-6+%L=68;W9$4861 zg~-vy2b!ow_4K=f`$994SwJMyZYkK9!XM-1Q@1lnz1^~g58oM?nQ%8ZT%|8pq8>n+i_?G$|CM3YMETR7RsDmfTsewm@0)k(<)x`y@_Hypo+> zD^uX;O570WN}WCz%hUorP+-;rYBdHpJEXuB+2rgo(?L+B>&}aMS@zZx+7RNK!c?!z z!j`T%jZ1qtt9GHMmUduJYTyu6b}Hbm%AbGW%?7n9A=tq9 zM?Txh419O`2FRZ0gQt|dqUe;oLaUX$B5l2%RR-L>j`~1Qw(em0@CC@qr7>sq;mgp% z3XI{9)}x<81sb-v3&{{G@}-v8Q7L=|>3Ac`T0$f#eT)-GU7SaxSR@k_Q|Nx5Vjzih zkS0qZhjj01UI}{TH_cCcC+OKll0)MyRqa;nE2OHK2 zZ)Q3av0?&AP7jl8Q3hF0&ga33%ZsarRe)&jxss?5)o`g@CiVdk8X0+3lEzemXmJ)5 zcusCJB)K(T_Hidpio4BbN~C57TGFZphplzph1XLel+7c~L=O*IJlRi%0SHYB z$&nI~Bp=}e1b-@EnNf!*Jfcq_7rqGVkyAlrVJKlG4&-ezoqS+EcA1M@orO_4l2zWI zI`g`lzZxR-8TY)S5%SrLkI5DaA2duMrl`g^Pnt$Ou6`A1*SNj1@Q~>Wc%H48`d(h@ zY2O^>8nh+!Zd8+S9f&SZoy7a@KzlSM1H-|9GaCW=JSMh>@=C*jJVRp z$#C=&&QBjnhTxti%8ib_Jc5WjS9s^AXex221Rj^H$z>r)k{9$i!fF^9P zfF{X(WpEQv9z{=>MscHyYXW|f*OajQdHkeUZZa5t^8>Rd8{BCq4uv4;{F^p{2%{@{ z(lc$GP_WYu`_)60axe*Ko}gSZU%>DN=}izjA3wN`pj0iD?*$Acj<0r1c^H{*Ft4rd z1Iv5BjXZToLd4EV^!X0)KKaUwdaom3yjWsDP&%w2Zit{>U=Mc17Dbt~pgUjycdDJk z<>@FjSX&UUv;df%KzTr!1R0@66rBX|9yKeyN%71QpnE{FOB;9&s=R5xzTo+pjipF^ z<&v7v(u6X$QCe(Ak={aWQ5+ETyd{{sQeZTlXumGGqdB8l7-14O4spg$(g*{t0AW=? z7$Ua|rx+I%^T=Fy16_CpXkMj{WFrS?n}_jBKO9`IT+J7?7JN;JOJjhyA>79bjjTox zI*&;4hxR>yPg>lTl<;A$GF45Wh|YUx<-O(aUXmD^=$z$n>jD&Z>av+MinjFo-eyBC z?f`B$F0u0M9xMIUHrQV85MoGim!xL7P~mk%B3q%N_l{gt7-byBUtj+Q8#*siVXFuD@k0gZ#}D@ZS;P33IX7Y{TSI*-A@gsu zfw_V6{~2gcRM3>f`lj(rnrtjMEwpr+ozaMUhpdgMoTMwj7s`QClJh?6aiv3#47XvC zra#&?PRkwp^X2eKc$h#J)(RZ=O=hgQruKcdy|}~ZK~0&`2bvnYsj<$4aj1A#ypV!=Zs<^-F6grsBbIPS{qi8Q|xe1oAIc|h&x8WZCP`PAuKU(XVE3_tJ9WUgIWed2`o9JWQvI5B4t?I#ulXDX=`QNyvkwk?N)7 z6e-{9cY#ymT^Yxpdm91oHOyH0q}Vgdee06f82L-=*;-!|^;hz_2W8|$dpp$~w(WvZ zM#etSMqINvJL&D}HekXH{!d>GUkoX*Yle$_ndQ%4(dUC2;=+re(Q%S1l;DLy>c-B9 zSQhW5ZtqhG@R)GefrIdJrRd>Jed+zw*^U|7-M`14@{b4Lkw1KqITTcReXzqh^=*_OobQX!Py4 z=n09bH=$gv{O&xvVUx~Z5;pv{WY*R9lBaF|Rm@ro3?}3F9(eSC`SF9`e-4Cyg-!*k zm}_Ev8&O5Y(q_JG6ZEy;S=_GhIf;#-s7wZC1kwPoBC?oqvoqKUU|k`GvB`d6dV8Vy zoRfIEQ=#}$i*?&_DUFt39Ph_A+y~tUl=T)DxVRn(}el2HcN` z9X!rg0z&luJnSSV*fGpoPTK9fFh5unVH{K|9Fh)VFwskUXE*ZlmV({7C|0c*gaKuo z?7pMIS18P`l0C^5(qOu?Z)phA?~82%EBCD0{JAYE`3453dOICcWPexFVXIu>wk*ij z(oMS0mDx+R?}_F`>-w-V)dGI<}$A+x2y$*<90 z>#)=M?u%rPYr0>x_z8x-SzjjKPf>x(EOQK+rH^VFv}tL>spI zLVJw4=he85x+IAtV>7A3=O^P75oXN9KN^?orE`!rlUZtpzZBLHHTCTkuf)Z~Hfk;W z?CG*-OS%?0GErPmx_dk>_2PdvFEgP%0#B~Z*K9`Y%dqS0P=3JKuqgkT-4TaEQtG7q zF2w(4vYc=LF~kTpUVM(+#F3R}+;9$g)E`%(AmWBL8XoQk3^p0bL{hGmfx`IF6lX{` za!z_)=Oodaov+${PH|jy;8=8?IEtH#W)i#U-yiaFxr&&`Vh~y(mBa<;e(Jh-uBejl z9}6)_x!9R?i>;zU2w>22^@q>DILy@7A>!9FPXO+OY-I>84TX4+&cXrBqY4 zAL`z+U+TtGfvJ#G^THLORaR#xE2mtw#u_uw&Re|PqKx@Ymcv$l2d4sb~p4UZCQNea@(9`B>C1-lb3LwrO?;ymZ!8gUo zN}HenRt6jRxiVta1`8D&;Jk7SA?Eh;eIADbMl;HTUm9MbAYI1fnl;+BjfCF8`?fPK zVWfRLGsNqyr59jj>fXBun_92#h3EqC?d}{N5qEtZ^}yHiReXyzKG+N^>>SY}n=;Lz8> z3vPt-zyhSppg)QenIKN^>QZ9?Do5UspnauZFk`eRpzU6*jkoE(@mTo9(g0iNHl*>D+#{_q8+p6%3TD<*DmjA$)zz`0Rxrka zuoP3!DU)Lm0<#6|9#X{#cqd<=dO@xvsKt8aQj2D_16sGX50$b0{f!L0Y&L(_6s6%x(HXo^pA@)vj#w0h zxT1&9zTSa}VNMl|avD2?&#{3wTPnfo7tQ(lH#gG_T%n8n_jxP({rHQd`VYb=jq5+q zK{Wq`PPO|c4ba;CZ@8%9>Mii; z63O`YJHhx)3(>!y4V=xbjA$H;4UNt1oc{JUSY-Ka`tad9u2jqL@t29gXj_%b9K`1> z8@pEt81(>}Uf(&T8Jkl#QfHP)q&_=@BnJvIz|RF+g2Wp2Ga~l|>?c5$%GS!^x&XAI z7#d`4tz?hi0F=o-wrAoM!3Ns%*&*vX5kK)85<2}gt7!Cz_smhOsE^4ES|i|3Np`es zTT=mwCG3V!{*=zg#3M*CefE*;d-$aM5zz2qyY0G4HS$_I*$@kru%l1*B3l}-{}JX1 z<6o%oa%BtKd_=0}ZIV$Fx1zB5ZoHiEH^c2;-@x~W{@;9ExbMIJMt(K4GXEDC?q4sD z8NN^A{w6^welr3Y{`2Mh27fto4V?sSt*yVQI#T8~#@|FJmv2z)e|vNjm9)R9u*f_> zP~lWfA=Z^!({Km*PHViW0%G7ZW&&jhv;9NH7)#cA$T5f;DXg21+3la+_!Je&a3h}EFpS7f2;GrIle4=64_S3i2=^pRd0%Jh# zJWfc&sGtZuHj zaBN&?A%N-JUREYu045jVeV>zG(8Y0S%J+5Fpl6)ELyNuP#XSzco=H&H^^;VI61#E! z-ctRQ>RS&x-a;UdoXBMnZ^u*@VO44Q@y0KM>}nPXriV$@Ksp4VCLDIYAt{zdoj+MA zpOyC}qC(XE0u>vL7LtW5L1Y%FU>~r&34U`m2T5hb?+#Hh=R;JYgnlGLNnxA0S<~Gv zD;tof=;j-oP(B$8!Olu{gg(TVHpo}>Otx>ZtSLFUJ1m*M{zM-oBEf)qx@c#v87XC78)PQn1XbZ6voRUKZ7Vbgn zcPXJU2NZv>qviGuMpV>lv*W$v!!y}D`)~ssh7Sf86bd-DvT543u1u*JmR^(4zOK*gbMjMEDuvs!>0Y=oE!Ra1tvZ zt{u8pxRXaz@FgaG$^qnMdJM7!7~utq?wS1>`400ylj`+v`;>wJ1Ww8KvU~a#M!ElU z+5P8dl{R;DG`BI8wfn1V<##as_Q^XL|Fa>Vs4Y9EhdlH(#oAVRW|V{9#fX;BiEkL< z>r3iK#~{PpqvxjzSCPuHp*V}WMb~jNi1mT5BbG;W(+js9%$QY7-N9}>?@vQSQmn37~FOfezEfHlAZItBPql%M1Q{=pKZ4` za{-gw&guX76MRF5sdeudwohxNu6&?uf~rVoogs2JO}X4&o&rnY>4P-tXA;F|7yIQ zCT*B9jq@yFQCUh7eFTs!(%7R@&Mk8W3DBh!&kUvt>zzqfPq4vs|mrvoZRUMB8d>? zuXy=<4AC!3Mr9g*-253N_2fb?g=@&}lW!R0*dkcQcCD?LtZ!1sLl<${Xi!}Ql}xZP zfnomYJ3ydnt|sG83_`#`z==V4!D~+7L3(@sBiCz(toN-TXc*fFmvqV%UGFNl4vt;i zG{1{OCKgyWPEBOVJOX68@JHD`l(SG5iyP#=!Y`{`a+oMTCiXLXGfBWn!7y12{M4`C zb~r$RrJM;@)-AHQv=>;cb|XK?ND>R+N6_eTeQiM@21!yJBANvG*bdNbf9^$M&$S@u zpmOv4l#iPFY?e*DJclwkFAtvc62wael-4KoT_+f;*{T7m`DilIVN+gSuNl+XD|7;h z*AZ5qViIKm!VofJCow~KL88(JzC}~%6`p0f7ovRpTki1JYVW9!W{mw_0sh|y&tLfY ze>s#mE=Ib^3Y2?ZoQQ(V7 zgcO8A)FL23hi(>K6hW)Ij9ex?S9g!3gL&QnhLR4}f5TlSTq*@DE!dql)1SKBuhwig z?}w)7wtgVrjCaEy!k}Bs)aDq@_y&t-m(%8h3Z=_(qO16b#L8Flz{f2S(l${^*RvCfSf~> z>9Zn|+=zYA=G+Tf2n+K@%Zb+^KzJ8if&w4f{Mf9}vTRW0sk7iO<;ugnc^Xso6yiuE zC|p8^Pda;h8Hj5OSpWKg5%g%>hrq8GTK7O#Ht}=y5Ras}EpWL=VX$lM-eM7|)P`ka z!A2ZM0{^!WplofGq5qD%Zj|wkW_y$^M;G*d=>iY#oHu;gUOq5sjER``(L{}XpLv@? z1r2JS8(kwh?&BYbH1stG%pU#cATvyp*UTP99sz%mT~r=*7%d3NcKy{_qCve9CEL5UI{;F>6cGm9+<54iq+%D zWr8Q-64F)ZSy<$Er0clj;vbTjHb9*q2TS#$ZW*{?Z|YN^tZ@yEn2_-V0P^>F@Wbcv zH}n8xV_yDdw)!j9kBMMzMZYsr$?tgoACj!U#rpTo?ria_Q=K^bf*(J#c0zNMz{%?Yz8HdTm`>D027vgI1Ui=07R5{1T3 zeSJS`{cQv3_VeZybQ^jC5ptPPe@%Ep*uR_O$gh~k?=|yGayFDp`T$W8s1vez;o+FCh+tXE$dLg-=5@e!e=_C0fbbB)onMG&GGkOJI@WL? zWPM8L{V9hY97S@TXi^E@)R#p&h8*=g@rObb;KHtPrS7WM zo3+=mP$maI$ANLQGasC?=Gx~jrTBHu zKfkXy5Bcs3er^}*`vK*lrs z#!JIsEbZr9mU#ay-{3HuR4SuNeL7b2$}OagkS>a7dDsOa)j3BG(=53y;B9|vERx%D6wc-0K52!H4E~^If4hhxHJgpeRj>xu zAPCVb^jeXUgg$TO{{+C;zlo^k8gDM0(xuEXv#zu5+gq`(xx(0f5j&q^(+1dnde^s5 zv#tbTiQyjWWe-@s{FHX_cqXc)Kr^lK#|o!h#K|@Ka9mSIW6Q4G6=PS5)ag+oHMtIu zL?p6%wW8zP*;&((X0ifu3}@lOn;(NxoUY--TBq(nn0FW+A{y%F_SP5NiF!uchU88h zk#$GI-E7Yost%|7%BZ&`k_*} zxWMUbu|A8l(4e)ja5=9$p)`lFCGcU-yZ3~{Sur$Rx3w+KdPM;uyNB^RbEBv%nq(s% zgVkBUalXJh63d>aYEys3!U|!522qBJ-G7U+1%!>t4OI|w(m<>?p}Q%McFU3-);KYn z!|5RBml8^U{lpw`%%foep}f# z%X?t*5(sO-0!9?(QhXCGQFi}=384p2wV0b?k0$lI^}BNK7Vx}5V%aw0CPK?2(4)og zD3Ycq?4kt_yNR(=en9ClbNu@vG&=9!ZM&U}X3X=e<}}4t=yN4=wshAbIOm#b&i7U* zZXRWjown56x#>igCB@~*I?3x8LDL%CUA|nEK{}b>JR%#R0W7iZ(Z{t((57r?FUClH ze~P<%NZ5(KZgk3ks2bFyTr<)hCs{34cqA7SF@8Y0IqVeP>fm5PjhLSl-!}n9(S0@? zM1q9#bSrg5*`uATcQAu8Mj5c8M>NE~2EFIH7?PHp@Ft?H*C0f|-dQlq> zlpJ2K3xcL^np%4c`Y6~B@7}!Z6opx}@|y7*eZ-ig>u4V`ni|B1KB+`KJ(56^{6_Dy z*pOvhCrG~<@^4O(IwdXiaqQ`_i#2I81o+59;gH31sdTDWSL{Z1(28?~z?~h&U|Ut8 zTuyfvFc zE-<@8?wvWEMph9jhoH*7A>I@^ON=q==LS&c4x_w5XAO&Qk;o9Jbi>Mbi-7RFER11S0kejO>|V_8=u^;<5Yd1?CR1h zyOSGm%;FqCLoPw$CIOY;rtVqM_oi!CmLYJ5H{K5wjk z>{;2Cv!rtUiOu?|!S?WCg_k$ujEVQ?I~6EXVC!Sd38;z^)lI#DK)m0m3Gc>3|{#lV6t$3G{|ahW@qQ)1{l`&XeaKz@ zK#FO9NJYC~Rek74z4P zQ%A$EDxVKfx$dY4=0l_VTUEG266#_2T5>~(F+?2+wb(q4 zYxJZYYer&+7jMv7BfL{+ZJ5t2w6oIywX$Uy?MklI+|qKEIXQ^6=?X#I!}!CNHYWG@{9*is zcN~z{nD#*YYwAIwTjSjZ@78X5gsW*kx>;>3&?n3iY;&?S3kwzPN{=Z0h49~z_=>Hp zdz(G6I(K22m_Cp@YrW28(}Of15K6GmPPOV($nFcISAa&xRhZ6_cWK=DiC;L4Cm2Pq z)zDZs>Z`;Strl#VXO+S*Tk_{=3AtzMc~O3s^c&Fdt3`sg;%wrNg9zO?-Q{N_{2dFL}Qs^g-O1C29~ zM^%dPbcVmXY&)5`z3-io39gg!H-20wX_!~VWbg)G`vU{`-(T)ZxC9c!CI0Z$=LXLH zNhyE)o;e)XP&J-GU=MHu#U*-6)<#QkG3ipWH~>}f+~sK_#O?338nze?jK)AdoeA6% z-G)scEZ=$$9{mwtu?-=COf5-XPT77L|z=L ziVf#msb?+)&v92M9v1-pj2_r;*#N0Ospd3U2aqG2LfnhJf;9a0Y(D;cMvXho$?q-89d!S&LxM*&}lJZtOcT7_gytU!U?Z*SNcE+SWDjP)O;dQ0Nz7h-d)J zjV)$`X-;3I=6#eJav<$SQhLmgjdz6E5G&o|mkRJFhv`F$)aLAxqUN^@&_7Mh_0TUM zul<;x!%wmnHG17)MGMns-mqW_N`nCqB%?#Uvhk$VJyHpL{D>TE1X!r0Vi3aXg?&{E zib00SRaR&iewrt_MG(vLX0H8cpqinT>e4j?i)pCk31~RS?OlDw-N)gKi6Kn)`|gM! zFunl?dW*2V`SCuY6dy~KBkKJy{qc*0*6340i{gb!UMeKd)SkA5Q&PuBd}pcAlaR2t z>-%z@2j*>K_UN7;sZcR>P0_>YMB7)+daa;cKSz~%9QO<3yZOBA%F^UKVb)wOj&myTp9$z=wZe$d{X4k$zJ^Ha zsDKFta^THB#e56I1#^UJl|_|ewbT!1-#R~_I_@hE3gH?Qd%x#bUi$@2U&&qtSA9fP zj8^I-i{e8kvlg;8Y+e8G+~WQEdd2chzOlyUq9-xrjAE5?*5led?uIrAyf1PaC$R&% zgIMpUxp9*mT!UB-qBP_e;fz8$aA9}%o(y1CEtqdfiEMmUqptJ6cHcv zL^LYjKTc9lnr874?JPf}jI!A;Vm4J17)sD#RxUQMM0{NQgHvh)vp{`VgssUI-bdyx zAb(+CEY6g90!D(n3SWcCGVhQ|nvUsAgkjGpKRxQM>DnVE7PO(LJ}uFdq#8I_ zb^K%OT1v4u#V9EWhSTjSJ$+es$IQd;zF&XQ3PkUiCb?2ZqM__Aoh>#P*3 zvC&~b&qPzec1p=9KL-NTY1TEfKL4bqnk82XanZc5<`Sf~sThnMSMx(v6hr|j@)%yro| zzSV34>Q0`9juA2lSFNOo`fvYE$j1;-5i?52%iXMqH%MGPsh+pzp8~FivPNDd+eBXD zu!~yJXU0uj3wdjhkNSW7WUov8fCOHlv%@dY?iq9~1-A6?=o&R4XVLX`jx1eqoOKP9 zdQ_h^de{hEw!$fugS{MfqLN&-6viudU3ACQI6d)Fv)VnPcp!B_5DnT~&1F>gHu+NVko=Cn_P3n4>;mzLyx(HH!33^}c+z;To%NhS(<^ybXXd2HkbnZo^g zDtb}^E>32?>Y_MQlt~CtA+ZTy9b+oaQt_3~RR z^Sh+sC$^sMvNP-sfHp^~9Hk*?UtQFF21yXzV{Qp7d_=hjwdjnq1V*_9*VYvq`1pzM zm=<~X8;WA z=c`tw$jnK$P~o@?nBWAssI`o73@1-`ThCD@JL~wNOhz={85ExtZ>a?W&JmB2=yraD z;<^CDonf#2pfurCQMZ(esgis0RGa0{*D+ZP?ihioKNq_a(r=N|^fO10I}1wh@)}T_ zePe#))kFri{W*<;!(V=CBwMFA7=gE;=y_VLnk9uj}v7mlz`59+-<+97z zDs6(4E!?%2`~-3YcZ&4^zB96^vucE~Y5qqRK1q+t;Br6hrN>IJHubcRi$M$qu6|ZE z!lC-7_8^BAnfsw#>>mL-kkM*)hylBBmm@8}j3E%ZM#UZ-m*6s{9vzvc)Xk_Oz+ol zj(P4V;t*sVElsx;hz2GgYvhYnB{Egrh;(@I3$=jC5--aNn**9yrnw`pdtQmNEUImv zbpM(YWmsuV6@RO}MgM6_{h#}o{})LyQ9=7JTPjbzdcBLZbVJ&%YXpS|g$=SUF`?N{ zWIxDQ?q^o6%#U&ulzp+vVpwMK(F~>uB-qEQ06YUlbP*DSz|n|pYI=cP)s84N~cp4Onv2v5L*T@;Dm0}NaOTX!--sRJhK2lDBb=2v?K zmR%zO`a6#!!)hD$ncy3Y>(kZijS2#6gjvLXAqprOHpFl7CPh423oPyX1m)@>ad}x7^|FQ9x<(3n9-G zsV0MawQly66UV*8u;dREi6gFS`hEm$oEly9wQU42RWK-h21`e3-28MMC~T0V=-R_x zhHy;zzM(E~$Lv*^9$81b?Seau7UsnnGZ}p}UR0l4ny{6`qnGwPIndCQP?e_*B*2Kl z{U2uitRUML+3jlB4`ihFjqO$0Pl}bYr8x z3I6}o_f`MtM_mi~PPhi^gbga#^#Z8#*`+nW5H!ATtYX+EE*M<4o&|^;kjo{=M_@3I zuM$r#kc_jDc}k?UNxv_>X!B|FvdsPr@;OWX3~RgUWI{y5w0Qm9`t7e+d&_d13iNYsHybBBE?jQX~tJu4AQx z&#D>?`Eg341WI2eN0DEBrR`9M^-4*?ZI*v;!bQR@$q;$c#Jj=DD4#jIa=qKEjyeP7 z!1qCx6^{V5cfa0vnxb64>mjbK$@Xo9e8$h2SZbZN2@+_m9c<&BOF?^n&y<6j*E~shk*Fba`rwlV~ zeJ88EP?cQH7D50rqJp`odZvU8H;vcs>5)erm}7B1tfEAHx%%*VIROoZ!vCwwr2SB+ z@HxO5BF{e@&j_RZHA`8x1oG1I(qck6#)64mzJ63#F+ruVteB=)g61Hv#0tKn8y07+ z)<&-jM^dD5Q`VE|0<&*iqS;cSAg-iY;tri--K7P_S6if(oF|KIl*JLNY9)P! z<;olE;Vgg;E64Lm=ZkOqG^*90I`zTL-`by~o6B**CsP6TND?Le7XL`pw~Xaxu-G;>;@M_ckag7OK^bA*$Yb5xg*k+ zN^Fb97}e4=;P@G~t9;k<-Nvd=d*I3W{Rf|t-87zO{z;Do?Z#^lf+@}55o*#(HRq&( z#8C9Lp^r>cDsaYEYeQ7_b}=@vAm`*Z1P)$zu=6`K7Nt+sokmFqEQ6M?S zfd^=D6?Gc#;RkNf{j{DlxpwV_(@cj{!2p7M3JA)dS$h~PPM=69P9J}$3!$dk0{jew z1KEZtoJp0jFRfZ4jZ2X^Q|cL?QGj6rCPCan*UfD)VH*vw22o;dvyPldgtU=#RuD=sQfZ*D|8F1im}vUFW2L+6DGWVR#CvyRnIM+Dsl zsw#bmdru&Ga6nIgP}1MYz&OGF5q^3ujWTSjj`X4Z;RB%#sg9#qI0^Q6zf4G9fY>7f zTGsF>F9pzdvQ*n@`38Be>wH(w62g1bkC}Sf!Wm6fNNq2S)w%Cpym;-Gm{4fqV4V57JPtj3k6l6t`M3bfVzm{k53x2qbn0 zu@i<2LeXN1Gp)|}A*>2%g93_g3bP}m6s5B7J^TJx2@PF zz{Fxc{Q8IY;*VtlhT;y5?JX@st?aHy-7KsY zSK4HD{A8sDb2Qwomb<5QnEOBVfm_gDM3_O(sw711WJ9nR1i#!J?tjeS5)FbeOen_Q zu-A`n!#{!4rEM$Hqa&oUqI+R7#r3e$Oznsh&Kw_6WCf?Ip=i{@sAT8%L!8xn1d-)Y z@~jZC+1bg+N!*{ni<)GLNK~dh)?Cj3c-bI<#2&Gwrt10qN>K8(r0cg&9{3$ zY;G{c8&Bc3g_-TI4rcxetY&GEK&(8j;yrW;X#rI$C8)y}Fgku6R{;77Cckmq+pC_HR67oV>NUE8V`#lRS>LMpVg)@!@<&*)6csYv=->IX z&$>oMfG~Ljsg=V$MNBtBJeSp16u|A%=9bz&050!?I`txTK;rmQso{EY)4QtFHNQ&` z?t2!Fxn?`xZM-^5Aq$>zUKKR^|+6~n5R_|EEadbuo z3q}xoTdHj`u=Z{n@sV(+#{G229Gz((AqfMT!2Bi+1wvD@`Ne?Gy67BDySxY%?2iV4 zI|-zmOOYI#6P@ceV(W^(PXPVZSP$oCvGV#(wV=LJEzbWepucajw=gzz`hNQ7)%Jfo zc>m4Dm>DN2+xrtaa0&!i$cs;|FYmk?7!%2Pk4Qd(DvucbNsudv!8#Zk2;xgZm6Y}! z;FEk0xr||1Xpj2xB!gq?-lfR)imv*{W3A>-R4jL^!`ehqir@=u7w{D%1W0cYF;z>~ z04c?`jGA>sf-fh+;jGBMwv%YB4~5IFc8{7=u>y&b`K|Jt&R0;GFKU z1Yla0@L1@v1z=jLFcn0}iz`{_!@n7W7_C&BB)%m@;BR3>HdVT|K@&;z*I26b9JDJKJsp-inNVkZv73I#bX)pN9pbKlef zsiWXZ>vJ(9(bbM1-`+k;v4JNJLQIabVQG;>OU#(^y6nwDDlUU?mcLxO@?TvlQRP+xHj-Rsfc!lY(x3M^TNy9Y`!o)W<~MiczO>l!{RP*dz~5bzmRQE#pdW57mq?)|r>)nwMsa zkdGHrx#)v0U;G6USD%PRH~BjpQGI=&vqlJ&YySpYEYv{g-H$ptL9aZKd>jC(7Z`!J z;11nI@SP|@;0>LvmzRA+M=J#q+bWhKNPKT5wLO8;*O?;p|nPYF*Q z!b@qP^{Z>#!PJHpo)7?3oiN;p#1|3YDkvl@?gwZOcu4X-DMre8Kq>@$Af-g5MsgVn z$eB)IQx!P`Ls+A8^$WU_0*G&^_J&_<=GkO$FHN!)Nv_V(#N4_&&iB$yNK7> zm)Ft$M07TnjF98=1pY?kdv$XS{Yu>+&Ng%%(N7i$vN@l#r*i+ z{Ev0AMIV@!m|(XY!)-G89JK+@QbY^sP@pT!crP_ClnmoF7 zpVchAd3kBbq65FCj65q`!`G~Wy~d37wDzS-*owrgo;zXG_d-Auv+Zoj)ABgLv<1H& z$Wx7%sq_lHX9abOS2L}jOuj|Uq%&md))Yp3&R0J|Z30}UjJL*YWS&e6+Ieke2>moqYvV zmD}32bW3-mba#o;9nuZb-QC^Y-QC^YCEYC`U4lqS{M)PN(}Uh~&-mXl_INjAu;yH~ zS3K)k^WjNYn#)CP5JJWhO6o6+vgtnKudXto{CGf@L;bFD#W<|546sJhF#?%6Vc1fb zYflruQ3er)eKD;fUQnu0W4?XhPYqZ1g|fc1NWH^JDPpr~(CnRvj2IrW_?940W#{Oa-j7eik%NKi1yS7V!CQg- z4O3=BhqR{Prp8$bCv|GubJw|vVgpJp7S7^kPT8pK9k_(t=vZZD(Vsn)dnWJPo%f|WcQ z6t;tBgn9gxO1hzsUZ^k37zo5z-L!R^hg3&7HDkrgSC!|2W|sI4a;Ng) z9O1%|Gu$2o%Q1EWAj)G zHJYF=HO-KcCVB{ess6TAL!>V*p~2U=5i*IN5uDHCJ)l(l1Z@}}130X&}8ucp1 zw?GR^R~+}FN4LS(2j?+ek=IQ>QQv|2SZptQ>Jg71S|Y z+bTXng^S{`&8ZWYVh~68f-#aw-mpAyK*!4G6e()}PIAFASHL)CGS1 zQbcqV!Em==_fsDVdOf8+Bl=`)kTSW?WoCSm_HnU}FMvnzaUtGpWkh1kR`xRJsp%TH zR`L0I&2GxT=TwC66-!1F4+j2*7L#obH;~z#XD=e>^$^+kvsyEKP&;!)h_QWJxbW%` zg*L~X(BAi(me~uT1UIV9A*z-SLS^yFM13LJI~CY>(YkyRX_#UC(S7=2Vpdc-WkGe5 zGr~0zF~Z4bx@YB<)oqUY+wYaZSH&9)@8EnohGRD&d3(Hix9>Oy**S z^G=M}GeX;KZtQIC*gKYD62^184r>%IGT6+Kf|nkToG!nvoddrAj{60g9FVMQAbCiwXA0b+-}=(gNky$|v-Iw|Pjg@Xu|I)6oP z;b_URSEt>0lloP^OYY3*M5L$d>(N#CdCYW6uEvhjbegaVuFo36QH_h0h1qzi{Ry$@rLSPqa@kOm`kU4d=xf|C`o<>a z`?5}3Y-Y^;eDb(QQS8gNJ13~VFq9wq`3M1Z9_wd!Ev3mtuoS|zNq^B17b#NpQlHSW zw}``bewEZrj~3S$Tb?k8-5XBB7(GZR+ynzk388$P(GcX{)7Ye*iY;zyCc&1aDpx&K zw}MAFnU>W}Oha+U$Z9&@kQgZ9VSj8I6|?xB%hK> zMtP`qWt2I?{?v8XQdEtARi~qfrrr}#agCIGB)3qif9mQplH#OLy|PFwE6C=dy%9ZPVi0VjX9a5S>qh7DZ2v#9(vKujb!2Y`vj5EcW28 z^RrGMrNE#~;Jw2GQ&Af|yGL@TCZu)7pgttkoJKsqik=hmDnRvd`7}F;M4c05i?$k) zt`#%wX8R^e`-^9fF|rcWac{K-w0GLtjM$CPkWcxf+?v>na3uIo)S%3h)~@K@s<>&Q z29ysvW_Zs%_E$yVwFBHP5Zo|r>L;9nDU=l4Lj^A<3Ja!8??qc@F-yIT6nLBy@w)D` zE(8uMK0NYWkU9Al?LNC9!#8ccmz$W8%1IecCzirTW%x2h-o}*Qo)MfpOwpLo&k}nz z$);x2N@#%}X23CMAwt`GVVC@Ns|5DOd2hz&&T&wYttx;7H`m)edF7>80Ta%S3!T~u zUjc3|R3_{V_p7>q{Ml>12fXCx-dqHUS&;gEu3%!$dl$wX63U>#NxUU~wFvG`w6Z2* zm3wMb6!IaGvb7o+e9-lT8E+(5w;|(jvx(j&_}n6FU&(^u$lnmfdlvT78VB6DF;T(; zF)BFTq~XTdUZnT52+GDL^EFjeXB2lD+Ha)dB~$j=xa`3i70iP2df{<=CP4KECbuJm zUM1-HjO9Apm7SSbdds8otn8E6MY3{^LCp+qymRt)tN%UEYuC-~o?6)Ik9xs}@A307 z`G$!3o2?h`{Cn`n%a5|aP?4nYP^E+lf!D*B@HV)@SY)ZyMR%vsRD=?uf;^UuDD7k! z)kUanUnmb&D)1{~bBP^aAo=Zc)`q!57hjR{;!8uMWs*f?VnpOfrt@<)CT^;Uilj@a zuLyHGy*S=9n;A{BWk1cMyar$DiI~uEhwX@%dabr!v7u=6rh{+(EWnoQG2DFf%>?zG zVsqS^{N>LtzY<@%M7~=c^sktj|J3G_KcREM<_!O0QCHkY*PjbU*^~pWMIw)MPh^VS zE7k*=(mT?)BpL4Adge4`-u%ANgi&Od2DYbuM?hVA@2QG=cskFx(Doe-m6e z-vyq(Ya`Pqi%8Xh$h_(6gc+gnuAO`GKxw&g1HF{fD<^HKgh) z1{FWLA&@J7Oi|sc5Z+dhz?)Hz6~ey!iqP?9dpoFmiz1LU!e_s5MO*%J*2-ZJGTJN)?|!iy zBk;S=fQ2?paKb)nD0P;|umN5lpxf;XsS22GbBn1t0v0 z*!7bFJ>Ulepw}iqB_k=G-ga%a_I!F+nqLjU#3!Y8J8gI894X_NjXkx(xz?i7br3p6 zcV21LAeo{d5p9i2(KkI4S0JomP7$L+v283(NC%m0_7twWa!VPN@k$r zvifupB*g30?XOdd)xzz|+c0=a!Iw&Xhi2xttIr ztF0u;8z(800i9S@b1W*0r44BvI<%}sPj5ujYTVwph13Y|M2dtW^5PTTkP&7@hiV1a z(jqd;5uR2TmL018N-%5XyVgO_>F!T=`)uP})ptS@feC+FwRC#fv)94~sIA9f%Hf*o zmS%qPsxfSBTm1rWo%hWL#XX@rj{C%Q-~^ObT<*S4@t&yaVDI81;j~YM_RT)cRen9b zFms03xB-%YSl|j;TqmmSC{ZZ&DiuOFaW5vs&URf`e*2-|Og9cq2q?_V^XuuP3x+C8 zxUsl5M;zLoTZX%5B>efv1>Y@VG(qq9R0N?{z|Q$<k$DaGhZqcMJyk(=q- z)Hfi7OD^{~IxG>aQ?J&9R1VI)k7nLhO0f;}MrHe)!YVhYHBZC^AGsaysg(H{P0dR)0X$(Mm+;>5oPEV-5grf|uFo=W zq~yFG{f3X{YrS8~ttmkpQM@(3r@Y6ug~>Ygd>uZlsfAm#22oko*=KzV|7j4!VZ%m< zWRLPzGp8==fzR^@@iq*k`nWRG(5bDw8PUixF2>Xz)_fsJw0+c$MA zsP*hnA52~e9=D+g`n?cor)KT|985zB^fKUbp>Tbi=(RSwbOBnJznYFFA?I=_s%hu- zk|J@JDi<%PRvg+c6DI8ZiV89y#vImp6~W~H04n?#h&GX-mC`ZMcfpE+=uyCx*n%b4 zl$3<0lZtVawQDt#o9PBC8v5cOag+}nvUWGCLy@Ni!oFRNrv)9N8xnP1Bh`O;dcyq` z-0=XeVF%_zToRcy7BQaLCUav2as2tf zmU+p9?ltDIdu@h*3-wOOg!}VjJHv{rok=*uH}JRElWU;OUvP3A?z=pmxGrnLzn;ng zSW(FVXVHxR#)`_L54h6*-4ns)yOF9a?muqJ1CI^ZhkM}IWP#%_-rO*;S=oW~(yow0 z{K&RJt@I8ixU=QV4gzN{uGL)$gG94~@H^r4UNw~DR7ZK!OE{0SU#+aO@2=S_XLPjR zKYQCB430XDRh_s`DxyeVLKx-*M}j67D^JDn@xZ-ih^u7Nk)_A64;`+CuyK1yf7R|i zsamb6iQT$^AEC|2S?ULto{zTGU&Z4H+YVGgX@z@k?Q8Ty3R-uf^%^(ln^d>Eqnvfc zAyg$p2t9W7-h~WU01sT{Ht#sqE7>`f=*1Z0h2n%@k`R(?9+Dqw$8=OIVgsS`EDzE# zs5|woTTgFm^sGSoZZRw9vtY`oG3i>X$H0QLqw^IucGJzoFH0LSWMZ+nM7s2f(qxBF zU#&-+kKe2{pWYXdTq%M(xXi}m(Bg^o$%E6C;%+3y3~g7U#-@SYP%w()=t23^Z&-vh z-*-lp(JyT?(uTZ$5zy+YK9Yl<98B!L&40^yTDRNr**SG>K}(jQ-wu`aT&Z8eze(o{ zLC=v@eTLTA^(qf5o0B4DezW97hYykjj&Uu^ zmxTCU6rvY>?|JJVE04&dZ!-s9zZiLD1TP|M_4PPHyr#_rOmh3IRM6E}@NgCLXh5P~t85aBz?pP__)FEZHZ!hN>^dXL)V6qqD zQ&y-$J|*um=(Wx68mG+(*Y4Q+(>HJ2feJSl3Cc5LNp$j~c$EEZ$mOOI1M;*8;o$U) zil?aZEfv$%rz|ylK>XRRQed0vxE`WZpF5F+I@+azgqngrDEM%QS!*f$Q-sUC67 zr;wY`zckk1qtl%?RV+Piu=jn8KV{>!KR;Mm+-#@bB1?jFIQHaOe+$Q{N9MZS++D%` z3KH~K#Uy>bHu<#$TX!*Mz5Hht>Jt{-5Y`oVUrn|!QlO-KNX-SF<&BJar;yuFG_iZ% zeBO#J6UV`4{`2TlPOmeHlLd~Zy_w{V&@iFVyXaxhoYg^jvYKnTKdGEWAAE(DuyFqB zuHIU^Ju%=y@m?%2TnmH48Y5~aDx3;dTcgO(u~Y|>5*B$iFXMDslJA-${hj;(oH%`D zaQI>3)Th`iYw`owet_dCr%N^-!~4`XjLsth?B+Qsxckp}PXf9)Ial;B4sDw9t}ce1 zTBujRCyyO6Nl}gRi+0Ah{9oNS!rsqeNW}JwXh=#X&E*bCtI>p~1A`i>V- zVt85~VDjC0mtPBt`uoHh)Z!4{qsBb4_>Y;oa&9mYm{e)?@tw|uInv#rWT&H*S<@Qf z@tlH3WB`+LzT*oX75V@dE!3TrwB4lB`@H!>vUf__3sS}jI^0q2p3r2k3-c_`#;9(y zm3=M2&E_N{gG7mvDf;&ms=c|*(HN^ITxtSXtVVuOw=jP{Zg3>olzRsVr-%jf>>20p z!}?!xE&t}kvrIwN0ZSg`;W?~0L(-0S7Bfki2rMcvTv@#lHIwM{%)23hq97wmdrzn& z6n#tmK>kOc)ADT>%|jS7H8I7Ed)$ZTb{Sp-x|Mm#-J5Eciw36_9$!=4uD2>QJs>Q> z-Uzb=EEB~Or}p8ll?pe8ND-G3jTU5_O>#kDmWn71^dqpG-5|7c$Fp8Re98lbuLrN> z^0jj9Bjs#$BG@Ece-!SWC$ffp$jvvoMDk(9S=2^|56d2=i=MQ#Yf~61*>NM*BoQId zL5V$&*EV)tLxR3c*QZw-$IvI&V2IOJ4nrSSc@@`SDoehQk}oYUp(C14i(02xk7OgC_Bn)sCtm4d~Frq5af*t4juo+`NNp{N$W2Z$0Q6>XfP7c80IY# zY$PGLEl3g!#`Ox}738!0AA3_76q(7Os3b(3v+>Nyx09P?Dw2!!*du}47A_2JdTj%W zn27nS;P65hVEYdc!?1CET8=(rA;A!oT8cZP$=7@TPNi1|^OO%UDnXiCx}Qo@x{5Np zSMieHkm2%-pI=!JtQnF|5OsZ+uB)Px8k5BsHqy%TRCmT|Fy$0;%(jp6g|`!jR{@18 z$|W}4@!ZLTXi}bv!0hp5kba`OdR>+^w)@_gWNrrFLg&`Ntm2w%sg4r=zFH$~Pfu-0 z$wwOhN7BIZ!|uqVfqE0o<(|F=rlQJ;l1(|;O+ti|(r1{Xn~LU*s@-&%b;V?HZRK#d zv&;e3j^^Mh`D%48Mj|x;SL?=}#1& z@kv}dlI`1$ld@x+5TonwJ@&DGih%65;Ho>FppxWTmAKx?@VVy&fhQ^Y!r4ub-+5Y= zP>d2J?C zY>b76d6Q?rbupl}!R@<kQ;53$8I`;~jIgvDP2}Q`UK`+oXl^{~;}{{6wil2(8m4dhUXHf%Xo7e_ z5$+-5v3^o8**`_EGWghanAy%9>%9Pphz!%)9ni}c{OK5>TF5s2W{lFsTA6^7>q~wsF$7Le! zzKf%>PMLCLx0g$ z0GOMpejm7g^NalT!b6y>>VMQd>Kmw!iSpD?c*xMRsE32mTi=#|(i0l>=7RfJ@Np{p zf18x45j~*CN!qV7gG3|w-2mtJ<3}`kC?c*&Y3yGC=b`KDj2(}zk3jDbDam!;zLf?z zEb+qM(q&|C`v<3pP~}E?ruS1*kyxp^pB6S!c3gd|&fRPehJZ$Ld2ec^$dg|^a+$bx z?pvhjdq_>WR|MUotue9zt>5gP;9WCB#aH1RUKzU0koQuw8%aZ%he>lm4nei`2-<&~c&;}#aiPJmwBW1nLo`25)$-GJageJql_80k<$#)9s zGGq1MwS+`Sa0bPX;TyU@gx!WQ@OlslT*3STRT;fXAddECygyfWa(nxL_~+j zl)?=?h)G!oG-YWUPhx`=6|Y(w-!(VTz$SX^MXY2?X{R*pF z#HoCefoqb<$=}QLEV<$3W51KXo{mexd|^PsSh)X5AmtiZn`%Lv zKc!IB8v89loUM@2J9QuE$D#I;Zgmr;HaGF9l%WZqY_B1jDF;tUL|7t87i0Fa1acX{ zSbOe#N60+K(7`#vY)!!P}6zha!F9g|N)B_qjnIwd#>rc ztgk*GjD8cMiNMJVkLiZ*FH5?yhd70J=Y3hEZk5R7ZCoUmlW{#z#EXZFJDadHJ3x+i zR&r6lmtb0%#=qmvG55 zOkExg$13OzEjuT35khBBcU$lh{9!L&d&29bs>Z8KB@1k3jE%idvdMSYIeEDIau4C@ zR7x7z3kSzheQv~?laYc&LZ3$n!Pi#{j><@(&-{|EKwCo~icr}mMdD;eEMA8pG(l~W zj0v=2SwBl()o(z}QQz$|ynY{uk>BdtNv zCLRa|Nsl5Y=eovf<2EjwJ(cM^Cb(1E!-p_hN55t2&$J_Q`*{b_1xcS(MlV{Ax^dK3 zf{@h&nsR9$M&h{k7fr7U)6z{|;S_{UV#^db7=ZRz_j%c>&~OQ4zcq~TH>}UlCcf1?l5iSG7TZcSS#u=wO zE*S{nBk=Oes+=Mb@cKYD)q^Q&d)p8%bI|!^=B-BVIfCt%Zkl71h#Vt0<>cp-F?{I= zP}N|YZ31Zf*A{;nt@!!wWAMu{xY7+&=FG^d)=Hm#lAt3&Kgt}$F& z+*G90m$ESBa9Qgx1*TnhvE&;a80Cv>+dNP%xKd8qz!lJl91$bF9#~05O+Jj?*dkep zL(HTrvrzD&O1iajL>S;!IF6S{=`LFNezZ&}xhqmK`yKRLyD`!%DfG-xc}q<-hq$>c z?d56x0Vo2?im2K_GKPDdE~FRWRvpH#O4DRww>dVX80u~Tp4gMlP-^StO1>k4MF$j~TPpRMe1sh6 zb2*3jd;RiFqU{_2+#g*5JA!|uB*&|#Z(*$`Xk=|;D{H6yqyE3|e)|;6WC4LU+|8>k zt!fN~;o|BSgnhU*AbCo-5nvD_k%G)(Sr!^3l%{8O=NCGL5Wm0rH~77m<$T+bKsR@RPYAqPgh$hvPyD^Yq`)4UH z7OPa4fTnzYiFtewD2YXe&)pI@?S$sfGflQothbB5*lc9!I!5;~d{wE|Fs34HXa(d8 z1hc$+m}v1k)n@4-Tb2CQB8O{|=kBw`koz2WlMRfxuYx{4Uja+rftQeN12<>KGmfEH z54BQbX-b3@@&bZ|Ul*lts*&W}-*I7hkz8x2kD1+eq!S6F-$Nmr9EgK+(kTwpgqqqD z=&jW{ViiE>M1Zt3H zan#K*V`*ADOq~y3mDf{!074f#pSfEn*0l#yx{esTN2qb(;+7SBLa41Cz6e9AlIy~( z&)w@3^A>r$%k3Hj1ZFDmf^@3KuOf^!VzeyE!f^os7n z8b2$0Aqpo-gK*txDcc1vbx%L&04}szKD3JYKDkKa@C<8GUkg z6gZ7dmtm&(mfjjzgtXKaM1?K2fREPK$>=;+a>pnK@W4j2t=hbF~B zX|{BBUDT{x)%pTvDkAL-_Ss$2siY4Eh|knCxKlOy$PW;4JRNBa2=RJg8U-5ZzGR5J zc9pnijlRSG`xp}Qj5Fz*8}%JvjAs9RjFxq>vDGvCH#UW|=n>H#ZWRCVg%Y#6`Z?oS zffZ(6Wd2@1^hh*x8QQn|?#X!5Q7@56rg_&y6}@2q*E5hvjSz}>dX-ZdKaW3-rZ%;D zw6+6v0+}Wdz=si;qGT!ijslyaW(p8^48I~7htgfTjpVK$84%7~GQe9CUquXd;joUC zIkgGl;GFrcsUGJ{sLPl<5DgKUCkERk-Oo0mST29Gv zC_DH|N31?Sm|W&F0pMJrOq|}g1BxhKTR@^_<%aInW&QX}>^#TDj%9U|m2hR#Ha&&_ z~LO*9X*SDjokS72wU0y1ee; z{s3(GY(NlenT26tEZcYs)1GREnh7#VG5sQY-dC>8ikFVFYl67co@*aZBlK(eE!pjB z7tz&s1b4_;ugs)U^=)_jd{?U8W|cTc1ui5#66BR|v_tYGz^kruhowd#@vYl|x9{3| zpD7Jyl}CP*FPK{P?N)N#Z!s;}+mrnW7G0@vnjRvyam^c^s*(GO-I!GpN}0A5S_F!D zippRUlF}=cx295zjN}$>t-vPuJ$XxG8m8$^B+N%Gf{MZRwE6KV8|aU6gPiQO6E8jA zmeBfh7#^BoXJjB3KO#$1x^($rHJ);{U56zl#+#GD!zg>pdmyu1s!G7PI348}W(h2) z=5w8#tb2yv?w$}3wJN!v` z-PyZ@b>f9#i3_j&A%KieGhAr?D7k9%)J&gK_C1*wmEqv1$fj6)e{NaQ$8(g73+4=_ z^h~4zuCT2J%LF}4^4CRLeYNa4{$Hu^YxoJjqW`^H3D!eiaRF8v!%%;;KmOjW{&TGK zUltpOGShDn9wb#EbAd#`dO5ZAGO2695Gx(Y=OnMiEQtrrXM>ak0O0HE^hDVefcw{ra51UjT75kZB4Db<#UfxSEI7 z-%_lz(sNmjk%G4~(UTLnU%=5y$~W*UFdn2Z-Aszb3@^d(MA}rC+Dn7M5+~y5(UPd# z_9{Y?5^{N2G~Jv`46AB9MdsPo0lL{k(}xN_Vh!r55PW`>OZDG~_w(BOO{ttUjeZ^IdVTP&2; z2i8kvj6M+4ZDf!lhN2=doFN4$9S_PqHRc0fiKh?}2|e*Um2Ox(Mq740AFcP3Q3gxR z`4%PvvD^m4alT@W?{QOdmh4*J)dRZ<5es;PG3(94+R5(6w=j<(?hq-)DVI)VVbc##HAY+6 zzC0)%bd&N3pxYCvLrFRCLssy|GEbi*3V(%LD&U-$;fPn zqdt)15>z9e2V#grSm=^1BE++AQkMv`2eo-r@ZJ;LF_6SN}_LGe@5LQXc$6YNr&@sXX>xwMLIE|aTo=5B|i!ik{dY}uGBWam#lU|%q zYC^0{T}{}%O=Npyz>QE15jhuV>f*A7ce(HS-apqV-wjygg=(~XMw1!wA+ZmvtdJd@ zcVXDL!;jt*hM$xSWb|V5;N_5f_WUa%=fLiHZc=RwAP?g{1k$#IJ@rpQDzM0S==wqV zuQs2k@FdSjX9xiXc>%x&AMp91!w2jezS%A5 z{J&%pJdz@U0D{d>Y6F%W(OF!a{d&jI}FEa3CvNAhp4S}!cX0_+zN zM5tbbqX9~92`Kr0n&1a$t=Gf<0DQWv11#_yop|hQ4FUSIMmj&mm7g;19x2%r16Y;; zAEF;@-(Iy|_JBP6p$H;>mErp?^C=!^k@Kn=pajx@)YN~&dj~KU{{ioNU~+kY1iY|? znVz_Xg^8WzpP_L!)tCDKAh&>C`t3ycucy`v0`ia00Nq_vI~%|)GC?C#Jsuq$JsTSd zEpsh{zoH#H&AU#8SMxhS-Vp!>y}#!j_xT?Q6u-yD0N6V8jSTDn64n4Y_dn-d+6~ue z8&D;ffV|WFm2tqk)@u-;E%1kGdD@=BfPf9A|1IO@hXg%X0N)TRKsLYKTl(v%_4`q>gm}1pXm5g)bQ@uPecGzKL9GlUy%PPK0d%O^9R)L{rCs=w@m-JBAy0N{R_I* zD@gEiR!<|wLgV_sx^ z=C zzWm)Q_GzY{IvxHb_?-MN2!0)<{#=5mE?++h=F)y6_-mH0@h4Sa;XhIRkGb^eDceujy`q1D{V`zt z!w`yT~*Y9Ibd^H}j4%`dP&3iSQ;4`bg`L*Y++h3bES t|KH7qPwVTc?c*oWQQiM74F8)Y \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >&- +APP_HOME="`pwd -P`" +cd "$SAVED" >&- + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/common/gradlew.bat b/common/gradlew.bat new file mode 100644 index 0000000..8a0b282 --- /dev/null +++ b/common/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/common/mcmod.info b/common/mcmod.info new file mode 100644 index 0000000..36be79e --- /dev/null +++ b/common/mcmod.info @@ -0,0 +1,70 @@ +[ +{ + "modid": "mysticores", + "name": "Mystic Ores", + "description": "Adds ores into the Nether and Overworld", + "version": $version, + "credits": "oitsjustjose", + "logoFile": "", + "mcversion": $mcversion, + "url": "http://bit.ly/13ep6OW", + "updateUrl": "", + "authorList": [ "oitsjustjose", "GotoLink" ], + "parent":"", + "screenshots": [], + "dependencies": [ + "MinecraftForge" + ] +}, +{ + "modid": "mysticruins", + "name": "Mystic Ruins", + "description": "Magical structures to explore in your minecraft game!", + "version": $version, + "credits": "oitsjustjose", + "logoFile": "", + "mcversion": $mcversion, + "url": "http://bit.ly/13ep6OW", + "updateUrl": "", + "authorList": [ "oitsjustjose", "GotoLink" ], + "parent":"", + "screenshots": [], + "dependencies": [ + "MinecraftForge" + ] +}, +{ + "modid": "mysticstones", + "name": "Mystic Stones", + "description": "Adds stones into selected worlds", + "version": $version, + "credits": "oitsjustjose", + "logoFile": "", + "mcversion": $mcversion, + "url": "http://bit.ly/13ep6OW", + "updateUrl": "", + "authorList": [ "oitsjustjose", "GotoLink" ], + "parent":"", + "screenshots": [], + "dependencies": [ + "MinecraftForge" + ] +}, + { + "modid": "mysticworld", + "name": "Mystic World", + "description": "Adds a lot of stuff related to the other mystic mods", + "version": $version, + "credits": "oitsjustjose", + "logoFile": "", + "mcversion": $mcversion, + "url": "http://bit.ly/13ep6OW", + "updateUrl": "", + "authorList": [ "oitsjustjose", "GotoLink" ], + "parent":"", + "screenshots": [], + "dependencies": [ + "MinecraftForge" + ] + } +] diff --git a/common/mysticworld/entity/EntityCharge.java b/common/mysticworld/entity/EntityCharge.java new file mode 100644 index 0000000..5afefa2 --- /dev/null +++ b/common/mysticworld/entity/EntityCharge.java @@ -0,0 +1,138 @@ +package mysticworld.entity; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.entity.Entity; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.util.AxisAlignedBB; +import net.minecraft.util.MathHelper; +import net.minecraft.util.MovingObjectPosition; +import net.minecraft.util.Vec3; +import net.minecraft.world.World; + +import java.util.List; + +public class EntityCharge extends Entity{ + public EntityPlayer shootingEntity; + protected int ticksInAir = 0; + + public EntityCharge(World par1World) { + super(par1World); + } + + public EntityCharge(World par1World, EntityPlayer par2EntityPlayer) { + super(par1World); + this.setSize(0.25F, 0.25F); + this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); + this.setPosition(this.posX, this.posY, this.posZ); + this.motionX = -MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); + this.motionY = (-MathHelper.sin((this.rotationPitch) / 180.0F * (float) Math.PI)); + this.motionZ = MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI); + this.shootingEntity = par2EntityPlayer; + } + + @Override + public void onUpdate() { + if (!this.worldObj.isRemote && (this.shootingEntity != null && this.shootingEntity.isDead || !this.worldObj.blockExists((int) this.posX, (int) this.posY, (int) this.posZ))) { + this.setDead(); + } else { + ticksInAir++; + super.onUpdate(); + Vec3 vec3 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ); + Vec3 vec31 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); + MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec3, vec31, true, true, false); + vec3 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ); + vec31 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); + if (movingobjectposition != null) { + vec31 = Vec3.createVectorHelper(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord); + } + Entity entity = null; + List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D)); + double d0 = 0.0D; + for (int j = 0; j < list.size(); ++j) { + Entity entity1 = (Entity) list.get(j); + if (entity1.canBeCollidedWith() && (!entity1.isEntityEqual(this.shootingEntity) || this.ticksInAir >= 25)) { + AxisAlignedBB axisalignedbb = entity1.boundingBox.expand(0.3F, 0.3F, 0.3F); + MovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31); + if (movingobjectposition1 != null) { + double d1 = vec3.distanceTo(movingobjectposition1.hitVec); + if (d1 < d0 || d0 == 0.0D) { + entity = entity1; + d0 = d1; + } + } + } + } + if (entity != null) { + movingobjectposition = new MovingObjectPosition(entity); + } + if (movingobjectposition != null) { + this.onImpact(movingobjectposition); + } + this.posX += this.motionX; + this.posY += this.motionY; + this.posZ += this.motionZ; + if (this.isInWater()) { + for (int k = 0; k < 4; ++k) { + float f3 = 0.25F; + this.worldObj.spawnParticle("bubble", this.posX - this.motionX * f3, this.posY - this.motionY * f3, this.posZ - this.motionZ * f3, this.motionX, this.motionY, this.motionZ); + } + } + chargeFX(); + this.setPosition(this.posX, this.posY, this.posZ); + } + } + + protected void onImpact(MovingObjectPosition par1MovingObjectPosition) {} + + public void chargeFX(){} + + @Override + @SideOnly(Side.CLIENT) + public boolean isInRangeToRenderDist(double par1){ + return par1 > 1.0D && super.isInRangeToRenderDist(par1); + } + + @Override + @SideOnly(Side.CLIENT) + public int getBrightnessForRender(float par1) { + return 15728880; + } + + @Override + public float getCollisionBorderSize() { + return 1.0F; + } + + @Override + @SideOnly(Side.CLIENT) + public float getShadowSize() { + return 0.0F; + } + + @Override + public float getBrightness(float par1) { + return 1.0F; + } + + @Override + protected void entityInit() { + + } + + @Override + protected void readEntityFromNBT(NBTTagCompound var1) { + + } + + @Override + protected void writeEntityToNBT(NBTTagCompound var1) { + + } + + @Override + public boolean canBeCollidedWith() { + return true; + } +} diff --git a/common/mysticworld/items/ItemMaterialArmor.java b/common/mysticworld/items/ItemMaterialArmor.java new file mode 100644 index 0000000..2ec2004 --- /dev/null +++ b/common/mysticworld/items/ItemMaterialArmor.java @@ -0,0 +1,25 @@ +package mysticworld.items; + +import mysticworld.MysticWorld; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemArmor; +import net.minecraft.item.ItemStack; + +public class ItemMaterialArmor extends ItemArmor{ + public ItemMaterialArmor(ArmorMaterial par2EnumArmorMaterial, int par4) { + super(par2EnumArmorMaterial, 0, par4); + this.setCreativeTab(MysticWorld.MysticWorldTab); + } + + @Override + public String getArmorTexture(ItemStack stack, Entity entity, int slot, String layer) { + int suffix = this.armorType == 2 ? 2 : 1; + return "mysticworld:textures/models/armor/"+getArmorMaterial().name()+"_layer_" + suffix + ".png"; + } + + @Override + public void registerIcons(IIconRegister iconRegister) { + itemIcon = iconRegister.registerIcon("mysticworld:"+getArmorMaterial().name()+"Armor_" + armorType); + } +} From 5ea1f16c45121f5de465700e06946ea31ea58f56 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 22 Jul 2014 18:39:53 +0200 Subject: [PATCH 54/59] Fixed version --- common/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/build.gradle b/common/build.gradle index d0cec5c..95dd6e5 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -20,7 +20,7 @@ minecraft { runDir = "eclipse/assets" } archivesBaseName = "MysticMods" -version = "0.1(1.7.2)" +version = "0.1(1.7.10)" sourceSets.main.java{srcDirs project.projectDir.getPath() include("mysticores/**", "mysticruins/**" , "mysticstones/**", "mysticworld/**")} sourceSets.main.resources{srcDirs project.projectDir.getPath() include("assets/**" , "*.info")} processResources { From 6a43d84a7f6802bc7a939706d3a3aeae34ec3e34 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sun, 19 Oct 2014 19:26:23 +0200 Subject: [PATCH 55/59] Cleaning stuff --- MysticMods.iml | 72 +++++++++++++++ common/MysticOres/Items/ItemResource.java | 2 - common/MysticOres/Items/ItemSatchel.java | 9 -- common/MysticOres/Items/Items.java | 91 +++++++------------ .../MysticOres/Util/ConfigurationManager.java | 2 +- common/MysticStones/MysticStones.java | 12 +-- common/MysticWorld/Util/Config.java | 20 ++-- common/MysticWorld/Util/TickHandler.java | 6 +- common/build.gradle | 4 +- common/mysticworld/items/ItemHandler.java | 2 +- 10 files changed, 127 insertions(+), 93 deletions(-) create mode 100644 MysticMods.iml diff --git a/MysticMods.iml b/MysticMods.iml new file mode 100644 index 0000000..98b093b --- /dev/null +++ b/MysticMods.iml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/common/MysticOres/Items/ItemResource.java b/common/MysticOres/Items/ItemResource.java index 431d94a..68108b5 100644 --- a/common/MysticOres/Items/ItemResource.java +++ b/common/MysticOres/Items/ItemResource.java @@ -2,7 +2,6 @@ package mysticores.items; import java.util.List; -import mysticores.MysticOres; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; @@ -20,7 +19,6 @@ public class ItemResource extends Item { public ItemResource() { super(); this.setHasSubtypes(true); - this.setCreativeTab(MysticOres.MysticOresTab); } @Override diff --git a/common/MysticOres/Items/ItemSatchel.java b/common/MysticOres/Items/ItemSatchel.java index a68d3c8..1614cd3 100644 --- a/common/MysticOres/Items/ItemSatchel.java +++ b/common/MysticOres/Items/ItemSatchel.java @@ -1,6 +1,5 @@ package mysticores.items; -import mysticores.MysticOres; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -11,8 +10,6 @@ import cpw.mods.fml.relauncher.SideOnly; public class ItemSatchel extends Item { public ItemSatchel() { super(); - setCreativeTab(MysticOres.MysticOresTab); - setMaxStackSize(1); } @Override @@ -28,10 +25,4 @@ public class ItemSatchel extends Item { } return is; } - - @Override - @SideOnly(Side.CLIENT) - protected String getIconString() { - return "mysticores:" + this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1); - } } diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index 409a85b..993bc3f 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -21,65 +21,44 @@ public class Items { public static void initialize() { Resource = new ItemResource().setUnlocalizedName("Resources"); - VerditeSword = new ItemSword(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword").setTextureName("mysticores:VerditeSword") - .setCreativeTab(MysticOres.MysticOresTab); - VerditePickaxe = new ItemPick(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe").setTextureName("mysticores:VerditePickaxe") - .setCreativeTab(MysticOres.MysticOresTab); - VerditeShovel = new ItemSpade(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeShovel").setTextureName("mysticores:VerditeShovel") - .setCreativeTab(MysticOres.MysticOresTab); - VerditeAxe = new ItemHatchet(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeAxe").setTextureName("mysticores:VerditeAxe").setCreativeTab(MysticOres.MysticOresTab); - VerditeHoe = new ItemHoe(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeHoe").setTextureName("mysticores:VerditeHoe").setCreativeTab(MysticOres.MysticOresTab); - MithrilSword = new ItemSword(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilSword").setTextureName("mysticores:MithrilSword") - .setCreativeTab(MysticOres.MysticOresTab); - MithrilPickaxe = new ItemPick(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilPickaxe").setTextureName("mysticores:MithrilPickaxe") - .setCreativeTab(MysticOres.MysticOresTab); - MithrilShovel = new ItemSpade(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilShovel").setTextureName("mysticores:MithrilShovel") - .setCreativeTab(MysticOres.MysticOresTab); - MithrilAxe = new ItemHatchet(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilAxe").setTextureName("mysticores:MithrilAxe").setCreativeTab(MysticOres.MysticOresTab); - MithrilHoe = new ItemHoe(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilHoe").setTextureName("mysticores:MithrilHoe").setCreativeTab(MysticOres.MysticOresTab); - AdamantineSword = new ItemSword(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineSword").setTextureName("mysticores:AdamantineSword") - .setCreativeTab(MysticOres.MysticOresTab); - AdamantinePickaxe = new ItemPick(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantinePickaxe").setTextureName("mysticores:AdamantinePickaxe") - .setCreativeTab(MysticOres.MysticOresTab); - AdamantineShovel = new ItemSpade(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineShovel").setTextureName("mysticores:AdamantineShovel") - .setCreativeTab(MysticOres.MysticOresTab); - AdamantineAxe = new ItemHatchet(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineAxe").setTextureName("mysticores:AdamantineAxe") - .setCreativeTab(MysticOres.MysticOresTab); - AdamantineHoe = new ItemHoe(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineHoe").setTextureName("mysticores:AdamantineHoe") - .setCreativeTab(MysticOres.MysticOresTab); - IridiumSword = new ItemSword(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumSword").setTextureName("mysticores:IridiumSword") - .setCreativeTab(MysticOres.MysticOresTab); - IridiumPickaxe = new ItemPick(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumPickaxe").setTextureName("mysticores:IridiumPickaxe") - .setCreativeTab(MysticOres.MysticOresTab); - IridiumShovel = new ItemSpade(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumShovel").setTextureName("mysticores:IridiumShovel") - .setCreativeTab(MysticOres.MysticOresTab); - IridiumAxe = new ItemHatchet(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumAxe").setTextureName("mysticores:IridiumAxe").setCreativeTab(MysticOres.MysticOresTab); - IridiumHoe = new ItemHoe(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumHoe").setTextureName("mysticores:IridiumHoe").setCreativeTab(MysticOres.MysticOresTab); - BloodstoneSword = new ItemSword(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneSword").setTextureName("mysticores:BloodstoneSword") - .setCreativeTab(MysticOres.MysticOresTab); - BloodstonePickaxe = new ItemPick(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstonePickaxe").setTextureName("mysticores:BloodstonePickaxe") - .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneShovel = new ItemSpade(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneShovel").setTextureName("mysticores:BloodstoneShovel") - .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneAxe = new ItemHatchet(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneAxe").setTextureName("mysticores:BloodstoneAxe") - .setCreativeTab(MysticOres.MysticOresTab); - BloodstoneHoe = new ItemHoe(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneHoe").setTextureName("mysticores:BloodstoneHoe") - .setCreativeTab(MysticOres.MysticOresTab); - ObsidianSword = new ItemSword(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianSword").setTextureName("mysticores:ObsidianSword") - .setCreativeTab(MysticOres.MysticOresTab); - ObsidianPickaxe = new ItemPick(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianPickaxe").setTextureName("mysticores:ObsidianPickaxe") - .setCreativeTab(MysticOres.MysticOresTab); - ObsidianShovel = new ItemSpade(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianShovel").setTextureName("mysticores:ObsidianShovel") - .setCreativeTab(MysticOres.MysticOresTab); - ObsidianAxe = new ItemHatchet(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianAxe").setTextureName("mysticores:ObsidianAxe") - .setCreativeTab(MysticOres.MysticOresTab); - ObsidianHoe = new ItemHoe(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe").setTextureName("mysticores:ObsidianHoe") - .setCreativeTab(MysticOres.MysticOresTab); - Satchel = new ItemSatchel().setUnlocalizedName("Satchel"); + VerditeSword = new ItemSword(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeSword"); + VerditePickaxe = new ItemPick(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditePickaxe"); + VerditeShovel = new ItemSpade(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeShovel"); + VerditeAxe = new ItemHatchet(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeAxe"); + VerditeHoe = new ItemHoe(EnumTools.verditeToolMaterial).setUnlocalizedName("VerditeHoe"); + MithrilSword = new ItemSword(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilSword"); + MithrilPickaxe = new ItemPick(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilPickaxe"); + MithrilShovel = new ItemSpade(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilShovel"); + MithrilAxe = new ItemHatchet(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilAxe"); + MithrilHoe = new ItemHoe(EnumTools.mithrilToolMaterial).setUnlocalizedName("MithrilHoe"); + AdamantineSword = new ItemSword(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineSword"); + AdamantinePickaxe = new ItemPick(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantinePickaxe"); + AdamantineShovel = new ItemSpade(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineShovel"); + AdamantineAxe = new ItemHatchet(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineAxe"); + AdamantineHoe = new ItemHoe(EnumTools.adamantineToolMaterial).setUnlocalizedName("AdamantineHoe"); + IridiumSword = new ItemSword(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumSword"); + IridiumPickaxe = new ItemPick(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumPickaxe"); + IridiumShovel = new ItemSpade(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumShovel"); + IridiumAxe = new ItemHatchet(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumAxe"); + IridiumHoe = new ItemHoe(EnumTools.iridiumToolMaterial).setUnlocalizedName("IridiumHoe"); + BloodstoneSword = new ItemSword(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneSword"); + BloodstonePickaxe = new ItemPick(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstonePickaxe"); + BloodstoneShovel = new ItemSpade(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneShovel"); + BloodstoneAxe = new ItemHatchet(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneAxe"); + BloodstoneHoe = new ItemHoe(EnumTools.bloodstoneToolMaterial).setUnlocalizedName("BloodstoneHoe"); + ObsidianSword = new ItemSword(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianSword"); + ObsidianPickaxe = new ItemPick(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianPickaxe"); + ObsidianShovel = new ItemSpade(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianShovel"); + ObsidianAxe = new ItemHatchet(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianAxe"); + ObsidianHoe = new ItemHoe(EnumTools.obsidianToolMaterial).setUnlocalizedName("ObsidianHoe"); + Satchel = new ItemSatchel().setMaxStackSize(1).setUnlocalizedName("Satchel"); try { for(Field f:Items.class.getFields()){ Item it = (Item) f.get(null); - GameRegistry.registerItem(it,it.getUnlocalizedName()); + it.setCreativeTab(MysticOres.MysticOresTab); + String reg = it.getUnlocalizedName().substring(5); + it.setTextureName("mysticores:"+reg); + GameRegistry.registerItem(it,reg); } } catch (Exception e) { } diff --git a/common/MysticOres/Util/ConfigurationManager.java b/common/MysticOres/Util/ConfigurationManager.java index caad19a..e8f64a4 100644 --- a/common/MysticOres/Util/ConfigurationManager.java +++ b/common/MysticOres/Util/ConfigurationManager.java @@ -9,7 +9,7 @@ import net.minecraftforge.common.config.Configuration; public class ConfigurationManager { public static void initialize(File file) { Configuration config = new Configuration(file); - MysticOres.instance.ENABLE = config.get("General", "Enable", true).getBoolean(true); + MysticOres.instance.ENABLE = config.get("General", "Enable", true).getBoolean(); Rarity.VERDITE = config.get("Ore Rarity", "Verdite Ore", Rarity.VERDITE).getInt(); Rarity.MITHRIL = config.get("Ore Rarity", "Mithril Ore", Rarity.MITHRIL).getInt(); Rarity.ADAMANTINE = config.get("Ore Rarity", "Adamantine Ore", Rarity.ADAMANTINE).getInt(); diff --git a/common/MysticStones/MysticStones.java b/common/MysticStones/MysticStones.java index 5bd677c..a2abe6b 100644 --- a/common/MysticStones/MysticStones.java +++ b/common/MysticStones/MysticStones.java @@ -48,14 +48,10 @@ public class MysticStones { return Item.getItemFromBlock(MysticStones.reinforcedBricks); } }; - planks = new BlockPlanks(); - stones = new BlockStones(); - stoneBricks = new BlockStoneBricks(); - reinforcedBricks = new BlockReinforced(); - GameRegistry.registerBlock(planks, ItemBlockMulti.class, "Planks", "mysticstones", PLANK_TYPE); - GameRegistry.registerBlock(stones, ItemBlockMulti.class, "Stones", "mysticstones", STONE_TYPES); - GameRegistry.registerBlock(stoneBricks, ItemBlockMulti.class, "StoneBricks", "mysticstones", STONEBRICK_TYPES); - GameRegistry.registerBlock(reinforcedBricks, ItemReinforced.class, "Reinforcedbricks", "mysticstones"); + planks = GameRegistry.registerBlock(new BlockPlanks(), ItemBlockMulti.class, "Planks", PLANK_TYPE); + stones = GameRegistry.registerBlock(new BlockStones(), ItemBlockMulti.class, "Stones", STONE_TYPES); + stoneBricks = GameRegistry.registerBlock(new BlockStoneBricks(), ItemBlockMulti.class, "StoneBricks", STONEBRICK_TYPES); + reinforcedBricks = GameRegistry.registerBlock(new BlockReinforced(), ItemReinforced.class, "Reinforcedbricks"); RecipeHandler.craftPlanks(); RecipeHandler.craftStoneBricks(); RecipeHandler.craftReinforced(); diff --git a/common/MysticWorld/Util/Config.java b/common/MysticWorld/Util/Config.java index be6501e..c45741a 100644 --- a/common/MysticWorld/Util/Config.java +++ b/common/MysticWorld/Util/Config.java @@ -7,19 +7,17 @@ import mysticworld.lib.Booleans; import net.minecraftforge.common.config.Configuration; public class Config { - public static Configuration config; - public static void initialize(File file) { - config = new Configuration(file); - MysticWorld.instance.ENABLE = config.get("General", "Enable", true).getBoolean(true); + Configuration config = new Configuration(file); + MysticWorld.instance.ENABLE = config.get("General", "Enable", true).getBoolean(); //Boolean Configurations - Booleans.ENABLE_IMBUED_STONE_GEN = config.get("World Generation", "Enable Imbued Stones Generation", true).getBoolean(true); - Booleans.ENABLE_BUSH_GEN = config.get("World Generation", "Enable Bush Generation", true).getBoolean(true); - Booleans.ENABLE_GLACIER_GEN = config.get("World Generation", "Enable Glacier Biome", true).getBoolean(true); - Booleans.ENABLE_JUNGLE_REWRITE = config.get("World Generation", "Enable Vanilla Jungle Biome Modification", true).getBoolean(true); - Booleans.ENABLE_MOUNTAIN_GEN = config.get("World Generation", "Enable Mountain Biome", true).getBoolean(true); - Booleans.ENABLE_STEPPE_GEN = config.get("World Generation", "Enable Steppe Biome", true).getBoolean(true); - Booleans.ENABLE_TUNDRA_GEN = config.get("World Generation", "Enable Tundra Biome", true).getBoolean(true); + Booleans.ENABLE_IMBUED_STONE_GEN = config.get("World Generation", "Enable Imbued Stones Generation", true).getBoolean(); + Booleans.ENABLE_BUSH_GEN = config.get("World Generation", "Enable Bush Generation", true).getBoolean(); + Booleans.ENABLE_GLACIER_GEN = config.get("World Generation", "Enable Glacier Biome", true).getBoolean(); + Booleans.ENABLE_JUNGLE_REWRITE = config.get("World Generation", "Enable Vanilla Jungle Biome Modification", true).getBoolean(); + Booleans.ENABLE_MOUNTAIN_GEN = config.get("World Generation", "Enable Mountain Biome", true).getBoolean(); + Booleans.ENABLE_STEPPE_GEN = config.get("World Generation", "Enable Steppe Biome", true).getBoolean(); + Booleans.ENABLE_TUNDRA_GEN = config.get("World Generation", "Enable Tundra Biome", true).getBoolean(); config.save(); } } \ No newline at end of file diff --git a/common/MysticWorld/Util/TickHandler.java b/common/MysticWorld/Util/TickHandler.java index 73e52ad..e23e2f4 100644 --- a/common/MysticWorld/Util/TickHandler.java +++ b/common/MysticWorld/Util/TickHandler.java @@ -19,8 +19,8 @@ public class TickHandler { @SubscribeEvent public void tickStart(TickEvent.PlayerTickEvent event) { - if(event.phase== TickEvent.Phase.START && event.side.isServer() && event.player.worldObj.getWorldTime()%20==0) - pillarTick(event.player, event.player.worldObj, new Random()); + if(event.phase == TickEvent.Phase.START && event.side.isServer() && event.player.worldObj.getWorldTime()%20==0) + pillarTick(event.player, event.player.worldObj, event.player.getRNG()); } private static void pillarTick(EntityPlayer player, World world, Random rand) { @@ -67,7 +67,7 @@ public class TickHandler { if (itemStack != null && (itemStack.getItem() == Items.wooden_pickaxe || itemStack.getItem() == Items.stone_pickaxe || itemStack.getItem() == Items.iron_pickaxe || itemStack.getItem() == Items.golden_pickaxe || itemStack.getItem() == Items.diamond_pickaxe)) { - if (itemStack.isItemEnchanted() != true && player.experienceLevel >= 10) { + if (!itemStack.isItemEnchanted() && player.experienceLevel >= 10) { player.experienceLevel -= 10; itemStack.addEnchantment(enchantmentsPick[rand.nextInt(3)], rand.nextInt(4) + 1); } diff --git a/common/build.gradle b/common/build.gradle index 95dd6e5..db13678 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -16,8 +16,8 @@ buildscript { } apply plugin: 'forge' minecraft { - version = "1.7.10-10.13.0.1184" - runDir = "eclipse/assets" + version = "1.7.10-10.13.0.1208" + runDir = "eclipse" } archivesBaseName = "MysticMods" version = "0.1(1.7.10)" diff --git a/common/mysticworld/items/ItemHandler.java b/common/mysticworld/items/ItemHandler.java index c2aa7ce..e949b7d 100644 --- a/common/mysticworld/items/ItemHandler.java +++ b/common/mysticworld/items/ItemHandler.java @@ -72,7 +72,7 @@ public class ItemHandler { for(Field f:ItemHandler.class.getFields()){ try{ Item item = (Item)f.get(null); - GameRegistry.registerItem(item,item.getUnlocalizedName()); + GameRegistry.registerItem(item,item.getUnlocalizedName().substring(5)); }catch (Exception e){} } } From 6892d0bdc27a4b4f2ad89028b2fcacdab309a726 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sun, 19 Oct 2014 19:26:34 +0200 Subject: [PATCH 56/59] Handle new mappings --- common/MysticOres/MysticOres.java | 11 +++++++++++ common/MysticWorld/MysticWorld.java | 15 ++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/common/MysticOres/MysticOres.java b/common/MysticOres/MysticOres.java index 04a47a0..32f5897 100644 --- a/common/MysticOres/MysticOres.java +++ b/common/MysticOres/MysticOres.java @@ -1,5 +1,7 @@ package mysticores; +import cpw.mods.fml.common.event.FMLMissingMappingsEvent; +import cpw.mods.fml.common.registry.GameData; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticores.blocks.BlockHandler; @@ -68,4 +70,13 @@ public class MysticOres implements IFuelHandler { GameRegistry.registerFuelHandler(this); } } + + @EventHandler + public void onRemap(FMLMissingMappingsEvent event){ + for(FMLMissingMappingsEvent.MissingMapping missingMapping : event.get()){ + if(missingMapping.type.name().equals("ITEM") && missingMapping.name.contains("item.")){ + missingMapping.remap(GameData.getItemRegistry().getObject(missingMapping.name.replace("item.mysticores:r", "R").replace("item.", ""))); + } + } + } } \ No newline at end of file diff --git a/common/MysticWorld/MysticWorld.java b/common/MysticWorld/MysticWorld.java index 8cff156..05255f2 100644 --- a/common/MysticWorld/MysticWorld.java +++ b/common/MysticWorld/MysticWorld.java @@ -1,10 +1,13 @@ package mysticworld; import cpw.mods.fml.common.FMLCommonHandler; +import cpw.mods.fml.common.event.FMLMissingMappingsEvent; +import cpw.mods.fml.common.registry.GameData; import mysticworld.biome.BiomeHandler; import mysticworld.blocks.BlockHandler; import mysticworld.entity.EntityHandler; import mysticworld.items.ItemHandler; +import mysticworld.lib.Booleans; import mysticworld.tiles.TileEntityHandler; import mysticworld.util.Config; import mysticworld.util.RecipeHandler; @@ -34,7 +37,8 @@ public class MysticWorld { public void load(FMLInitializationEvent event) { if(ENABLE){ FMLCommonHandler.instance().bus().register(new TickHandler()); - GameRegistry.registerWorldGenerator(new WorldGenerators(), 100); + if(Booleans.ENABLE_IMBUED_STONE_GEN||Booleans.ENABLE_BUSH_GEN) + GameRegistry.registerWorldGenerator(new WorldGenerators(), 100); EntityHandler.init(); proxy.registerRenders(); } @@ -57,4 +61,13 @@ public class MysticWorld { RecipeHandler.init(); } } + + @EventHandler + public void onRemap(FMLMissingMappingsEvent event){ + for(FMLMissingMappingsEvent.MissingMapping missingMapping : event.get()){ + if(missingMapping.type.name().equals("ITEM") && missingMapping.name.contains("item.")){ + missingMapping.remap(GameData.getItemRegistry().getObject(missingMapping.name.replace("item.mysticworld:", "").replace("item.", ""))); + } + } + } } From f1422ace68ee4d170b858c9bbb2fb60ac2b86776 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Tue, 18 Nov 2014 17:29:28 +0100 Subject: [PATCH 57/59] Update Forge --- MysticMods.iml | 11 +---------- common/build.gradle | 4 +++- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/MysticMods.iml b/MysticMods.iml index 98b093b..fd67674 100644 --- a/MysticMods.iml +++ b/MysticMods.iml @@ -12,24 +12,16 @@ - - - - - - - - @@ -50,7 +42,6 @@ - @@ -58,7 +49,6 @@ - @@ -67,6 +57,7 @@ + diff --git a/common/build.gradle b/common/build.gradle index db13678..6f9c779 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -15,8 +15,10 @@ buildscript { } } apply plugin: 'forge' +sourceCompatibility = 1.6 +targetCompatibility = 1.6 minecraft { - version = "1.7.10-10.13.0.1208" + version = "1.7.10-10.13.2.1230" runDir = "eclipse" } archivesBaseName = "MysticMods" From a5f57d1124347638030ea9bc092d827b18e08157 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Thu, 11 Dec 2014 22:04:43 +0100 Subject: [PATCH 58/59] Import cleaning --- common/MysticOres/Blocks/BlockBase.java | 10 +++++----- common/MysticOres/Blocks/BlockHandler.java | 2 +- common/MysticOres/Items/ItemResource.java | 8 ++++---- common/MysticOres/Items/ItemSatchel.java | 4 ++-- common/MysticOres/Items/Items.java | 4 ++-- common/MysticOres/MysticOres.java | 14 +++++++------- common/MysticOres/Util/ConfigurationManager.java | 4 ++-- common/MysticOres/Util/RecipeManager.java | 2 +- common/MysticOres/Util/ToolRecipes.java | 2 +- common/MysticOres/Worldgen/NetherGenHelper.java | 4 ++-- common/MysticRuins/Config.java | 13 ++++--------- common/MysticRuins/MysticRuins.java | 2 +- common/MysticRuins/StructureMysticDungeon.java | 4 ++-- common/MysticRuins/StructureRuin$1.java | 4 ++-- common/MysticRuins/StructureRuin.java | 4 ++-- common/MysticStones/Blocks/BlockPlanks.java | 4 ++-- common/MysticStones/Blocks/BlockReinforced.java | 4 ++-- common/MysticStones/Blocks/BlockStoneBricks.java | 4 ++-- common/MysticStones/Blocks/BlockStones.java | 4 ++-- common/MysticStones/Blocks/ItemReinforced.java | 12 ++++++------ common/MysticStones/MysticStones.java | 12 ++++++------ common/MysticStones/Util/Config.java | 8 ++++---- common/MysticStones/Util/RecipeHandler.java | 2 +- common/MysticWorld/Biome/BiomeGenJungle.java | 4 ++-- common/MysticWorld/Blocks/BlockHandler.java | 2 +- common/MysticWorld/Blocks/BlockImbuedStone.java | 10 +++++----- common/MysticWorld/Blocks/BlockLightCube.java | 4 ++-- .../MysticWorld/Blocks/BlockPillarPlatform.java | 4 ++-- common/MysticWorld/Blocks/BlockPlatform.java | 4 ++-- common/MysticWorld/Client/ClientProxy.java | 10 +++------- common/MysticWorld/Entity/EntityChargeEarth.java | 4 ++-- common/MysticWorld/Entity/EntityHandler.java | 2 +- common/MysticWorld/Items/ItemBushFruit.java | 8 ++++---- common/MysticWorld/Items/ItemImbuedShard.java | 8 ++++---- common/MysticWorld/Items/ItemOrb.java | 1 - common/MysticWorld/Items/ItemStaff.java | 4 ++-- common/MysticWorld/Items/ItemStaffParts.java | 8 ++++---- common/MysticWorld/Items/ItemVoidShard.java | 8 ++++---- common/MysticWorld/MysticWorld.java | 16 ++++++++-------- .../Renderer/BlockPillarInsertRenderer.java | 4 +--- .../MysticWorld/Renderer/RenderStaffPower.java | 1 - .../Renderer/TileEntityPillarInsertRenderer.java | 4 +--- common/MysticWorld/Util/Config.java | 4 ++-- common/MysticWorld/Util/RecipeHandler.java | 2 +- common/MysticWorld/Util/TickHandler.java | 4 ++-- common/MysticWorld/WorldGen/BushesGen.java | 4 ++-- common/MysticWorld/WorldGen/StonesGen.java | 4 ++-- common/mysticores/worldgen/WorldGenOres.java | 6 +++--- common/mysticruins/ChestFiller.java | 8 ++++---- common/mysticruins/WorldGenMystic.java | 8 ++++---- common/mysticstones/blocks/BlockMulti.java | 4 ++-- .../worldgen/WorldGeneratorStones.java | 6 +++--- common/mysticworld/Blocks/BlockBushes.java | 10 +++++----- common/mysticworld/WorldGen/WorldGenerators.java | 5 ++--- common/mysticworld/client/fx/PowerFX.java | 3 +-- common/mysticworld/renderer/OrbItemRenderer.java | 3 +-- .../mysticworld/renderer/StaffItemRenderer.java | 3 +-- common/mysticworld/tiles/TileEntityHandler.java | 2 +- 58 files changed, 147 insertions(+), 166 deletions(-) diff --git a/common/MysticOres/Blocks/BlockBase.java b/common/MysticOres/Blocks/BlockBase.java index 1bea703..75b4865 100644 --- a/common/MysticOres/Blocks/BlockBase.java +++ b/common/MysticOres/Blocks/BlockBase.java @@ -1,8 +1,7 @@ package mysticores.blocks; -import java.util.List; -import java.util.Random; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticores.MysticOres; import mysticores.items.Items; import net.minecraft.block.Block; @@ -18,10 +17,11 @@ import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; import net.minecraftforge.common.util.ForgeDirection; +import java.util.List; +import java.util.Random; + public class BlockBase extends Block { IIcon[] textures; diff --git a/common/MysticOres/Blocks/BlockHandler.java b/common/MysticOres/Blocks/BlockHandler.java index d8ea945..4658dbd 100644 --- a/common/MysticOres/Blocks/BlockHandler.java +++ b/common/MysticOres/Blocks/BlockHandler.java @@ -1,7 +1,7 @@ package mysticores.blocks; -import net.minecraft.block.Block; import cpw.mods.fml.common.registry.GameRegistry; +import net.minecraft.block.Block; import java.util.ArrayList; import java.util.Arrays; diff --git a/common/MysticOres/Items/ItemResource.java b/common/MysticOres/Items/ItemResource.java index 68108b5..17b3abf 100644 --- a/common/MysticOres/Items/ItemResource.java +++ b/common/MysticOres/Items/ItemResource.java @@ -1,15 +1,15 @@ package mysticores.items; -import java.util.List; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.util.List; public class ItemResource extends Item { private IIcon[] icons; diff --git a/common/MysticOres/Items/ItemSatchel.java b/common/MysticOres/Items/ItemSatchel.java index 1614cd3..3d88cc5 100644 --- a/common/MysticOres/Items/ItemSatchel.java +++ b/common/MysticOres/Items/ItemSatchel.java @@ -1,11 +1,11 @@ package mysticores.items; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; 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 ItemSatchel extends Item { public ItemSatchel() { diff --git a/common/MysticOres/Items/Items.java b/common/MysticOres/Items/Items.java index 993bc3f..08ca594 100644 --- a/common/MysticOres/Items/Items.java +++ b/common/MysticOres/Items/Items.java @@ -1,7 +1,5 @@ package mysticores.items; -import java.lang.reflect.Field; - import cpw.mods.fml.common.registry.GameRegistry; import mysticores.MysticOres; import net.minecraft.item.Item; @@ -9,6 +7,8 @@ import net.minecraft.item.ItemHoe; import net.minecraft.item.ItemSpade; import net.minecraft.item.ItemSword; +import java.lang.reflect.Field; + public class Items { public static Item VerditeSword, VerditePickaxe, VerditeShovel, VerditeAxe, VerditeHoe; public static Item MithrilSword, MithrilPickaxe, MithrilShovel, MithrilAxe, MithrilHoe; diff --git a/common/MysticOres/MysticOres.java b/common/MysticOres/MysticOres.java index 32f5897..c16cba2 100644 --- a/common/MysticOres/MysticOres.java +++ b/common/MysticOres/MysticOres.java @@ -1,7 +1,13 @@ package mysticores; +import cpw.mods.fml.common.IFuelHandler; +import cpw.mods.fml.common.Mod; +import cpw.mods.fml.common.Mod.EventHandler; +import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.event.FMLMissingMappingsEvent; +import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameData; +import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticores.blocks.BlockHandler; @@ -12,16 +18,10 @@ import mysticores.worldgen.WorldGenOres; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import cpw.mods.fml.common.IFuelHandler; -import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.Mod.EventHandler; -import cpw.mods.fml.common.Mod.Instance; -import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.registry.GameRegistry; import net.minecraftforge.oredict.OreDictionary; @Mod(modid = "mysticores", name = "Mystic Ores", version = "0.1") -public class MysticOres implements IFuelHandler { +public final class MysticOres implements IFuelHandler { @Instance("mysticores") public static MysticOres instance; public boolean ENABLE = true; diff --git a/common/MysticOres/Util/ConfigurationManager.java b/common/MysticOres/Util/ConfigurationManager.java index e8f64a4..9446108 100644 --- a/common/MysticOres/Util/ConfigurationManager.java +++ b/common/MysticOres/Util/ConfigurationManager.java @@ -1,11 +1,11 @@ package mysticores.util; -import java.io.File; - import mysticores.MysticOres; import mysticores.lib.Rarity; import net.minecraftforge.common.config.Configuration; +import java.io.File; + public class ConfigurationManager { public static void initialize(File file) { Configuration config = new Configuration(file); diff --git a/common/MysticOres/Util/RecipeManager.java b/common/MysticOres/Util/RecipeManager.java index a2307ce..873e139 100644 --- a/common/MysticOres/Util/RecipeManager.java +++ b/common/MysticOres/Util/RecipeManager.java @@ -1,5 +1,6 @@ package mysticores.util; +import cpw.mods.fml.common.registry.GameRegistry; import mysticores.MysticOres; import mysticores.blocks.BlockHandler; import mysticores.items.Items; @@ -8,7 +9,6 @@ import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraftforge.oredict.ShapedOreRecipe; import net.minecraftforge.oredict.ShapelessOreRecipe; -import cpw.mods.fml.common.registry.GameRegistry; import java.util.HashMap; import java.util.Map; diff --git a/common/MysticOres/Util/ToolRecipes.java b/common/MysticOres/Util/ToolRecipes.java index 062a5e3..ef5ca42 100644 --- a/common/MysticOres/Util/ToolRecipes.java +++ b/common/MysticOres/Util/ToolRecipes.java @@ -1,10 +1,10 @@ package mysticores.util; +import cpw.mods.fml.common.registry.GameRegistry; import mysticores.MysticOres; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.ShapedOreRecipe; -import cpw.mods.fml.common.registry.GameRegistry; public class ToolRecipes { public static void advancedAxe(Item output, Object input) { diff --git a/common/MysticOres/Worldgen/NetherGenHelper.java b/common/MysticOres/Worldgen/NetherGenHelper.java index 0358251..94734be 100644 --- a/common/MysticOres/Worldgen/NetherGenHelper.java +++ b/common/MysticOres/Worldgen/NetherGenHelper.java @@ -1,13 +1,13 @@ package mysticores.worldgen; -import java.util.Random; - import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; +import java.util.Random; + public class NetherGenHelper extends WorldGenerator { private Block minableBlockId; private int minableBlockMeta = 0; diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index 8e5937d..e44d9fe 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -1,13 +1,5 @@ package mysticruins; -import java.io.File; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashSet; -import java.util.List; -import java.util.Random; -import java.util.Set; - import cpw.mods.fml.common.registry.GameData; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -15,8 +7,11 @@ import net.minecraft.util.WeightedRandom; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; -import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.DungeonHooks.DungeonMob; +import net.minecraftforge.common.config.Configuration; + +import java.io.File; +import java.util.*; public class Config { public static Configuration config; diff --git a/common/MysticRuins/MysticRuins.java b/common/MysticRuins/MysticRuins.java index f6c1b21..9004538 100644 --- a/common/MysticRuins/MysticRuins.java +++ b/common/MysticRuins/MysticRuins.java @@ -6,7 +6,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "mysticruins", name = "Mystic Ruins", version = "0.1") -public class MysticRuins { +public final class MysticRuins { public static boolean ENABLE = true; @EventHandler public void preInit(FMLPreInitializationEvent event) { diff --git a/common/MysticRuins/StructureMysticDungeon.java b/common/MysticRuins/StructureMysticDungeon.java index 57b7edd..cc1522d 100644 --- a/common/MysticRuins/StructureMysticDungeon.java +++ b/common/MysticRuins/StructureMysticDungeon.java @@ -1,13 +1,13 @@ package mysticruins; -import java.util.Random; - import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntityMobSpawner; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; +import java.util.Random; + public class StructureMysticDungeon extends WorldGenerator { public StructureMysticDungeon() { } diff --git a/common/MysticRuins/StructureRuin$1.java b/common/MysticRuins/StructureRuin$1.java index edf1d21..b856e54 100644 --- a/common/MysticRuins/StructureRuin$1.java +++ b/common/MysticRuins/StructureRuin$1.java @@ -1,7 +1,5 @@ package mysticruins; -import java.util.Random; - import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntityMobSpawner; @@ -9,6 +7,8 @@ import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraftforge.common.DungeonHooks; +import java.util.Random; + public class StructureRuin$1 extends WorldGenerator { public StructureRuin$1() { } diff --git a/common/MysticRuins/StructureRuin.java b/common/MysticRuins/StructureRuin.java index a1171f7..c8b1dd7 100644 --- a/common/MysticRuins/StructureRuin.java +++ b/common/MysticRuins/StructureRuin.java @@ -1,7 +1,5 @@ package mysticruins; -import java.util.Random; - import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntityMobSpawner; @@ -9,6 +7,8 @@ import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraftforge.common.DungeonHooks; +import java.util.Random; + public class StructureRuin extends WorldGenerator { public StructureRuin() { } diff --git a/common/MysticStones/Blocks/BlockPlanks.java b/common/MysticStones/Blocks/BlockPlanks.java index a9dd918..43460d7 100644 --- a/common/MysticStones/Blocks/BlockPlanks.java +++ b/common/MysticStones/Blocks/BlockPlanks.java @@ -1,12 +1,12 @@ package mysticstones.blocks; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticstones.MysticStones; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.util.IIcon; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockPlanks extends BlockMulti { public BlockPlanks() { diff --git a/common/MysticStones/Blocks/BlockReinforced.java b/common/MysticStones/Blocks/BlockReinforced.java index 4f71d13..f827d04 100644 --- a/common/MysticStones/Blocks/BlockReinforced.java +++ b/common/MysticStones/Blocks/BlockReinforced.java @@ -1,12 +1,12 @@ package mysticstones.blocks; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockReinforced extends BlockMulti { public BlockReinforced() { diff --git a/common/MysticStones/Blocks/BlockStoneBricks.java b/common/MysticStones/Blocks/BlockStoneBricks.java index 3ed7f4a..9da7dbb 100644 --- a/common/MysticStones/Blocks/BlockStoneBricks.java +++ b/common/MysticStones/Blocks/BlockStoneBricks.java @@ -1,12 +1,12 @@ package mysticstones.blocks; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticstones.MysticStones; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.util.IIcon; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockStoneBricks extends BlockMulti { public BlockStoneBricks() { diff --git a/common/MysticStones/Blocks/BlockStones.java b/common/MysticStones/Blocks/BlockStones.java index 80735dd..3b15dad 100644 --- a/common/MysticStones/Blocks/BlockStones.java +++ b/common/MysticStones/Blocks/BlockStones.java @@ -1,5 +1,7 @@ package mysticstones.blocks; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticstones.MysticStones; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -8,8 +10,6 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class BlockStones extends BlockMulti { public BlockStones() { diff --git a/common/MysticStones/Blocks/ItemReinforced.java b/common/MysticStones/Blocks/ItemReinforced.java index c97c0da..508dbb9 100644 --- a/common/MysticStones/Blocks/ItemReinforced.java +++ b/common/MysticStones/Blocks/ItemReinforced.java @@ -1,15 +1,15 @@ package mysticstones.blocks; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.block.Block; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemStack; + import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import net.minecraft.block.Block; -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 ItemReinforced extends ItemBlockMulti { public static final ArrayList BRICK_TYPE = new ArrayList(Arrays.asList("Mithril Bricks", "Verdite Bricks", "Iridium Bricks", "Adamantine Bricks", "Tourmaline Bricks", "Topaz Bricks", "Amethyst Bricks", "Agate Bricks")); diff --git a/common/MysticStones/MysticStones.java b/common/MysticStones/MysticStones.java index a2abe6b..9d269c8 100644 --- a/common/MysticStones/MysticStones.java +++ b/common/MysticStones/MysticStones.java @@ -1,5 +1,10 @@ package mysticstones; +import cpw.mods.fml.common.Mod; +import cpw.mods.fml.common.Mod.EventHandler; +import cpw.mods.fml.common.Mod.Instance; +import cpw.mods.fml.common.event.FMLPreInitializationEvent; +import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticstones.blocks.*; @@ -9,17 +14,12 @@ import mysticstones.worldgen.WorldGeneratorStones; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; -import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.Mod.EventHandler; -import cpw.mods.fml.common.Mod.Instance; -import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.registry.GameRegistry; import java.util.ArrayList; import java.util.Arrays; @Mod(modid = "mysticstones", name = "Mystic Stones", version = "0.2") -public class MysticStones { +public final class MysticStones { @Instance("mysticstones") public static MysticStones instance; public static boolean ENABLE = true; diff --git a/common/MysticStones/Util/Config.java b/common/MysticStones/Util/Config.java index 26b6ca0..438de39 100644 --- a/common/MysticStones/Util/Config.java +++ b/common/MysticStones/Util/Config.java @@ -1,12 +1,12 @@ package mysticstones.util; -import java.util.List; -import java.io.File; -import java.util.ArrayList; - import mysticstones.MysticStones; import net.minecraftforge.common.config.Configuration; +import java.io.File; +import java.util.ArrayList; +import java.util.List; + public class Config { public static final String[] keys = { "anorthosite", "limestone", "marble", "migmatite", "orthogneiss", "slate", "travertine" }; public static int[] rare = new int[keys.length]; diff --git a/common/MysticStones/Util/RecipeHandler.java b/common/MysticStones/Util/RecipeHandler.java index 9087037..8012f2d 100644 --- a/common/MysticStones/Util/RecipeHandler.java +++ b/common/MysticStones/Util/RecipeHandler.java @@ -1,12 +1,12 @@ package mysticstones.util; +import cpw.mods.fml.common.registry.GameRegistry; import mysticstones.MysticStones; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraftforge.oredict.OreDictionary; import net.minecraftforge.oredict.ShapedOreRecipe; import net.minecraftforge.oredict.ShapelessOreRecipe; -import cpw.mods.fml.common.registry.GameRegistry; public class RecipeHandler { public static final String[] MATERIALS = { "ingotMithril", "ingotVerdite", "ingotIridium", "ingotAdamantine", "gemTourmaline", "gemTopaz", "gemAmethyst", "gemAgate" }; diff --git a/common/MysticWorld/Biome/BiomeGenJungle.java b/common/MysticWorld/Biome/BiomeGenJungle.java index 0356dbc..dbb0fff 100644 --- a/common/MysticWorld/Biome/BiomeGenJungle.java +++ b/common/MysticWorld/Biome/BiomeGenJungle.java @@ -1,11 +1,11 @@ package mysticworld.biome; -import java.util.Random; - import net.minecraft.world.gen.feature.WorldGenAbstractTree; import net.minecraft.world.gen.feature.WorldGenMegaJungle; import net.minecraft.world.gen.feature.WorldGenTrees; +import java.util.Random; + public class BiomeGenJungle extends net.minecraft.world.biome.BiomeGenJungle { public BiomeGenJungle(int par1) { super(par1, false); diff --git a/common/MysticWorld/Blocks/BlockHandler.java b/common/MysticWorld/Blocks/BlockHandler.java index a9abb4e..c1ec825 100644 --- a/common/MysticWorld/Blocks/BlockHandler.java +++ b/common/MysticWorld/Blocks/BlockHandler.java @@ -1,8 +1,8 @@ package mysticworld.blocks; +import cpw.mods.fml.common.registry.GameRegistry; import mysticworld.lib.Strings; import net.minecraft.block.Block; -import cpw.mods.fml.common.registry.GameRegistry; import java.util.ArrayList; import java.util.Arrays; diff --git a/common/MysticWorld/Blocks/BlockImbuedStone.java b/common/MysticWorld/Blocks/BlockImbuedStone.java index 771b7d6..03f32e5 100644 --- a/common/MysticWorld/Blocks/BlockImbuedStone.java +++ b/common/MysticWorld/Blocks/BlockImbuedStone.java @@ -1,8 +1,7 @@ package mysticworld.blocks; -import java.util.List; -import java.util.Random; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import mysticworld.items.ItemHandler; import net.minecraft.block.Block; @@ -14,8 +13,9 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.util.List; +import java.util.Random; public class BlockImbuedStone extends Block { IIcon[] textures; diff --git a/common/MysticWorld/Blocks/BlockLightCube.java b/common/MysticWorld/Blocks/BlockLightCube.java index cac83b3..498dd65 100644 --- a/common/MysticWorld/Blocks/BlockLightCube.java +++ b/common/MysticWorld/Blocks/BlockLightCube.java @@ -1,7 +1,5 @@ package mysticworld.blocks; -import java.util.Random; - import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; @@ -10,6 +8,8 @@ import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraft.world.World; +import java.util.Random; + public class BlockLightCube extends Block { public BlockLightCube() { super(Material.circuits); diff --git a/common/MysticWorld/Blocks/BlockPillarPlatform.java b/common/MysticWorld/Blocks/BlockPillarPlatform.java index 9ef339a..875af74 100644 --- a/common/MysticWorld/Blocks/BlockPillarPlatform.java +++ b/common/MysticWorld/Blocks/BlockPillarPlatform.java @@ -1,7 +1,5 @@ package mysticworld.blocks; -import java.util.Random; - import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; @@ -10,6 +8,8 @@ import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; import net.minecraft.world.World; +import java.util.Random; + public class BlockPillarPlatform extends Block { public BlockPillarPlatform() { super(Material.rock); diff --git a/common/MysticWorld/Blocks/BlockPlatform.java b/common/MysticWorld/Blocks/BlockPlatform.java index a9dc1e1..3595409 100644 --- a/common/MysticWorld/Blocks/BlockPlatform.java +++ b/common/MysticWorld/Blocks/BlockPlatform.java @@ -1,7 +1,5 @@ package mysticworld.blocks; -import java.util.Random; - import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; @@ -9,6 +7,8 @@ import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.world.World; +import java.util.Random; + public class BlockPlatform extends Block { public BlockPlatform() { super(Material.rock); diff --git a/common/MysticWorld/Client/ClientProxy.java b/common/MysticWorld/Client/ClientProxy.java index 03ee013..0622d39 100644 --- a/common/MysticWorld/Client/ClientProxy.java +++ b/common/MysticWorld/Client/ClientProxy.java @@ -1,16 +1,14 @@ package mysticworld.client; +import cpw.mods.fml.client.registry.ClientRegistry; +import cpw.mods.fml.client.registry.RenderingRegistry; import mysticworld.CommonProxy; import mysticworld.blocks.BlockHandler; import mysticworld.blocks.BlockPillarInsert; import mysticworld.client.fx.LightCubeFX; import mysticworld.client.fx.PowerAirFX; import mysticworld.client.fx.PowerFX; -import mysticworld.entity.EntityChargeAir; -import mysticworld.entity.EntityChargeEarth; -import mysticworld.entity.EntityChargeEnergy; -import mysticworld.entity.EntityChargeFire; -import mysticworld.entity.EntityChargeWater; +import mysticworld.entity.*; import mysticworld.items.ItemHandler; import mysticworld.renderer.*; import mysticworld.tiles.TileEntityPillarInsert; @@ -19,8 +17,6 @@ import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import net.minecraftforge.client.MinecraftForgeClient; -import cpw.mods.fml.client.registry.ClientRegistry; -import cpw.mods.fml.client.registry.RenderingRegistry; public class ClientProxy extends CommonProxy { public final Minecraft mc = Minecraft.getMinecraft(); diff --git a/common/MysticWorld/Entity/EntityChargeEarth.java b/common/MysticWorld/Entity/EntityChargeEarth.java index 62e54e6..720a1de 100644 --- a/common/MysticWorld/Entity/EntityChargeEarth.java +++ b/common/MysticWorld/Entity/EntityChargeEarth.java @@ -1,7 +1,5 @@ package mysticworld.entity; -import java.util.Random; - import mysticworld.MysticWorld; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; @@ -13,6 +11,8 @@ import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; +import java.util.Random; + public class EntityChargeEarth extends EntityCharge { public EntityChargeEarth(World par1World) { super(par1World); diff --git a/common/MysticWorld/Entity/EntityHandler.java b/common/MysticWorld/Entity/EntityHandler.java index 121a1e5..fc68361 100644 --- a/common/MysticWorld/Entity/EntityHandler.java +++ b/common/MysticWorld/Entity/EntityHandler.java @@ -1,8 +1,8 @@ package mysticworld.entity; +import cpw.mods.fml.common.registry.EntityRegistry; import mysticworld.MysticWorld; import mysticworld.lib.Strings; -import cpw.mods.fml.common.registry.EntityRegistry; public class EntityHandler { //Entity IDs diff --git a/common/MysticWorld/Items/ItemBushFruit.java b/common/MysticWorld/Items/ItemBushFruit.java index e9d8765..d7bcb5b 100644 --- a/common/MysticWorld/Items/ItemBushFruit.java +++ b/common/MysticWorld/Items/ItemBushFruit.java @@ -1,7 +1,7 @@ package mysticworld.items; -import java.util.List; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -14,8 +14,8 @@ import net.minecraft.potion.PotionEffect; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.util.List; public class ItemBushFruit extends ItemFood { private IIcon[] icons; diff --git a/common/MysticWorld/Items/ItemImbuedShard.java b/common/MysticWorld/Items/ItemImbuedShard.java index a4d084d..0a75b8f 100644 --- a/common/MysticWorld/Items/ItemImbuedShard.java +++ b/common/MysticWorld/Items/ItemImbuedShard.java @@ -1,7 +1,7 @@ package mysticworld.items; -import java.util.List; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -9,8 +9,8 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.util.List; public class ItemImbuedShard extends Item { private IIcon[] icons; diff --git a/common/MysticWorld/Items/ItemOrb.java b/common/MysticWorld/Items/ItemOrb.java index 6467c44..291f3bb 100644 --- a/common/MysticWorld/Items/ItemOrb.java +++ b/common/MysticWorld/Items/ItemOrb.java @@ -2,7 +2,6 @@ package mysticworld.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; - import mysticworld.MysticWorld; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; diff --git a/common/MysticWorld/Items/ItemStaff.java b/common/MysticWorld/Items/ItemStaff.java index b86b02f..0da190a 100644 --- a/common/MysticWorld/Items/ItemStaff.java +++ b/common/MysticWorld/Items/ItemStaff.java @@ -1,10 +1,10 @@ package mysticworld.items; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; public class ItemStaff extends Item { public ItemStaff() { diff --git a/common/MysticWorld/Items/ItemStaffParts.java b/common/MysticWorld/Items/ItemStaffParts.java index 9ebe03c..67006a7 100644 --- a/common/MysticWorld/Items/ItemStaffParts.java +++ b/common/MysticWorld/Items/ItemStaffParts.java @@ -1,7 +1,7 @@ package mysticworld.items; -import java.util.List; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -9,8 +9,8 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.util.List; public class ItemStaffParts extends Item { private IIcon[] icons; diff --git a/common/MysticWorld/Items/ItemVoidShard.java b/common/MysticWorld/Items/ItemVoidShard.java index 51b0ac5..0dc1a5a 100644 --- a/common/MysticWorld/Items/ItemVoidShard.java +++ b/common/MysticWorld/Items/ItemVoidShard.java @@ -1,15 +1,15 @@ package mysticworld.items; -import java.util.List; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.util.List; public class ItemVoidShard extends Item { public ItemVoidShard() { diff --git a/common/MysticWorld/MysticWorld.java b/common/MysticWorld/MysticWorld.java index 05255f2..e3d5371 100644 --- a/common/MysticWorld/MysticWorld.java +++ b/common/MysticWorld/MysticWorld.java @@ -1,8 +1,15 @@ package mysticworld; import cpw.mods.fml.common.FMLCommonHandler; +import cpw.mods.fml.common.Mod; +import cpw.mods.fml.common.Mod.EventHandler; +import cpw.mods.fml.common.Mod.Instance; +import cpw.mods.fml.common.SidedProxy; +import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLMissingMappingsEvent; +import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameData; +import cpw.mods.fml.common.registry.GameRegistry; import mysticworld.biome.BiomeHandler; import mysticworld.blocks.BlockHandler; import mysticworld.entity.EntityHandler; @@ -16,16 +23,9 @@ import mysticworld.util.TickHandler; import mysticworld.worldgen.WorldGenerators; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; -import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.Mod.EventHandler; -import cpw.mods.fml.common.Mod.Instance; -import cpw.mods.fml.common.SidedProxy; -import cpw.mods.fml.common.event.FMLInitializationEvent; -import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION_NUMBER) -public class MysticWorld { +public final class MysticWorld { @Instance(Reference.MOD_ID) public static MysticWorld instance; @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) diff --git a/common/MysticWorld/Renderer/BlockPillarInsertRenderer.java b/common/MysticWorld/Renderer/BlockPillarInsertRenderer.java index 3ab56c7..5cd11b5 100644 --- a/common/MysticWorld/Renderer/BlockPillarInsertRenderer.java +++ b/common/MysticWorld/Renderer/BlockPillarInsertRenderer.java @@ -1,14 +1,12 @@ package mysticworld.renderer; +import cpw.mods.fml.client.FMLClientHandler; import mysticworld.model.ModelPillarInsert; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.IItemRenderer; - import org.lwjgl.opengl.GL11; -import cpw.mods.fml.client.FMLClientHandler; - public class BlockPillarInsertRenderer implements IItemRenderer { private static final ResourceLocation texture = new ResourceLocation("mysticworld", "textures/models/PillarInsert.png"); private final ModelPillarInsert model; diff --git a/common/MysticWorld/Renderer/RenderStaffPower.java b/common/MysticWorld/Renderer/RenderStaffPower.java index 569231d..6ea399d 100644 --- a/common/MysticWorld/Renderer/RenderStaffPower.java +++ b/common/MysticWorld/Renderer/RenderStaffPower.java @@ -4,7 +4,6 @@ import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; - import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; diff --git a/common/MysticWorld/Renderer/TileEntityPillarInsertRenderer.java b/common/MysticWorld/Renderer/TileEntityPillarInsertRenderer.java index ceb28db..622c203 100644 --- a/common/MysticWorld/Renderer/TileEntityPillarInsertRenderer.java +++ b/common/MysticWorld/Renderer/TileEntityPillarInsertRenderer.java @@ -1,15 +1,13 @@ package mysticworld.renderer; +import cpw.mods.fml.client.FMLClientHandler; import mysticworld.model.ModelPillarInsert; import mysticworld.tiles.TileEntityPillarInsert; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; - import org.lwjgl.opengl.GL11; -import cpw.mods.fml.client.FMLClientHandler; - public class TileEntityPillarInsertRenderer extends TileEntitySpecialRenderer { private static final ResourceLocation texture = new ResourceLocation("mysticworld", "textures/models/PillarInsert.png"); private ModelPillarInsert model; diff --git a/common/MysticWorld/Util/Config.java b/common/MysticWorld/Util/Config.java index c45741a..bce6fcd 100644 --- a/common/MysticWorld/Util/Config.java +++ b/common/MysticWorld/Util/Config.java @@ -1,11 +1,11 @@ package mysticworld.util; -import java.io.File; - import mysticworld.MysticWorld; import mysticworld.lib.Booleans; import net.minecraftforge.common.config.Configuration; +import java.io.File; + public class Config { public static void initialize(File file) { Configuration config = new Configuration(file); diff --git a/common/MysticWorld/Util/RecipeHandler.java b/common/MysticWorld/Util/RecipeHandler.java index dacdeaf..0ff0a05 100644 --- a/common/MysticWorld/Util/RecipeHandler.java +++ b/common/MysticWorld/Util/RecipeHandler.java @@ -1,10 +1,10 @@ package mysticworld.util; +import cpw.mods.fml.common.registry.GameRegistry; import mysticores.items.Items; import mysticworld.items.ItemHandler; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import cpw.mods.fml.common.registry.GameRegistry; public class RecipeHandler { public static void init() { diff --git a/common/MysticWorld/Util/TickHandler.java b/common/MysticWorld/Util/TickHandler.java index e23e2f4..17413b6 100644 --- a/common/MysticWorld/Util/TickHandler.java +++ b/common/MysticWorld/Util/TickHandler.java @@ -1,7 +1,5 @@ package mysticworld.util; -import java.util.Random; - import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent; import mysticworld.blocks.BlockHandler; @@ -14,6 +12,8 @@ import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; +import java.util.Random; + public class TickHandler { public static final Enchantment[] enchantmentsPick = { Enchantment.efficiency, Enchantment.fortune, Enchantment.silkTouch, Enchantment.unbreaking }; diff --git a/common/MysticWorld/WorldGen/BushesGen.java b/common/MysticWorld/WorldGen/BushesGen.java index fb73023..79ad6f1 100644 --- a/common/MysticWorld/WorldGen/BushesGen.java +++ b/common/MysticWorld/WorldGen/BushesGen.java @@ -1,12 +1,12 @@ package mysticworld.worldgen; -import java.util.Random; - import mysticworld.blocks.BlockHandler; import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; +import java.util.Random; + public class BushesGen extends WorldGenerator { @Override public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5) { diff --git a/common/MysticWorld/WorldGen/StonesGen.java b/common/MysticWorld/WorldGen/StonesGen.java index 0df055a..528b78a 100644 --- a/common/MysticWorld/WorldGen/StonesGen.java +++ b/common/MysticWorld/WorldGen/StonesGen.java @@ -1,12 +1,12 @@ package mysticworld.worldgen; -import java.util.Random; - import mysticworld.blocks.BlockHandler; import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; +import java.util.Random; + public class StonesGen extends WorldGenerator { @Override public boolean generate(World par1World, Random par2Random, int i1, int j1, int k1) { diff --git a/common/mysticores/worldgen/WorldGenOres.java b/common/mysticores/worldgen/WorldGenOres.java index c8fb70d..94970ab 100644 --- a/common/mysticores/worldgen/WorldGenOres.java +++ b/common/mysticores/worldgen/WorldGenOres.java @@ -1,14 +1,14 @@ package mysticores.worldgen; -import java.util.Random; - +import cpw.mods.fml.common.IWorldGenerator; import mysticores.blocks.BlockHandler; import mysticores.lib.Rarity; import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; -import cpw.mods.fml.common.IWorldGenerator; + +import java.util.Random; public class WorldGenOres implements IWorldGenerator { public static final WorldGenMinable adamantine = new WorldGenMinable(BlockHandler.BlockBase, 0, 3, Blocks.stone); diff --git a/common/mysticruins/ChestFiller.java b/common/mysticruins/ChestFiller.java index bc50c73..bac0989 100644 --- a/common/mysticruins/ChestFiller.java +++ b/common/mysticruins/ChestFiller.java @@ -1,13 +1,13 @@ package mysticruins; -import java.util.ArrayList; -import java.util.List; -import java.util.Random; - import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; +import java.util.ArrayList; +import java.util.List; +import java.util.Random; + public class ChestFiller { public static List rares = new ArrayList(); public static List valuables = new ArrayList(); diff --git a/common/mysticruins/WorldGenMystic.java b/common/mysticruins/WorldGenMystic.java index 9a9c73e..82ff37a 100644 --- a/common/mysticruins/WorldGenMystic.java +++ b/common/mysticruins/WorldGenMystic.java @@ -1,15 +1,15 @@ package mysticruins; -import java.util.Arrays; -import java.util.Random; - +import cpw.mods.fml.common.IWorldGenerator; import net.minecraft.world.World; import net.minecraft.world.WorldType; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraftforge.common.BiomeDictionary; -import cpw.mods.fml.common.IWorldGenerator; + +import java.util.Arrays; +import java.util.Random; public class WorldGenMystic implements IWorldGenerator { public static final WorldGenerator ruin = new StructureRuin(); diff --git a/common/mysticstones/blocks/BlockMulti.java b/common/mysticstones/blocks/BlockMulti.java index 6005670..360ecfb 100644 --- a/common/mysticstones/blocks/BlockMulti.java +++ b/common/mysticstones/blocks/BlockMulti.java @@ -1,7 +1,5 @@ package mysticstones.blocks; -import java.util.List; - import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mysticstones.MysticStones; @@ -14,6 +12,8 @@ import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; +import java.util.List; + public class BlockMulti extends Block { IIcon[] textures; diff --git a/common/mysticstones/worldgen/WorldGeneratorStones.java b/common/mysticstones/worldgen/WorldGeneratorStones.java index c6a5aef..2f234ad 100644 --- a/common/mysticstones/worldgen/WorldGeneratorStones.java +++ b/common/mysticstones/worldgen/WorldGeneratorStones.java @@ -1,14 +1,14 @@ package mysticstones.worldgen; -import java.util.Random; - +import cpw.mods.fml.common.IWorldGenerator; import mysticstones.MysticStones; import mysticstones.util.Config; import net.minecraft.init.Blocks; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; -import cpw.mods.fml.common.IWorldGenerator; + +import java.util.Random; public class WorldGeneratorStones implements IWorldGenerator { public static final WorldGenMinable anorthosite = new WorldGenMinable(MysticStones.stones, 0, 24, Blocks.stone); diff --git a/common/mysticworld/Blocks/BlockBushes.java b/common/mysticworld/Blocks/BlockBushes.java index 474dea4..f933475 100644 --- a/common/mysticworld/Blocks/BlockBushes.java +++ b/common/mysticworld/Blocks/BlockBushes.java @@ -1,8 +1,7 @@ package mysticworld.blocks; -import java.util.List; -import java.util.Random; - +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import mysticworld.MysticWorld; import mysticworld.items.ItemHandler; import net.minecraft.block.Block; @@ -20,8 +19,9 @@ import net.minecraft.world.ColorizerGrass; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.EnumPlantType; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; + +import java.util.List; +import java.util.Random; public class BlockBushes extends BlockBush { IIcon[] textures; diff --git a/common/mysticworld/WorldGen/WorldGenerators.java b/common/mysticworld/WorldGen/WorldGenerators.java index 4d5379e..080a7cc 100644 --- a/common/mysticworld/WorldGen/WorldGenerators.java +++ b/common/mysticworld/WorldGen/WorldGenerators.java @@ -1,13 +1,12 @@ package mysticworld.worldgen; -import java.util.Random; - +import cpw.mods.fml.common.IWorldGenerator; import mysticworld.lib.Booleans; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenerator; -import cpw.mods.fml.common.IWorldGenerator; +import java.util.Random; public class WorldGenerators implements IWorldGenerator { public static final WorldGenerator bushes = new BushesGen(); diff --git a/common/mysticworld/client/fx/PowerFX.java b/common/mysticworld/client/fx/PowerFX.java index dcd17e9..32dfa4f 100644 --- a/common/mysticworld/client/fx/PowerFX.java +++ b/common/mysticworld/client/fx/PowerFX.java @@ -1,13 +1,12 @@ package mysticworld.client.fx; -import org.lwjgl.opengl.GL11; - import cpw.mods.fml.client.FMLClientHandler; import mysticworld.client.ClientProxy; import net.minecraft.client.particle.EntityFX; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; +import org.lwjgl.opengl.GL11; public class PowerFX extends EntityFX { private ResourceLocation textureFX; diff --git a/common/mysticworld/renderer/OrbItemRenderer.java b/common/mysticworld/renderer/OrbItemRenderer.java index b3d9c28..ce1cb75 100644 --- a/common/mysticworld/renderer/OrbItemRenderer.java +++ b/common/mysticworld/renderer/OrbItemRenderer.java @@ -1,10 +1,9 @@ package mysticworld.renderer; -import org.lwjgl.opengl.GL11; - import cpw.mods.fml.client.FMLClientHandler; import mysticworld.model.ModelOrb; import net.minecraft.item.ItemStack; +import org.lwjgl.opengl.GL11; public class OrbItemRenderer extends BaseItemRenderer { private final ModelOrb modelOrb = new ModelOrb(); diff --git a/common/mysticworld/renderer/StaffItemRenderer.java b/common/mysticworld/renderer/StaffItemRenderer.java index 97406de..7c6228b 100644 --- a/common/mysticworld/renderer/StaffItemRenderer.java +++ b/common/mysticworld/renderer/StaffItemRenderer.java @@ -1,10 +1,9 @@ package mysticworld.renderer; -import org.lwjgl.opengl.GL11; - import cpw.mods.fml.client.FMLClientHandler; import mysticworld.model.ModelStaff; import net.minecraft.item.ItemStack; +import org.lwjgl.opengl.GL11; public class StaffItemRenderer extends BaseItemRenderer { private final ModelStaff model = new ModelStaff(); diff --git a/common/mysticworld/tiles/TileEntityHandler.java b/common/mysticworld/tiles/TileEntityHandler.java index 44e712d..89cfc07 100644 --- a/common/mysticworld/tiles/TileEntityHandler.java +++ b/common/mysticworld/tiles/TileEntityHandler.java @@ -1,7 +1,7 @@ package mysticworld.tiles; -import mysticworld.lib.Strings; import cpw.mods.fml.common.registry.GameRegistry; +import mysticworld.lib.Strings; public class TileEntityHandler { public static void init() { From 521cc695c42613f0830423575cbd1e5c044c40e6 Mon Sep 17 00:00:00 2001 From: GotoLink Date: Sun, 4 Jan 2015 18:19:25 +0100 Subject: [PATCH 59/59] Fixed dimension option --- MysticMods.iml | 6 +++--- common/MysticRuins/Config.java | 13 +++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/MysticMods.iml b/MysticMods.iml index fd67674..d5cea56 100644 --- a/MysticMods.iml +++ b/MysticMods.iml @@ -57,7 +57,7 @@ - + + - - + \ No newline at end of file diff --git a/common/MysticRuins/Config.java b/common/MysticRuins/Config.java index e44d9fe..bf1bb68 100644 --- a/common/MysticRuins/Config.java +++ b/common/MysticRuins/Config.java @@ -87,13 +87,13 @@ public class Config { } catch (IllegalArgumentException l) { } } - } else if (i < 1 && txt.contains("[") && txt.contains("]")) { + } else if (i < 2 && txt.contains("[") && txt.contains("]")) { boolean remove = txt.trim().startsWith("-"); - txt = txt.substring(txt.indexOf("["), txt.indexOf("]")); - if (txt.split(";").length == 2) { + String[] results = txt.substring(txt.indexOf("[")+1, txt.indexOf("]")).split(";"); + if (results.length == 2) { try { - int a = Integer.parseInt(txt.split(";")[0]); - int b = Integer.parseInt(txt.split(";")[1]); + int a = Integer.parseInt(results[0]); + int b = Integer.parseInt(results[1]); int c; if (a > b) { c = a; @@ -141,7 +141,8 @@ public class Config { } } } - config.save(); + if(config.hasChanged()) + config.save(); } private static void setChest(String type, String list, List valuables) {