Nifty
by aeonic-dev
Nifty is a library mod for Fabric, Forge and Quilt that provides shared systems for item, fluid and energy transfer, machinery, networking and UI.
What it does
Nifty exposes its own transfer, networking and interface systems so that other mods can build machines and blocks on one API instead of writing separate code for each loader. Block entities implement an interface that provides aspects, and those aspects are wrapped lazily and optionally, in a way that resembles how Forge tracks capabilities and invalidates them. A simulation-based transfer system covers items, fluids and energy, and simple handler implementations use the mod's own systems.
On Forge, fluid stacks are wrapped so that the default item, fluid and Forge Energy systems are used. On Fabric, the same wrappers route transfers through the Fabric API transfer systems, so a mod written against Nifty behaves consistently on both loaders. The API is documented with Javadoc throughout. Fabric API is a required dependency and must be installed alongside Nifty on Fabric.
Builds are published for Fabric, Forge and Quilt for 1.19.2 only, with v1.1.0 as the latest file on each loader, dated 2022-11-20. The first release came out on 2022-11-15. Both sides must run the mod, and players connecting to a server need it as well. The code is open source under the GNU General Public License v2.0 only, and the source code and issue tracker are publicly linked.
Key features
Item, fluid and energy transfer
A simulation-based transfer system moves items, fluids and energy between block entities and handlers.
Cross-platform wrappers
Fluid stacks and handlers are wrapped so the same mod code maps onto Forge capabilities and Fabric API transfer systems.
Lazy aspect handling
Block entities provide aspects through an interface, and the aspects are wrapped lazily and optionally, with invalidation support.
Networking and UI helpers
The library includes machinery, networking and user interface utilities for building mods on top of it.
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
Use cases
Who it’s for: Mod developers who build machines, pipes or other blocks that move items, fluids or energy, and who want one API across Fabric and Forge. Players usually install Nifty only as a dependency of other mods.
Questions
Does Nifty need Fabric API?
Which loaders and game versions does Nifty support?
Does Nifty have to be installed on the server?
In the catalog
Nifty is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 12,559 mods support Minecraft 1.19.2.
More from aeonic-dev
Similar mods
What the author says
Nifty is used as a library for most of my other mods to ease cross-platform development and lessen code duplication; it also does introduce its own systems that are vastly useful though with Aspects and transfer functionality. The API is pretty extensively documented through the Javadoc.
Official listing
- Modrinth page
- modrinth.com/mod/nifty
- Owner
- aeonic-dev
- Published
- 2022-11-15
- Updated on Modrinth
- 2022-11-20
- Facts verified
- 2026-10-15
