From f13c2b4f9aa8eb1901d8ae6980b10b4bfe43c084 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 28 Oct 2010 20:23:38 -1000 Subject: [PATCH] adjust top of sand level downward, and leave some dirt under it. now it looks a bit more natural. --- mce.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mce.py b/mce.py index 0217257..2ae2e4a 100644 --- a/mce.py +++ b/mce.py @@ -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