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
Infinite Progress Infinite Progress Farmageddon Farmageddon Dead Dawn - Realistic Zombie Apocalypse Dead Dawn - Realistic Zombie Apocalypse Soulcraft‎‎‏‏‎ ‎ Soulcraft‎‎‏‏‎ ‎ RPG - HORROR MODPACK RPG - HORROR MODPACK Voloron 3 Voloron 3 Scape and Tech Operation Meteorite Scape and Tech Operation Meteorite TurtleCraftSMP TurtleCraftSMP Liminal Paranoia Liminal Paranoia Quartiere WGF Quartiere WGF FemboyFarm FemboyFarm Tech & Survival Tech & Survival DiscoveryRPG DiscoveryRPG Guns, Dinosaurs and Stuff Guns, Dinosaurs and Stuff STcraft STcraft Neo's Scape Server Pack Neo's Scape Server Pack John Hall CEu Pack John Hall CEu Pack carcraft carcraft Colony Equivalence Colony Equivalence Wither Storm Optimization Wither Storm Optimization The Orange Block The Orange Block Valheim Explore Valheim Explore WAR AND NUKES WAR AND NUKES The Ultimate Limitless - TUL 2 The Ultimate Limitless - TUL 2 Superhero SMP Cross Addition Superhero SMP Cross Addition Entropy Zero  Evolution Entropy Zero Evolution EPiCCRAFT 2 (Remake) EPiCCRAFT 2 (Remake) Gregtech: Quantum Gregtech: Quantum SamuraiAdventure SamuraiAdventure Arkobia 2 Arkobia 2 Zomboid Craft Zomboid Craft Actual Mobs (smarter and stronger mobs) Actual Mobs (smarter and stronger mobs) Aeon Automata 2 Aeon Automata 2 GameGarden Ultimate GameGarden Ultimate MayemCraft MayemCraft New Fantasy New Fantasy Artemis Continuum Artemis Continuum The Ultimate Limitless - TUL The Ultimate Limitless - TUL GregTech: Supra - Transcendent GregTech: Supra - Transcendent Virtu's Hack and Slash Virtu's Hack and Slash Jujutsu Kaisen  A Sorcerer's Path Jujutsu Kaisen A Sorcerer's Path Winter Apokalypse Winter Apokalypse DaD-Dinosaurios y Dragones DaD-Dinosaurios y Dragones Endless Sky 2 Endless Sky 2 Farlands - Origins Of The Olimpus Farlands - Origins Of The Olimpus Tensura - Rebirth Tensura - Rebirth NonsenseCraft - Naruto NonsenseCraft - Naruto Pixelmon: Extra Adventures 2 Pixelmon: Extra Adventures 2 AntCraft | Avatar The Last Airbender AntCraft | Avatar The Last Airbender Horror from the Zombie Horde Horror from the Zombie Horde Tensura Super Reincarnated Tensura Super Reincarnated Sky Foodie Sky Foodie CrazyMC - A Special Apocalypse | Apocalypse with Quests! CrazyMC - A Special Apocalypse | Apocalypse with Quests! jcraft jcraft Crazy Adventure Crazy Adventure The RawffleVerse Reforged The RawffleVerse Reforged Mystic's Monstrosity - Avaricious Edition Mystic's Monstrosity - Avaricious Edition Cobblemon, Side by Side! (EARLY ACCESS) Cobblemon, Side by Side! (EARLY ACCESS) Wendigos winter Wendigos winter Xomaps RPG Xomaps RPG Myths & Machinery Myths & Machinery DracoNeo - Council of Wyrms DracoNeo - Council of Wyrms Eterium Sky Infinity Eterium Sky Infinity Dungeons & Dungeoneers! Dungeons & Dungeoneers! Dwarfz 6 Dwarfz 6 PureMash Tech PureMash Tech NVPack NVPack Farlands - Rising Farlands - Rising Vix Vix Superhero and Ben10 SMP Superhero and Ben10 SMP Concatenation Lumineth Concatenation Lumineth theajpack! theajpack! Nightmare-Pack Sky Unlockt Nightmare-Pack Sky Unlockt Attack of the new B-Team Attack of the new B-Team Stone to Tech Stone to Tech AVP Tech AVP Tech Dark Chocolate Edition Dark Chocolate Edition Create Continents Create Continents Lumin Origins Lumin Origins Projet N-Tech Projet N-Tech SkyFactory Reborn SkyFactory Reborn DoomsDay Jurassic Survival DoomsDay Jurassic Survival TechJourney Expert TechJourney Expert ROLO Edition ROLO Edition Arkobia 3 Arkobia 3 Impostor Syndrome - Reimagined Impostor Syndrome - Reimagined Project Eternity  A New Vision Project Eternity A New Vision AstroGregExsilium AstroGregExsilium Mechanical Infinity Mechanical Infinity Karmunism-Refugee Karmunism-Refugee Enchantments Enchantments Myths of Frost and Flame Myths of Frost and Flame PandaLand Pack PandaLand Pack Winter Leveling Winter Leveling CanarioLand 2 CanarioLand 2 Modled Modled The Last Province zombie apocalypse The Last Province zombie apocalypse Magecraft: A Gods Tale Magecraft: A Gods Tale Warspire Warspire Resurgence of the Damned: Further West Resurgence of the Damned: Further West

External Resources