solidity

2high tunnel with floor

Jan 1st, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. -- 2high
  2. targs = { ... }
  3.  
  4. length = tonumber(targs[1])
  5.  
  6. for i = 1,length do
  7.     if not turtle.detectDown() then
  8.         turtle.placeDown()
  9.     end
  10.     if turtle.detectUp() then
  11.         turtle.digUp()
  12.     end
  13.     if turtle.detect() then
  14.         turtle.dig()
  15.     end
  16.     if i<length then
  17.         turtle.forward()
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment