Advertisement
KroNixZ

Computer at Night Redstone Signal

Nov 26th, 2023 (edited)
1,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. while true do
  2. x=os.time()
  3. if x >= 18.541 then --sobald man ins bett gehen kann
  4. redstone.setOutput("top",true) --gedacht fΓΌr redstone lampen
  5. if x <= 18.741 then --gedacht fΓΌr einen sound alarm
  6. redstone.setOutput("bottom",true) --der auf der Unterseite angebracht wird
  7. else
  8. redstone.setOutput("bottom",false)
  9. end
  10. else
  11. redstone.setOutput("top",false)
  12. redstone.setOutput("bottom",false)
  13. end
  14. sleep(0.1)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement