skullgamer0706

Plugin Descriptions

๐ŸŒฉ 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)

Kodari AI
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

  • Command /start storm2 to manually trigger

  • Automatic storm every 10 Minecraft days

  • Lightning strikes deal 3-4 damage, spawn 4-5 armored mobs

  • 20-minute duration, rewards for survivors

  • All config-driven, performance-optimized

Perfect! StormX2 extreme thunderstorm plugin created with all features:

Core Systems:

  • โšก Lightning strikes every 100 ticks near players (3-4 damage)

  • ๐ŸงŸ Spawns 4-5 armored zombies/skeletons with random enchanted diamond gear

  • โฑ๏ธ Auto-starts every 10 Minecraft days, lasts 20 minutes

  • ๐ŸŒ Affects all worlds simultaneously

  • ๐ŸŽ Rewards survivors: 1 Netherite Scrap, 9 Diamonds, 12 Gold Ingots

Performance Optimized:

  • Max 10 mobs per player cap

  • Controlled 100-tick intervals (not every tick)

  • Automatic cleanup when storm ends

  • 50% chance per enchantment to avoid over-enchanting

Command: /start storm2 (permission: stormx2.start) Config: Fully customizable timings, damage, mob counts, rewards, messages

skullgamer0706

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);
        }
    }
}