MrDj200

ElevatorReceiver

Jul 21st, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1.  
  2. --The side the elevator block is (or the redstone line going to the block)
  3. -- ( "bottom" | "top" | "back" | "front" | "right" | "left" )
  4. elevatorSide = "right"
  5.  
  6. -- The side the Wireless Modem sits on the Computer
  7. -- ( "bottom" | "top" | "back" | "front" | "right" | "left" )
  8. rednetSide = "top"
  9.  
  10. term.clear()
  11. print("The computer ID is: "..os.getComputerID())
  12.  
  13. while true do
  14.     rednet.open(rednetSide)
  15.     rednet.receive()
  16.     rs.setOutput(elevatorSide, true)
  17.     sleep(1)
  18.     rs.setOutput(elevatorSide, false)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment