Diamonds and resources
Give yourself diamonds, netherite, emeralds and other valuable resources with one command.
Commands
/give @s minecraft:diamond 64 64 diamonds
/give @s minecraft:netherite_ingot 64 64 netherite ingots
/give @s minecraft:emerald 2304 A full inventory of emeralds
/give @s minecraft:diamond_block 64 64 blocks of diamond (= 576 diamonds)
How it works
Diamonds are among the most valuable resources in Minecraft: you use them to craft tools, armor and the enchanting table. With the /give command, you can give yourself as many diamonds as you want without having to mine. The same goes for other resources: emeralds (the villagers' currency), netherite ingots (the strongest material), gold and iron. Resource blocks (such as diamond_block) are a compressed form: one block equals 9 diamonds or ingots. A full set of diamond tools and armor takes 35 diamonds: pickaxe (3), axe (3), shovel (1), hoe (2), sword (2), helmet (5), chestplate (8), leggings (7) and boots (4). Netherite items aren't crafted directly: you have to upgrade diamond ones at a smithing table with a Netherite Upgrade smithing template and a netherite ingot. The /give command lets you skip that process and give yourself finished netherite items right away.
Practical tips
1 block of diamond = 9 diamonds, so blocks are a more efficient way to store them.
35 diamonds = a full set of tools and armor.
In Bedrock, leave out 'minecraft:' and type /give @s diamond 64.
Emeralds are the best currency for trading with villagers.
Details
Related cheats
Enchanted items
/enchant @s minecraft:sharpness 5 Netherite armor and tools
/give @s minecraft:netherite_helmet 1 Special items
/give @s minecraft:enchanted_golden_apple 64 Invincibility (god mode)
/gamemode creative