SHOW:
|
|
- or go back to the newest paste.
1 | local speaker = peripheral.find("speaker") | |
2 | ||
3 | ||
4 | while true do | |
5 | term.clear() | |
6 | term.setCursorPos(1,1) | |
7 | time = os.time() | |
8 | if (time > 18.40) then | |
9 | - | speaker.playSound("block.bell.use") |
9 | + | |
10 | - | print("il est l'heure de dormir !") |
10 | + | print("il est l'heure de dormir !") |
11 | speaker.playSound("block.note_block.bell",1,1.6) | |
12 | sleep(0.4) | |
13 | speaker.playSound("block.note_block.bell",1,1.6) | |
14 | sleep(0.4) | |
15 | speaker.playSound("block.note_block.bell",1,1.2) | |
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.4) | |
20 | sleep(0.4) | |
21 | speaker.playSound("block.note_block.bell",1,1.32) | |
22 | sleep(0.4) | |
23 | speaker.playSound("block.note_block.bell",1,1.2) | |
24 | sleep(0.4) | |
25 | speaker.playSound("block.note_block.bell",1,1.05) | |
26 | sleep(0.4) | |
27 | speaker.playSound("block.note_block.bell",1,1.0) | |
28 | sleep(0.4) | |
29 | speaker.playSound("block.note_block.bell",1,0.9) | |
30 | sleep(0.4) | |
31 | speaker.playSound("block.note_block.bell",1,0.8) | |
32 | sleep(0.4) | |
33 | speaker.playSound("block.note_block.bell",1,0.8) | |
34 | sleep(0.4) | |
35 | speaker.playSound("block.note_block.bell",1,1.6) | |
36 | sleep(0.4) | |
37 | speaker.playSound("block.note_block.bell",1,1.4) | |
38 | sleep(0.4) | |
39 | speaker.playSound("block.note_block.bell",1,1.2) | |
40 | sleep(0.4) | |
41 | speaker.playSound("block.note_block.bell",1,1.32) | |
42 | sleep(0.4) | |
43 | speaker.playSound("block.note_block.bell",1,1.05) | |
44 | sleep(0.4) | |
45 | speaker.playSound("block.note_block.bell",1,1.2) | |
46 | sleep(0.4) | |
47 | speaker.playSound("block.note_block.bell",1,1.0) | |
48 | sleep(0.4) | |
49 | speaker.playSound("block.note_block.bell",1,0.9) | |
50 | sleep(0.4) | |
51 | speaker.playSound("block.note_block.bell",1,1.05) | |
52 | sleep(0.4) | |
53 | speaker.playSound("block.note_block.bell",1,1.2) | |
54 | sleep(0.4) | |
55 | speaker.playSound("block.note_block.bell",1,1.0) | |
56 | sleep(0.4) | |
57 | speaker.playSound("block.note_block.bell",1,0.9) | |
58 | sleep(0.4) | |
59 | speaker.playSound("block.note_block.bell",1,1.05) | |
60 | sleep(0.4) | |
61 | speaker.playSound("block.note_block.bell",1,0.8) | |
62 | sleep(0.1) | |
63 | speaker.playSound("block.note_block.bell",1,1.0) | |
64 | sleep(0.1) | |
65 | speaker.playSound("block.note_block.bell",1,1.1) | |
66 | sleep(0.1) | |
67 | speaker.playSound("block.note_block.bell",1,1.25) | |
68 | sleep(0.1) | |
69 | speaker.playSound("block.note_block.bell",1,1.6) | |
70 | sleep(0.4) | |
71 | speaker.playSound("block.note_block.bell",1,1.4) | |
72 | sleep(0.4) | |
73 | speaker.playSound("block.note_block.bell",1,1.4) | |
74 | sleep(0.4) | |
75 | speaker.playSound("block.note_block.bell",1,1.2) | |
76 | sleep(0.4) | |
77 | speaker.playSound("block.note_block.bell",1,1.32) | |
78 | sleep(0.4) | |
79 | speaker.playSound("block.note_block.bell",1,1.05) | |
80 | sleep(0.4) | |
81 | speaker.playSound("block.note_block.bell",1,1.2) | |
82 | sleep(0.4) | |
83 | speaker.playSound("block.note_block.bell",1,1.0) | |
84 | sleep(0.4) | |
85 | speaker.playSound("block.note_block.bell",1,0.9) | |
86 | sleep(0.4) | |
87 | speaker.playSound("block.note_block.bell",1,1.05) | |
88 | sleep(0.4) | |
89 | speaker.playSound("block.note_block.bell",1,1.2) | |
90 | sleep(0.4) | |
91 | speaker.playSound("block.note_block.bell",1,1.0) | |
92 | sleep(0.4) | |
93 | speaker.playSound("block.note_block.bell",1,0.9) | |
94 | sleep(0.4) | |
95 | speaker.playSound("block.note_block.bell",1,1.05) | |
96 | sleep(0.4) | |
97 | speaker.playSound("block.note_block.bell",1,1.05) | |
98 | sleep(0.4) | |
99 | speaker.playSound("block.note_block.bell",1,1.6) | |
100 | sleep(0.4) | |
101 | speaker.playSound("block.note_block.bell",1,1.4) | |
102 | sleep(0.4) | |
103 | speaker.playSound("block.note_block.bell",1,1.32) | |
104 | sleep(0.4) | |
105 | speaker.playSound("block.note_block.bell",1,1.05) | |
106 | sleep(0.4) | |
107 | speaker.playSound("block.note_block.bell",1,1.2) | |
108 | sleep(0.4) | |
109 | speaker.playSound("block.note_block.bell",1,1.0) | |
110 | sleep(0.4) | |
111 | speaker.playSound("block.note_block.bell",1,0.9) | |
112 | sleep(0.4) | |
113 | speaker.playSound("block.note_block.bell",1,1.05) | |
114 | sleep(0.4) | |
115 | speaker.playSound("block.note_block.bell",1,1.2) | |
116 | sleep(0.4) | |
117 | speaker.playSound("block.note_block.bell",1,1.0) | |
118 | sleep(0.2) | |
119 | speaker.playSound("block.note_block.bell",1,0.9) | |
120 | sleep(0.2) | |
121 | speaker.playSound("block.note_block.bell",1,1.05) | |
122 | sleep(0.4) | |
123 | speaker.playSound("block.note_block.bell",1,1.2) | |
124 | sleep(0.4) | |
125 | speaker.playSound("block.note_block.bell",1,1.0) | |
126 | sleep(0.4) | |
127 | speaker.playSound("block.note_block.bell",1,0.9) | |
128 | sleep(0.4) | |
129 | speaker.playSound("block.note_block.bell",1,1.05) | |
130 | term.clear() | |
131 | term.setCursorPos(1,1) | |
132 | ||
133 | sleep(20) | |
134 | end | |
135 | print("il est "..time.." heure ") | |
136 | sleep(2) | |
137 | end |