Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- if args[1] and args[2] then else
- print"Usage:"
- print"roofer numLines numTurn"
- return
- end
- args[1]=tonumber(args[1])-1
- args[2]=tonumber(args[2])-1
- turtle.select(1)
- local right
- for i=1,args[1] do
- for i=1,args[2] do
- if turtle.getItemCount(turtle.getSelectedSlot())==0 then
- turtle.select(turtle.getSelectedSlot()+1)
- print"ohhhh NOOOOO!!!!"
- end
- turtle.placeDown()
- turtle.forward()
- end
- if not right then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- right=not right
- end
Advertisement
Add Comment
Please, Sign In to add comment