This commit is contained in:
Eclairsombre
2024-04-28 13:11:04 +02:00
parent 60a2f5a3d6
commit 7384dcc7b3

View File

@@ -210,18 +210,7 @@ class House:
self.editor.placeBlock((x + i, self.coordinates_max[1]+n, z + j), Block("blackstone_slab",{"type":"bottom"})) self.editor.placeBlock((x + i, self.coordinates_max[1]+n, z + j), Block("blackstone_slab",{"type":"bottom"}))
if width<depth: if width<depth:
if width%2==0:
h = 0
for i in range(-1, width//2):
for j in range(-1, depth+1):
self.editor.placeBlock((x + i, self.coordinates_max[1]+h, z + j), Block("blackstone_slab",{"type":"bottom"}))
self.editor.placeBlock((x + width-1-i, self.coordinates_max[1]+h, z + j), Block("blackstone_slab",{"type":"bottom"}))
if i != -1:
self.editor.placeBlock((x + i, self.coordinates_max[1]+h-1, z + j), Block("blackstone_slab",{"type":"top"}))
self.editor.placeBlock((x + width-1-i, self.coordinates_max[1]+h-1, z + j), Block("blackstone_slab",{"type":"top"}))
h+=1
else:
h = 0 h = 0
for i in range(-1, width//2): for i in range(-1, width//2):
for j in range(-1, depth+1): for j in range(-1, depth+1):
@@ -241,15 +230,7 @@ class House:
if i != -1: if i != -1:
h += 0.5 h += 0.5
else: else:
if depth%2==0:
h = 0
for i in range(-1, depth//2):
for j in range(-1, width+1):
self.editor.placeBlock((x + j, self.coordinates_max[1]+h-1, z + i), Block("blackstone_slab",{"type":"top"}))
self.editor.placeBlock((x + j, self.coordinates_max[1]+h-1, z + depth-1-i), Block("blackstone_slab",{"type":"top"}))
h+=1
else:
h = 0 h = 0
for i in range(-1, depth//2): for i in range(-1, depth//2):
for j in range(-1, width+1): for j in range(-1, width+1):