Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- function waitMSG()
- event, senderId, message, distance = os.pullEvent("rednet_message")
- print("Abrindo Portal n: "..message)
- doJob(message)
- end
- function doJob(id)
- setBook(id)
- sleep(10)
- getBook(id)
- end
- function getBook(id)
- turtle.select(id)
- turtle.suck()
- end
- function setBook(id)
- turtle.select(id)
- turtle.drop()
- end
- while true do
- waitMSG()
- end
Add Comment
Please, Sign In to add comment