As the name implies, lag machines' main purpose in Minecraft is to create lag and slow down multiplayer servers and games. They can be built by players in-game. Unsurprisingly, it is the machine of ...
Minecraft Tutorial - How to Create a Mob Trap and Item Collection Machine by drunkoncustard. Note that to speed up the process, this machine was created in Minecraft's Infdev mode.