bedrock

trying to make a villager have free reign through a building but dont want him leaving it. anything that they wont walk on i could put at the entrance?
anything that villagers wont walk over?