Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.unloadAPI("button")
- os.loadAPI("button")
- m = peripheral.wrap("top")
- m.clear()
- rednet.open("right")
- function fillTable()
- button.setTable("Steak",steak,10,20,3,5)
- button.setTable("Porkchop",porkchop,22,32,3,5)
- button.setTable("Apple",apple,34,44,3,5)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function Steak()
- button.toggleButton()
- rednet.send(20,"Steak")
- sleep(1)
- button.toggleButton()
- end
- fillTable()
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement