Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- if #tArgs ~= 1 then
- print( "Usage: Boden <rows>" )
- return
- end
- local rows = tonumber( tArgs[1] )
- function items()
- local items = turtle.getItemCount()
- if items == 0
- turtle.select(2)
- end
- end
- function wand()
- turtle.digDown()
- turtle.placeDown()
- turtle.forward()
- items()
- end
- function turn()
- turtle.turnLeft()
- turtle.turnLeft()
- for i = 1, 16 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function work()
- for i = 1, 16 do
- wand()
- end
- turn()
- end
- for i = 1, rows do
- work()
- end
Advertisement
Add Comment
Please, Sign In to add comment