๐ฉ Extreme Thunder โ The Most Dangerous Storm in Minecraft
Introducing Extreme Thunder, a powerful and realistic thunderstorm system designed for Paper 1.21.8 servers. This plugin transforms ordinary rain into a deadly survival event that challenges every player on the server.plugin name stormx2
Unlike normal Minecraft weather, this storm:
* ๐ง Rains twice as heavily * ๐ Makes the world significantly darker during the day * โก Strikes lightning near players * ๐ Damages players with lightning (1.5โ2 hearts per hit) * ๐ง Spawns dangerous mobs around players * ๐ Affects all worlds on the server * ๐ Rewards players who survive
---
โก Storm Features
๐ฉ Realistic Dangerous Lightning
* Lightning strikes near players randomly. * Each lightning strike deals 1.5โ2 hearts of damage. * Sometimes the rain itself can hurt players.
---
๐ง Mob Ambush System
When lightning hits near a player:
* Spawns 4โ5 Zombies and Skeletons * Spawn radius: 4โ5 blocks around the player * Mobs have randomized enchanted diamond armor:
* Boots / Chestplate / Leggings * Possible enchantments:
* Unbreaking III * Mending * Thorns I * Protection IV * Enchantments are randomized for realism.
---
โณ Storm Timing System
* Occurs automatically every 10 Minecraft days * Duration: 20 minutes * Affects all worlds * Optimized to avoid lag:
* Controlled mob spawn rate * Limited lightning frequency * Cleanup system after storm
---
๐ Survivor Rewards
Players who survive the full storm receive:
* 1 Netherite Scrap * 9 Diamonds * 12 Gold Ingots
Only players online and alive when the storm ends receive rewards.
---
๐ Command System
Command:
code
/start storm2
Behavior:
* Starts the Extreme Thunder event manually. * Broadcasts message:
code
โก The Extreme Thunder Storm has begun! Seek shelter!
```
* Forces thunder + rain in all worlds.
* Starts 20-minute timer.
* Activates mob + lightning system.
* Gives rewards after completion.
---
# ๐ป How To Structure It (Plugin Maker Logic)
## 1๏ธโฃ Command Creation
Create command:
Name: `start`
Argument: `storm2`
Permission:
extremethunder.start
code
---
## 2๏ธโฃ Storm Start Logic
When command runs:
* Loop through all worlds:
* Set storm = true
* Set thundering = true
* Set weather duration = 20 minutes (24000 ticks)
Start repeating task every 5โ10 seconds:
For each online player:
* Random chance to:
* Strike lightning near them
* Deal 3โ4 damage (1.5โ2 hearts)
* Spawn 4โ5 mobs around them
---
## 3๏ธโฃ Randomized Damage Example (Logic Concept)
Damage:
random number between 3 and 4 player.damage(randomDamage) ```
---
4๏ธโฃ Random Mob Spawning Concept
For each spawn:
* Random offset X/Z between -5 and +5 * Spawn Zombie or Skeleton randomly * Give random enchanted diamond armor * Randomly apply enchantments from list
Important for performance:
* Limit maximum spawned mobs per player * Remove mobs when storm ends * Do not run task every tick (use 100โ200 ticks interval)
---
5๏ธโฃ Storm Scheduler (Automatic Every 10 Minecraft Days)
10 Minecraft days = 24000 ร 10 = 240,000 ticks
Use repeating scheduler:
* Check world full time * If divisible by 240000 โ start storm
OR
* Run repeating task every 240000 ticks.
---
6๏ธโฃ Storm End Logic
After 20 minutes:
* Stop thunder in all worlds * Remove leftover storm mobs * Give rewards to surviving players * Broadcast:
๐ค The storm has ended. Survivors have been rewarded.
---
๐ Performance Tips (Very Important)
To avoid lag:
โ Do NOT spawn mobs every tick โ Use controlled random chances โ Limit mob cap per player โ Remove mobs after storm โ Use async tasks only for calculations (not entity spawn) โ Avoid massive lightning spaming * Help you make it configurable (config.yml) * Or help you make it even more realistic (wind sounds, blindness effect, etc)
KodariFeb 22 at 5:00 pm 14,255 (v2)
Iโll create a realistic extreme thunderstorm plugin with dangerous lightning, mob ambushes, and survivor rewards.
StormX2
Extreme thunderstorm plugin that transforms weather into a deadly survival event. Features realistic lightning strikes that deal damage, spawn armored mobs with enchanted gear, affects all worlds, runs automatically every 10 Minecraft days for 20 minutes, and rewards survivors with valuable loot. Includes manual trigger command and performance-optimized mob spawning system.
Plan:
Main plugin with StormManager, LightningManager, MobSpawnManager, RewardManager
I want the armoured mobs to spawn every 7 seconds when the player runs and these zombies will be despawned when the player will about 15 blocks far from the mobs.these mobs can see players from 10 blocks ahead.the mobs speed will be faster than normal like 1x faster than usual
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 585
src/main/java/com/stormx2/StormX2.java
package com.stormx2;
import com.stormx2.commands.StartCommand;
import com.stormx2.managers.LightningManager;
import com.stormx2.managers.MobSpawnManager;
import com.stormx2.managers.RewardManager;
import com.stormx2.managers.StormManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class StormX2 extends JavaPlugin {
private StormManager stormManager;
private LightningManager lightningManager;
private MobSpawnManager mobSpawnManager;
private RewardManager rewardManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.lightningManager = new LightningManager(this);
this.mobSpawnManager = new MobSpawnManager(this);
this.rewardManager = new RewardManager(this);
this.stormManager = new StormManager(this);
getCommand("start").setExecutor(new StartCommand(this));
getLogger().info("StormX2 has been enabled!");
}
@Override
public void onDisable() {
if (stormManager != null) {
stormManager.shutdown();
}
getLogger().info("StormX2 has been disabled!");
}
public void debug(String message) {
if (getConfig().getBoolean("debug", false)) {
getLogger().info("[DEBUG] " + message);
}
}
}