Advertisement
guitarplayer616

1920x1080 Monitor Instruction

Jun 28th, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. -- 12 x 12 (8 x 6) Monitors
  2. --1.5 stacks per row
  3. --6 rows = 9 stacks
  4.  
  5. for _,v in ipairs(peripheral.getNames()) do
  6.         if peripheral.getType(v)=="modem" then
  7.                 rednet.open(v)
  8.         end
  9. end
  10.  
  11. shell.run("clear")
  12. print("Fill invSlots 1-9 with Stacks of Monitors")
  13. print("Fill other invSlot with fuel equal to 582 fuel ie. 8 coal or 1 coalblock")
  14. print("Waiting for Rednet Signal")
  15. coroutine.yield("modem_message")
  16.  
  17. shell.run("refuel all")
  18. local sel = 1
  19. turtle.select(sel)
  20.  
  21. function rightRow()
  22.     for i = 1 , 12 * 8 do
  23.         if not turtle.place() then
  24.             sel = sel + 1
  25.             turtle.select(sel)
  26.         end
  27.         shell.run("go rt fd lt")
  28.     end
  29.     turtle.up()
  30.     shell.run("go lt fd rt")
  31. end
  32.  
  33. function leftRow()
  34.     for i = 1 , 12 * 8 do
  35.         if not turtle.place() then
  36.             sel = sel + 1
  37.             turtle.select(sel)
  38.         end
  39.         shell.run("go lt fd rt")
  40.     end
  41.     turtle.up()
  42.     shell.run("go rt fd lt")
  43. end
  44.  
  45. for i=1,3 do
  46.   rightRow()
  47.   leftRow()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement