Advertisement
Guest User

startup

a guest
Oct 27th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. rednet.open("back")
  2. while true dofile(
  3.   local right = rs.getInput("right")
  4.   local left = rs.getInput("left")
  5.   if right then
  6.     print("Train coming from right")
  7.     rednet.send(
  8.   elseif left then
  9.     print("Train coming from left")
  10.     rs.setOutput("front",true)
  11.   end
  12. os.pullEvent("redstone")
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement