Advertisement
Guest User

asd

a guest
Jul 23rd, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. os.loadAPI("button")
  2. m = peripheral.wrap("top")
  3. m.clear()
  4.  
  5. function fillTable()
  6.     button.setTable("Workshop",workshop,3,17,1,3)
  7.     button.screen()
  8. end
  9.  
  10. function pulse()
  11.  local events = {os.pullEvent()}
  12.  if events[1] == "toggleButton("Workshop")" then
  13.              rs.setOutput("back", true)
  14.  end            
  15. end
  16.  
  17. function getClick()
  18.     event,side,x,y = os.pullEvent("monitor_touch")
  19.     button.checkxy(x, y)
  20. end
  21.  
  22. function workshop()
  23.     button.toggleButton("Workshop")
  24. --all underneath this you can edit the fuction to you own needs.
  25. pulse()
  26.    
  27. end
  28.  
  29. fillTable()
  30. button.heading("Teleporting System")
  31. while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement