How to make resizable texture

I can’t find anywhere how to make that when you assign a texture to an object if you resize the object the texture repeats itself instead of stretching itself

This isn’t something that the texture itself can control. How the texture is applied to an object is controlled by the object itself, specifically its mesh uv coordinates.

Read about UV coordinates (aka texture coordinates) and unwrapping.