CurseForge · Minecraft mod
Fabric Flux
Simple energy API for Fabric mods
Quick answer
Which Fabric Flux release should I use?
Fabric Flux fabricflux-1.4.0.jar targets 1.16.5. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.
Where it goes
Is Fabric Flux required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Fabric Flux fabricflux-1.4.0.jar need?
fabricflux-1.4.0.jar. Change the file and its required mods may change too.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Fabric Flux without breaking your instance.
Built for Fabric Flux fabricflux-1.4.0.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use fabricflux-1.4.0.jar. It targets 1.16.5; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside fabricflux-1.4.0.jar. It opens that exact file at the source.
About this project
What does Fabric Flux add?
Warning: This mod is not part of Fabric. It is a 3rd party library that allows developers to create energy-based mods with Fabric.
Fabric Flux
Fabric Flux (in short FF) is a mod/library aiming to provide energy implementation to Fabric mods.
Battery
Try using this battery on entities.
How this works
There are two basic things to remember: Containers and Interfaces.
- Flux Container is an object that provides access to interfaces. Some containers may require some data for access. For example: Item will require ItemStack to provide an interface.
- Flux Interface is used to transfer energy from one container to another. Two interfaces are needed to complete an energy transfer.
Implementation tips for developers
- Every
Itemaccepting energy should implementIFluxContainerand always check ingetFluxForif object type isItemStack. Other object types are welcome. - Any
BlockEntitycan implement bothIFluxandIFluxContainer. If controller is implemented thengetFluxFormethod should always check if object type isDirection. Other object types are welcome. - If an interface simply does not accept input/output, it has to return
-1instead of energy amount (which won't be less than0). This should be checked before calculating energy. - DO NOT STORE Flux Interfaces, only containers. Some interfaces can be freshly created by a controller. There are some exceptions for items like (dis)charging a battery (
Itemhas to create a fresh interface because it can't be stored in an item stack). IFlux::toshould be used to transfer energy. This method can be overriden.FluxBatteryclass is provided in the API as a basic interface.
Energy API differences
FF differs a bit from Forge Energy API. This mod has less methods to implement and it is not capability-based (it uses containers instead). There are no canExtractEnergy/canReceiveEnergy counterparts, checking with extractFlux/receiveFlux(0, true) does the same, although this is not required.
Project description from CurseForge.
Pick your setup
Fabric Flux by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.16.5
1 loader build1.15.2
1 loader build1.15.1
2 loader builds1.14.4
2 loader builds1.14.3
2 loader builds1.14.2
2 loader builds1.14.1
2 loader builds1.14
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Fabric Flux versions and loaders
fabricflux-1.4.0.jar
28 Jan 2021
fabricflux-1.3.0.jar
18 May 2020
fabricflux-1.2.0.jar
25 Jan 2020
fabricflux-1.1.0.jar
18 Dec 2019
fabricflux-1.0.0.jar
1 Dec 2019
fabricflux-0.3.0.jar
7 Aug 2019
fabricflux-0.2.0.jar
26 Jul 2019
fabricflux-0.1.0.jar
21 Jul 2019
Looking for an older file? The official CurseForge project page is in Resources.