Back to mods
Legacy Tool API project artwork

Modrinth · Minecraft mod

Legacy Tool API

A Legacy Fabric library mod that adds support for custom tools

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Legacy Tool API release matches 1.7.10?

Updated last month
Best match for your filters 1.0
Game version 1.7.10
Loader legacy-fabric

Legacy Tool API 1.0 targets 1.7.10 with legacy-fabric. Installation on the client is optional. Installation on the dedicated server is optional. All 1 required mods have matching files.

Where it goes

Is Legacy Tool API required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release legacy-fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Legacy Tool API 1.0 need?

1.0 on 1.7.10. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Legacy Fabric API first. We found matching files for this game-version and loader setup.

Legacy Fabric API Needed by Legacy Tool API 1.0
required
Matching file found Matched file: 1.13.5

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Legacy Tool API without breaking your instance.

Built for Legacy Tool API 1.0 on 1.7.10. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0. It targets 1.7.10 with legacy-fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Legacy Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0. It opens that exact file at the source.

About this project

What does Legacy Tool API add?

The Legacy Tool API is a library mod for Legacy Fabric that adds an API compatibility layer for custom tools (sword, pickaxe, axe, shovel, hoe are all supported) as well as custom, extensible tool materials (the API layer does not use the vanilla tool material system- it has its own "ModToolMaterial", which is a regular class instead of an enum therefore can be extended easily).

It also includes a Mixin patch that adds the item forms of technical blocks (item forms which were removed in 13w37a- but this mod undoes that removal in order to stabilize Legacy Fabric's otherwise unstable registry remapping). This means that item forms of blocks like piston extension (ID 36) or lit redstone lamp (ID 124) etc. are now obtainable again- however, the actual purpose of that patch is to avoid broken block-item IDs (e.g., a block with ID 500 ending up having an item form with ID 26- which this mod prevents by filling ID 26 and other "empty" item IDs with the actual bed block item).

The important classes of Legacy Tool API are:

IEffective- used for effective-block setting (intended as an improvement over the "EFFECTIVE_BLOCKS" fields in vanilla tools)

IHarvestLevel- used for setting harvest level for blocks (intended to emulate Forge's harvest-level system).

ModToolMaterial- the custom tool material system (providing a vanilla-style base form which can be extended if desired).

ModTool- the base class for custom pickaxes/axes/shovels (using ModToolMaterial instead of the vanilla tool material system; extensible if desired)

ModSword, ModPickaxe, ModAxe, ModShovel, ModHoe- the classes for custom tools ("ModSword" and "ModHoe" extend "Item" while "ModPickaxe", "ModAxe", and "ModShovel" extend "ModTool"- and each uses ModToolMaterial instead of the vanilla tool materials)

BaseModBlock- showing the intended implementations of IHarvestLevel and IEffective

PickaxeEffectiveBlock, AxeEffectiveBlock, ShovelEffectiveBlock- extensions of BaseModBlocks, providing examples to using IEffective and IHarvestLevel

ItemMixin- the aforementioned Mixin item patch

Unlike Forge's tool system, the Legacy Tool API has no "EnumHelper" and doesn't directly modify the vanilla tool system. Instead of that, it has its own tool-material system (ModToolMaterial), tool classes (ModSword, ModTool etc.), and interfaces (IHarvestLevel, IEffective).

Instead of doing something like:

"EnumHelper.addToolMaterial(...)"

You are supposed to do this with Legacy Tool API:

"public static final ModToolMaterial material = new ModToolMaterial(...)"

Then use the material in the items you register. No separate registry for tool materials is required.

The mod itself provides example implementations (the "test" tools, the "effective" blocks) for reference.

The mod requires Legacy Fabric API 1.13.5 and Minecraft 1.7.10.

Project description from Modrinth.

Pick your setup

Legacy Tool API by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Legacy Tool API versions and loaders

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.