Justiik

Quarry Monitor

Sep 27th, 2021 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. while true do
  2. monitor = peripheral.wrap("left")
  3. modem = peripheral.wrap("right")
  4. text = monitor.write
  5. line = monitor.setCursorPos
  6. for i = 0,100,1
  7. do
  8. modem.open(i)
  9. end
  10. event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  11. ------------------------------------------
  12. line(1,1)
  13. text("Progress")
  14. line(23,1)
  15. text("Fuel")
  16. line(40,1)
  17. text("Quarry name")
  18. line(0,2)
  19. text("====================================================")
  20. -------------------------------------------!
  21. if senderChannel<2
  22. then turtleid = 3
  23. else turtleid = senderChannel+2
  24. end
  25. line(1,turtleid)
  26. text(message)
  27. end
Add Comment
Please, Sign In to add comment