The Law of Attraction states that Like attracts Like. In other words, the thoughts you think, whether they are from the present, past, or future, will attract like circumstances. So if at any given point, your predominant thought or feeling is one that's associated with drinking alcohol, the circumstances around you will organize in a way so that alcohol is available for you to drink. Now, this can be tricky because most of our attracting gets done from our subconcsious mind, which is 80% of our entire mind. So if you think you are not thinking about alcohol but in fact you are in your subconscious mind you are, well than most likely alcohol will show up in your experience. The key is to think about what you want the final outcome to be, in this case I would say soberity.
When you resist something, you are focusing your attention on it. So if you resist alcohol and are often thinking about how bad it is, more experiences will show up that let you know how bad alcohol is. It's like this with everything, not just this one example. Again, the key is to look at what you want, the positive aspect of whatever it is you are dealing with. If you keep doing that, sooner or later conscious thoughts will become subconscious and therefore attracting what you want will become easier. If you only have positive thoughts, only positive outcomes are posible.
I hope this helped