Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("MineAPI")
- local isDown = true
- local mainWidth = 3
- local mainHeight = 3
- local mainDept = 20
- local branchDept = 5
- local branchHeight = 2
- local mainWidth = 2
- function tunnel()
- for i = 0, mainDept - 1 do
- MineAPI.forward()
- if i%2==0 then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- for y = 0, mainWidth - 1 do
- if mainHeight == 2 then
- MineAPI.digDown()
- elseif mainHeight == 3 then
- MineAPI.digDown()
- MineAPI.digUp()
- else
- if y%2==0 then
- MineAPI.digDown()
- else
- MineAPI.digUp()
- end
- for z = 0, mainHeight - 4 do
- if y%2==0 then
- MineAPI.moveUp()
- else
- MineAPI.moveDown()
- end
- end
- if y%2==1 then
- MineAPI.digDown()
- else
- MineAPI.digUp()
- end
- end
- if y ~= mainWidth - 1 then
- MineAPI.forward()
- end
- end
- if i%2==1 then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- end
- end
- MineAPI.moveUp()
- tunnel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement