Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- while true do
- command = read()
- if command == "search" then
- command = {}
- term.write("Enter item name: ")
- command["name"] = "search"
- command["item_name"] = read()
- rednet.broadcast(command, "commands")
- while true do
- sender, message, protocol = rednet.receive(1)
- if sender then
- print(sender)
- else
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement