Advertisement
jimthenerd1999

Untitled

Jul 9th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --shell.run("fg traffic")
  2. rednet.open("top")
  3.  
  4. data1 = {"$STATION_DISPLAY", "Forest Station", "monitor_3", ""}
  5. data2 = {"$STATION_DISPLAY", "Forest Station", "monitor_4", ""}
  6. data3 = {"$STATION_DISPLAY", "Forest Station", "monitor_5", ""}
  7. data4 = {"$STATION_DISPLAY", "Forest Station", "monitor_6", ""}
  8.  
  9. --data2 = {"$TRAFFIC", "train_1"}
  10.  
  11. while true do
  12.   sleep(0.5)
  13.  
  14.   if (redstone.getInput("front")) then
  15.     rednet.broadcast(textutils.serialize(data1))
  16.     rednet.broadcast(textutils.serialize(data2))
  17.     rednet.broadcast(textutils.serialize(data3))
  18.     rednet.broadcast(textutils.serialize(data4))  
  19.     --rednet.broadcast(textutils.serialize(data2))
  20.     print("Sensor Triggered")
  21.   end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement