Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- turtle.refuel()
- for n = 1,args[1],1
- do
- turtle.digDown()
- turtle.down()
- end
- for w =1,args[3],1
- do
- for u = 1,args[2],1
- do
- for i = 1,args[2],1
- do
- turtle.dig()
- turtle.forward()
- end
- if u%2 ~= 0
- then
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- if args[2]%2 ~= 0
- then
- for i = 1,args[2],1
- do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- for i = 1,args[2],1
- do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- else
- turtle.turnLeft()
- for i = 1,args[2],1
- do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- end
- turtle.digDown()
- turtle.down()
- end
- for n = 1,args[1]+args[3],1
- do
- turtle.digUp()
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement