Advertisement
Guest User

TeleportingSystem

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