Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.close("right")
- rednet.open("right")
- rednet.broadcast("lol")
- print("XD")
- local id, message = rednet.receive()
- print("Do you want to accept this pc to control you? (Type accept if you want that)")
- bool = read()
- if bool == "accept" then
- rednet.send(id, "accepted")
- else
- term.clear()
- term.setCursorPos(1,1)
- --break
- end
- while true do
- local id, message = rednet.receive()
- if message == "rtrue" then
- redstone.setOutput("left", true)
- else if message == "rfalse" then
- redstone.setOutput("left", false)
- end
- end
- sleep(1/10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement