Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getBlock()
- turtle.turnRight()
- turtle.suck()
- turtle.turnLeft()
- end
- function placeDig()
- turtle.place()
- turtle.dig()
- end
- function dumpSword()
- turtle.turnLeft()
- turtle.turnLeft()
- while not turtle.drop() do
- print("Inventory is full....")
- sleep(10)
- end
- turtle.turnRight()
- turtle.turnRight()
- getBlock()
- end
- function checkSlot()
- if (turtle.getItemCount(1)) == 0 then
- getBlock()
- else
- if (turtle.compareTo(16)) then
- dumpSword()
- end
- end
- end
- function run()
- turtle.select(1)
- while true do
- checkSlot()
- placeDig()
- end
- end
- run()
Advertisement
Add Comment
Please, Sign In to add comment