Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- slot = 1
- function floor1()
- for x=1, 10, 1 do
- placeFloor()
- turnRight()
- placeFloor()
- turnLeft()
- end
- end
- function placeFloor()
- placeDown()
- for x=1, 41, 1 do
- turtle.forward()
- placeDown()
- end
- end
- function place()
- inventory()
- turtle.place()
- end
- function placeUp()
- inventory()
- turtle.placeUp()
- end
- function placeDown()
- inventory()
- turtle.placeDown()
- end
- function turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- function turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function inventory()
- if turtle.getItemCount(slot) == 0 then
- slot = slot + 1
- end
- turtle.select(slot)
- end
- print("- place me in the backleft corner, of the left column")
- print("- fill me up with roof building block")
- print("- type anything and press enter when ready")
- io.read()
- turtle.up()
- for x=1, 14, 1 do turtle.back() end
- turtle.turnLeft()
- for x=1, 14, 1 do turtle.forward() end
- turtle.turnRight()
- floor1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement