If you are looking for the Paper version of this mod, you can find it here.
LightningMod is a Minecraft mod for Fabric that adds dynamic and realistic lightning strikes during thunderstorms, with features such as lightning rod attraction and configurable lightning behavior. The mod enhances the experience of thunderstorms by making lightning strikes more interactive and customizable.
- Random Lightning Strikes: Lightning can randomly strike near players during thunderstorms in the overworld.
- Lightning Rod Attraction: When lightning rods are enabled, the mod will check for nearby lightning rods within a specified radius and strike them if found.
- Configurable Settings: The chance for lightning strikes, radius, and other settings can be adjusted in the configuration.
To use this mod, you need to install the following dependencies:
- Fabric API (required)
- Cloth Config (required for configuration management)
- Download the latest
.jar
file for the mod. - Download the Fabric API and Cloth Config mods.
- Place all three
.jar
files (LightningMod, Fabric API, and Cloth Config) in your Fabric server'smods
folder. - Start or restart the Fabric server to load the mods.
- A configuration file will be generated in the
config
folder where settings can be customized.
The configuration file (lightningmod.json
) includes the following settings:
modEnabled
(boolean): Enables or disables the mod (true
orfalse
).lightningChance
(double): The chance for lightning to strike each tick during a thunderstorm (range 0.0 - 1.0).lightningRadius
(integer): The radius around players where lightning can randomly strike.lightningRodEnabled
(boolean): Enables lightning rod attraction behavior.
- Mod Not Working: Make sure
modEnabled
is set totrue
in the configuration file, and that thunderstorms are occurring in the overworld. - Performance Issues: Reduce the
lightningRadius
or lightning chance to decrease the number of checks per tick.
This mod is licensed under the MIT License. See the LICENSE
file for details.
Feel free to contribute by opening issues, submitting pull requests, or providing feedback. All contributions are welcome!
For any questions or issues, you can reach out via GitHub Issues.