Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pocketID = 1085 --# ID of the pocket computer
- rednet.open("side")
- while true do --# Run this code forever
- local senderID , message = rednet.recieve() --# Waits for a message
- if senderID == pocketID then --# Makes sure the sender was the pocket computer (This is easy to fake though)
- if message == "REDSTONE" then
- --# Do the thing you need to
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement