Advertisement
Darking560

detector

Apr 2nd, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local stair = 0
  2. local masterd = 1
  3.  
  4. rednet.open("back")
  5.  
  6. while true do
  7.   event, id, message = os.pullEvent("rednet_message")
  8.   if id == masterd then
  9.      if redstone.getInput("front") == true then
  10.          rednet.send(masterd, "true")
  11.              print(stair.." : oui")
  12.      else
  13.          rednet.send(masterd, "false")
  14.              print(stair.." : non")
  15.      end
  16.   end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement