If you are looking for the Fabric version of this mod, you can find it here.
LightingMod-Paper is a custom Minecraft plugin for Paper servers that adds realistic lightning behavior, including the ability for lightning to be attracted to lightning rods. The plugin allows for dynamic lightning strikes based on player activity and thunderstorm conditions in the game world.
- Random Lightning Strikes: During thunderstorms, random players in the world can be targeted for lightning strikes.
- Lightning Rod Attraction: Lightning can be attracted to nearby lightning rods within a specified radius.
- Configurable Chance and Radius: The chance of lightning striking and the radius for lightning rod attraction can be configured.
- Download the latest version of the plugin
.jar
file. - Place the
.jar
file into your server'splugins
folder. - Start or restart your Paper server.
- The plugin will automatically generate a configuration file in the
plugins/LightingMod-Paper
directory.
The configuration file config.yml
contains the following settings:
modEnabled
(boolean): Whether the lightning mod is enabled (true
orfalse
).checkInterval
(integer): The interval in server ticks for checking if lightning should strike (default is 100 ticks, or 5 seconds).lightningChance
(double): The chance of lightning striking each interval (0.0 - 1.0).lightningRadius
(integer): The radius within which a random lightning strike can occur around a player.lightningRodEnabled
(boolean): Whether lightning rods can attract lightning.debugMode
(boolean): Outputs additional debug information if enabled.
Currently, the plugin does not require any permissions to function, and all configuration is done through the config.yml
file.
There are no commands associated with this plugin. All settings are managed through the configuration file.
- Lightning Doesn't Strike: Ensure
modEnabled
is set totrue
and the chance of lightning (lightningChance
) is greater than0.0
. - Performance Issues: Lower the
checkInterval
or reduce thelightningRadius
if you experience performance problems.
This plugin is distributed under the MIT License. See the LICENSE
file for more information.
Feel free to open an issue or submit a pull request if you would like to contribute to the project. Your feedback and contributions are always welcome!