Start with an anchored block and attach a wheel to it.

A player enters a rotating portal that consistently sends them through the stages.

A massive structure spanning all stages with a large conveyor to move the player automatically.

A basic method for creating an AFK farm involves using a portal and a wheel mechanism:

Add a long line of blocks (roughly 50) and a portal at the end.