Minecraft wiki entry for Carpet, associated text: Apprentice-level shepherd villagers have a 1⁄32 (3.125%) chance to sell one of 16 types of carpets as part of their trades. They sell 4 carpets of the same color for an emerald.