Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem")
- if (modem == nil) then
- print("no modem link")
- return
- end
- modem.open(1)
- local function sendToTop()
- modem.transmit(0, 1, "take change")
- end
- local function redstoneCheck()
- while true do
- os.pullEvent("redstone")
- printf("redstone")
- switch()
- end
- end
- redstoneCheck()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement