iconmaster

speaker

Apr 2nd, 2013
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. s = peripheral.wrap("top")
  2.  
  3. while true do
  4. repeat
  5. sleep(.5)
  6. until redstone.getInput("front")
  7. repeat
  8. s.start(1,math.random(100,900))
  9. sleep(.5)
  10. s.stop(1)
  11. until not redstone.getInput("front")
  12. end
Advertisement
Add Comment
Please, Sign In to add comment