Lightning Mod
Description:
The Lightning Mod enhances your Minecraft experience by increasing the frequency of lightning strikes during thunderstorms.
Features
- Configurable Lightning Frequency: Adjust the chance of lightning strikes during a thunderstorm. Make them incredibly frequent or extremely rare using a simple slider. The lower the value, the more often lightning will strike.
- Skeleton Horse Control: Modify the spawn chance of the "Skeleton Trap" horses that appear from lightning strikes. You can reduce the chance or disable them completely.
- All-Biome Lightning: Enable an option to allow lightning to strike in any biome during a thunderstorm, including deserts, savannas, and mesas. No more safe havens from the storm!
- In-Game Configuration: All settings can be easily changed in-game through the ModMenu settings screen, powered by Cloth Config.
- Compatibility with Fabric and Paper: Works seamlessly on both Fabric and Paper servers.
Installation
For Fabric
- Install Fabric Loader and Fabric API.
- Download and install YACL (for Minecraft versions 1.21.11 and below, use Cloth Config).
- Place the mod file in the
modsfolder in your Minecraft directory.
For Paper
- Download the latest version of Paper from the official website.
- Place the mod file in the
pluginsfolder in your Minecraft server directory. - Start the server to enable plugin.
Configuration
(for Fabric) The configuration file can be found in config/lightningmod.json or use Mod Menu.
(for Paper) plugins/LightningMod/config.yml.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 | ||||
| 12h ago | 1 |
- port to 26.1
- switch to YACL instead of cloth config
## 2.0
### Added
- Lightning Frequency Control**: Added a new slider in the config screen to control the frequency of lightning strikes during a thunderstorm. Lower values result in more frequent lightning.
- Skeleton Horse Spawn Control**: Added a new slider to control the spawn chance of Skeleton Horse traps. Users can now reduce the chance from 100% (vanilla) down to 0% (disabled).
- All-Biome Lightning**: Added a boolean toggle to allow lightning to strike in biomes that are normally "dry" (like deserts, savannas, etc.), as long as a thunderstorm is active in the world.
- In-Game Configuration**: Created a full in-game configuration screen using Cloth Config, accessible via Mod Menu.
### Changed
- The configuration is now managed through
lightningmod.jsoninstead of requiring manual edits. - Improved user experience by using sliders for numeric values instead of simple text fields.
- Excluded old built-in cloth config
- Updated cloth config version
- Updated Minecraft version to 1.21.4.
- Improved stability and performance.
- Fixed minor bugs.
- Updated to 1.21.2 and 1.21.3
- 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.
- 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.
## [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 issues with the logic for searching for lightning rods.
- Ensured that the mod works correctly in different world environments.
### Known Issues
- High values for
lightningChancecan significantly impact server performance.
## Features
- Configurable lightning strike chance
- Adjustable radius around players for lightning strikes
## Installation
1. Download the latest version of LightningMod.
2. Place the
.jar file into the plugins directory of your Minecraft server.3. 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:```yaml
# 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
- updated to version 1.21.1
### Fixed
- lightning rods didn't work when there were two or more of them
- Configuration option to enable or disable the lightning rod feature.
- Lightning strikes will now prioritize hitting nearby lightning rods within a radius of 64 blocks.
### Fixed
- Various minor bugs and optimizations.
- added lightning rod support**
- updated to 1.21!**
- added support for multiple versions**