Advertisement
Guest User

rednet

a guest
Nov 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. rednet.open("top")
  2. x = "0"
  3.  
  4. while x ~= "1" do
  5.  
  6. id,message = rednet.receive(10)
  7.  
  8.  if id == 14 and message == "open" then
  9.  redstone.setOutput("right",true)
  10.  end
  11.  
  12.  if id == 14 and message == "close" then
  13.  redstone.setOutput("right",false)
  14.  end
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement