This commit is contained in:
biglyderv 2024-11-17 14:50:12 -05:00
parent 3a3bcaeeae
commit cdec649609
4 changed files with 17 additions and 8 deletions

View file

@ -35,8 +35,8 @@ public class Generator extends ChunkGenerator {
int z2 = chunkZ * 16 + z; int z2 = chunkZ * 16 + z;
if (Generator.getHash(x2,z2) == (y & (y * 7))) { if (Generator.getHash(x2,z2) == (y & (y * 7))) {
for (int a = 0; a < 6; a++) { for (int a = 0; a < 8; a++) {
for (int b = 0; b < 6; b++) { for (int b = 0; b < 8; b++) {
chunkData.setBlock((x+a)%16, y, (z+b)%16, Material.STONE); chunkData.setBlock((x+a)%16, y, (z+b)%16, Material.STONE);
} }
} }

View file

@ -27,6 +27,15 @@ public class Main extends JavaPlugin {
recipe.setIngredient('A', Material.FLINT); recipe.setIngredient('A', Material.FLINT);
recipe.setIngredient('B', Material.STICK); 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); getServer().addRecipe(recipe);
key = new NamespacedKey(this, "StoneStick"); key = new NamespacedKey(this, "StoneStick");
@ -38,13 +47,13 @@ public class Main extends JavaPlugin {
getServer().addRecipe(recipe); getServer().addRecipe(recipe);
key = new NamespacedKey(this, "FlintFurnace"); key = new NamespacedKey(this, "GrassSapling");
item = new ItemStack(Material.FURNACE); item = new ItemStack(Material.OAK_SAPLING);
recipe = new ShapedRecipe(key, item); recipe = new ShapedRecipe(key, item);
recipe.shape("AA ", "AB ", " "); recipe.shape("AAA", "ABA", "AAA");
recipe.setIngredient('A', Material.COBBLESTONE); recipe.setIngredient('A', Material.BONE_MEAL);
recipe.setIngredient('B', Material.FLINT); recipe.setIngredient('B', Material.GRASS_BLOCK);
getServer().addRecipe(recipe); getServer().addRecipe(recipe);