Modscraper Modscraper Minecraft
HammerLib logo

HammerLib

Mod

by Zeith

Library used by all of DragonForge team's mods.

Type

Mod

CurseForge Downloads

57,367,516

CurseForge ID

247401

Modrinth Downloads

845,944

Modrinth ID

PlkSuVtM

Last Updated

Sep 11, 2026

Description

full_247401_downloads.svg247401_all.svg

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 and depends on HammerLib, 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.png 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!

dev.png

Join the discord server and follow Zeitheron on twitter.icoTwitter!

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

Compatibility

Mod Loaders

Forge Neoforge

Game Versions

1.10.2 1.11 1.11.2 1.12.2 1.13.2 1.15.2 1.16.3 1.16.5 1.18.1 1.18.2 +12 more

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Screenshots

Similar Mods

Included in Modpacks (555)

Show fewer
Lost in the Backrooms Lost in the Backrooms Moni&ProjectE Moni&ProjectE Leviathan Leviathan The Nuclear Option The Nuclear Option The Ember Project The Ember Project Project Arc Light - The Hanging Pavilion Project Arc Light - The Hanging Pavilion solo leveling reawakening evolved Anime solo leveling reawakening evolved Anime Hazbin Hotel Hazbin Hotel W.M.D (Weapons, Monsters, and Dungeons) W.M.D (Weapons, Monsters, and Dungeons) Origins & Bits Origins & Bits [FFS] Fantastic Furry Syndicate [FFS] Fantastic Furry Syndicate RPGoop - Industrial and Divinerpg modpack RPGoop - Industrial and Divinerpg modpack Herodotus Herodotus Berseria Sky Berseria Sky Endless cataclysm Endless cataclysm Create Echoes of the Great Derailment Create Echoes of the Great Derailment Overpowered Overpowered Project extended infinity forever Project extended infinity forever Crafted Madness: Modern Era Crafted Madness: Modern Era MC EXPEDITIONS MC EXPEDITIONS Equivalent Escape Equivalent Escape InsanelyCrazyCraft InsanelyCrazyCraft Torchpack Torchpack Greg-E Greg-E Dino World - Jurassic Adventures Dino World - Jurassic Adventures AtomBombOS AtomBombOS SAO - Sword Arts Offline SAO - Sword Arts Offline Savaru I - Survival Savaru I - Survival Carry On: Wayward Souls Carry On: Wayward Souls AphmauSmpServer AphmauSmpServer Tiger's AVP Tiger's AVP MC stranded MC stranded Solo Leveling: Extended Solo Leveling: Extended Adventure and RPG+IC2Classic Adventure and RPG+IC2Classic Xomembers Xomembers Paul2Craft's Mod-Bingo [2.0] Paul2Craft's Mod-Bingo [2.0] LitW II - Life in the Wilds 2 LitW II - Life in the Wilds 2 Ancient Xenomorph Warfare Ancient Xenomorph Warfare MC Jurassic MC Jurassic The Ancient Dawn LITE The Ancient Dawn LITE World War Z - Warden Edition World War Z - Warden Edition HBM's NTM + Galacticraft HBM's NTM + Galacticraft Skies of Progression Skies of Progression Ultimato Plus - Harder Receipts Ultimato Plus - Harder Receipts All The Loot! [REMASTERED] All The Loot! [REMASTERED] Dragons & Rats Dragons & Rats SwordCraft Origins SwordCraft Origins Dungeons and Shuttles Evolution Dungeons and Shuttles Evolution Projekt Engineering Projekt Engineering Sky Industrialization Sky Industrialization Whim Whim WWII Era Warfare WWII Era Warfare Road to the Heaven Road to the Heaven Modustrie Modustrie Mystic Sky Mystic Sky Cavers Delight Cavers Delight Technical Dragonrider Technical Dragonrider Isolated Crystal 3 Isolated Crystal 3 Apocalipse Light - A Zombie Apocalypse Survival Apocalipse Light - A Zombie Apocalypse Survival CobbleMaster CobbleMaster Pixelmon E2craft Pixelmon E2craft BearableParasites BearableParasites American-Craft (Bombs) American-Craft (Bombs) TechBlock - SkyTech 3 TechBlock - SkyTech 3 GR's RPG: medieval fantasy GR's RPG: medieval fantasy Create: Everything & The Kitchen Sink Create: Everything & The Kitchen Sink Better Than Adventure-Forge Better Than Adventure-Forge SubCraft Rebirth SubCraft Rebirth The Lost Server - The Broken Script The Lost Server - The Broken Script TerrariaWorld TerrariaWorld Sky Questing ++ Sky Questing ++ Final Judgment : Save the world Final Judgment : Save the world Jelly&Co Jelly&Co Artemis: Project Artemis: Project Cherry Shrooms Cherry Shrooms CozyCrafts & Doodads CozyCrafts & Doodads TTIGRAAV : That Time I Got Reincarnated As A Vampire TTIGRAAV : That Time I Got Reincarnated As A Vampire Farmtastic! Farmtastic! Atelier Mythos Era Atelier Mythos Era Tensura Pandemonium Official Tensura Pandemonium Official Max's Flashback Max's Flashback Chime Time IX Chime Time IX DoomsDay Jurassic DoomsDay Jurassic ProjectS ProjectS Dimensional Cultivation Dimensional Cultivation More mobs More mobs The French Baguette The French Baguette Forge of the Ages Forge of the Ages EldenVoid EldenVoid Applied Energestic 2 vs Refined Storage Neoforged Applied Energestic 2 vs Refined Storage Neoforged Pixverse Pixverse Consume The World! Consume The World! Fun n' Guns Fun n' Guns Integrated RPG Integrated RPG Path to Exile - Next Generation Path to Exile - Next Generation All You Need - AYN All You Need - AYN ReCraft S8 Project infinity 0.1 ReCraft S8 Project infinity 0.1 Lite Sky Exchange (LSE) Lite Sky Exchange (LSE) Frisky Business: Powercraft Edition 2 Frisky Business: Powercraft Edition 2 Dungeons n' Bosses 2! Dungeons n' Bosses 2!

External Resources