Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function store()
- if turtle.getItemDetail(16)["name"] == "enderstorage:ender_chest" and turtle.getItemCount(15) > 0 then
- turtle.select(16)
- repeat
- sleep(0.1)
- until turtle.digUp() == false
- turtle.placeUp()
- for x = 1,15 do
- turtle.select(x)
- if turtle.getItemCount(x) > 0 then
- if turtle.getItemDetail(x)["name"] == "minecraft:cobblestone" then
- turtle.select(x)
- turtle.dropDown()
- sleep(0.1)
- else
- turtle.select(x)
- turtle.dropUp()
- sleep(0.1)
- end
- end
- end
- turtle.select(16)
- turtle.digUp()
- end
- end
- function goForward()
- store()
- 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
- function branch()
- for x = 1,101 do
- dig()
- end
- turtle.turnLeft()
- for x = 1,3 do
- dig()
- end
- turtle.turnLeft()
- for x = 1,203 do
- dig()
- end
- turtle.turnRight()
- for x = 1,3 do
- dig()
- end
- turtle.turnRight()
- for x = 1,101 do
- dig()
- end
- end
- for y=1,10 do
- branch()
- end
Add Comment
Please, Sign In to add comment