Fixed
- Correct Y coordinate for lightning strikes:
- Fixed an issue where lightning always struck at Y = 0. Now the lightning strikes on the surface, using the correct terrain height.
Changed
- Improved server-side functionality:
- Ensured that all lightning strike logic is processed correctly on the server side, including finding lightning rods and spawning lightning entities.
Changelog
[1.1]
Added
- Initial release of the Lightning Mod.
- Debug mode for additional logging during development.
Changed
- Implemented a random player selection for lightning calculations.
- Improved the method for searching for lightning rods in relation to the player's position.
Fixed
- Fixed issues with the logic for searching for lightning rods.
- Ensured that the mod works correctly in different world environments.
Known Issues
- High values for
lightningChance
can significantly impact server performance.
LightningMod-paper
Features
- Configurable lightning strike chance
- Adjustable radius around players for lightning strikes
Installation
- Download the latest version of LightningMod.
- Place the
.jar
file into theplugins
directory of your Minecraft server. - Restart the server or use
/reload
command to load the plugin.
Configuration
The configuration file can be found at plugins/LightningMod/config.yml
. Here are the available settings:
# Enable or disable the mod
modEnabled: true
# Chance of a lightning strike occurring (from 0.0 to 1.0)
lightningChance: 0.05
# Radius around the player where lightning can strike
lightningRadius: 100
# Enable or disable the use of lightning rods
lightningRodEnabled: true
# Interval (in ticks) to check for lightning strikes (default 100 ticks = 5 seconds)
checkInterval: 100