Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Main Function
- function Main()
- if turtle.getFuelLevel() <= 10 then
- turtle.select(1)
- while turtle.getItemCount() <= 2 do
- turtle.down()
- end
- turtle.refuel()
- print("Refuled: " .. turtle.getFuelLevel() .. " move")
- end
- turtle.select(3)
- while turtle.compare() do
- turtle.dig()
- if turtle.detectUp() then
- turtle.digUp()
- end
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- turtle.select(2)
- turtle.place()
- checkup()
- end
- function checkup()
- turtle.select(1)
- while turtle.getItemCount() <= 2 do
- turtle.down()
- end
- turtle.select(2)
- while turtle.getItemCount() <= 2 do
- turtle.down()
- end
- turtle.select(3)
- while not turtle.getItemCount() == 64 do
- turtle.down()
- end
- end
- while 0 == 0 do
- Main()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement