Minecraft – How to automatically sort adult villagers from babies. once they’ve grown

minecraft-bedrock-edition

I have a working villager breeder and I'm building a trading hall. I need to hold onto my villagers until they're adults otherwise they can escape the hall. I was thinking of putting them in somekind of loop until they've grown up but I can't find a way of detecting the difference. Observers can't see babies or adults (at least, not when they're in minecarts), trip wires don't detect either, as they go past in a minecart. Is there a standard pattern for doing this?

Best Answer

If you make a water elevator with signs, baby villagers can't climb the elevator, so they are forced to grow up into adults before they can interact with the elevator.

So if you make an elevator inside the hall, it should block the babies from escaping.