Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- -- check number of arguments
- if #tArgs < 2 or #tArgs > 3 then
- error("Usage: boden <tiefe> <breite>")
- end
- depth = tonumber(tArgs[1])
- width = tonumber(tArgs[2])
- checkedSlot = 1
- for i = 0, width do
- -- Code here...
- for b = 0, depth do
- -- Code here...
- turtle.select(checkedSlot)
- turtle.digDown()
- turtle.placeDown()
- if turtle.getItemCount(checkedSlot) == 0 then
- -- Code here...
- checkedSlot = checkedSlot + 1
- end
- b = b + 1
- end
- i = i + 1
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment