LifeCompat
by 2Bad4Mods
LifeCompat is a Fabric library that gives other mods shared APIs for buckets, events, and energy, so compatibility code does not have to be written from scratch in each mod.
What it does
The Bucket API lets a mod register custom bucket types, such as a wooden bucket, and add new fluids that those buckets can hold, alongside the vanilla ones. The Event API exposes common game events, including BlockBreakEvent, ItemUseEvent and PlayerDeathEvent, and lets a mod create its own events for other mods to listen to. The Energy API adds a way for blocks to provide, store or consume energy, which the author describes as a different approach to energy compatibility between mods.
Fabric API is required and must be installed alongside LifeCompat. Skylife requires LifeCompat, so it is one of the mods that depends on this library. LifeCompat runs on client and server, so the server and every player need it. Files are published for Fabric only, for game version 1.21, and the code is released under the MIT License as open source.
Key features
Custom bucket types
Mods can add buckets made from other materials and register fluids that those buckets hold.
Listenable game events
Common events such as block breaks, item use and player deaths can be subscribed to by other mods.
Custom events
A mod can define its own events, so the events it fires are available to other mods built on the library.
Energy API for blocks
Blocks can be given the ability to provide, contain or use energy through the shared energy interface.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Required by 1 mod
Use cases
Who it’s for: Mod developers who want shared APIs for buckets, events and energy, and modpack authors who combine mods that depend on this library.
How it compares
Kielson's API is also an MIT-licensed, open source Fabric library, with files for 1.21 – 26.2 and the same client and server environment as LifeCompat. GoreLib is a CC0 1.0 Universal open source Fabric library for 1.19 – 1.19.2 that also runs on client and server. BlunthornAPI is an MIT-licensed open source Fabric library for 1.20.1 – 1.20.6 that has no environment listed. LifeCompat covers only game version 1.21, so it does not reach the earlier range of GoreLib or BlunthornAPI.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| LifeCompat | Fabric | 1.21 | Client and server | 2025-05-13 |
| Kielson's API | Fabric | 1.21 – 26.2 | Client and server | 2026-08-06 |
| GoreLib | Fabric | 1.19 – 1.19.2 | Client and server | 2023-05-04 |
| BlunthornAPI | Fabric | 1.20.1 – 1.20.6 | Not published | 2024-10-30 |
Questions
Does Fabric API need to be installed with LifeCompat?
Does LifeCompat have to be installed on both sides?
Which mods depend on LifeCompat?
Is LifeCompat available for versions other than 1.21?
In the catalog
LifeCompat is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,770 mods support Minecraft 1.21.
More from 2Bad4Mods
Similar mods
What the author says
A Compatibility Mod designed to simplify essential Modding Processes like events, bucket compatibility, and Energy. Currently provided APIs are: - Bucket API - Add custom Bucket Types (like wood,...) or expand the vanilla ones with new Fluid Buckets - Event API - Listen to common Events (e.g. BlockBreakEvent…
Official listing
- Modrinth page
- modrinth.com/mod/lifecompat
- Owner
- 2Bad4Mods
- Published
- 2024-07-25
- Updated on Modrinth
- 2025-05-13
- Facts verified
- 2026-10-15
