Advertisement
Guest User

volume

a guest
Apr 19th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. local volume = ...
  2. if volume ~= nil then
  3.  volume = tonumber (volume)
  4.  for i = 1, volume do
  5.   redstone.setAnalogOutput("top", volume)
  6.  end
  7. else
  8.  print ("Please enter a volume from 1-15 to play music")
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement