behind the stables with the villager in, you can use the mobs to hit you over the fence behind it, which lets you hide there. with enough arrows you can fight off the ranged mobs and just have to fight off spiders. to fix this all that needs to be done is place a few barriers above the fences