Advertisement
Guest User

wrapper

a guest
Aug 20th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. modem = peripheral.wrap("right")
  2. while true do
  3. modem.open(5295)
  4. event, s, ch, rch, msg, d = os.pullEvent("modem_message")
  5. if ch == 5295 and msg == "start platform" then
  6.   shell.run("buildP")
  7.   modem.transmit(5295, 5295, "platform done")
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement