Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear(text)
- term.clear()
- term.setCursorPos(1,1)
- term.write(text)
- term.setCursorPos(1,2)
- end
- clear("Enter the Width of the house")
- width = tonumber(read())
- clear("Enter the Height of the house")
- height = tonumber(read())
- blocks = height*width*4+(height*4)
- turtle.select(1)
- while blocks ~= 0 do
- if blocks >= 64 then
- turtle.suckDown(64)
- blocks = blocks-64
- turtle.select(turtle.getSelectedSlot()+1)
- else
- turtle.suckDown(blocks)
- blocks = 0
- turtle.select(1)
- end
- end
- turtle.forward()
- for i = 1, height do
- for n = 0, 3 do
- for t = 0, width do
- turtle.forward()
- if turtle.getItemCount(turtle.getSelectedSlot()) == 0 then
- turtle.select(turtle.getSelectedSlot()+1)
- end
- turtle.placeDown()
- end
- turtle.turnRight()
- end
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement