Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function minecube()
- for i = 1 , 15 do
- turtle.digDown()
- turtle.forward()
- end
- end
- function turnright()
- turtle.turnRight()
- turtle.digDown()
- turtle.forward()
- turtle.turnRight()
- end
- function turnleft()
- turtle.turnLeft()
- turtle.digDown()
- turtle.forward()
- turtle.turnLeft()
- end
- function layer()--mines 1 layer of land 32*32
- for i = 1 , 8 do
- minecube()--Mines straigt 31 ends on block 32
- turnright()--resets so mine cube can go
- minecube()
- turnleft()
- minecube()
- turnright()
- end
- function downdig()
- for i = 1 , 10 do
- turtle.down()
- layer()
- end
- end
- function dropoff10()
- for i = 1 , x do
- turtle.up()
- end
- turtle.turnRight()
- turtle.turnRight()
- turtle.drop()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- turtle.select(4)
- turtle.drop()
- turtle.select(5)
- turtle.drop()
- turtle.select(6)
- turtle.drop()
- turtle.select(7)
- turtle.drop()
- turtle.select(8)
- turtle.drop()
- turtle.select(9)
- turtle.drop()
- turtle.select(10)
- turtle.drop()
- turtle.select(11)
- turtle.drop()
- turtle.select(12)
- turtle.drop()
- turtle.select(13)
- turtle.drop()
- turtle.select(14)
- turtle.drop()
- turtle.select(15)
- turtle.drop()
- turtle.select(16)
- turtle.refuel()
- turtle.select(1)
- turtle.turnRight()
- turtle.turnRight()
- end
- function minedown()
- downdig()
- dropoff10()
- end
- function gobottom()
- for i = 1 , x do
- turtle.down()
- end
- end
- end
- local x = 10
- minedown()
- gobottom()
- print(x)
- x = x + 10
- print(x)
- minedown()
- gobottom()
- x = x + 10
- print(x)
- minedown()
- gobottom()
- x = x + 10
- minedown()
Add Comment
Please, Sign In to add comment