How to make designs overlap perfectly on model

I’m trying to put a texture on a snake model so that it overlaps perfectly on all the bricks as shown in the picture below.

The snake will be animated, moving at each brick cluster, so the texture will need to “break” at each seam with the brick it is applied to.

Each snake will have 2-3 textures overlapping each other so that their color can be changed via scripting.

The snakes will also vary in size so the texture will need to scale appropriately depending on which snake is spawned.

My question is what is the best way to do this and how do I achieve it?