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
Fresh & Cozy Fresh & Cozy BeanPack: Regurgitated BeanPack: Regurgitated Progressionistic Progressionistic Arcreux - Enhanced Pixelmon Arcreux - Enhanced Pixelmon Chaos OneBlock Chaos OneBlock The Clash of Epochs The Clash of Epochs MasterTech: Hollow Beginning MasterTech: Hollow Beginning Factory in the Sky 3 Factory in the Sky 3 The Immersive Revolution The Immersive Revolution OPSkies 2 OPSkies 2 Vorps Reborn Vorps Reborn Songs of War Modpack Songs of War Modpack Nuclear Earth: Reirradiated Nuclear Earth: Reirradiated Multi Mites Multi Mites MultiSkyBlock 2 MultiSkyBlock 2 Egged Up Egged Up Crazycraft Alternate Universe Crazycraft Alternate Universe Omega Adventure Pack 1.12.2 Omega Adventure Pack 1.12.2 Compact World Expert Compact World Expert Cozy Meadows Cozy Meadows Ascension of Ages Ascension of Ages REVRB: Ruthless Enemies, Violent Redemption and Bosses REVRB: Ruthless Enemies, Violent Redemption and Bosses The Flash SMP The Flash SMP [DD&D] Dungeons Dragons & Dimensions [DD&D] Dungeons Dragons & Dimensions Inclusive Inclusive Infinity Reloaded: Skyblock Infinity Reloaded: Skyblock Tech & Trains Tech & Trains Maul The Odds - MTO Maul The Odds - MTO Tensura: Reincarnated -  By Ren Tensura: Reincarnated - By Ren TokuNexoCraft - Rider Edition TokuNexoCraft - Rider Edition Wayne's Blood N Bones Wayne's Blood N Bones MCA And More MCA And More Community Community TFC Evolved TFC Evolved High-Altitude Alchemy High-Altitude Alchemy Realm of the Titans Realm of the Titans CrewModed CrewModed Mystical Block 2 Mystical Block 2 TerraFirmaQuest 3 TerraFirmaQuest 3 DivineRPG Server pack DivineRPG Server pack Summoner Delight Summoner Delight PixelGO - To the Sky 2 PixelGO - To the Sky 2 Ooga Booga: Caveman Evolution Ooga Booga: Caveman Evolution Sandbox in a Vacuum I SiaV Sandbox in a Vacuum I SiaV Miraculous SMP Miraculous SMP MineColony Enhanced MineColony Enhanced Concatenation Lite Concatenation Lite TekTopia Extended TekTopia Extended Crazycrafting For The Crazycrafting Server Crazycrafting For The Crazycrafting Server SimplePack 4 SimplePack 4 WayPoint WayPoint Manufactio - Casual Mode Manufactio - Casual Mode Parasites RPG Parasites RPG Shrek's Zombie Apocalypse FORGE 1.16.5/1.19.2 Shrek's Zombie Apocalypse FORGE 1.16.5/1.19.2 BeckBroPack BeckBroPack Wuxiacraft the Immortal Era Wuxiacraft the Immortal Era Super Stupidity Super Stupidity Dungeon Warfare - FUN RPG | Firearms and RPG! Dungeon Warfare - FUN RPG | Firearms and RPG! Level Border 2.0 Level Border 2.0 Minenufactory Minenufactory Tensura All The Slime 1 Tensura All The Slime 1 All The Neoforge All The Neoforge Aliens Vs Predator: The Reckoning Aliens Vs Predator: The Reckoning AtariKafa FabrikaCraft S1 AtariKafa FabrikaCraft S1 Apotheosis: Path of Ascension Apotheosis: Path of Ascension Mods, ores, and magic Mods, ores, and magic Zsombor's Zombie Apocalypse Zsombor's Zombie Apocalypse The Modded Rizoma MC The Modded Rizoma MC Parasites made by forgelabs but with modern warfare scps and more Parasites made by forgelabs but with modern warfare scps and more Hommage Hommage MythicCraft 1.12.2 [FORGE] - RPG Modpack MythicCraft 1.12.2 [FORGE] - RPG Modpack Technology empty Island Technology empty Island Picky Picky AdvoTech JJThunder AdvoTech JJThunder Stargate: ReLeveled Stargate: ReLeveled Farmy Skyblock Farmy Skyblock Waifu H [MCW] Waifu H [MCW] Pixelmon+ Pixelmon+ Lost Cities: Too Many Mods Lost Cities: Too Many Mods Prison Escape - Beginnings (reborn) Prison Escape - Beginnings (reborn) Refined Pack 2 Refined Pack 2 Singularity Create Singularity Create FreakCraft - CrazyCraft Inspired FreakCraft - CrazyCraft Inspired The Cyborg Runner The Cyborg Runner Sniper-assassin Sniper-assassin Narutocraft - By Gato Narutocraft - By Gato Medieval Dark Fantasy Craft [Rpg] Medieval Dark Fantasy Craft [Rpg] Community in the Skies Community in the Skies Draconic Infinity : Chapter 2 Draconic Infinity : Chapter 2 Industrial Age [1.12.2] Industrial Age [1.12.2] TeraCraft-3D Terraira TeraCraft-3D Terraira Reaching Darkness Reaching Darkness Aphmau's World Aphmau's World Sky Technology Sky Technology Randy's underground drug ring. Randy's underground drug ring. RockTown Tech World Sky Block RockTown Tech World Sky Block Tekkit Classic + Tekkit Classic + Op Heroes And Weapons Op Heroes And Weapons DirtBlock DirtBlock Aeon Automata Aeon Automata

External Resources