Cookie

Cookies are food items that can be obtained in large quantities, but do not restore hunger or saturation significantly.

Trading
Journeyman-level farmer villagers sell 18 cookies for 3 emeralds as part of their trades.

Villager gifts
If the player has the Hero of the Village effect, the farmer villager may gift one.

Food
To eat a cookie, press and hold while it is selected in the hotbar. Eating one restores hunger and 0.4 hunger saturation.

Parrots
Feeding a cookie to a parrot kills the parrot instantly, and causes it to give off Poison particles as it dies due to chocolate being toxic to parrots. $$, feeding a cookie to a parrot inflicts the parrot with Fatal Poison for 1,000 seconds.

Composting
Placing a cookie into a composter has an 85% chance of raising the compost level by 1.

Considering the high yield of cookies (8 cookies from 1 cocoa bean and 2 wheats) and the higher chance to successfully compost a cookie (85%), it is more efficient to craft cookies to compost rather than using separate ingredients. For example, 100 wheats and 50 cocoa beans, which in total could yield only 13.92 bone meal on average, could be crafted into 400 cookies to yield 48.57 bone meal on average.

ID