Below is a technical paper on designing and implementing a suitable for collecting entities (Mobs/Malo).
This guide provides a comprehensive overview of crafting and utilizing piston traps in Minecraft, focusing on a design that reliably traps players or mobs, which could be metaphorically or functionally considered a "malo" (bad) trap for whoever steps inside.