ZathegamE

Daylight cycle detector.lua

Apr 23rd, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. p = peripheral
  2. while true do
  3. if os.time() >= 18.5 or os.time() <= 5 then
  4.  redstone.setOutput("back",true)
  5.  else
  6.   redstone.setOutput("back",false)
  7.   end
  8.  sleep(2)
  9. end
  10.  
Add Comment
Please, Sign In to add comment