Advertisement
Guest User

Spoor.lua

a guest
Feb 17th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.83 KB | None | 0 0
  1. print("start")
  2. function row()
  3.     turtle.refuel()
  4.     turtle.back()
  5.     turtle.select(2)
  6.     turtle.place()
  7.     turtle.turnLeft()
  8.     turtle.forward()
  9.     turtle.turnRight()
  10.     turtle.place()
  11.     turtle.turnLeft()
  12.     turtle.forward()
  13.     turtle.turnRight()
  14.     turtle.place()
  15.     turtle.turnLeft()
  16.     turtle.forward()
  17.     turtle.turnRight()
  18.     turtle.place()
  19.     turtle.turnRight()
  20.     turtle.forward()
  21.     turtle.forward()
  22.     turtle.forward()
  23.     turtle.forward()
  24.     turtle.turnLeft()
  25.     turtle.place()
  26.     turtle.turnRight()
  27.     turtle.forward()
  28.     turtle.turnLeft()
  29.     turtle.place()
  30.     turtle.select(3)
  31.     turtle.up()
  32.     turtle.place()
  33.     turtle.down()
  34.     turtle.turnRight()
  35.     turtle.forward()
  36.     turtle.turnLeft()
  37.     turtle.select(2)
  38.     turtle.place()
  39.     turtle.select(5)
  40.     turtle.up()
  41.     turtle.place()
  42.     turtle.select(4)
  43.     turtle.up()
  44.     turtle.place()
  45.     turtle.up()
  46.     turtle.select(3)
  47.     turtle.place()
  48.     turtle.turnLeft()
  49.     turtle.forward()
  50.     turtle.forward()
  51.     turtle.forward()
  52.     turtle.forward()
  53.     turtle.forward()
  54.     turtle.forward()
  55.     turtle.turnRight()
  56.     turtle.place()
  57.     turtle.select(4)
  58.     turtle.down()
  59.     turtle.place()
  60.     turtle.down()
  61.     turtle.select(5)
  62.     turtle.place()
  63.     turtle.turnRight()
  64.     turtle.forward()
  65.     turtle.turnLeft()
  66.     turtle.select(3)
  67.     turtle.place()
  68.     turtle.turnRight()
  69.     turtle.forward()
  70.     turtle.forward()
  71.     turtle.turnLeft()
  72.     turtle.place()
  73.     turtle.down()
  74. end
  75.  
  76.  
  77. function check()
  78.     for i= 1, 4 do
  79.         turtle.select(i)
  80.         C = turtle.getItemCount()
  81.         if C < 32 then
  82.             turtle.up()
  83.             turtle.select(16)
  84.             turtle.placeDown()
  85.             turtle.suckDown()
  86.             turtle.dig()
  87.    
  88.    
  89. check()            
  90. row()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement