Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Dig()
- while(turtle.detect()) do
- turtle.dig()
- end
- end
- function PlaceChestUp()
- turtle.select(2)
- while turtle.placeUp() == false do
- turtle.digUp()
- end
- end
- function DumpInventory()
- if(turtle.getItemCount(12) > 0)then
- PlaceChestUp()
- for i = 3, 13 do
- turtle.select(i)
- turtle.dropUp()
- end
- turtle.select(2)
- turtle.digUp()
- end
- end
- function EmptyChest()
- while(turtle.suck()) do
- DumpInventory()
- end
- end
- function CheckForChestFront()
- turtle.select(13)
- if(turtle.compare())then
- EmptyChest()
- end
- end
- EmptyChest()
- Dig()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement