Advertisement
BlueMarble

Lua CC Simple wall

Aug 23rd, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. x = 16
  2. z = 8
  3. function update()
  4.     shell.run("pastebin", "get", "YhK59cm5", "blockCheck")
  5.     shell.run("pastebin", "get", "2EkpdDpX", "fuelCheck")
  6. end
  7. function doubleCheck()
  8.     print("Checking fuel and blocks...")
  9.     shell.run("blockCheck")
  10.     shell.run("fuelCheck")
  11.     turtle.select(1)
  12. end
  13. function slab()
  14.     for i = 1, x, 1 do
  15.         turtle.up()
  16.         turtle.placeDown()
  17.     end
  18. end
  19. update()
  20. turtle.forward()
  21. for i = 1, z, 1 do
  22.     slab()
  23.     doubleCheck()
  24.     turtle.forward()
  25.     for i = 1, x, 1 do
  26.         turtle.down()
  27.     end
  28. end
  29. turtle.turnLeft()
  30. turtle.forward()
  31. turtle.turnLeft()
  32. for i = 0, z, 1 do
  33.     turtle.forward()
  34. end
  35. turtle.turnLeft()
  36. turtle.forward()
  37. turtle.turnLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement