Modern namespaced IDs are recommended. This numerical form is only for old Java releases.
/give @p 391 1
Give command syntax by version
Java 1.13+
/give @p minecraft:carrot 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 391 1 0
Numerical ID + data value
Bedrock Edition
/give @p minecraft:carrot 1
Same namespaced ID (namespace optional)
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 Carrot
Finding Carrot
Dropped when mining Carrots.
Dropped when mining Carrots.
Rarely dropped when a player kills a Husk.
Rarely dropped when a player kills a Zombie.
Rarely dropped when a player kills a Zombie Villager.
More Ways to Get It
Carrots are farm crops obtained through villages, farming, and other gameplay sources. They can be eaten directly, replanted, or used in several food and breeding workflows.
Find or obtain a carrot.
Plant it on hydrated farmland to expand the supply.
Harvest mature crops and keep some carrots for replanting.