Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- found = 0
- function deploy()
- turtle.select(1)
- turtle.placeDown()
- end
- function clearInv()
- for i = 1,10 do
- while turtle.getItemCount(i) > 0 do
- found = 1
- turtle.select(i)
- turtle.dropDown()
- end
- end
- turtle.select(1)
- end
- function getMiner()
- turtle.select(1)
- while turtle.getItemCount(1) > 0 do
- clearInv()
- end
- turtle.digDown()
- end
- deploy()
- sleep(10)
- clearInv()
- while found > 0 do
- found = 0
- clearInv()
- sleep(3)
- end
- getMiner()
- rednet.open( "right" )
- rednet.broadcast( "cycleDone" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement