Advertisement
kh204745

Station Computer

May 3rd, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. rnSide = "left"
  2. rsSide = "back"
  3.  
  4. function screen()
  5.     term.clear()
  6.     term.setCursorPos(1,1)
  7.     if sitting and docked then
  8.    
  9.         print("")
  10.     end
  11. end
  12.  
  13. while true do
  14.     screen()
  15.     local e, p1, p2, p3 = os.pullEventRaw() --Wait for input
  16.     if e == "redstone" then
  17.         if rs.testBundledInput(rsSide, colors.white) then
  18.             docked = 1
  19.             else
  20.             docked = 0
  21.         end
  22.         if rs.testBundledInput(rsSide, colors.orange) then
  23.             sitting = 1
  24.             else
  25.             sitting = 0
  26.         end
  27.     end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement