Advertisement
DOGGYWOOF

beep twice

Jan 6th, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. -- Function to play a note twice with a delay
  2. local function playNoteTwice()
  3. -- Redstone output to trigger the note block
  4. redstone.setOutput("back", true)
  5. sleep(0.5) -- Adjust this delay as needed
  6. redstone.setOutput("back", false)
  7. sleep(0.5) -- Adjust this delay as needed
  8. redstone.setOutput("back", true)
  9. sleep(0.5) -- Adjust this delay as needed
  10. redstone.setOutput("back", false)
  11. end
  12.  
  13. -- Call the function to play the note twice
  14. playNoteTwice()
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement