Advertisement
Guest User

wall

a guest
Nov 27th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. local args={...}
  2. length=args[1]
  3. height=args[2]
  4. turtle.select(1)
  5. turtle.turnLeft()
  6. turtle.turnLeft()
  7. for heighti=1, height/3 do
  8.  turtle.placeDown()
  9.  turtle.placeUp()
  10.  for lengthi=1,length-1 do
  11.   turtle.back()
  12.   turtle.placeUp()
  13.   turtle.place()
  14.   turtle.placeDown()
  15.  
  16.   if lengthi % 16 ==0 then
  17.    for i=1,16 do
  18.     turtle.select(i)
  19.     turtle.transferTo(1)
  20.    end
  21.    turtle.select(1)
  22.   end
  23.  end
  24.  print("loop "..tostring(heighti).." traveled "..tostring(heighti*3).." blocks")
  25.  turtle.digUp()
  26.  turtle.up()
  27.  turtle.placeDown()
  28.  turtle.digUp()
  29.  turtle.up()
  30.  turtle.placeDown()
  31.  turtle.digUp()
  32.  turtle.up()
  33.  turtle.placeDown()
  34.  turtle.turnLeft()
  35.  turtle.turnLeft()
  36.  
  37.  for i=1,16 do
  38.   turtle.select(i)
  39.   turtle.transferTo(1)
  40.  end
  41.  turtle.select(1)
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement