def Schokolade(point,m,b, remove=False): # b = Breite, m = Material BROWN_CONCRETE
point=[point[0], point[1], point[2]]
if remove==True:
m=AIR
h=2*b; d=b/10 # h = Höhe, d = Dicke
# Hauptstück
blocks.fill(m,
world(point[0], point[1], point[2]),
world(point[0]+b, point[1]+h, point[2]+d))
# Taefeli rechts 1. Reihe (v. unten)
blocks.fill(m,
world(point[0]+(b/10), point[1]+(h/20), point[2]),
world(point[0]+(b/2)-(b/10), point[1]+(h/4)-(h/20), point[2]-d))
# Taefeli rechts 2. Reihe
blocks.fill(m,
world(point[0]+(b/10), point[1]+(h/4)+(h/20), point[2]),
world(point[0]+(b/2)-(b/10), point[1]+(2*h/4)-(h/20), point[2]-d))
# Taefeli rechts 3. Reihe
blocks.fill(m,
world(point[0]+(b/10), point[1]+(2*h/4)+(h/20), point[2]),
world(point[0]+(b/2)-(b/10), point[1]+(3*h/4)-(h/20), point[2]-d))
# Taefeli rechts 4. Reihe
blocks.fill(m,
world(point[0]+(b/10), point[1]+(3*h/4)+(h/20), point[2]),
world(point[0]+(b/2)-(b/10), point[1]+h-(h/20), point[2]-d))
# Taefeli links 1. Reihe
blocks.fill(m,
world(point[0]+b-(b/10), point[1]+(h/20), point[2]),
world(point[0]+(b/2)+(b/10), point[1]+(h/4)-(h/20), point[2]-d))
# Taefeli links 2. Reihe
blocks.fill(m,
world(point[0]+b-(b/10), point[1]+(h/4)+(h/20), point[2]),
world(point[0]+(b/2)+(b/10), point[1]+(2*h/4)-(h/20), point[2]-d))
# Taefeli links 3. Reihe
blocks.fill(m,
world(point[0]+b-(b/10), point[1]+(2*h/4)+(h/20), point[2]),
world(point[0]+(b/2)+(b/10), point[1]+(3*h/4)-(h/20), point[2]-d))
# Taefeli links 4. Reihe
blocks.fill(m,
world(point[0]+b-(b/10), point[1]+(3*h/4)+(h/20), point[2]),
world(point[0]+(b/2)+(b/10), point[1]+h-(h/20), point[2]-d))
zurück