toast_account_i_made

CakesoftCAPTAINMINER

Jun 25th, 2021 (edited)
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local modem = peripheral.find("modem")
  2. modem.open(8972)
  3.  
  4. local termArgs = {...} --Dist to go
  5.  
  6. function BootupRight()
  7. local comp = peripheral.wrap("right")
  8. comp.turnOn()
  9. end
  10.  
  11. local wait = true
  12.  
  13. while wait do
  14. local event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  15. if message == "FINBOOT" then
  16.  
  17. os.sleep(0.5)
  18.  
  19. modem.transmit(8972, 8972, "no args set up")
  20.  
  21. os.sleep(1)
  22.  
  23. modem.transmit(8972, 8972, ("MF "..termArgs[1]))
  24. end
  25. end
Add Comment
Please, Sign In to add comment