Merge branch 'road'

This commit is contained in:
2024-06-16 02:15:53 +02:00
23 changed files with 2082 additions and 57 deletions

19
main.py
View File

@@ -5,11 +5,11 @@ import gdpc.exceptions
from world_maker.world_maker import *
from House import *
def main():
rectangle_house_mountain, rectangle_building, skeleton_highway, skeleton_mountain = world_maker()
editor = Editor(buffering=True)
buildArea = editor.getBuildArea()
@@ -28,19 +28,22 @@ def main():
"garden_outline": "oak_leaves",
"garden_floor": "grass_block"
}
entranceDirection = ["N", "S", "E", "W"]
for houses in rectangle_house_mountain:
start = (houses[0][0]+buildArea.begin[0], houses[0][1], houses[0][2]+buildArea.begin[2])
end = (houses[1][0]+buildArea.begin[0], houses[1][1], houses[1][2]+buildArea.begin[2])
house = House(editor, start, end, entranceDirection[random.randint(0, 3)], blocks)
start = (houses[0][0]+buildArea.begin[0], houses[0]
[1], houses[0][2]+buildArea.begin[2])
end = (houses[1][0]+buildArea.begin[0], houses[1]
[1], houses[1][2]+buildArea.begin[2])
house = House(editor, start, end,
entranceDirection[random.randint(0, 3)], blocks)
house.build()
if __name__ == '__main__':
main()
"""
from gdpc import Editor, Block, geometry, Transform
import networks.curve as curve
@@ -74,4 +77,4 @@ geometry.placeCuboid(editor, (-5,0,-8), (25,100,25), Block("air"))
building = Building(random_data["buildings"], [(0,0,0), (20,30,20)], baseShape, DIRECTION.EAST)
# build it with your custom materials
building.build(editor, ["stone_bricks","glass_pane","glass","cobblestone_wall","stone_brick_stairs","oak_planks","white_concrete","cobblestone","stone_brick_slab","iron_bars"])
"""
"""