Advertisement
william200027

Programe B

May 12th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. lol = 15 --Seconde
  2.  
  3. local function r(...) return shell.run(...) end
  4. local function w(...) return write(...) end
  5.  
  6. heure = fs.open("Config/Save","r")
  7. Heure = heure.readLine()
  8. heure.close()
  9. Heure = Heure -1
  10.  
  11. function hh()
  12.     lol = lol -1
  13.  
  14.  if Heure == 20 then
  15.   redstone.setOutput("back", true)
  16.   print("Active")
  17.  end
  18.  
  19.  if Heure == 10 then
  20.   redstone.setOutput("back", false)
  21.   print("desactive")
  22.  end
  23.  
  24.  if lol == 0 then
  25.     os.reboot()
  26.  end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement