CoFHLib — Guide
Redstone Flux (RF) API
The Redstone Flux (RF) system is the primary mechanic managed by CoFHLib. It is a standardized energy system used to power machines, tools, and armor. CoFHLib defines how this energy is stored, transmitted, and consumed.
Energy Mechanics
- Generation: Defined through interfaces that allow blocks (like Dynamos) to produce energy from fuel.
- Storage: Provides the logic for internal buffers in machines and portable storage items like Flux Capacitors.
- Transmission: Manages the rules for how energy moves through cables (Fluxducts) or wireless transmitters (Tesseracts).
| Feature | Description |
|---|---|
| Standard Unit | Redstone Flux (RF) |
| Transfer Rate | Defined by the specific cable or machine interface |
| Loss Mechanics | Typically 0% loss over distance (depending on implementation) |
| Compatibility | Native support for all TeamCoFH mods and hundreds of third-party mods |
Technical Mechanics
As a library, CoFHLib handles complex backend operations that ensure game stability and performance.
- Fluid Handling: Provides a robust framework for transporting liquids (like Steam, Enderium, or Lava) through ducts and storing them in tanks.
- Inventory Management: Standardizes how machines pull items from adjacent chests or eject them into pipes.
- Packet Handling: Manages the communication between the server and the client to ensure that machine progress bars and energy levels update accurately in the GUI.
- Augment System: Defines the logic for "Augments," which are plug-in modules that upgrade machine speed, efficiency, or output.
Update History & Maintenance
CoFHLib received consistent updates throughout the 1.7.10 lifecycle to maintain compatibility with evolving Forge versions and third-party mods.
May 25 Updates
On May 25, 2019, a significant maintenance update was released for the entire CoFH suite. For CoFHLib, this included: * Bugfixes: Resolved minor issues with energy synchronization in multiplayer. * Tweaks: Improved the efficiency of fluid transport logic. * Vanilla+ Integration: Added support for the Void Satchel, a specialized storage item that automatically destroys items placed inside it, useful for automated mining setups. * Refactors: Internal code cleanup to improve compatibility with late-stage 1.7.10 modpacks.