Skip to main content
Version: 26.1+

Tool Materials

Tool materials define the properties of tool-type items such as swords. They are referenced by their registry ID in item definitions.

To create a custom tool material, create a JSON file at:

addon/<namespace>/tool_material/<material_id>.json

For example, addon/mypack/tool_material/emerald.json registers the material mypack:emerald.


Fields

All fields are required.

FieldTypeDescription
incorrect_blocks_for_dropsTag (Block)Block tag for which this tool will not produce drops (e.g. #minecraft:incorrect_for_iron_tool).
durabilityIntegerMaximum durability of items using this material.
speedFloatMining speed multiplier.
attack_damage_bonusFloatBonus attack damage added on top of the base weapon damage.
enchantment_valueIntegerEnchantability. Higher values yield better enchantments.
repair_itemsTag (Item)Item tag whose members can be used to repair tools of this material in an anvil.

Built-in Vanilla Materials

The following vanilla tool materials are pre-registered and can be referenced directly by ID:

IDincorrect_blocks_for_dropsdurabilityspeedattack_damage_bonusenchantment_valuerepair_items
minecraft:wood#minecraft:incorrect_for_wooden_tool592.00.015#minecraft:wooden_tool_materials
minecraft:stone#minecraft:incorrect_for_stone_tool1314.01.05#minecraft:stone_tool_materials
minecraft:iron#minecraft:incorrect_for_iron_tool2506.02.014#minecraft:iron_tool_materials
minecraft:gold#minecraft:incorrect_for_gold_tool3212.00.022#minecraft:gold_tool_materials
minecraft:diamond#minecraft:incorrect_for_diamond_tool15618.03.010#minecraft:diamond_tool_materials
minecraft:netherite#minecraft:incorrect_for_netherite_tool20319.04.015#minecraft:netherite_tool_materials

Example

addon/mypack/tool_material/emerald.json
{
"incorrect_blocks_for_drops": "#minecraft:incorrect_for_diamond_tool",
"durability": 1000,
"speed": 10,
"attack_damage_bonus": 2,
"enchantment_value": 15,
"repair_items": "#mypack:emerald_tool_materials"
}