Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function store()
- if turtle.getItemCount(16) > 0 then
- if turtle.getItemDetail(16)["name"] == "enderstorage:ender_chest" then
- if turtle.getItemCount(15) > 0 then
- for x = 1,16 do
- turtle.select(x)
- if (turtle.getItemCount(x)) > 63 then
- turtle.select(16)
- repeat
- sleep(0.1)
- until (turtle.digUp()) == false
- turtle.digDown()
- turtle.placeUp()
- for x = 1,15 do
- turtle.select(x)
- turtle.dropUp()
- sleep(0.1)
- end
- turtle.select(16)
- turtle.digUp()
- end
- end
- end
- end
- end
- end
- function goForward()
- while (not turtle.forward()) do
- local success, data = turtle.inspect()
- if success and data["name"] == "forbidden_arcanus:stella_arcanum" then
- os.reboot()
- else
- turtle.dig()
- turtle.attack()
- sleep(0.1)
- end
- end
- end
- function dig()
- local success, data = turtle.inspectUp()
- if success and data["name"] == "forbidden_arcanus:stella_arcanum" then
- else
- repeat
- sleep(0.1)
- until not turtle.digUp()
- end
- local success, data = turtle.inspectDown()
- if success and data["name"] == "forbidden_arcanus:stella_arcanum" then
- else
- turtle.digDown()
- end
- goForward()
- end
- for x = 1,64 do
- dig()
- end
- turtle.turnRight()
- for x = 1,2 do
- dig()
- end
- turtle.turnLeft()
- for x = 1,3 do
- for x = 1,4 do
- dig()
- end
- turtle.turnLeft()
- dig()
- turtle.turnLeft()
- for x = 1,4 do
- dig()
- end
- turtle.turnRight()
- dig()
- turtle.turnRight()
- end
Add Comment
Please, Sign In to add comment