Items & equipment
Give diamonds to the nearest player
Give 16 diamonds to the nearest player
- Edition
- Java Edition
- Version
- Java Edition 1.20.5 - 1.21.4
- Difficulty
- Beginner
- Prep time
- 1 minutes
- Copied
- 3 times
- Permission
- Requires cheats to be enabled or operator permission
When to use it
Award 16 ordinary diamonds to one player. There is no custom name or enchantment and no record of prior rewards, so this is not a claim-once reward system.
Before running
Ensure inventory space and proximity to the execution point. When several players stand together, replace @p with the recipient’s name before running to avoid awarding the wrong person.
Follow in order
All commands
Give diamonds
/give @p minecraft:diamond 16Change 16 to whatever amount you need
Count the diamonds
/clear @p minecraft:diamond 0A maximum count of 0 makes the command count diamonds without removing any
What to customize
Change 16 to the reward quantity or choose another item in the give tool. @p selects relative to the in-game execution position, not whoever clicked the website button.
Verify the result
The second line counts the recipient’s diamonds without removing any. Run it once before the give to note the starting figure and again afterwards: the increase should be 16. If it falls short, inspect nearby ground for items that did not fit.
When results differ
If more than 16 arrive, check repeated executions or repeating blocks. Any correction needs the actual awarded amount; clearing all diamonds could also remove the player’s existing stock.