Advertisement
Vorakh

Computercraft Turtle Carbonaio

Apr 25th, 2021 (edited)
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. --[[
  2. Slot 1: Wood : 8 pezzi
  3. Slot 2: Charcoal: 1 pezzo
  4. ]]
  5. local tArgs = {...}
  6. local cicli = tArgs[1]
  7.  
  8. for i=1,cicli do
  9.  
  10. -- Raccolta Wood da Chest
  11. turtle.turnLeft()
  12. turtle.select(1)
  13. turtle.suck(8)
  14.  
  15. -- Raccolta Charcoal da Chest
  16. turtle.turnRight()
  17. turtle.turnRight()
  18.  
  19. turtle.select(2)
  20. turtle.suck(1)
  21.  
  22. -- carica Wood nella Fornace
  23. turtle.turnLeft()
  24. turtle.up()
  25. turtle.up()
  26. turtle.forward()
  27.  
  28. turtle.select(1)
  29. turtle.dropDown(8)
  30.  
  31. -- Carica Charcoal nella Fornace
  32. turtle.back()
  33. turtle.down()
  34.  
  35. turtle.select(2)
  36. turtle.drop(2)
  37.  
  38. -- Recupero Carbonella Prodotta
  39. sleep(80)
  40. turtle.down()
  41. turtle.forward()
  42. turtle.select(2)
  43. turtle.suckUp()
  44.  
  45. turtle.back()
  46.  
  47. -- Deposito Legno nella Chest
  48. turtle.turnLeft()
  49. turtle.select(1)
  50. turtle.drop()
  51.  
  52. -- Deposito Charcoal nella Chest
  53. turtle.turnRight()
  54. turtle.turnRight()
  55.  
  56. for i = 2, 16 do
  57.     turtle.select(i)
  58.     turtle.drop()
  59. end
  60. turtle.turnLeft()
  61.  
  62. print("ciclo terminato")
  63. sleep(0.5)
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement