Описание

# Lightning Power
[](https://github.com/Kir-Antipov/lightning-power/actions/workflows/build-artifacts.yml)
[](https://github.com/Kir-Antipov/lightning-power/releases/latest)
[](https://modrinth.com/mod/lightning-power)
[](https://www.curseforge.com/minecraft/mc-mods/lightning-power)
[](https://github.com/Kir-Antipov/lightning-power/blob/HEAD/LICENSE.md)
A utility mod that turns lightning rods into a power source acceptable by machines from popular tech mods, e.g., [Tech Reborn](https://www.curseforge.com/minecraft/mc-mods/techreborn).
----
## Config
If you have [Cloth Config](https://modrinth.com/mod/cloth-config) installed, you can customize the behavior of the mod. A config is usually located at `./config/lightning_power.json` and by default looks like this:
```json
{
"accurateRedstonePower": false,
"emittedEnergyAmountPerTick": 4096
}
```
| Name | Description | Default value |
| ---- | ----------- | ------------- |
| `accurateRedstonePower` | Redstone signal emitted by a lightning rod will gradually decrease from 15 to 0 | `false` |
| `emittedEnergyAmountPerTick` | Emitted energy amount (per tick) | `4096` |
You can edit any of these values directly in the config file or via [ModMenu](https://modrinth.com/mod/modmenu).
----
## Installation
Requirements:
- Minecraft `>=1.17.x`
- Fabric Loader `>=0.11.3`
You can download the mod from:
- [GitHub Releases](https://github.com/Kir-Antipov/lightning-power/releases/latest) (recommended)
- [Modrinth](https://modrinth.com/mod/lightning-power)
- [CurseForge](https://www.curseforge.com/minecraft/mc-mods/lightning-power)
- [GitHub Actions](https://github.com/Kir-Antipov/lightning-power/actions/workflows/build-artifacts.yml) *(these builds may be unstable, but they represent the actual state of the development)*
## Building from sources
Requirements:
- JDK `17`
### Linux/MacOS
```cmd
git clone https://github.com/Kir-Antipov/lightning-power.git
cd lightning-power
chmod +x ./gradlew
./gradlew build
cd build/libs
```
### Windows
```cmd
git clone https://github.com/Kir-Antipov/lightning-power.git
cd lightning-power
gradlew build
cd build/libs
```