This is technically related to modelling. I started learning beginner Python, and I whipped this up.
Math & Python ftw.
Small modification:
Basically calculates the stretch I need to use on the UV to get the perfect texture map. This also specifically translates to Blockland. I am essentially always going to be using this for making the texture mapping for bricks from now on.