Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local pocketID = 1085 --# ID of the pocket computer
  2. rednet.open("side")
  3.  
  4. while true do --# Run this code forever
  5. local senderID , message = rednet.recieve() --# Waits for a message
  6.  
  7. if senderID == pocketID then --# Makes sure the sender was the pocket computer (This is easy to fake though)
  8. if message == "REDSTONE" then
  9.  
  10. --# Do the thing you need to
  11.  
  12. end
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement