I made a texture and it's not working
Your mix shader mix input should be feeded by alpha output of the texture, not from the color output (which gives you 0.0 for black and 0.0 for transparency).

Enable node wrangler addon and Ctrl click on nodes to see their output and check the nodes workflow.