mercwear

CC Ore Double

Apr 9th, 2025 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. print("Press CTRL+T to stop")
  2. turtle.select(1)
  3.  
  4. while true do
  5. turtle.select(1)
  6. if turtle.getItemCount(1) == 1 and turtle.getItemCount(2) > 0 then
  7. turtle.craft()
  8. turtle.select(2)
  9. turtle.drop()
  10. turtle.select(3)
  11. turtle.drop()
  12.  
  13. end
  14. local item_details = turtle.getItemDetail(1)
  15.  
  16. if item_details == nil then
  17. turtle.suckUp()
  18. else
  19. if item_details.name ~= "alltheores:invar_ore_hammer" then --Hammer name will need to be changed if using diff hammer type
  20. turtle.select(1)
  21. turtle.drop()
  22. turtle.suckUp()
  23. turtle.select(2)
  24. turtle.drop()
  25. turtle.select(3)
  26. turtle.drop()
  27. end
  28. end
  29.  
  30. if turtle.getItemCount(1) == 0 then
  31. turtle.select(1)
  32. turtle.suckUp()
  33. end
  34.  
  35. if turtle.getItemCount(1) == 0 then
  36. print("Hammer chest (above) checking again in 10 seconds (Press CTRL+T to exit).")
  37. os.sleep(10) -- Sleep 1 second
  38. end
  39.  
  40. if turtle.getItemCount(2) == 0 then
  41. turtle.select(2)
  42. turtle.suckDown()
  43. end
  44. if turtle.getItemCount(2) == 0 then
  45. print("Raw ore chest (below) empty, checking again in 10 seconds (Press CTRL+T to exit).")
  46. os.sleep(10) -- Sleep 1 second
  47. end
  48. end
  49.  
  50.  
Advertisement
Add Comment
Please, Sign In to add comment