Overview
minecraft:digger is an item component: it goes in the components object of a custom item. Makes the item a mining tool by setting how fast it breaks chosen blocks. Use it for custom pickaxes, shovels or drills.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
use_efficiency | boolean | false | When true, the Efficiency enchantment makes this tool dig faster. |
destroy_speeds | BlockInfo[] | none | A list of blocks (or block tags) and the mining speed used for each one. |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:digger": {
"use_efficiency": false,
"destroy_speeds": []
}
}