ibrahim_00123
๐Ÿ“Ž 1 file 4,026 chars
๐Ÿ“„
pasted-code-1785383117853.txt
txt 296 lines
โ–ถ
Chaos Weather SMP Plugin Prompt

Create a PaperMC 1.21.8+ plugin named "ChaosWeatherSMP".

The plugin should completely replace vanilla weather with custom weather events that change gameplay. The weather should automatically change every 20โ€“40 minutes (configurable in config.yml). Every weather event should have unique particles, sounds, titles, boss bars, and gameplay mechanics.

Core System
Automatic weather rotation
Admin commands
Configurable chances
Configurable duration
BossBar countdown until next weather
ActionBar showing current weather
Custom sounds
Custom particles
Smooth transitions
API for developers to create custom weather
Weather Events
๐ŸŒง Acid Rain
Rain damages players every 2 seconds
Leather armor protects from acid
Crops grow twice as fast
Zombies become stronger
Water turns green with particles
๐ŸŒ‘ Blood Moon
Moon becomes red
Custom blood sky
Monsters deal +50% damage
Double mob spawns
Sleeping disabled
Rare Blood Zombies spawn
Blood Skeletons shoot poison arrows
Blood Spiders jump higher
โ˜„ Meteor Shower

Every 20 seconds

Random meteors fall

Each meteor:

Explosion
Fire
Crater
Rare ores inside
Chance for Legendary Meteor Core
โ„ Blizzard
Snow everywhere
Freeze damage
Fog
Ice forms
Water freezes
Movement slower
Wolves spawn more often
โšก Thunder Frenzy

Lightning every few seconds

Features

Charged Creepers
Copper charges instantly
Lightning Rods explode nearby mobs
Tridents become stronger
๐ŸŒช Windstorm

Random wind gusts

Effects

Push players
Launch entities
Arrows curve
Elytra speed increased
Leaves fly everywhere
๐Ÿ”ฅ Hellstorm

Nether invades Overworld

Lava pools generate
Fire spreads faster
Ghasts spawn
Piglins appear
Magma Cubes spawn
Fire Resistance becomes valuable
๐ŸŒŒ Eclipse

Sky turns black

Effects

Endermen everywhere
Reduced gravity
Endermen teleport more
Chorus Fruit cooldown removed
๐ŸŒˆ Lucky Rain

Very rare

Players receive

Better fishing
Better loot
Double XP
Random gifts
Treasure meteors
๐ŸŒŠ Flood

Water level rises

Rivers overflow
Boats become useful
Drowned spawn
Fish everywhere
Water currents push players
๐ŸŒต Sandstorm

Only in deserts

Very low visibility
Husk spawn
Random buried treasure
Slow movement
๐ŸŒŒ Void Storm

Reality breaks

Randomly

Teleport players
Gravity changes
Floating blocks
Purple particles
Chorus sounds
Legendary Weather

Only 0.5% chance

Dragon Storm

Dragon flies across Overworld

Shoots Dragon Fireballs

Drops Dragon Fragments

Starfall

Stars fall from sky

Each star

Rare loot
Custom enchantments
XP explosion
Time Freeze

Everything stops

Except players

Mobs frozen
Projectiles frozen
Water frozen
Redstone paused
Rare Structures

During weather

Generate

Meteor Crater
Ancient Weather Tower
Storm Shrine
Abandoned Observatory
Sky Island
Lightning Temple
Weather Artifacts

Players can obtain

Storm Core

Allows

Call Lightning

Meteor Heart

Allows

Dash ability

Blood Crystal

Allows

Life steal for 10 seconds

Wind Feather

Allows

Double Jump

Frozen Core

Allows

Freeze nearby mobs
Progression

Players unlock

Weather Level

Level increases by

Surviving weather
Killing weather mobs
Completing weather challenges

Higher levels unlock

Cosmetics
Titles
Particle trails
Small passive bonuses
Weather Challenges

Examples

Survive

Blood Moon
Acid Rain
Blizzard

Kill

100 Blood Zombies
25 Charged Creepers
10 Meteor Golems

Rewards

Weather Keys
Rare Artifacts
Cosmetics
INVENTORY GUI

Beautiful inventory INVENTORY GUI

Shows

Current Weather
Next Weather
Timer
Weather History
Player Stats
Challenges
Rewards
Commands
/weather start 
/weather stop
/weather random
/weather vote
/weather list
/weather info
/weather timer
/weather reload
/weather artifact
/weather challenges
/weather level
Permissions
chaosweather.admin
chaosweather.start
chaosweather.stop
chaosweather.reload
chaosweather.vote
chaosweather.artifact
Configuration

Allow admins to configure:

Weather duration
Weather chances
Damage values
Mob spawn rates
Loot chances
Messages
Sounds
Particles
Boss bar colors
Titles
Cooldowns
Kodari AI
KodariJul 30 at 3:49 am 9
ChaosWeatherSMP
ChaosWeatherSMP replaces vanilla weather with configurable gameplay-changing events across the Overworld. It provides automatic 20โ€“40 minute rotations, admin controls, weighted weather chances, countdown boss bars, action-bar status, custom sounds and particles, event-specific mechanics, rare legendary storms, artifacts, progression levels, survival challenges, rewards, and a polished inventory GUI. Developers can register custom weather effects through a public API while administrators configure durations, damage, loot, messages, visuals, and cooldowns in config.yml.
  1. Create the Paper plugin foundation, build metadata, permissions, and configurable defaults.

  2. Implement the weather effect API, built-in events, automatic rotation, countdown UI, and vanilla-weather suppression.

  3. Add gameplay listeners, progression, challenges, artifacts, commands, and the inventory GUI.

  4. Register all services and event handlers in the main plugin class.

A Paper 1.21.8+ survival plugin that replaces vanilla weather with rotating custom weather events. It delivers distinct particles, sounds, titles, boss bars, action bars, and gameplay mechanics for acid rain, blood moons, meteor showers, blizzards, windstorms, hellstorms, eclipses, floods, sandstorms, void storms, lucky rain, and legendary events. It includes admin controls, developer weather registration, artifacts, progression, challenges, configurable chances and durations, persistent player statistics, and an interactive weather inventory GUI.

ั‚ั€ัƒ </create> ั‚ั€ัƒ

Created ChaosWeatherSMP, a Paper 1.21.8+ custom weather survival plugin featuring:

  • Rotating custom weather events with configurable timing and chances

  • Acid Rain, Blood Moon, Meteor Shower, Blizzard, Thunder Frenzy, Windstorm, Hellstorm, Eclipse, Lucky Rain, Flood, Sandstorm, and Void Storm

  • Boss bars, action bars, titles, particles, sounds, and gameplay effects

  • Weather event API and registry for developer-created events

  • Admin commands and permissions

  • Persistent weather progression and challenges

  • Activatable weather artifacts

  • Interactive weather dashboard GUI

  • Vanilla weather suppression

  • Configurable damage, spawn rates, messages, effects, and boss bar settings

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
28 1,570
src/main/java/com/kodari/chaosweather/ChaosWeatherSMP.java
package com.kodari.chaosweather;

import com.kodari.chaosweather.artifact.ArtifactManager;
import com.kodari.chaosweather.command.WeatherCommand;
import com.kodari.chaosweather.config.ConfigManager;
import com.kodari.chaosweather.gui.GUIListener;
import com.kodari.chaosweather.gui.GUIManager;
import com.kodari.chaosweather.listener.GameplayListener;
import com.kodari.chaosweather.listener.WeatherControlListener;
import com.kodari.chaosweather.progression.ChallengeManager;
import com.kodari.chaosweather.progression.ProgressionManager;
import com.kodari.chaosweather.weather.WeatherManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class ChaosWeatherSMP extends JavaPlugin {
    private ConfigManager configManager;
    private ProgressionManager progressionManager;
    private ChallengeManager challengeManager;
    private ArtifactManager artifactManager;
    private WeatherManager weatherManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.progressionManager = new ProgressionManager(this);
        this.challengeManager = new ChallengeManager(this, progressionManager);
        this.artifactManager = new ArtifactManager(this);
        this.weatherManager = new WeatherManager(this, configManager, progressionManager, challengeManager);
        this.guiManager = new GUIManager();

        Bukkit.getPluginManager().registerEvents(new WeatherControlListener(), this);
        Bukkit.getPluginManager().registerEvents(new GameplayListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);

        WeatherCommand weatherCommand = new WeatherCommand(this);
        getCommand("weather").setExecutor(weatherCommand);
        getCommand("weather").setTabCompleter(weatherCommand);

        weatherManager.startScheduler();
        if (configManager.autoStart()) {
            weatherManager.startRandom();
        }
    }

    @Override
    public void onDisable() {
        if (weatherManager != null) {
            weatherManager.shutdown();
        }
        if (progressionManager != null) {
            progressionManager.save();
        }
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public ProgressionManager getProgressionManager() {
        return progressionManager;
    }

    public ChallengeManager getChallengeManager() {
        return challengeManager;
    }

    public ArtifactManager getArtifactManager() {
        return artifactManager;
    }

    public WeatherManager getWeatherManager() {
        return weatherManager;
    }

    public GUIManager getGuiManager() {
        return guiManager;
    }
}