Allows a creator to determine how quickly an item can dig specific blocks.
Item Components Digger Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| destroy_speeds |
[] |
Destroy Speeds item |
A list of blocks to dig with correlating speeds of digging. |
|
| use_efficiency |
false |
Boolean true/false |
Determines whether this item should be impacted if the efficiency enchantment is applied to it. |
|
Item Components BlockInfo
Item Components BlockInfo Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| block (Block) |
not set |
Block item |
Block to be dug. |
|
| block (Alternate 1) |
not set |
String |
|
|
| block (Alternate 2) |
not set |
Object |
|
|
| speed |
not set |
Integer number |
Digging speed for the correlating block(s). |
|
Block
Block Properties
| Name |
Default Value |
Type |
Description |
Example Values |
| name |
|
String |
|
|
| states |
{} |
Integer number |
|
|
| states (Alternate 1) |
not set |
String |
|
|
| states (Alternate 2) |
not set |
Boolean true/false |
|
|
| tags |
|
String |
|
|
Samples
"minecraft:digger": {
"minecraft:digger": {
"use_efficiency": true,
"destroy_speeds": [
{
"speed": 6,
"block": {
"tags": "query.any_tag( 'wood' )"
}
},
{
"block": "minecraft:coal_ore",
"speed": 2
}
]
}
}