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

@ -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);
}
}

View file

@ -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);