MaLittlePwny

Untitled

Sep 25th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 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. if turtle.getItemCount(checkedSlot) == 0 then
  17. -- Code here...
  18. checkedSlot = checkedSlot + 1
  19. end
  20. b = b + 1
  21. end
  22. i = i + 1
  23. turtle.turnRight()
  24. turtle.forward()
  25. turtle.turnRight()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment