Cocoa Beans

Cocoa beans are a food ingredient obtained from cocoa that can be used to craft cookies and brown dye.

Farming
Cocoa beans come from cocoa pods, which are found naturally in jungle biomes. Placing a cocoa bean on the side of jungle log plants a new cocoa pod. (The log does not need to be attached to a tree).

Cocoa has three stages of growth. During its first, the pod is small and green. In the second stage, the plant is bigger and colored tan. In its last stage, the pod is even bigger, and orange-brown. When destroyed in the first two stages, the pod yields only one cocoa bean. When destroyed in the third stage, it gives two or three cocoa beans. Bone meal can be used to force the cocoa pod forward by one growth stage. Cocoa pods "pop" and drop their beans when struck by flowing water, pushed by a piston, or if their log is removed by any means.

Trading
Wandering traders sell 3 cocoa beans for an emerald.

Fishing
Cocoa bean can be caught when fishing in jungle as junk item.

Crafting ingredient
$$, cocoa beans can be also used in banner patterns:

Composting
Placing cocoa beans into a composter has a 65% chance of raising the compost level by 1.

ID
Java Edition:

Bedrock Edition:

In Bedrock Edition, cocoa beans have the ID name, with a data value of 3.