Advertisement
Guest User

scava

a guest
Mar 31st, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. print("Inserisci Numero Cicli: ")
  2.  
  3. local Cicli = read()
  4. local Conta = 0
  5.  
  6. print("Altezza quarry: ")
  7.  
  8. local Altezza = read()
  9. local ContaA = 0
  10. print(Cicli)
  11. print(Conta)
  12.  
  13. Cicli=tonumber(Cicli)
  14. Altezza=tonumber(Altezza)
  15.  
  16. while Conta < Cicli do
  17.  
  18.  
  19. while ContaA < Altezza do
  20.  
  21. redstone.setBundledOutput("right", colors.green)
  22. sleep(0.5)
  23. redstone.setBundledOutput("right", 0)
  24. sleep(2)
  25.  
  26. ContaA = ContaA + 1
  27.  
  28. end
  29.  
  30. Conta = Conta + 1
  31.  
  32.  
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement