Add Tool
Add Tool - 1.21+
add-tool is used to modify an item's vanilla Tool Data Component, allowing normal items or tools to behave with specified mining speed, durability consumption, and block-breaking rules on both the client and server.
Basic Format
real-changes:
add-tool:
mining-speed-multiplier: 1.5
damage-per-block-add: 1
rules:
- 'minecraft:stone,2.0,true'Available Options
mining-speed-multiplier
Sets the default mining speed multiplier.
The value is calculated based on the item's current default mining speed from its existing Tool Component.
add-tool:
mining-speed-multiplier: 1.75The old option name mining-speed is also supported and has the same effect as mining-speed-multiplier.
damage-per-block
Directly sets the durability consumed each time a block is broken.
damage-per-block-add
Adds the specified value to the current durability consumption.
The final value will not be lower than 0.
rules
Adds tool rules for specific blocks.
Format:
Example:
You can also define multiple blocks in the same rule:
The last two parameters are always:
Correct For Drops can be:
Value
Description
true
This tool is considered the correct tool for breaking these blocks, allowing normal drops.
false
This tool is not considered the correct tool.
null
Does not override the vanilla judgment.
Full Example
Effect Explanation
The configuration above will make the item:
Gain additional lore.
Gain an extra
block_break_speedattribute.Increase its default mining speed to
1.75xof the original value.Consume 1 additional durability point each time a block is broken.
Use
2.5xmining speed forstoneand treat it as the correct tool.Use
2.0xmining speed fordeepslateand treat it as the correct tool.
Notes
add-toolonly works on Minecraft 1.21+.If the item does not already have a suitable Tool Component, it is recommended to use this feature mainly on vanilla tool items such as pickaxes, axes, shovels, hoes, shears, and brushes.
If you only want to display information without actually changing tool behavior, use lore-related rules under
fake-changes.If you want to actually change mining behavior, use
add-toolunderreal-changes.
Last updated