I understand because not every tourist knows that smoking in the middle of the street is prohibited by law. But I have a good offer for you. Specifically,
https://cannabisbcn.com/ is a safe space where you can legally consume high-quality marijuana and relax in a comfortable environment. On this site, you will find a list of different clubs for every taste. But do not forget that it is impossible to get into any of them just like that without an invitation or a club card.