Advertisement
Ezteyh

triage

Dec 28th, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. function toutdroit()
  2.     while (not turtle.detect())
  3.     do
  4.         turtle.forward()
  5.     end
  6. end
  7.  
  8. function verscoffre()
  9.     toutdroit()
  10.     turtle.turnRight()
  11.     toutdroit()
  12.     turtle.down()
  13. end
  14.  
  15. function vider()
  16.     for i = 1, 16, 1 do
  17.         turtle.select(i)
  18.         turtle.drop()
  19.     end
  20. end
  21.  
  22. function succ()
  23.     for i = 1, 6, 1
  24.     do
  25.         turtle.suckUp()
  26.     end
  27. end
  28.  
  29. function vershaut()
  30.     turtle.up()
  31.     turtle.turnRight()
  32.     turtle.turnRight()
  33.     toutdroit()
  34.     turtle.turnLeft()
  35.     toutdroit()
  36.     turtle.turnLeft()
  37.     turtle.turnLeft()
  38. end
  39.  
  40. while(1)
  41. do
  42.     succ()
  43.     verscoffre()
  44.     vider()
  45.     vershaut()
  46.     sleep(3)
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement