kinderrs

Natura Cotton Seed Locator

Nov 21st, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. -- Finding cotton seeds 101
  2. -- First off, for some reason they are listed as "Natura:barley.seeds"
  3.  
  4. local found = 0
  5.  
  6. for n=1,16 do
  7.   invData = turtle.getItemDetail(n)
  8.   if invData then
  9.      if (invData.name == "Natura:barley.seed") then
  10.         turtle.select(n)
  11.         found = n
  12.      end
  13.   end
  14. end
  15.  
  16. if found > 0 then
  17.   print("Found the seeds in slot: "..found)
  18. else
  19.   print("No seeds, no crops!")
  20. end
Advertisement
Add Comment
Please, Sign In to add comment