HammerLib Mod (1.21.1, 1.20.1) – Library for Zeith’s Mods
HammerLib Mod (1.21.1, 1.20.1) is an essential tool for developing mods easily. Packed with a lot of utilities, this library provides nearly anything a modder would need, in one handy mod.
Features:
- 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 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), avoids using the geometry loader class by making a common wrapper.
- …And a whole lot more!
Requires:
How to install:
How To Download & Install Mods with Minecraft Forge
How To Download & Install Fabric Mods
Don’t miss out today’s latest Minecraft Mods
HammerLib Mod (1.21.1, 1.20.1) Download Links
For Minecraft 1.10.2
Forge version: Download from Server 1
For Minecraft 1.11.2
Forge version: Download from Server 1
For Minecraft 1.12.2
Forge version: Download from Server 1
For Minecraft 1.13.2
Forge version: Download from Server 1
For Minecraft 1.15.2
Forge version: Download from Server 1
For Minecraft 1.16.5
Forge version: Download from Server 1
For Minecraft 1.18.2, 1.18.1
Forge version: Download from Server 1
For Minecraft 1.19.2, 1.19.1, 1.19
Forge version: Download from Server 1
For Minecraft 1.19.3
Forge version: Download from Server 1
For Minecraft 1.20.1, 1.20
Forge/NeoForge version: Download from Server 1
For Minecraft 1.20.2
NeoForge version: Download from Server 1
For Minecraft 1.20.4, 1.20.3
NeoForge version: Download from Server 1
For Minecraft 1.20.6
NeoForge version: Download from Server 1
For Minecraft 1.21
NeoForge version: Download from Server 1
For Minecraft 1.21.1
NeoForge version: Download from Server 1