1. Wiki
  2. /Items
  3. /minecraft:digger

minecraft:digger

Don't want to write this by hand? GodCraft sets minecraft:digger for you with a switch.Get GodCraft

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

FieldTypeDefaultDescription
use_efficiencybooleanfalseWhen true, the Efficiency enchantment makes this tool dig faster.
destroy_speedsBlockInfo[]noneA 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": []
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more