Advertisement
Telerabi

Sterhimmel reset

Jul 8th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. rednet.open("right")
  2. p = 0
  3.  
  4. while true do
  5.     id, message = rednet.receive()
  6.     if message == "LampenImmer" then
  7.         p = p + 1
  8.         if p % 2 == 0 then
  9.             rs.setOutput("bottom", true)
  10.             sleep(0.5)
  11.             rs.setOutput("bottom", false)
  12.         end
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement