SHARE
TWEET

startup

a guest May 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----------------------------------
  2. function Palivo()
  3.   if turtle.getFuelLevel() < 100 then
  4.     turtle.select(1)
  5.     turtle.refuel(2)
  6.   end
  7. end
  8. ----------------------------------
  9. function Nasat()
  10.   turtle.suck()
  11.   turtle.suckUp()
  12. end
  13. ----------------------------------
  14. function Vyklad()
  15.   for i=1,14 do
  16.     turtle.forward()
  17.   end
  18.   Nasat()
  19.   turtle.forward()
  20.   turtle.turnRight()
  21.   turtle.select(1)
  22.   for n=1,3 do
  23.     turtle.suck()
  24.   end
  25.   turtle.turnLeft()
  26.   turtle.turnLeft()
  27.   for i=1,9 do
  28.     turtle.select(i+3)
  29.     turtle.drop()
  30.   end
  31.   turtle.turnLeft()
  32.   for i=1,7 do
  33.     turtle.forward()
  34.   end
  35. end
  36. ----------------------------------
  37. function Strom()
  38.   turtle.select(3)
  39.   if turtle.compare() then
  40.     turtle.dig()
  41.     turtle.forward()
  42.     while turtle.compareUp() do
  43.       turtle.digUp()
  44.       turtle.up()
  45.     end
  46.     while turtle.detectDown() == false do
  47.       turtle.down()
  48.     end
  49.     turtle.back()
  50.     turtle.select(2)
  51.     turtle.place()
  52.     rednet.send(41, "wood")
  53.   end
  54. end
  55. ----------------------------------
  56. function GPS()
  57. end
  58. ----------------------------------
  59.  
  60. rednet.open("right")
  61. Palivo()
  62. GPS()
  63. while true do
  64.   for n=1,8 do
  65.     turtle.forward()
  66.     turtle.turnLeft()
  67.     Strom()
  68.     turtle.turnRight()
  69.     turtle.turnRight()
  70.     Strom()
  71.     turtle.turnLeft()
  72.     turtle.suck()
  73.     Palivo()
  74.   end
  75.   Nasat()
  76.   turtle.turnLeft()
  77.   turtle.turnLeft()
  78.   Vyklad()
  79. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top