TESLA
by Darkhax
Tesla is a Forge library that defines a shared power API, so that mods can exchange energy through the same capability interfaces.
What it does
Tesla gives mods a common way to move power between items, blocks and entities. Its interfaces are built on Forge's capability system, which lets a mod add Tesla support to a block such as a vanilla furnace without bundling extra code or relying on a workaround. Energy values use longs rather than integers, so the API can carry much larger power numbers. One Tesla is equal to one Redstone Flux (RF).
The API was made as a side project and drew attention from other developers, and its author describes it as a deliberate alternative to existing power APIs rather than an attempt to replace them all. It enforces a small set of standards that mod authors are encouraged to follow, and the logic stays in capability methods so tile entities implement the sided interfaces directly. Mods that depend on Tesla declare it through Forge's optional soft dependency annotation.
Tesla is open source under the MIT License and runs on client and server. Files are published for Forge only, across 10 release versions 1.9 – 1.12.2, and the latest file is 1.0.63 for 1.12.2, released on 2023-06-07. Bundling the API inside another mod is allowed but discouraged, and the author does not officially support it.
Key features
Shared power interfaces
Items, blocks and entities expose Tesla capabilities so that different mods can send and receive power.
Forge capability based
Support is added through capability methods, so a machine gains power handling without a custom hook.
Large power values
Energy amounts are stored as longs, which lets mods work with much bigger power numbers than integers allow.
Compatibility
Latest build for each game version and loader.
1.12.x2 of 2 versions with builds
1.11.x2 of 2 versions with builds
1.10.x3 of 3 versions with builds
1.9.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Machine interoperability
A generator mod and a machine mod can exchange power over Tesla without writing a direct integration between them.
Vanilla block power
Mod authors can give a vanilla block such as a furnace power handling through the capability system.
Who it’s for: Mod developers who want their machines or cables to exchange power with other mods, and modpack authors who combine several power-based mods on Forge 1.12.2 or older versions.
Questions
Does Tesla need to be installed on both client and server?
Which Forge versions does Tesla support?
Can another mod include Tesla inside its own copy?
In the catalog
TESLA is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 2,920 mods support Minecraft 1.12.2.
More from Darkhax
Similar mods
What the author says
Tesla is a power API designed for cross mod communication. It allows for Items, Blocks and Entities from various mods to interact with each other over the Tesla power network. WARNING: Alpha and beta releases are intended for mod authors and testers. Mods that support Tesla should only target full releases! Using an…
Official listing
- Modrinth page
- modrinth.com/mod/tesla-api
- Owner
- Darkhax
- Published
- 2023-06-07
- Updated on Modrinth
- 2023-06-07
- Facts verified
- 2026-10-15
