Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- -- Emit redstone pulse
- redstone.setOutput("front", true)
- sleep(10) -- Keep redstone on for 1 second
- redstone.setOutput("front", false)
- -- Set timer for 30 seconds
- local timerID = os.startTimer(30)
- -- Wait for the timer event
- while true do
- local event, timerID = os.pullEvent("timer")
- if timerID == timerID then
- break -- Break the inner loop when the timer event is received
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement