Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.wrap("right")
- m.clear()
- m.setCursorPos(1, 1)
- m.write("[Commands] [Rules]")
- m.setBackgroundColor(colors.lightBlue)
- m.setTextColor(colors.black)
- m.setCursorPos(1,2)
- m.write("[DUPA]")
- while true do
- local event, side, x, y = os.pullEvent("monitor_touch")
- if x >= 1 and x <= 10 and y == 1 then
- shell.run("commands")
- elseif x >= 13 and x <= 20 and y == 1 then
- shell.run("rules")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment