Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- while true do
- destination = "false"
- incId, incMessage = rednet.receive("tele")
- for i = 1,16 do
- if turtle.getItemCount(i) > 0 then
- itemInfo = turtle.getItemDetail(i)
- if itemInfo.name == incMessage then
- destination = tostring(i)
- end
- end
- end
- if destination <> "false" then
- rednet.send(incId, "true", "tele")
- turtle.select(destination)
- turtle.drop()
- sleep(5)
- turtle.suck()
- end
- end
Add Comment
Please, Sign In to add comment