Advertisement
LDDestroier

Block Lift MINE TURTLE

Dec 29th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. rednet.open("right")
  2. place = "down"
  3. dist = 40
  4.  
  5. while true do
  6.     id, msg = rednet.receive()
  7.     if msg == "togglelift" then
  8.  
  9.         if place == "down" then
  10.             for a = 1, dist, 1 do
  11.                 turtle.place()
  12.                 turtle.up()
  13.                 turtle.up()
  14.                 turtle.up()
  15.                 turtle.up()
  16.             end
  17.         else
  18.             for a = 1, dist, 1 do
  19.                 turtle.down()
  20.                 turtle.down()
  21.                 turtle.down()
  22.                 turtle.down()
  23.                 turtle.dig()
  24.             end
  25.         end
  26.  
  27.         if place == "down" then
  28.             place = "up"
  29.         else
  30.             place = "down"
  31.         end
  32.     end
  33.  
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement