Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local z={...}
- local a=z[3]
- local d=z[1]
- local e=z[2]
- local b=d-1
- local c=e-1
- function reset1()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- function up()
- turtle.up()
- turtle.placeDown()
- end
- function reset()
- turtle.forward()
- for i = 1, a do
- turtle.down()
- end
- end
- --program starts here
- turtle.forward()
- for i = 1,b do
- for j = 1,a do
- up()
- end
- reset()
- end
- reset1()
- for i = 1,c do
- for j = 1,a do
- up()
- end
- reset()
- end
- reset1()
- for i = 1,b do
- for j = 1,a do
- up()
- end
- reset()
- end
- reset1()
- for i = 1,c do
- for j = 1,a do
- up()
- end
- reset()
- end
Add Comment
Please, Sign In to add comment