Tool Drops Reborn
This Fabric mod provides the ability to configure dropped items when tools and weapons break due to durability. Instead of items simply disappearing, you can define which resources will drop when they break.
How it works
The system uses standard Minecraft loot tables. For each tool, a separate configuration file is created in the config/tooldrops/loot_tables/ folder. The file name must match the item identifier, where the colon is replaced with a dot.
Configuration example
Suppose you want 2 diamonds to drop when a diamond pickaxe breaks. Create the file config/tooldrops/loot_tables/minecraft.diamond_pickaxe.json with the following content:
{
"pools": [
{
"rolls": 2,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:diamond"
}
]
}
]
}
Usage features
The configuration folder is automatically created when Minecraft is first launched with the mod installed. You can create complex loot tables using the online generator at misode.github.io/loot-table/. This allows you to configure the dropping of various items with different probabilities and in different quantities.
The mod requires Fabric API for proper operation.