Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.wrap("right")
- local c = peripheral.wrap("BigReactors-Reactor_1")
- while true do
- event, button, x, y = os.pullEvent("monitor_touch")
- co = (x.." "..y)
- if (co == ("28 1")) or (co == ("27 1")) or (co == ("26 1")) or (co == ("25 1")) or (co == ("24 1")) then
- c.setActive (false)
- elseif (co == ("20 1")) or (co == ("21 1")) or (co == ("22 1")) or (co == ("23 1")) then
- c.setActive (true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement