Minecraft wiki entry for Survival_in_an_infinite_desert, associated text: Create one small gap in your perimeter that you can partly open up to cause mobs to attempt to reach you. This is a choke point, where you can slowly kill them. Construct it with cacti so the mobs take additional damage.