Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 4)
- --Info: You can delete this section if you want
- textutils.slowPrint("Thank you for using this program!")
- print("")
- textutils.slowPrint("There maybe some bugs.. you are allowed")
- print("")
- textutils.slowPrint("to fix them.")
- print("")
- textutils.slowPrint("Post the fix in the forum!")
- term.setCursorPos(1, 12)
- term.clear()
- term.setCursorPos(1, 1)
- print("Please put fuel in slot 18!")
- print("In slot 1-2, place")
- print("The Flooring")
- print("In slot 3-6, place")
- print("The wall material")
- print("In slot 7-9, place")
- print("Glass")
- print("In slot 10, place")
- print("Torches")
- turtle.select(16)
- turtle.refuel()
- turtle.select(1)
- function turn()
- for i=1, 2 do
- turtle.turnLeft()
- end
- end
- --floor placement
- function floor1()
- for i=1,11 do
- amount1()
- turtle.attack()
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- if turtle.detect() == true then
- repeat
- turtle.dig()
- until turtle.detect() == false
- end
- end
- end
- function amount1()
- turtle.select(1)
- turtle.getItemCount(1)
- if turtle.getItemCount(1) == 0 then
- turtle.select(2)
- if turtle.getItemCount(2) == 0 then
- print("Please give me more flooring!")
- end
- end
- end
- --floor placement again
- function row1()
- floor1()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- turtle.dig()
- turn()
- turtle.back()
- end
- function row2()
- floor1()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.dig()
- turn()
- turtle.back()
- end
- --Actual floor placement
- for i=1,5 do
- row1()
- row2()
- end
- row1()
- turtle.select(3)
- function amount2()
- turtle.getItemCount(3)
- if turtle.getItemCount(3) == 0 then
- turtle.select(4)
- if turtle.getItemCount(4) == 0 then
- turtle.select(5)
- if turtle.getItemCount(5) == 0 then
- turtle.select(6)
- if turtle.getItemCount(6) == 0 then
- print("I need building supplies!")
- end
- end
- end
- end
- end
- --Wallings
- function wall1()
- for i=1,12 do
- turtle.digDown()
- turtle.placeDown()
- turtle.forward()
- amount2()
- end
- end
- function wall()
- turtle.up()
- wall1()
- turn()
- turtle.up()
- turtle.forward()
- wall1()
- turn()
- turtle.up()
- turtle.forward()
- wall1()
- turn()
- turtle.up()
- turtle.forward()
- wall1()
- turn()
- turtle.up()
- turtle.forward()
- wall1()
- turn()
- turtle.turnLeft()
- restart()
- end
- --Specific wall placing
- function wall3()
- turtle.up()
- wall1()
- turn()
- turtle.up()
- wall1()
- turn()
- turtle.up()
- turtle.forward()
- wall1()
- turn()
- turtle.up()
- wall1()
- turn()
- turtle.up()
- turtle.forward()
- wall1()
- turn()
- turtle.turnLeft()
- end
- function restart()
- for i=1,5 do
- if turtle.detectDown() == false then
- turtle.down()
- elseif turtle.detectDown() == true then
- turtle.digDown()
- turtle.down()
- elseif i == 4 then
- turtle.down()
- end
- end
- end
- function path()
- for i=1,13 do
- turtle.forward()
- end
- end
- function newWall()
- turtle.forward()
- for i=1,4 do
- turtle.down()
- end
- end
- wall()
- wall()
- wall()
- wall3()
- function amount7()
- turtle.getItemCount(7)
- if turtle.getItemCount(7) == 0 then
- turtle.select(8)
- if turtle.getItemCount(8) == 0 then
- turtle.select(9)
- end
- end
- end
- function ceiling()
- for i=1,12 do
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- end
- end
- function ceiling2()
- for i=1,9 do
- turtle.select(7)
- amount7()
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- end
- end
- function ceiling3()
- turtle.select(3)
- amount2()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- ceiling2()
- end
- function ceiling4()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.placeDown()
- ceiling2()
- end
- function ceiling5()
- turtle.select(3)
- amount2()
- turtle.forward()
- turtle.placeDown()
- turtle.forward()
- end
- function glassNav()
- turtle.select(7)
- amount7()
- turtle.turnRight()
- turtle.forward()
- turtle.down()
- turtle.turnLeft()
- end
- function glass1()
- turtle.select(7)
- amount7()
- turtle.place()
- turtle.up()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.down()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.up()
- turtle.place()
- end
- function window1()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- turtle.digUp()
- end
- function window2()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- turtle.digUp()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- end
- print(" ")
- print("Please refill slots 3-6!")
- print("Only 1 slot will finish the ceiling!")
- print("Fill more if you're unsure!")
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- for i=1,4 do
- turtle.down()
- end
- for i=1,4 do
- turtle.up()
- end
- turtle.back()
- ceiling()
- ceiling3()
- ceiling5()
- ceiling4()
- ceiling5()
- ceiling3()
- ceiling5()
- ceiling4()
- ceiling5()
- ceiling3()
- ceiling5()
- ceiling4()
- ceiling5()
- ceiling3()
- ceiling5()
- ceiling4()
- ceiling5()
- ceiling3()
- ceiling5()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- ceiling()
- turtle.forward()
- for i=1,5 do
- turtle.down()
- if i == 4 then
- turtle.digDown()
- end
- end
- turtle.turnLeft()
- for i=1,5 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.dig()
- turtle.up()
- turtle.dig()
- turtle.forward()
- turtle.forward()
- turtle.up()
- turtle.select(10)
- turtle.placeUp()
- turtle.down()
- for i=1,10 do
- turtle.forward()
- end
- turtle.up()
- turtle.placeUp()
- turtle.down()
- for i=1,5 do
- turtle.back()
- end
- turtle.turnLeft()
- for i=1,5 do
- turtle.forward()
- end
- turtle.up()
- turtle.placeUp()
- turtle.down()
- for i=1,10 do
- turtle.back()
- end
- turtle.up()
- turtle.placeUp()
- turtle.down()
- for i=1,5 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i=1,6 do
- turtle.forward()
- end
- turtle.down()
- turtle.digDown()
- turtle.select(2)
- turtle.placeDown()
- turtle.up()
- turtle.back()
- turtle.turnLeft()
- for i=1,4 do
- turtle.forward()
- end
- turtle.turnRight()
- window2()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- for i=1,4 do
- turtle.forward()
- end
- turtle.turnLeft()
- window2()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- window2()
- window1()
- window1()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- window2()
- window1()
- window1()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- window2()
- window1()
- window1()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- glass1()
- turtle.turnRight()
- for i=1,4 do
- turtle.forward()
- end
- turtle.down()
- turtle.turnLeft()
- glass1()
- turn()
- turtle.forward()
- turtle.turnLeft()
- turtle.down()
- turtle.forward()
- glass1()
- glassNav()
- glass1()
- glassNav()
- glass1()
- turn()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.down()
- glass1()
- glassNav()
- glass1()
- glassNav()
- glass1()
- turn()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.down()
- glass1()
- glassNav()
- glass1()
- glassNav()
- glass1()
- turn()
- turtle.down()
- turtle.down()
- for i=1,5 do
- turtle.forward()
- end
- turtle.turnRight()
- for i=1,4 do
- turtle.forward()
- end
- turn()
- --Ending message: Can remove if you want
- term.clear()
- term.setCursorPos(1, 1)
- print("The house is done!")
- term.clear()
- term.setCursorPos(1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement