private void SpawnOre(MCUtils.World world, Ore ore, int x, int y, int z) { for (int i = 0; i < ore.veinSizeMax; i++) { int x1 = x + RandomRange(-1, 1); int y1 = y + RandomRange(-1, 1); int z1 = z + RandomRange(-1, 1); if (world.IsDefaultBlock(x1, y1, z1)) { world.SetBlock(x1, y1, z1, ore.block); } } }
public override void ProcessBlock(MCUtils.World world, int x, int y, int z) { //Make flat bedrock if (y == 0) { if (world.IsDefaultBlock(x, 0, z)) { world.SetBlock(x, 0, z, "minecraft:bedrock"); } } //Fill the terrain with water up to the waterLevel if (y <= waterLevel) { if (world.IsAir(x, y, z)) { world.SetBlock(x, y, z, "minecraft:water"); } } }