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

Fern ID

Fern is a natural block found in Minecraft Java Edition 1.21.11. It generates naturally in the world, can be harvested and placed for building or decoration, and is listed in the official item registry under minecraft:fern.

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

Fern Item Facts

Maximum stack64
Available inSurvival and Creative
Shared ID, data value 2 (Java 1.12.2 and earlier)31

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

Give Command for Fern

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

/give @p minecraft:fern 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 31 1

Give command syntax by version

Java 1.13+
/give @p minecraft:fern 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 31 1 2
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 Fern

Finding Fern

  • Mine Fern blocks.
  • Dropped when mining Large Fern.
  • Dropped when mining Potted Fern.

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

Build With Fern

minecraft:fern is in the reviewed block catalog. Open a command tool with this ID already selected, then adjust the coordinates in the tool.

Need a different material? Browse Minecraft Block IDs or compare the related blocks below.

About Fern in Minecraft

Fern is a natural block found in Minecraft Java Edition 1.21.11. It generates naturally in the world, can be harvested and placed for building or decoration, and is listed in the official item registry under minecraft:fern.

Fern Command Examples

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

Fern FAQ

What is the item ID for Fern?

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

What is the numerical ID for Fern?

Fern has the historical numerical ID 31 with data value 2, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:fern instead.

How do I give myself Fern in Minecraft?

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

How many Fern can stack in one slot?

Fern stacks up to 64 per inventory slot.

Sources and Data Review

Item facts were reviewed for Java Edition 1.21.11 on .

Related Natural Blocks

Item ID: minecraft:obsidian
Item ID: minecraft:netherrack
Item ID: minecraft:grass_block
Item ID: minecraft:dirt
Item ID: minecraft:coarse_dirt
Item ID: minecraft:podzol