Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function house()
- local function selectslot(num)
- if num then
- turtle.select(num)
- return true
- else
- for i=1,16 do
- if turtle.getItemCount(i)>0 then
- turtle.select(i)
- return true
- end
- end
- end
- end
- local p=turtle.place
- local u=turtle.placeUp
- local d=turtle.placeDown
- function turtle.place(...) selectslot(...) p(...) end
- function turtle.placeUp(...) selectslot(...) u(...) end
- function turtle.placeDown(...) selectslot(...) d(...) end
- print("Are wall and roof blocks in slots 1-6?")
- write("Yes|No ")
- local ans = read()
- print("Is glass in slot 16, torches in slot 15, floor blocks in slot 14, 2 chests in slot 13 and a crafting table in slot 12?")
- write("Yes|No ")
- local ans2 = read()
- if string.lower(ans) and string.lower(ans2) == "yes" then
- term.clear()
- term.setCursorPos(1,1)
- turtle.up()
- turtle.placeDown()
- turtle.placeUp()
- turtle.back()
- for i = 1,7 do
- turtle.place()
- turtle.placeDown()
- turtle.placeUp()
- turtle.back()
- end
- turtle.place()
- turtle.placeUp()
- turtle.placeDown()
- turtle.turnRight()
- turtle.back()
- turtle.place()
- for i = 1,7 do
- turtle.place()
- turtle.placeDown()
- turtle.placeUp()
- turtle.back()
- end
- turtle.place()
- turtle.placeDown()
- turtle.placeUp()
- turtle.turnRight()
- turtle.back()
- turtle.place()
- for i = 1,7 do
- turtle.place()
- turtle.placeDown()
- turtle.placeUp()
- turtle.back()
- end
- turtle.place()
- turtle.placeUp()
- turtle.placeDown()
- turtle.turnRight()
- turtle.back()
- for i = 1,6 do
- turtle.place()
- turtle.placeDown()
- turtle.placeUp()
- turtle.back()
- end
- turtle.place()
- turtle.turnLeft()
- turtle.placeDown()
- turtle.placeUp()
- turtle.back()
- turtle.place()
- turtle.up()
- turtle.up()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.placeUp()
- turtle.back()
- turtle.place()
- for i = 1, 7 do
- turtle.placeUp()
- turtle.back()
- turtle.place()
- end
- turtle.placeUp()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- for i = 1, 7 do
- turtle.placeUp()
- turtle.back()
- turtle.place()
- end
- turtle.placeUp()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- for i = 1, 7 do
- turtle.placeUp()
- turtle.back()
- turtle.place()
- end
- turtle.placeUp()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- for i = 1, 6 do
- turtle.placeUp()
- turtle.back()
- turtle.place()
- end
- turtle.placeUp()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- for i = 1,7 do
- turtle.placeUp()
- turtle.back()
- end
- turtle.turnLeft()
- turtle.back()
- for i = 1,6 do
- turtle.placeUp()
- turtle.back()
- end
- turtle.turnLeft()
- turtle.back()
- for i = 1,6 do
- turtle.placeUp()
- turtle.back()
- end
- turtle.turnLeft()
- turtle.back()
- for i = 1,5 do
- turtle.placeUp()
- turtle.back()
- end
- for i = 1,3 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- for i = 1,5 do
- turtle.placeUp()
- turtle.forward()
- end
- turtle.turnLeft()
- for i = 1,3 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i = 1,3 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- for i = 1,2 do
- turtle.placeUp()
- turtle.forward()
- end
- turtle.forward()
- for i = 1,2 do
- turtle.placeUp()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.select(16)
- for i = 1,1 do
- turtle.placeUp(16)
- turtle.forward()
- end
- turtle.placeUp(16)
- turtle.turnRight()
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnRight()
- turtle.forward()
- turtle.placeUp(16)
- for i = 1,4 do
- turtle.back()
- end
- turtle.placeUp(16)
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnRight()
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnRight()
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.placeUp(16)
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnLeft()
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnLeft()
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.placeUp(16)
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnRight()
- turtle.forward()
- turtle.placeUp(16)
- turtle.turnRight()
- turtle.forward()
- turtle.placeUp(16)
- turtle.forward()
- turtle.turnLeft()
- turtle.down()
- turtle.place(15)
- turtle.turnLeft()
- turtle.turnLeft()
- for i = 1,4 do
- turtle.forward()
- end
- turtle.place(15)
- turtle.back()
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.place(15)
- for i = 1,4 do
- turtle.back()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place(15)
- for i = 1,2 do
- turtle.down()
- end
- turtle.forward()
- turtle.turnRight()
- for i = 1,3 do
- turtle.forward()
- end
- turtle.turnRight()
- for i = 1,6 do
- turtle.digDown()
- turtle.placeDown(14)
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeDown(14)
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i = 1,6 do
- turtle.digDown()
- turtle.placeDown(14)
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeDown(14)
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- for i = 1,6 do
- turtle.digDown()
- turtle.placeDown(14)
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeDown(14)
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i = 1,6 do
- turtle.digDown()
- turtle.placeDown(14)
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeDown(14)
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- for i = 1,6 do
- turtle.digDown()
- turtle.placeDown(14)
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeDown(14)
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i = 1,6 do
- turtle.digDown()
- turtle.placeDown(14)
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeDown(14)
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- for i = 1,6 do
- turtle.digDown()
- turtle.placeDown(14)
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeDown(14)
- turtle.turnLeft()
- for i = 1,3 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.placeDown(14)
- turtle.turnRight()
- turtle.turnRight()
- for i = 1,6 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place(12)
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place(13)
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place(13)
- for i = 1,16 do
- turtle.select(i)
- turtle.drop()
- end
- else
- error()
- end
- end
- house()
Add Comment
Please, Sign In to add comment