Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. input1 = "44 44 44 44 "
  2.  
  3. for a=1,string.len(input1) do
  4. note=tonumber(string.sub(input1,a,a))
  5. if note ~= nil and note >= 1 and note <= 9 then redstone.setBundledOutput( "back",math.pow(2,note-1)) end
  6. sleep(.1)
  7. redstone.setBundledOutput("back",0)
  8. sleep(.1)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement