Pixel art illustration of a cocoa beans in chunky voxel game style
Minecraft Java Item ID

Cocoa Beans ID

Cocoa beans grow as pods on jungle logs and are harvested for crafting cookies and brown dye. Before the Flattening they were stored as data value 3 of the dye item; they are now a distinct item.

✓ Verified for Java Edition 1.21.11
Namespaced item ID minecraft:cocoa_beans

Cocoa Beans Item Facts

CategoryMaterials
Maximum stack64
Available inSurvival and Creative
Shared ID, data value 3 (Java 1.12.2 and earlier)351

Shared ID, data value 3 (Java 1.12.2 and earlier): Reviewed for Java Edition 1.12.2 and earlier.

Give Command for Cocoa Beans

Copy the current Java Edition command, or open the generator to change the player and quantity.

/give @p minecraft:cocoa_beans 1

Customize this command →

Historical command for Java 1.12.2 and earlier

Modern namespaced IDs are recommended. This numerical form is only for old Java releases.

/give @p 351 1

Give command syntax by version

Java 1.13+
/give @p minecraft:cocoa_beans 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 351 1 3
Numerical ID + data value

Rows appear only when the underlying value is verified: the Java 1.8–1.12.2 row requires a reviewed historical numerical ID, and the Bedrock row appears only when this exact namespaced ID exists in the Bedrock registry.

How to Get Cocoa Beans

Finding Cocoa Beans

  • Dropped when mining Cocoa.

Prefer commands? Jump back to the give command matrix above to get Cocoa Beans instantly.

What Can You Craft With Cocoa Beans?

Cocoa Beans is a crafting ingredient in 2 reviewed recipes:

About Cocoa Beans in Minecraft

Cocoa beans grow as pods on jungle logs and are harvested for crafting cookies and brown dye. Before the Flattening they were stored as data value 3 of the dye item; they are now a distinct item.

Cocoa Beans Command Examples

  • Give 1 to nearest player: /give @p minecraft:cocoa_beans 1
  • Give 1 to yourself: /give @s minecraft:cocoa_beans 1
  • Give to a specific player: /give PlayerName minecraft:cocoa_beans 1
  • Clear from inventory: /clear @p minecraft:cocoa_beans

Cocoa Beans FAQ

What is the item ID for Cocoa Beans?

The item ID for Cocoa Beans is minecraft:cocoa_beans. Java Edition commands such as /give, /clear, and /setblock use this namespaced ID.

What is the numerical ID for Cocoa Beans?

Cocoa Beans has the historical numerical ID 351 with data value 3, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:cocoa_beans instead.

How do I give myself Cocoa Beans in Minecraft?

Open the chat window and run /give @p minecraft:cocoa_beans 1 to give the nearest player one Cocoa Beans. Replace @p with a player name to target someone else.

How many Cocoa Beans can stack in one slot?

Cocoa Beans stacks up to 64 per inventory slot.

What can you craft with Cocoa Beans?

Cocoa Beans is used to craft Brown Dye, Cookie.

Sources and Data Review

Item facts were reviewed for Java Edition 1.21.11 on .

Related Materials

Item ID: minecraft:diamond
Item ID: minecraft:netherite_ingot
Item ID: minecraft:blaze_rod
Item ID: minecraft:heart_of_the_sea
Item ID: minecraft:magma_cream
Item ID: minecraft:nether_star