Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Mining turtle at level 13, 12, 11 and dump into chest at each path
- --Written by weezeranon for Boozecraft - Crackpack server
- --Ladders in slot 1
- --At least 15 Chests in slot 2
- function getReady(top) --Dig hole to layer 13
- height = top
- turtle.select(1) --Make sure ladders are in slot 1
- while height > 13 do
- turtle.digDown()
- turtle.down()
- height = height - 1
- turtle.dig()
- if turtle.place()==false then
- break
- end
- end
- end
- function digChannels()
- for i = 1,20 do --Layer 13 row
- turtle.dig()
- turtle.forward()
- end
- --turn around
- turtle.digDown()
- turtle.down()
- turtle.turnLeft()
- turtle.turnLeft()
- for i = 1,20 do --Layer 12 row
- turtle.dig()
- turtle.forward()
- end
- --turn around
- turtle.digDown()
- turtle.down()
- turtle.turnLeft()
- turtle.turnLeft()
- for i = 1,20 do --Layer 11 row
- turtle.dig()
- turtle.forward()
- end
- --place chest and empty items
- turtle.dig()
- turtle.digDown()
- turtle.down()
- turtle.dig()
- turtle.select(2) --Make sure chests are in slot 2
- turtle.place() --Place chest
- for i = 3,16 do
- turtle.select(i)
- turtle.drop()
- end
- end
- function returnToMain()
- turtle.up()
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- for i = 1,20 do
- turtle.forward()
- end
- end
- function moveToNext()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- end
- x = 0
- y = 0
- z = 0
- --
- --
- --Start of program
- --
- --
- --
- print("What is the Y coordinate of the Turtle?")
- write("Y: ")
- local input = tonumber(read())
- y = input
- climb = y - 13
- turtle.forward()
- getReady(y)
- --y = 13
- digChannels() --Dig main channel
- turtle.up()
- turtle.up()
- turtle.turnLeft()
- digChannels()
- for i = 1,6 do
- returnToMain()
- moveToNext()
- digChannels()
- end
- returnToMain()
- digChannels() --Start digging the right side
- for i = 1,6 do
- returnToMain()
- moveToNext()
- digChannels()
- end
- returnToMain()
- turtle.turnLeft()
- for i = 1,20 do --Exit to surface
- turtle.forward()
- end
- for i = 1,climb do
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement