can villagers open iron doors minecraft code example
Example: can villagers open iron doors
Villagers can't open fence gates or trap doors, nor can they use buttons or levers, allowing you to use iron doors, iron trapdoors, or just about any redstone-based door mechanism without them being able to escape.