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
FTB Presents SkyFactory 3 FTB Presents SkyFactory 3 MC  Eternal MC Eternal Crazy Craft Updated Crazy Craft Updated Project Ozone 3 A New Way Forward Project Ozone 3 A New Way Forward Dungeons, Dragons and Space Shuttles Dungeons, Dragons and Space Shuttles SteamPunk [LPS] SteamPunk [LPS] FTB Beyond FTB Beyond InsaneCraft Modpack InsaneCraft Modpack Modern Skyblock 3: Departed Modern Skyblock 3: Departed Solo Leveling - Reawakening Solo Leveling - Reawakening All the Mods 6 - To the Sky - ATM6sky - Skyblock All the Mods 6 - To the Sky - ATM6sky - Skyblock Star Technology Star Technology Abyssal Ascent Abyssal Ascent Divine Journey 2 Divine Journey 2 FTB Infinity Lite 1.10 FTB Infinity Lite 1.10 Modern Skyblock 2 Modern Skyblock 2 Ragnamod VI Ragnamod VI OccultCraft OccultCraft MeatballCraft, Dimensional Ascension MeatballCraft, Dimensional Ascension Age of Engineering Age of Engineering FTB Presents HermitPack FTB Presents HermitPack Age of Fate Age of Fate Project Ozone Lite Project Ozone Lite Stacia 2 Expert Stacia 2 Expert Ragnamod V Ragnamod V Mystical Block Mystical Block Monifactory Monifactory Ocean Outlast Ocean Outlast Jurassic World Reborn II Jurassic World Reborn II GreedyCraft GreedyCraft MC Ultimato MC Ultimato The Ancient Dawn - Prehistoric Journey The Ancient Dawn - Prehistoric Journey Project Infinity 0.1 Project Infinity 0.1            AMP - Sky of Diamonds! AMP - Sky of Diamonds! Enigmatica 2: Expert - Extended Enigmatica 2: Expert - Extended TNP Limitless 8 - LL8 TNP Limitless 8 - LL8 Farmopolis Farmopolis Crazy Craft Updated Lite Crazy Craft Updated Lite Arcadia [RPG] Arcadia [RPG] Ozone Skyblock Reborn Ozone Skyblock Reborn Stacia Expert Stacia Expert TNP Limitless 6 - LL6 TNP Limitless 6 - LL6 TNP Limitless 5 - LL5 TNP Limitless 5 - LL5 TNP Limitless 7 - LL7 TNP Limitless 7 - LL7 EggBlock EggBlock TNP Limitless 3 - LL3 TNP Limitless 3 - LL3 FTB Skyfactory Challenges FTB Skyfactory Challenges MYTHCRAFT 5 MYTHCRAFT 5 Encrypted_ Encrypted_ Infinity Evolved: Reloaded Infinity Evolved: Reloaded Not Too Complicated 2 Not Too Complicated 2 All the Mods: All the Magic - ATM All the Mods: All the Magic - ATM Astroblock 2 - Lost in Space Astroblock 2 - Lost in Space Avaritia Adventures Remake Avaritia Adventures Remake Ragnamod VII Ragnamod VII Concatenation Concatenation Ice and Fire Magic Ice and Fire Magic Chroma Sky 2 Chroma Sky 2 Project Equivalence Project Equivalence Sky Alchemy Sky Alchemy Opolis Inc Opolis Inc From Magic To Tech From Magic To Tech MC DripCraft MC DripCraft Harvest Moon "Halloween" Harvest Moon "Halloween" Forever Factory Forever Factory Infinity-Craft Infinity-Craft The Decursio Project - Expert The Decursio Project - Expert Cookiemon - Pokemon Cobblemon RPG & Cookies Cookiemon - Pokemon Cobblemon RPG & Cookies A Distant Journey A Distant Journey NanoMagic NanoMagic Multiblock Madness Multiblock Madness Expedition In The Sky Expedition In The Sky Chroma Technology 2 Chroma Technology 2 The Final Frontier 2 The Final Frontier 2 Survive 100 days in all horror Survive 100 days in all horror Ultimate Progression Ultimate Progression Azuria RockBlock 3 Azuria RockBlock 3 Stranded On Earth Stranded On Earth StonksCraft 2 StonksCraft 2 bombs, guns, and planes bombs, guns, and planes Mystic's Monstrosity Mystic's Monstrosity Frozenopolis Frozenopolis The Trial of God The Trial of God Ultimate Progression: Sky Ultimate Progression: Sky Hypothermia Hypothermia Mystical Skies Mystical Skies Chroma Technology Chroma Technology Ragnamod VI In the Sky Ragnamod VI In the Sky Tensura Neo Otherworld Tensura Neo Otherworld Odyssey: Space - A New Beginning Odyssey: Space - A New Beginning Haven: CaveBlock Haven: CaveBlock EMC Sky Maker EMC Sky Maker The Biggest Modpack The Biggest Modpack FTB Skies FTB Skies Rhinocraft Rhinocraft Creative Drawers Producer Creative Drawers Producer Chroma Sky Chroma Sky Dimension Hopper: The Fall Dimension Hopper: The Fall Celestial Journey Celestial Journey Stone Technology Ultimate Stone Technology Ultimate

External Resources