SHARE
TWEET

farm.lua

a guest Feb 17th, 2020 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local InputArgs = {...}
  2.  
  3. if #InputArgs ~= 1 then
  4.     print("Usage: farm <size>")
  5.     return
  6. end
  7.  
  8. local function checkToPlace()
  9.     for i = 1, 16 do
  10.        local slotName = turtle.getItemDetail(i).name
  11.        if slotName:match("seed") then
  12.            return i
  13.        end
  14.     end
  15.     return false
  16. end
  17.  
  18. for i = 1, InputArgs[1] do
  19.     for j = 1, InputArgs[1] do
  20.         turtle.dig()
  21.         local slotWSeeds = checkToPlace()
  22.         if slotWSeeds then
  23.            
  24.         end
  25.         turtle.forward()
  26.     end
  27.     turtle.left()
  28.     turtle.forward()
  29.     turtle.left()
  30. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top