For some unknown reason all my villagers except 2 got wiped out near my base. I've secured the village (walls around and fully lit up) and sleep at night to prevent mobs from killing off the last two. I also added a bunch of doors to the houses (because they broke) so I easily surpass the 3 doors per 1 villager mechanic. However, I've traded countlessly (unlocked new offers) and fed nearly half a stack of bread to each and there is still only two villagers. What am I doing wrong?
Basically you look 5 blocks on either side of the door and if the number of blocks that have a view of the sky is different then the side with fewer counts as inside and the door is valid and gets counted for breeding purposes.