Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local speaker = peripheral.find("speaker")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- time = os.time()
- if (time > 18.40) then
- print("il est l'heure de dormir !")
- speaker.playSound("block.note_block.bell",1,1.6)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.6)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.6)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.4)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.32)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.9)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.8)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.8)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.6)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.4)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.32)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.9)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.9)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.8)
- sleep(0.1)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.1)
- speaker.playSound("block.note_block.bell",1,1.1)
- sleep(0.1)
- speaker.playSound("block.note_block.bell",1,1.25)
- sleep(0.1)
- speaker.playSound("block.note_block.bell",1,1.6)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.4)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.4)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.32)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.9)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.9)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.6)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.4)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.32)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.9)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.2)
- speaker.playSound("block.note_block.bell",1,0.9)
- sleep(0.2)
- speaker.playSound("block.note_block.bell",1,1.05)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.2)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.0)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,0.9)
- sleep(0.4)
- speaker.playSound("block.note_block.bell",1,1.05)
- term.clear()
- term.setCursorPos(1,1)
- sleep(20)
- end
- print("il est "..time.." heure ")
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement