Source-checkedQuality of life & UI

HammerLib

by Zeith · for Minecraft

Utility mod that contains really useful code for quite a few mods.

865KDownloads
40d agoLast updated
LicenseRef-All-Rights-ReservedLicense
Forge · NeoForgeLoaders

About HammerLib

From Modrinth

Utility mod that contains really useful code for quite a few mods.

Utility mod that contains really useful code for quite a few mods.

 

This library provides:

  • Simple, annotation-based content registration.
    • For Blocks, HammerLib automagically registers BlockItem(s). If you want to disable BlockItem(s), let your block implement INoItemBlock, ICustomBlockItem, or ICreativeTabBlock, depending on what you want to achieve.
    • For BlockEntity rendering, custom BlockEntityType constants may have additional @TileRenderer, pointing to an IBESR<Tile> class.
  • Old-styled language parsers in format of "key=value", instead of JSONs (the file names and format is like in older game versions, but you need to call LanguageAdapter.registerMod(MOD_ID); inside your mod's constructor for it to register.
  • Mod Source checks, that allow you to check if the mod was downloaded from adware/malware sites, AND warn users about it.
  • Java-based recipe registration with a simple RegisterRecipesEvent, that runs on HammerLib.EVENT_BUS, allowing you, as a developer, to register crafting recipes like before, with code.
  • Java-based tag population, with BuildTagsEvent, that runs on HammerLib.EVENT_BUS.
  • Vastly simplified networking, using Network class, and IPacket + INBTPacket to allow for flawless and intuitive packet code development.
  • Wrappers for block harvesting, that has been moved over to tags - BlockHarvestAdapter
  • Field-based NBT serialization, so that you don't make a typo/forget to write serialization/deserialization code.
  • Good old TileEntity wrappers, with TileSyncable and TileSyncableTickable, that allow synchronization of initial state, as well as registering properties that will be synchronized independently.
  • ContainerAPI for BlockEntities, allowing to avoid MenuType<?> altogether (no need to register screen providers, menu types etc)
  • ItemStack -> Color[] API, with TexturePixelGetter.getAllColors
  • Annotation-based custom model loaders (@LoadUnbakedGeometry on IUnbakedGeometry<SELF>), avoids using the geometry loader class by making a common wrapper.
  • ...And a whole lot more!

 

And a lot of rich features for mod devs.

Not enough? You can just view sources on  GitHub, it's free!

Permissions:

  • You can use this mod in your modpack.
  • Yes, you are allowed to build a mod that requires Hammer Core, but not embeds it!
  • You are not allowed to repost this mod to other sites without providing a CurseForge/Modrinth download link and my permission ( Zeitheron on Discord)
  • You are not allowed to include this (or any other mods of DragonForge team) in your own mod. Building addons, however, is allowed, but a friendly PM would be good.

Note:

  • The only supported version of minecraft is the latest one that this mod exists for. DO NOT ASK TO DOWNGRADE!

Join the discord server and follow Zeitheron on Twitter!

If you would like to support my work, you can become a patron via  Patreon. 

Highlights

From source data

Game versions

Supports 22 Minecraft versions, the newest being 1.21.4.

Loaders

Runs on Forge and NeoForge.

Footprint

Rated a light load on a server.

HammerLib on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
Server side
Required on the server
Server type needed
Forge, NeoForge
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
21.0.17, released 2026-09-25

Game versions by loader

LoaderGame versionsNewest
NeoForge1.21 to 1.21.1 (2 versions)1.21.1
Forge1.12.21.12.2

From 5 recorded builds of HammerLib.

Recent builds

BuildReleasedGame versionsLoaders
21.0.172026-09-251.21 to 1.21.1 (2 versions)NeoForge
21.0.162026-09-151.21 to 1.21.1 (2 versions)NeoForge
21.0.152026-09-091.21 to 1.21.1 (2 versions)NeoForge
12.2.662026-07-141.12.2Forge
12.2.652026-06-271.12.2Forge

Run HammerLib on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Quality of life & UI

Small conveniences, tweaks and interface improvements players notice straight away.

Runs on your server

From source side support

Modrinth lists HammerLib as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
ForgeNeoForge
Runs on
Serverrequired on the server
Game versions
1.21.4 and 21 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorZeith, as published on Modrinth
  • ✓LicenseLicenseRef-All-Rights-ReservedFree

HammerLib, answered

Generated from the mod’s own source data.

Do my players need to install HammerLib?

Modrinth lists HammerLib as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Forge and NeoForge.

Is it free?

Yes. HammerLib is free to download from Modrinth. Its license is LicenseRef-All-Rights-Reserved.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run HammerLib on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add HammerLib in one click.