Advertisement
LegarsStyler

Reactor_Click

Apr 12th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local m = peripheral.wrap("right")
  2. local c = peripheral.wrap("BigReactors-Reactor_1")
  3.  
  4. while true do
  5. event, button, x, y = os.pullEvent("monitor_touch")
  6. co = (x.." "..y)
  7.  
  8. if (co == ("28 1")) or (co == ("27 1")) or (co == ("26 1")) or (co == ("25 1")) or (co == ("24 1")) then
  9. c.setActive (false)
  10. elseif (co == ("20 1")) or (co == ("21 1")) or (co == ("22 1")) or (co == ("23 1")) then
  11. c.setActive (true)
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement