Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function slice()
- while turtle.detectUp() do
- turtle.digUp()
- end
- turtle.turnRight()
- while turtle.detect() do
- turtle.dig()
- end
- turtle.turnLeft()
- while turtle.detectDown() do
- turtle.digDown()
- end
- turtle.turnLeft()
- while turtle.detect() do
- turtle.dig()
- end
- turtle.turnRight()
- while turtle.detect() do
- turtle.dig()
- end
- turtle.forward()
- end
- function chest()
- turtle.back()
- if turtle.detectDown() then
- turtle.digDown()
- end
- turtle.select(2)
- turtle.placeDown()
- for i = 16,3,-1 do
- turtle.select(i)
- turtle.dropDown()
- end
- turtle.forward()
- end
- function torch()
- turtle.select(1)
- turtle.back()
- if turtle.detectDown == false then
- turtle.placeDown()
- else
- turtle.digDown()
- turtle.placeDown()
- end
- turtle.forward()
- end
- print("1 = torches")
- print("2 = chests")
- for i=1, 640, 1 do
- if i%13 == 0 then
- torch()
- end
- if turtle.getItemCount(16) > 0 then
- chest()
- end
- slice()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement