diff --git a/app/bin/main/net/xuyezo/main/Generator.class b/app/bin/main/net/xuyezo/main/Generator.class index 9e754ed..a1add04 100644 Binary files a/app/bin/main/net/xuyezo/main/Generator.class and b/app/bin/main/net/xuyezo/main/Generator.class differ diff --git a/app/bin/main/net/xuyezo/main/Main.class b/app/bin/main/net/xuyezo/main/Main.class index eb90376..53e57c5 100644 Binary files a/app/bin/main/net/xuyezo/main/Main.class and b/app/bin/main/net/xuyezo/main/Main.class differ diff --git a/app/src/main/java/net/xuyezo/main/Generator.java b/app/src/main/java/net/xuyezo/main/Generator.java index 30868f3..a0e7bb0 100644 --- a/app/src/main/java/net/xuyezo/main/Generator.java +++ b/app/src/main/java/net/xuyezo/main/Generator.java @@ -20,7 +20,7 @@ public class Generator extends ChunkGenerator { public void generateNoise(WorldInfo worldInfo, Random random, int chunkX, int chunkZ, ChunkGenerator.ChunkData chunkData) { for (int x = 0; x < 16; x++) { - for (int z = 0; z < 16; z++) { + for (int z = 0; z < 16; z++) { for (int y = chunkData.getMinHeight(); y < chunkData.getMaxHeight(); y++) { chunkData.setBlock(x, y, z, Material.AIR); } @@ -35,8 +35,8 @@ public class Generator extends ChunkGenerator { int z2 = chunkZ * 16 + z; if (Generator.getHash(x2,z2) == (y & (y * 7))) { - for (int a = 0; a < 6; a++) { - for (int b = 0; b < 6; b++) { + for (int a = 0; a < 8; a++) { + for (int b = 0; b < 8; b++) { chunkData.setBlock((x+a)%16, y, (z+b)%16, Material.STONE); } } diff --git a/app/src/main/java/net/xuyezo/main/Main.java b/app/src/main/java/net/xuyezo/main/Main.java index 88ac3bc..adedbef 100644 --- a/app/src/main/java/net/xuyezo/main/Main.java +++ b/app/src/main/java/net/xuyezo/main/Main.java @@ -26,6 +26,15 @@ public class Main extends JavaPlugin { recipe.shape("A ", "B ", " "); recipe.setIngredient('A', Material.FLINT); recipe.setIngredient('B', Material.STICK); + + + key = new NamespacedKey(this, "FlintPickaxe"); + item = new ItemStack(Material.STONE_PICKAXE); + + recipe = new ShapedRecipe(key, item); + recipe.shape("AA ", "B ", " "); + recipe.setIngredient('A', Material.FLINT); + recipe.setIngredient('B', Material.STICK); getServer().addRecipe(recipe); @@ -38,13 +47,13 @@ public class Main extends JavaPlugin { getServer().addRecipe(recipe); - key = new NamespacedKey(this, "FlintFurnace"); - item = new ItemStack(Material.FURNACE); + key = new NamespacedKey(this, "GrassSapling"); + item = new ItemStack(Material.OAK_SAPLING); recipe = new ShapedRecipe(key, item); - recipe.shape("AA ", "AB ", " "); - recipe.setIngredient('A', Material.COBBLESTONE); - recipe.setIngredient('B', Material.FLINT); + recipe.shape("AAA", "ABA", "AAA"); + recipe.setIngredient('A', Material.BONE_MEAL); + recipe.setIngredient('B', Material.GRASS_BLOCK); getServer().addRecipe(recipe);