SemlerPDX

Minecraft ComputerCraft GPS Script1

Aug 6th, 2021 (edited)
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. -- SemSat1_
  2. -- GPS Communication Satellite Network #1
  3. -- by SemlerPDX Aug6th 2021
  4.  
  5. -- pastebin get sTX6sk4g startup
  6.  
  7. -- Set thisNode to equal this location on satellite:
  8. --   0=North 1=South 2=East 3=West
  9. local thisNode = --set 0-3
  10.  
  11. local modem = peripheral.wrap("bottom")
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. term.write("Node: SemSat1_")
  15. term.setCursorPos(1,2)
  16.  
  17. if thisNode == 0 then
  18.   shell.run("gps","host",646,372,255)
  19. elseif thisNode == 1 then
  20.   shell.run("gps","host",646,378,255)
  21. elseif thisNode == 2 then
  22.   shell.run("gps","host",649,375,252)
  23. elseif thisNode == 3 then
  24.   shell.run("gps","host",643,375,252)
  25. else
  26.   term.write("<error420> - node not set")
  27. end
Add Comment
Please, Sign In to add comment