Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- recieve = function()
- local senderId, message, protocol = rednet.receive()
- local senderId, message2, protocol = rednet.receive()
- for i=1, tonumber(message) do
- turtle.select(tonumber(message2))
- turtle.dropUp(1)
- end
- end
- fill = function()
- for i=1, 16 do
- turtle.suckDown()
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- term.write(os.getComputerID())
- while true do
- parallel.waitForAll(fill(), recieve())
- end
Advertisement
Add Comment
Please, Sign In to add comment