Advertisement
gabriele298

Distruzione

Oct 13th, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.38 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. function avanti()
  4.  turtle.forward()
  5. end
  6.  
  7. fuction sali()
  8.  turtle.up()
  9. end
  10.  
  11. function scendi()
  12.  turtle.down()
  13. end
  14.  
  15. function spacca()
  16.  turtle.digUp()
  17. end
  18.  
  19. function sgancia_1()
  20.  turtle.select(1)
  21.  turtle.dropDown()
  22. end
  23.  
  24. function sgancia_2()
  25.  turtle.select(2)
  26.  turtle.dropDown()
  27. end
  28.  
  29. function sgancia_3()
  30.  turtle.select(3)
  31.  turtle.dropDown()
  32. end
  33.  
  34. function sgancia_4()
  35.  turtle.select(4)
  36.  turtle.dropDown()
  37. end
  38.  
  39. function sgancia_5()
  40.  turtle.select(5)
  41.  turtle.dropDown()
  42. end
  43.  
  44. while true do
  45.  id,message = rednet.receive()
  46.  if id == 1 then
  47.   if message == "distruggi666" then
  48.    for i = 1, 1 do
  49.     for i = 1, 43 do
  50.      sali()
  51.      spacca()
  52.     end
  53.    
  54.     turtle.turnRight()
  55.      
  56.     for i = 1, 33 do
  57.      avanti()
  58.     end
  59.    
  60.     turtle.turnLeft()
  61.  
  62.     for i = 1, 86 do
  63.      avanti()
  64.     end
  65.    
  66.     turtle.turnRight()
  67.     turtle.forward()
  68.     turtle.forward()
  69.     turtle.forward()
  70.    
  71.  
  72.     turtle.turnLeft()
  73.  
  74.     for i = 1, 5 do
  75.      avanti()
  76.      spacca()
  77.     end
  78.  
  79.    sgancia_1()
  80.  
  81.     for i = 1, 2 do
  82.      avanti()    
  83.      spacca()
  84.     end
  85.  
  86.    sgancia_2()
  87.  
  88.    for i = 1, 2 do
  89.     avanti()
  90.     spacca()
  91.   end
  92.  
  93.    sgancia_3()
  94.  
  95.    for i = 1, 2 do
  96.     avanti()
  97.     spacca()
  98.    end
  99.  
  100.    sgancia_4()
  101.  
  102.    for i = 1, 2 do
  103.     avanti()
  104.     spacca()
  105.    end
  106.  
  107.    sgancia_5()
  108.  
  109.   end
  110.  end
  111. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement