Tool
Name | Value |
---|---|
ID | minecraft:tool |
Type | Object |
First introduced in | 1.20.5 (21w12a) |
Implementation | Full Support |
The minecraft:tool
item stack component specifies the behaviour of an item as a tool to harvest a specific set of blocks, at the specified speed, and controls whether the associated item is correct in order for the harvested block to drop.
Note
Since 1.17 (21w19a) harvest levels are non-existent and they have been replaced with mineable
tags. The introduction of this component further proves this fact.
Format
Name | Value | Description |
---|---|---|
Rules |
Collection of MiningRule |
The rules |
DefaultMiningSpeed |
Single |
The default mining speed if no rule overrides |
DamagePerBlock |
Int32 (must be positive) |
The number of durability to consume per block mined |
MiningRule
Name | Value | Description |
---|---|---|
Blocks |
Collection of BlockReference |
The blocks to specify for this rule |
DefaultMiningSpeed |
Single |
Optional, the override mining speed |
CorrectForDrops |
Boolean |
If true , the associated item is considered the correct tool for the specified blocks |