MaLittlePwny

Untitled

Sep 25th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local tArgs = { ... }
  2. -- check number of arguments
  3. if #tArgs < 2 or #tArgs > 3 then
  4. error("Usage: boden <tiefe> <breite>")
  5. end
  6. depth = tonumber(tArgs[1])
  7. width = tonumber(tArgs[2])
  8. checkedSlot = 1
  9. for i = 0, width do
  10. -- Code here...
  11. for b = 0, depth do
  12. -- Code here...
  13. turtle.select(checkedSlot)
  14. turtle.digDown()
  15. turtle.placeDown()
  16. turtle.forward()
  17. if turtle.getItemCount(checkedSlot) == 0 then
  18. -- Code here...
  19. checkedSlot = checkedSlot + 1
  20. end
  21. b = b + 1
  22. end
  23. i = i + 1
  24. turtle.turnRight()
  25. turtle.forward()
  26. turtle.turnRight()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment