Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write("Enter Length/Width of Cube: ")
- local len = tonumber(read())
- local leng = 0
- local side = 0
- local eoo = 1
- local x = 1
- write("Enter Height of Cube: ")
- local hei = tonumber(read())
- local heig = 0
- for heig = 0, hei do
- for i = 1, len do
- for leng = x, len do
- turtle.dig()
- turtle.forward()
- end
- if eoo % 2 == 1 then
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- eoo = eoo + 1
- end
- x = 1
- turtle.digUp()
- turtle.up()
- if len % 2 == 1 then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment