mercwear

turtle nugget to ingot

Apr 21st, 2025 (edited)
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. local result, message, item_name = 0
  2. local turtle_selected_spot, i = 1
  3. local block_present, craft_outcome, info, item_count = 0
  4.  
  5.  
  6. print("Press CTRL+T to stop")
  7.  
  8.  
  9.  
  10. while true do --Always loop
  11. turtle.select(1)
  12. turtle.suckUp()
  13. turtle.select(2)
  14. turtle.suckUp()
  15. turtle.select(3)
  16. turtle.suckUp()
  17. turtle.select(5)
  18. turtle.suckUp()
  19. turtle.select(6)
  20. turtle.suckUp()
  21. turtle.select(7)
  22. turtle.suckUp()
  23. turtle.select(9)
  24. turtle.suckUp()
  25. turtle.select(10)
  26. turtle.suckUp()
  27. turtle.select(11)
  28. turtle.suckUp()
  29. craft_outcome = turtle.craft()
  30. if craft_outcome == false then
  31. --Clear inventory
  32. i = 1
  33. while i ~= 17 do
  34. turtle.select(i)
  35. turtle.dropDown()
  36. i = i + 1
  37. end
  38.  
  39. end
  40. if craft_outcome == true then
  41. turtle.dropDown()
  42. end
  43.  
  44. os.sleep(1) -- Sleep 1 second
  45. end
Advertisement
Add Comment
Please, Sign In to add comment