Hey all. Hoping anyone can answer why I have so many problems with villagers. Every time I've tried to capture a number of villagers they disappear. It's happened in a lot of my worlds and this time i was determined it wouldnt happen again, so this time i built a closed room with a roof and a small hut in it with a door plenty of light and iron doors to access it. no lightning, no mobs no water, no ledges, and no way for them to kill them selves as far as i could tell. there is a portal in there but im pretty sure they shouldnt despawn if they go through it. i had them trapped in there for about a week while i was working on some stuff for an iron farm and they have been content to stay put for the whole time but today i checked in on them and they were just gone. all of them. and i havnt been more than 150 blocks from them and they are in my spawn chunks, the portal on the hell side is enclosed, lit and has half slabs on the floor. is it simply that they went through and despawned? playing java edition.
Tl;dr: villagers are the most frustrating mob in MC.