Here we simulate the motion of a container with a flat bottom that can slide on a horizontal surface subject to dry friction (Coulomb friction). Installed inside the container is an ordinary mass/spring/damper system where the mass slides horizontally. We impart an initial velocity to the container. That sets the mass into motion which then affects the container's motion. Under certain conditions the container will undergo a stick-slip motion which is evident in the simulation.
This simulation very roughly approximates the motion of a partially filled bucket of water that slides on the floor when kicked. The idea arose in a discussoin with and :
In the animation below, the container is shown in dark color when it slides against the floor, and light color when it sticks.