Example #1
0
 public void GenerateCave(ChunkColumn chunk)
 {
     _gcRandom = new GcRandom(chunk, _seedi);
     for (var x = 0; x < 16; x++)
     {
         for (var z = 0; z < 16; z++)
         {
             for (var y = 50; y >= 6; y--)
             {
                 if (_gcRandom.IsInCave(x, y, z))
                 {
                     chunk.SetBlock(x, y, z, new BlockAir());
                 }
             }
         }
     }
 }
Example #2
0
 public void GenerateCave(ChunkColumn chunk)
 {
     _gcRandom = new GcRandom(chunk, _seedi);
     for (var x = 0; x < 16; x++)
     {
         for (var z = 0; z < 16; z++)
         {
             for (var y = 50; y >= 6; y--)
             {
                 if (_gcRandom.IsInCave(x, y, z))
                 {
                     chunk.SetBlock(x, y, z, new BlockAir());
                 }
             }
         }
     }
 }