Register a Complete Tool Set with Minimal Code
Using the Tool Set Builder
CC's tool set builder lets you create a full set of tools (pickaxe, axe, shovel, hoe, sword) across multiple tiers without writing repetitive registration code.
Setup Steps
1. Define your tool tier with material properties like mining speed, durability, and enchantability. The builder uses these values consistently across all tool types.
2. Specify the material your tools are made from—this becomes the item name prefix (e.g., "copper_pickaxe", "copper_axe").
3. Call the tool set builder in your mod's setup phase, passing your tier definition and material name. The builder automatically:
- Creates all tool item instances
- Registers them with the game
- Applies correct mining speeds and damage values
- Sets up item models and language entries
4. Add recipes using CC's recipe helpers if needed, or let your mod's data generation handle them.
This approach eliminates copy-pasting registration code for each tool type. One builder call replaces dozens of individual registrations, making your codebase cleaner and easier to maintain across multiple material tiers.