Advertisement
Marlingaming

Signal tester for create (Receiver)

Sep 1st, 2021 (edited)
1,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. local wireless = peripheral.wrap("top")
  2. rednet.open("top")
  3. while true do
  4.     local id, message, protocol = rednet.receive()
  5.     if message == "hey" then
  6.         fs.open("Working","w")
  7.         fs.write("this works")
  8.         fs.close()
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement