Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("top")
- rednet.open("bottom")
- m.clear()
- function fillTable()
- button.setTable("Workshop",workshop,2,3,10,6)
- button.screen()
- end
- function pulse()
- redstone.setOutput("back", true)
- sleep(0,5)
- redstone.setOutput("back", false)
- function getClick()
- event,side,x,y = pullEvent("monitor_touch")
- button.checkxy(x, y)
- end
- function workshop()
- button.flash()
- --all underneath this you can edit the fuction to you own needs.
- pulse()
- end
- fillTable()
- button.header("Teleporting System")
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement