Yobi

Another try

Mar 4th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. nolapis = false
  3. lapis1 = turtle.getItemCount(5)
  4. lapis2 = turtle.getItemCount(6)
  5. lapis3 = turtle.getItemCount(9)
  6. lapis4 = turtle.getItemCount(10)
  7. if lapis1 < 2 then
  8. nolapis = true
  9. elseif lapis2 < 2 then
  10. nolapis = true
  11. elseif lapis3 < 2 then
  12. nolapis = true
  13. elseif lapis4 < 2 then
  14. nolapis = true
  15. end
  16. if nolapis == true then
  17. print("No lapis!")
  18. sleep(1)
  19. end
  20. if nolapis == false then
  21. print("Crafting diamond!")
  22. if turtle.craft() == false then
  23. turtle.select(16)
  24. turtle.dropDown(16)
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment