Advertisement
VaMinion

water_soak

Dec 11th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. turtlePos = vector.new(1,48,1)
  2.  
  3. -- Y Soak
  4. while turtlePos.y >= 5 do
  5.  
  6. -- Turn around!
  7. turtle.turnRight()
  8. turtle.turnRight()
  9.  
  10. -- X Soak
  11.  while turtle.forward() do
  12.   turtlePos.x = turtlePos.x + 1
  13.   if (turtlePos.x%3) == 0 then
  14.    turtle.placeDown()
  15.    turtle.digDown()
  16.   end
  17.   if turtle.detect() and turtlePos.x < 62 then turtle.dig() end
  18.  end
  19.  
  20.  -- Move down 5
  21.  for i=1,5 do
  22.   turtle.down()
  23.   turtlePos.y = turtlePos.y - 1
  24.  end
  25.  
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement