MihaMi

API

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