Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. -- a turtle makes mundatis
  2.  
  3. mc="minecraft:"
  4. wc="witchery:ingredient"
  5.  
  6. function findAndDrop(name,itemID, )
  7. while getThingy() do
  8. n = turtle.getItemDetail().name
  9. d = turtle.getItemDetail().damage
  10. print("n is "..n)
  11. if name == n then
  12. if itemID == d then
  13. turtle.dropDown()
  14. else
  15. putThingy()
  16. end
  17. else
  18. putThingy()
  19. end
  20. end
  21. end
  22.  
  23. if turtle.suck() then
  24. getThingy=turtle.suck
  25. putThingy=turtle.dropUp
  26. turtle.drop()
  27. print("Input from front chest")
  28. elseif turtle.suckUp() then
  29. getThingy=turtle.suckUp
  30. putThingy=turtle.drop
  31. turtle.dropUp()
  32. print("Input from top chest")
  33. end
  34.  
  35. findAndDrop(wc, 22)
  36. findAndDrop(wc, 31)
  37. findAndDrop(mc.."egg", 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement