Kamioda

minecraft_cart_departure_sannyo_shinkansen_ver

Nov 19th, 2021 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. local speaker = peripheral.find("speaker")
  2.  
  3. local function PlaySound(pitch, onpu)
  4. speaker.playNote("harp", 3, pitch)
  5. sleep(2 / onpu)
  6. end
  7.  
  8. while true do
  9. if redstone.getInput("left") or redstone.getInput("right") then
  10. PlaySound(10, 4)
  11. PlaySound(10, 8)
  12. PlaySound(11, 8)
  13. PlaySound(13, 4)
  14. PlaySound(6, 4)
  15.  
  16. PlaySound(15, 4)
  17. PlaySound(13, 8)
  18. PlaySound(11, 8)
  19. PlaySound(13, 4)
  20. PlaySound(10, 4)
  21.  
  22. PlaySound(11, 4)
  23. PlaySound(10, 8)
  24. PlaySound(8, 8)
  25. PlaySound(10, 4)
  26. PlaySound(6, 4)
  27.  
  28. PlaySound(3, 8)
  29. PlaySound(6, 8)
  30. PlaySound(5, 8)
  31. PlaySound(8, 8)
  32. PlaySound(6, 2)
  33.  
  34. while redstone.getInput("left") or redstone.getInput("right") do
  35. sleep(0.5)
  36. end
  37. end
  38. sleep(0.5)
  39. end
  40.  
Add Comment
Please, Sign In to add comment