Advertisement
Guest User

farmCtrl

a guest
Feb 1st, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. mon0 = peripheral.wrap("monitor_0")
  2. mon1 = peripheral.wrap("monitor_1")
  3. mon2 = peripheral.wrap("monitor_2")
  4. mon3 = peripheral.wrap("monitor_3")
  5.  
  6. function monitor_1()
  7.  
  8. end
  9.  
  10.  
  11. function monitor_2()
  12.  
  13. end
  14.  
  15.  
  16. function monitor_3()
  17.  
  18. end
  19.  
  20.  
  21. function monitor_4()
  22.  
  23. end
  24.  
  25.  
  26. while true do
  27.  event, side, xPos, yPos = os.pullEvent("monitor_touch")
  28.  
  29.  if side == "monitor_0" then
  30.   monitor_0()
  31.  elseif side == "monitor_1" then
  32.   monitor_1()
  33.  elseif side == "monitor_2" then
  34.   monitor_2()
  35.  elseif side == "monitor_3" then
  36.   monitor_3()
  37.  end
  38.  
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement