Advertisement
Guest User

startup.lua

a guest
Jun 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. id = 8
  2. term.setBackgroundColor(colours.green)
  3. x, y = term.getSize()
  4. term.clear()
  5. term.setCursorPos((x-6)/2, y/2)
  6. term.write("Toggle")
  7. rednet.open("back")
  8. while true do
  9.     event, p1, p2 = os.pullEvent()
  10.     if event == "mouse_click" then
  11.         rednet.send(id, "open")
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement