TESLA

TESLA

Cross-mod energy API providing a standardized power transfer system for Forge tech mods.

Downloads
16,055,184
Loaders
Forge
Latest version
1.12
Updated
2023-06-07
Author
DarkhaxDev

Overview

TESLA is a power API created for Minecraft Forge that enables cross-mod energy communication. With over 16 million downloads across versions 1.9 to 1.12.2, it provides a shared power network allowing items, blocks, and entities from entirely different mods to interact seamlessly.

This utility is essential for players and modpack creators who combine various technology mods and need a unified energy framework, as well as mod developers building energy-compatible add-ons. Modpack authors are freely permitted to include TESLA in their packs without needing to ask for permission.

In a tech base, TESLA acts as the underlying bridge connecting machinery, tools, and entities across your power grid. Because it utilizes Forge's Capability system and supports massive power values, it allows compatible mods to handle large-scale energy storage and even attach power functionality to existing objects like a vanilla furnace.

Key features

  • Facilitates cross-mod energy communication across items, blocks, and entities over a shared power network.
  • Built on Forge's Capability system to allow power logic to be attached to Tile Entities, ItemStacks, and Entities.
  • Allows developers to add power support to nearly anything, including vanilla blocks like furnaces, without using messy workarounds.
  • Uses 'long' data types instead of 'integer' types, making it easy for mods to work with much larger power numbers.
  • Recommends a straightforward conversion standard where 1 Tesla is equivalent to 1 RF.
  • Supports soft dependencies through Forge's Optional and CapabilityInject annotations so other mods do not need to bundle the API.

How to get started

  1. Ensure you are running Minecraft Forge on a supported version (1.9, 1.9.3, 1.9.4, 1.11.2, 1.12, or 1.12.2).
  2. Always download and install a full release version of TESLA for normal gameplay, as alpha and beta builds are meant for testers and may crash dependent mods.
  3. Install other technology mods that support the TESLA power network so their blocks, items, and entities can interact.
  4. If you are developing a mod, use Forge's Capability system to attach TESLA logic to your Tile Entities, ItemStacks, or Entities without directly implementing capability interfaces on tile entities.
  5. For mod developers adding optional TESLA support, use Forge's Optional and CapabilityInject annotations rather than bundling the API inside your mod.

FAQ

What does the TESLA mod do?

TESLA is a power API that allows blocks, items, and entities from different mods to communicate and share energy over a unified power network.

How does TESLA compare to other power APIs?

While it functions similarly to other power APIs and encourages a 1 Tesla to 1 RF standard, it is more flexible because it uses Forge's Capability system and utilizes longs instead of integers to support larger power numbers.

Why shouldn't I use alpha or beta releases of TESLA in my modpack?

Alpha and beta builds are strictly intended for mod authors and testers; mods that support TESLA target full releases, and using an alpha build can cause dependent mods to crash.

Can mod authors bundle the TESLA API inside their own mods?

No, bundling the API is strongly discouraged and unsupported; developers should instead create a soft dependency using Forge's Optional and CapabilityInject annotations.

Versions and loaders

MinecraftLoaders
1.12Forge

Similar tech mods