A tension-only spring (rubber band or bungee cord)

See this as well:

PS: I have various things on that matter … but using solely C# … thus they could be kinda a big black box to you (unless you know how to code).