Advertisement
Spirit13300

startup.lua

Aug 16th, 2022 (edited)
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- bonne nuit les petits !
  2.  
  3. local speaker = peripheral.find("speaker")
  4.  
  5.  
  6. while true do
  7.     speaker.playSound("block.note_block.bell",1,1.6)  
  8.     sleep(0.4)
  9.     speaker.playSound("block.note_block.bell",1,1.6)    
  10.     sleep(0.2)
  11.     speaker.playSound("block.note_block.bell",1,1.2)  
  12.     sleep(0.2)
  13.     speaker.playSound("block.note_block.bell",1,1.6)    
  14.     sleep(0.4)
  15.     speaker.playSound("block.note_block.bell",1,1.8)    
  16.     sleep(0.4)
  17.     speaker.playSound("block.note_block.bell",1,1.6)
  18.     sleep(0.4)
  19.     speaker.playSound("block.note_block.bell",1,1.2)
  20.     sleep(0.4)
  21.     speaker.playSound("block.note_block.bell",1,1.6)
  22.     sleep(0.4)
  23.     speaker.playSound("block.note_block.bell",1,1.4)
  24.     sleep(0.4)
  25.     speaker.playSound("block.note_block.bell",1,1.32)
  26.     sleep(0.4)
  27.     speaker.playSound("block.note_block.bell",1,1.2)
  28.     sleep(0.4)
  29.     speaker.playSound("block.note_block.bell",1,1.05)
  30.     sleep(0.4)
  31.     speaker.playSound("block.note_block.bell",1,1.0)
  32.     sleep(0.4)
  33.     speaker.playSound("block.note_block.bell",1,0.9)
  34.     sleep(0.4)
  35.     speaker.playSound("block.note_block.bell",1,0.8)
  36.     sleep(0.4)
  37.     speaker.playSound("block.note_block.bell",1,0.8)
  38.     sleep(0.4)
  39.     speaker.playSound("block.note_block.bell",1,1.6)
  40.     sleep(0.4)
  41.     speaker.playSound("block.note_block.bell",1,1.4)
  42.     sleep(0.4)
  43.     speaker.playSound("block.note_block.bell",1,1.2)
  44.     sleep(0.4)
  45.     speaker.playSound("block.note_block.bell",1,1.32)
  46.     sleep(0.4)
  47.     speaker.playSound("block.note_block.bell",1,1.05)
  48.     sleep(0.4)
  49.     speaker.playSound("block.note_block.bell",1,1.2)
  50.     sleep(0.4)
  51.     speaker.playSound("block.note_block.bell",1,1.0)
  52.     sleep(0.4)
  53.     speaker.playSound("block.note_block.bell",1,0.9)
  54.     sleep(0.4)
  55.     speaker.playSound("block.note_block.bell",1,1.05)
  56.     sleep(0.4)
  57.     speaker.playSound("block.note_block.bell",1,1.2)
  58.     sleep(0.4)
  59.     speaker.playSound("block.note_block.bell",1,1.0)
  60.     sleep(0.4)
  61.     speaker.playSound("block.note_block.bell",1,0.9)
  62.     sleep(0.4)
  63.     speaker.playSound("block.note_block.bell",1,1.05)
  64.     sleep(0.4)
  65.     speaker.playSound("block.note_block.bell",1,0.8)
  66.     sleep(0.1)
  67.     speaker.playSound("block.note_block.bell",1,1.0)
  68.     sleep(0.1)
  69.     speaker.playSound("block.note_block.bell",1,1.1)
  70.     sleep(0.1)
  71.     speaker.playSound("block.note_block.bell",1,1.25)
  72.     sleep(0.1)
  73.     speaker.playSound("block.note_block.bell",1,1.6)
  74.     sleep(0.4)
  75.     speaker.playSound("block.note_block.bell",1,1.4)
  76.     sleep(0.4)
  77.     speaker.playSound("block.note_block.bell",1,1.4)
  78.     sleep(0.4)
  79.     speaker.playSound("block.note_block.bell",1,1.2)
  80.     sleep(0.4)
  81.     speaker.playSound("block.note_block.bell",1,1.32)
  82.     sleep(0.4)
  83.     speaker.playSound("block.note_block.bell",1,1.05)
  84.     sleep(0.4)
  85.     speaker.playSound("block.note_block.bell",1,1.2)
  86.     sleep(0.4)
  87.     speaker.playSound("block.note_block.bell",1,1.0)
  88.     sleep(0.4)
  89.     speaker.playSound("block.note_block.bell",1,0.9)
  90.     sleep(0.4)
  91.     speaker.playSound("block.note_block.bell",1,1.05)
  92.     sleep(0.4)
  93.     speaker.playSound("block.note_block.bell",1,1.2)
  94.     sleep(0.4)
  95.     speaker.playSound("block.note_block.bell",1,1.0)
  96.     sleep(0.4)
  97.     speaker.playSound("block.note_block.bell",1,0.9)
  98.     sleep(0.4)
  99.     speaker.playSound("block.note_block.bell",1,1.05)
  100.     sleep(0.4)
  101.     speaker.playSound("block.note_block.bell",1,1.05)
  102.     sleep(0.4)
  103.     speaker.playSound("block.note_block.bell",1,1.6)
  104.     sleep(0.4)
  105.     speaker.playSound("block.note_block.bell",1,1.4)
  106.     sleep(0.4)
  107.     speaker.playSound("block.note_block.bell",1,1.32)
  108.     sleep(0.4)
  109.     speaker.playSound("block.note_block.bell",1,1.05)
  110.     sleep(0.4)
  111.     speaker.playSound("block.note_block.bell",1,1.2)
  112.     sleep(0.4)
  113.     speaker.playSound("block.note_block.bell",1,1.0)
  114.     sleep(0.4)
  115.     speaker.playSound("block.note_block.bell",1,0.9)
  116.     sleep(0.4)
  117.     speaker.playSound("block.note_block.bell",1,1.05)
  118.     sleep(0.4)
  119.     speaker.playSound("block.note_block.bell",1,1.2)
  120.     sleep(0.4)
  121.     speaker.playSound("block.note_block.bell",1,1.0)
  122.     sleep(0.2)
  123.     speaker.playSound("block.note_block.bell",1,0.9)
  124.     sleep(0.2)
  125.     speaker.playSound("block.note_block.bell",1,1.05)
  126.     sleep(0.4)
  127.     speaker.playSound("block.note_block.bell",1,1.2)
  128.     sleep(0.4)
  129.     speaker.playSound("block.note_block.bell",1,1.0)
  130.     sleep(0.4)
  131.     speaker.playSound("block.note_block.bell",1,0.9)
  132.     sleep(0.4)
  133.     speaker.playSound("block.note_block.bell",1,1.05)
  134.     term.clear()
  135.     term.setCursorPos(1,1)
  136.     time = os.time()
  137.     if (time > 18.40) then
  138.         speaker.playSound("block.bell.use")
  139.         print("il est l'heure de dormir !")
  140.         sleep(20)
  141.     end
  142.     print("il est "..time.." heure ")
  143.     sleep(2)
  144. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement