adjust top of sand level downward, and leave some dirt under it. now it looks a bit more natural.

This commit is contained in:
David Vierra 2010-10-28 20:23:38 -10:00
parent 8337b959cb
commit f13c2b4f9a

12
mce.py
View File

@ -948,15 +948,15 @@ class mce(object):
c.Blocks[x,z,h+1:] = 0 #air
c.Blocks[x,z,h:h+1] = 2 #grass
c.Blocks[x,z,h-4:h] = 3 #dirt
c.Blocks[x,z,:h-4] = 1 #rock
if h <= water_level:
if h < water_level:
c.Blocks[x,z,h+1:water_level] = 9 #water
if h <= water_level+3:
c.Blocks[x,z,h-3:h+1] = 12 #sand if it's under water level
else:
c.Blocks[x,z,h-4:h] = 3 #dirt
c.Blocks[x,z,0] = 7
if h < water_level+2:
c.Blocks[x,z,h-2:h+1] = 12 #sand if it's near water level
c.Blocks[x,z,0] = 7 #bedrock
c.chunkChanged()
c.TerrainPopulated = False