Guest User

startup.lua

a guest
Aug 16th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  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")
  10.         print("il est l'heure de dormir !")
  11.         sleep(20)
  12.     end
  13.     print("il est "..time.." heure ")
  14.     sleep(2)
  15. end
Add Comment
Please, Sign In to add comment