Pixel art illustration of a plain brown dirt block
Minecraft Java Item ID

Dirt ID

Dirt is an abundant Overworld block used for terrain work, farming, and natural landscaping. Use a hoe on dirt to create farmland for crops.

✓ Verified for Java Edition 26.2
Namespaced item ID minecraft:dirt

Dirt Item Facts

Maximum stack64
Available inSurvival and Creative
Historical numerical ID3

Historical numerical ID: Reviewed for Java Edition 1.12.2 and earlier.

Give Command for Dirt

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

/give @p minecraft:dirt 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 3 1

Give command syntax by version

Java 1.13+
/give @p minecraft:dirt 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 3 1 0
Numerical ID + data value
Bedrock Edition
/give @p minecraft:dirt 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 Dirt

Finding Dirt

  • Mine Dirt blocks.
  • Dropped when mining Dirt Path.
  • Dropped when mining Farmland.
  • Dropped when mining Grass Block without Silk Touch.
  • Dropped when mining Mycelium without Silk Touch.
  • Dropped when mining Podzol without Silk Touch.

More Ways to Get It

Dirt is abundant across the Overworld and can be collected by breaking it. It is useful for reshaping terrain, supporting grass spread, and making farmland with a hoe.

  1. Break dirt found on the surface or underground to collect it.
  2. Place dirt where you want to reshape or level terrain.
  3. Use a hoe on dirt when you need farmland for crop planting.

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

What Can You Craft With Dirt?

Dirt is a crafting ingredient in 1 reviewed recipe:

Build With Dirt

minecraft:dirt 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.

Dirt Command Examples

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

What Is Dirt Used For?

Grass Block

Place dirt next to grass to let grass spread and restore a natural surface.

Carrot

Till dirt into farmland first, then use it as crop-growing ground.

Coarse Dirt

Use dirt as part of a rougher terrain palette alongside coarse dirt.

Dirt FAQ

What is the item ID for Dirt?

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

What is the numerical ID for Dirt?

Dirt has the historical numerical ID 3, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:dirt instead.

How do I give myself Dirt in Minecraft?

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

How many Dirt can stack in one slot?

Dirt stacks up to 64 per inventory slot.

What can you craft with Dirt?

Dirt is used to craft Coarse Dirt.

Sources and Data Review

Item facts were reviewed for Java Edition 26.2 on .

Related Natural Blocks

Item ID: minecraft:grass_block
Item ID: minecraft:coarse_dirt
Item ID: minecraft:podzol
Item ID: minecraft:carrot
Item ID: minecraft:potato
Item ID: minecraft:obsidian
Item ID: minecraft:netherrack
Item ID: minecraft:oak_sapling