Minecraft wiki entry for Pumpkin_Pie, associated text: Apprentice-level farmer villagers have a 50%‌[Bedrock Edition only] or 2⁄3‌[Java Edition only] chance to sell 4 pumpkin pies for an emerald as part of their trades.