Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //1st slot should be a bucket, 2nd slot should be a tank, 3rd slot should be an ender chest
- t = turtle
- function f()
- if t.detect() then
- t.dig()
- t.forward()
- else
- t.forward()
- end
- end
- function d()
- if t.detectDown() then
- t.digDown()
- t.down()
- else
- t.down()
- end
- end
- function refuel()
- if t.getFuelLevel() == 0 then
- while t.getFuelLevel < t.getFuelLimit() do
- pleaseRefill()
- end
- end
- end
- function store()
- if t.getItemCount(16) > 0 then
- pleaseStore()
- end
- end
- function pleaseRefuel()
- t.select(1)
- t.placeUp()
- t.suckUp()
- t.refuel()
- t.digUp()
- end
- function pleaseStore()
- t.select(2)
- t.digUp()
- t.placeUp()
- num = 3
- while num < 17 do
- t.select(num)
- t.dropUp()
- end
- t.digUp()
- end
- function checkers()
- pleaseStore()
- pleaseRefuel()
- end
- function quarry()
- x = 16
- z = 16
- while x > 1 do
- while z > 1 do
- checkers()
- f()
- end
- t.turnRight()
- f()
- t.turnRight()
- end
- d()
- end
- quarry()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement