Carpenter ants require a water source. To prevent black carpenter ants in the house, eliminate sources of moisture or standing water. Keep tree branches and other plants cut back from the house. Sometimes pests use these branches to get into your home. Make sure that there are no cracks or little openings around the bottom of your house. Sometimes pests use these to get into your home. Make sure that firewood and building materials are not stored next to your home. Carpenter ants like to build nests in stacks of wood.