Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- print("Refuled!")
- function check_and_dig(block_name)
- local s
- local data
- while true do
- s, data = turtle.inspect()
- if s and data["name"] == block_name then
- turtle.dig()
- turtle.forward()
- return
- end
- end
- end
- bn = "botania:livingrock"
- check_and_dig(bn)
- for j=1,3 do
- for i=1,2 do
- check_and_dig(bn)
- end
- turtle.turnLeft()
- end
- check_and_dig(bn)
- turtle.forward()
- turtle.turnLeft()
- turtle.back()
- print("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement