It’s also called ‘St. John’s Bread’. I’ve used it a lot - to make brownies, and as a milkshake or in candy. Not exactly like chocolate; different but somewhat similar:
https://en.wikipedia.org/wiki/Ceratonia_siliqua
In the late 50s my mom would occasionally buy a bag of the dried pods for us as a treat. Cracking the thin shell and getting to the edible pulp...good stuff. A handy treat for small boys to keep in their pocket while ranging all over the place.
I used carob powder in baking for many years when my children were little.
I had no idea locust bean and carob bean were the same thing. “Locust bean gum” is listed as an ingredient in food products such as ice cream.