Advertisement
Phemto

SeedSorter

Mar 30th, 2023 (edited)
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Separate out the seeds from the wheat and crops
  2.  
  3. pauseTime = 60
  4. wheatSlot = 1
  5.  
  6. --Start the program
  7. while (1) do
  8.     turtle.suckDown()
  9.     for s=1,16,1 do
  10.     turtle.select(s)
  11.     if turtle.getItemCount() > 0 then
  12.         data = turtle.getItemDetail()
  13.         if string.find(data.name,"seed") then
  14.             turtle.dropUp()
  15.             for i=1,64,1 do
  16.                 redstone.setOutput("top",true)
  17.                 sleep(0.2)
  18.                 redstone.setOutput("top",false)
  19.                 sleep(0.2)
  20.             end
  21.         else
  22.             turtle.drop()           --put it in the chest in front of the turtle
  23.         end
  24.     end
  25.     end
  26. end
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement