Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("top")
- m.clear()
- function fillTable()
- button.setTable("Workshop",workshop,3,17,1,3)
- button.screen()
- end
- function pulse()
- local events = {os.pullEvent()}
- if events[1] == "toggleButton("Workshop")" then
- rs.setOutput("back", true)
- end
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x, y)
- end
- function workshop()
- button.toggleButton("Workshop")
- --all underneath this you can edit the fuction to you own needs.
- pulse()
- end
- fillTable()
- button.heading("Teleporting System")
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement