Advertisement
Guest User

startup

a guest
May 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. rednet.open( "back" )
  2. local h = fs.open("log","w")
  3. while true do
  4.   redstone.setOutput("left",true)
  5.   redstone.setOutput("right",false)
  6.   tEvent = { os.pullEvent() }
  7.   if tEvent[1] == "rednet_message" then
  8.     if tEvent[2] == 6529 then
  9.       if tEvent[3] ~= "GravityCube" and tEvent[3] ~= "102112915" then
  10.         h.writeLine(tEvent[3])
  11.         h.flush()
  12.       end
  13.     end
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement