I really have no idea how to address it, but basically it is when someone, for example, makes a track for a ball, which leads to the ball hitting a standing hammer, which upon contact, swings around a pivot, smashing a bucket of glass, which pours water into ... etc.
Is it a machine? Sometimes it doesn't service a purpose. Actually, most of the time, it's just for amusement. What do you call that thing?