Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Building house")
- print("Ingredients must be in slots 1-5")
- local function wall()
- for i=1, 9 do
- if windows==1 and (i==5 or i==6) then
- turtle.select(5)
- turtle.placeDown()
- turtle.select(2)
- elseif windows==2 and (i==5 or i==6) then
- turtle.select(5)
- turtle.placeDown()
- turtle.select(3)
- else
- turtle.placeDown()
- end
- turtle.forward()
- end
- turtle.turnLeft()
- end
- --Each layer is 4x10
- local function layer()
- for k=1, 4 do
- wall()
- end
- turtle.up()
- end
- --INITIATION + BASE LAYERS
- turtle.up()
- turtle.turnRight()
- turtle.select(1)
- layer()
- wall()
- wall()
- turtle.select(2)
- wall()
- wall()
- windows=1
- turtle.up()
- layer()
- windows=2
- --ROOF LAYERS
- turtle.select(3)
- layer()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for z=1, 4 do
- for i=1, 7 do
- if turtle.getItemCount(3) == 0 then
- turtle.select(4)
- end
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- end
- turtle.up()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for z=1, 4 do
- for i=1, 5 do
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- end
- turtle.up()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for z=1, 4 do
- for i=1, 3 do
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- end
- turtle.up()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for z=1, 4 do
- for i=1, 1 do
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- end
- turtle.forward()
- turtle.turnRight()
- for z=1, 5 do
- turtle.forward()
- turtle.down()
- end
- turtle.down()
- turtle.down()
- turtle.down()
- turtle.turnRight()
- for z=1, 4 do
- turtle.forward()
- end
- print("Mission copmleted.")
Add Comment
Please, Sign In to add comment