Advertisement
mashen456

Untitled

Jan 2nd, 2015
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. local item
  2.  
  3. print("nach welchem item soll gesucht werden?)
  4. item = read()
  5. function(item)
  6.  
  7. Functionname=function(item)
  8.  
  9. local cslot = 1
  10. local citem
  11.  
  12.  
  13.  
  14.  
  15.  
  16. while citem ~= item do
  17. turtle.select(cslot)
  18. sleep (0.1)
  19. citem = turtle.getItemDetail(cslot)
  20. print("Item : ", citem.name, " found in slot : ", cslot)
  21. cslot = cslot + 1
  22. end
  23.  
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement