Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local InputArgs = {...}
- if #InputArgs ~= 1 then
- print("Usage: farm <size>")
- return
- end
- local function checkToPlace()
- for i = 1, 16 do
- local slotName = turtle.getItemDetail(i).name
- if slotName:match("seed") then
- return i
- end
- end
- return false
- end
- for i = 1, InputArgs[1] do
- for j = 1, InputArgs[1] do
- turtle.dig()
- local slotWSeeds = checkToPlace()
- if slotWSeeds then
- end
- turtle.forward()
- end
- turtle.left()
- turtle.forward()
- turtle.left()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement