All Mods Resource Packs Data Packs Shaders Modpacks Plugins
HammerLib

HammerLib

by Zeith • Downloads: 18 • Followers: 0
Description
Gallery
Changelog
Versions

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 . 

How to Install HammerLib (Mod)

HammerLib by Zeith is verified for Forge, Neoforge across Minecraft versions 1.10.2, 1.11, 1.11.2, 1.12.2, 1.13.2, 1.15.2, 1.16.3, 1.16.5 (latest release: 21.0.17, file size: 2.3 MB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.10.2, 1.11, 1.11.2, 1.12.2, 1.13.2, 1.15.2, 1.16.3, 1.16.5) and platform (Forge, Neoforge).
  2. Make sure you have the compatible loader or environment installed for Forge, Neoforge.
  3. Move the downloaded HammerLib file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Neoforge
2mo ago 10
1.21.x
Neoforge
2mo ago 5
1.21.x
Neoforge
2mo ago 3
1.12.2
Forge
2mo ago 2
1.12.2
Forge
2mo ago 2
1.12.2
Forge
2mo ago 2
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.20.1
Forge Neoforge
2mo ago 1
1.21.4
Neoforge
2mo ago 1
1.21.4
Neoforge
2mo ago 1
1.21.4
Neoforge
2mo ago 1
1.21.4
Neoforge
2mo ago 1
1.21.4
Neoforge
2mo ago 1
1.20.1
Forge Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.21
Neoforge
2mo ago 1
1.20.6
Neoforge
2mo ago 1
1.20.6
Neoforge
2mo ago 1
1.20.6
Neoforge
2mo ago 1
1.20.5
Neoforge
2mo ago 1
1.20.4
Neoforge
2mo ago 1
1.20.3
Neoforge
2mo ago 1
1.20.2
Neoforge
2mo ago 1
1.20.1
Forge Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.6
Neoforge
2mo ago 1
1.20.5
Neoforge
2mo ago 1
1.20.4
Neoforge
2mo ago 1
1.20.3
Neoforge
2mo ago 1
1.20.2
Neoforge
2mo ago 1
1.20.1
Forge Neoforge
2mo ago 1
1.20.4
Neoforge
2mo ago 1
1.20.6
Neoforge
2mo ago 1
1.20.5
Neoforge
2mo ago 1
1.20.3
Neoforge
2mo ago 1
1.20.2
Neoforge
2mo ago 1
1.20.1
Forge Neoforge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.20.1
Forge Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.4
Neoforge
2mo ago 1
1.20.3
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.2
Neoforge
2mo ago 1
1.16.5
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.1
Neoforge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.20.1
Forge Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20
Forge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20
Forge
2mo ago 1
1.20
Forge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20
Forge
2mo ago 1
1.20
Forge
2mo ago 1
1.19.3
Forge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.11.2
Forge
2mo ago 1
1.11
Forge
2mo ago 1
1.10.2
Forge
2mo ago 1
1.19.3
Forge
2mo ago 1
1.19.2
Forge
2mo ago 1
1.18.2
Forge
2mo ago 1
1.18.1
Forge
2mo ago 1
1.16.5
Forge
2mo ago 1
1.16.3
Forge
2mo ago 1
1.15.2
Forge
2mo ago 1
1.13.2
Forge
2mo ago 1
1.12.2
Forge
2mo ago 1
[21.0.17] 21.0.17 by Zeith on Oct 14, 2026
Download

Changelog:


[21.0.16] 21.0.16 by Zeith on Oct 14, 2026
Download

Changelog:
  • Port missing features from FlowGui 1.20.1;
  • DistExecutor is back; (for very not safe things)
  • Many utilities ported from 1.20.1;
[21.0.15] 21.0.15 by Zeith on Oct 14, 2026
Download

Changelog:


### [To get developer builds, see HammerLib wiki.](https://mcdoc.zeith.org/docs/intro)

# Changes:

  • 12.2.66 - Fix ShaderLightingVariable producing absurd values on SteamOS.
  • 12.2.65 - ResourceBasedShaderVar.postProcessCode.

<h3><a href="https://mcdoc.zeith.org/docs/intro">To get developer builds, see HammerLib wiki.</a></h3>
<h1>Changes:</h1>
<ul>
<li> 12.2.65 - ResourceBasedShaderVar.postProcessCode.</li>
<li> 12.2.65 - ShaderResource and ResourceBasedShaderVar.</li>
<li> 12.2.64 - ShaderVar.onReload, implement manual 30s timeout for ModSourceAdapter.</li>
<li> 12.2.63 - Several missing methods in KeyMap + its refactor to match later game versions.</li>
<li> 12.2.62 - Fix UUID NBT serialization to use int[4] (as single property) instead of old 1.12.2 two property approach (Most/Least suffixes).</li>
<li> 12.2.61 - Several profiling and data features, as well as async HTTP handling for mod sources at early start.</li>
<li> 12.2.60 - Fix crashing with ThaumicAdditions. (Close #86)</li>
<li> 12.2.59 - Fix maven-publish to force upload deobf artifact as main, and remove all runtime dependencies.</li>
</ul>

[12.2.63] 12.2.63 by Zeith on Oct 14, 2026
Download
  • Several missing methods in KeyMap + its refactor to match later game versions.
### [To get developer builds, see HammerLib wiki.](https://mcdoc.zeith.org/docs/intro)

# Changes:

  • 12.2.62 - Fix UUID NBT serialization to use int\[4\] (as single property) instead of old 1.12.2 two property approach (Most/Least suffixes).
[To get developer builds, see HammerLib wiki.](https://mcdoc.zeith.org/docs/intro)
# Changes:
  • 12.2.61 - Several profiling and data features, as well as async HTTP handling for mod sources at early start.
[To get developer builds, see HammerLib wiki.](https://mcdoc.zeith.org/docs/intro)
# Changes:
  • 12.2.60 - Fix crashing with ThaumicAdditions. (Close #86)
### To get developer builds, see HammerLib wiki.
# Changes:
  • 12.2.59 - Fix VariableShaderProgram's uniform cache being populated incorrectly and make default float values in the cache NaN, so regardless of what the first setUniform call will have - it will always go through.
  • 12.2.59 - Cleanup a lot of unused things, optimize VariableShaderProgram by using hash maps instead of dumb array maps, as well as reuse previous shader states for int1/float1 uniforms, reducing amount of GL calls when the data is the same.
[12.2.58] 12.2.58 by Zeith on Oct 14, 2026
Download
### [To get developer builds, see HammerLib wiki.](https://mcdoc.zeith.org/docs/api/intro)
# Changes:
  • Prevent shaders from reloading during preInit (because some mods force a reload on preinit for... some reason);
  • Actually query ShaderVar state and recompile shader program whenever variables change;
  • Utility methods for ColoredLight;
  • Fix shader NPEs caused by null values;
  • Reset shader variable hasChanged state on upload.
[20.1.50] 20.1.50 by Zeith on Oct 14, 2026
Download
  • Backport secure jar display in mod list;
  • Proper synchronization with SimpleInventory change;
[21.4.5] 21.4.5 by Zeith on Oct 14, 2026
Download

Changelog:


[21.4.4] 21.4.4 by Zeith on Oct 14, 2026
Download

Changelog:


[21.4.3] 21.4.3 by Zeith on Oct 14, 2026
Download

Changelog:


HammerLib Icon
Download HammerLib
Select game version
Select platform