Make Glue, stain the ground with it and make mobs get glued
Immobilized villager standing in a glue stain
By glueing chicken in a hopper, it will pick all the eggs they drop while they are glued