Meh... this doesn't always work out too well, and you may not get a good angle to shoot at zombies. I have had a horde collapse a house on my before. A larger building, yes. But if you go for something relatively small and/or all wooden construction, then you may not survive the night. I build horde towers. 3x3 wide x6 or 7 tall with iron bars at the top so you can shoot down at the zombies, and a ramp leading up to it where you have to jump a gap to get on the tower. The stops most zombies from getting up there. I start it with cobblestone and work up to more solid materials, and add more towers as the game goes on. I usually surround it with barbed wire and/or wooden spikes too. I usually get bored later in the night, when you get the "trickle" near the end, and I get down off my perch to do melee.