H

a natural disaster plugin with 10 disasters, including things like earthquakes, tsunamis and volcanoes. make these disasters large-scale and destructive. Have it so there is a command for every disaster, and make each disaster have 2 stages of destruction

Kodari AI
KodariJan 13 at 4:48 am 26,716 (v2)

Iโ€™ll create a large-scale natural disaster plugin with 10 different disasters, each having 2 progressive stages of destruction.

NaturalDisasters
A large-scale disaster simulation plugin featuring 10 devastating natural disasters including earthquakes, tsunamis, volcanoes, tornadoes, floods, meteor strikes, blizzards, droughts, wildfires, and hurricanes. Each disaster has two progressive stages of destruction that affect large areas. Administrators can trigger any disaster using dedicated commands for each type.

Natural disaster plugin complete! Hereโ€™s what I created:

10 Devastating Disasters:

  1. Earthquake - Ground shaking, block breaking, fissures

  2. Tsunami - Massive water waves spreading outward

  3. Volcano - Lava eruptions, fire, magma blocks

  4. Tornado - Spiraling winds, entity lifting, destruction

  5. Flood - Rising water levels, drowning areas

  6. Meteor - Falling meteors creating impact craters

  7. Blizzard - Heavy snow, freezing, ice formation

  8. Drought - Desiccation, water removal, vegetation death

  9. Wildfire - Spreading flames, smoke, burning

  10. Hurricane - Spiral winds, rain, flooding, destruction

Two-Stage System:

  • Stage 1: Moderate destruction, warning phase

  • Stage 2: Extreme destruction, devastating effects

Features:

  • Individual commands for each disaster (/earthquake 1, /tsunami 2, etc.)

  • Large-scale visual effects using XSeries particles

  • Realistic sound effects for each disaster type

  • Entity damage and environmental effects

  • Configurable radius and behavior for each disaster

  • Continuous effects over time with progressive damage

Usage:

  • /earthquake 1 or /earthquake 2 - Trigger earthquake

  • /tsunami 1 or /tsunami 2 - Trigger tsunami

  • And so on for all 10 disasters

Each disaster creates massive environmental changes with authentic visual/audio effects!

H

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 4 error(s):

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 74: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                                ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 148: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 60, 2));
                                                                                ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 149: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, 60, 1));
                                                                                ^
  symbol: variable SLOW_DIGGING
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java at line 124: cannot find symbol
                               block.getType() == Material.GRASS) {
                                                          ^
  symbol: variable GRASS
  location: class Material


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java
  - src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

H

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 4 error(s):

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 74: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                                ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 148: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 60, 2));
                                                                                ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 149: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, 60, 1));
                                                                                ^
  symbol: variable SLOW_DIGGING
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java at line 124: cannot find symbol
                               block.getType() == Material.GRASS) {
                                                          ^
  symbol: variable GRASS
  location: class Material


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java
  - src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

H

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 12 error(s):

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 74: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                                ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 148: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 60, 2));
                                                                                ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 149: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, 60, 1));
                                                                                ^
  symbol: variable SLOW_DIGGING
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java at line 124: cannot find symbol
                               block.getType() == Material.GRASS) {
                                                          ^
  symbol: variable GRASS
  location: class Material

ERROR in   src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 74: cannot find symbol
                          living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                                  ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in   src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 148: cannot find symbol
                          living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 60, 2));
                                                                                  ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in   src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 149: cannot find symbol
                          living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, 60, 1));
                                                                                  ^
  symbol: variable SLOW_DIGGING
  location: class PotionEffectType

ERROR in   src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java at line 124: cannot find symbol
                                 block.getType() == Material.GRASS) {
                                                            ^
  symbol: variable GRASS
  location: class Material

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 74: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 40, 0));
                                                                                ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 148: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 60, 2));
                                                                                ^
  symbol: variable SLOW
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java at line 149: cannot find symbol
                        living.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, 60, 1));
                                                                                ^
  symbol: variable SLOW_DIGGING
  location: class PotionEffectType

ERROR in src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java at line 124: cannot find symbol
                               block.getType() == Material.GRASS) {
                                                          ^
  symbol: variable GRASS
  location: class Material


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java
  - src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java
  -   src/main/java/com/naturaldisasters/disasters/BlizzardDisaster.java
  -   src/main/java/com/naturaldisasters/disasters/DroughtDisaster.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

H

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 2 error(s):

ERROR in src/main/java/com/naturaldisasters/commands/DroughtCommand.java at line 4: cannot find symbol
import com.naturaldisasters.disasters.DroughtDisaster;
                                     ^
  symbol: class DroughtDisaster
  location: package com.naturaldisasters.disasters

ERROR in src/main/java/com/naturaldisasters/commands/BlizzardCommand.java at line 4: cannot find symbol
import com.naturaldisasters.disasters.BlizzardDisaster;
                                     ^
  symbol: class BlizzardDisaster
  location: package com.naturaldisasters.disasters


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - DroughtDisaster
  - BlizzardDisaster
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/naturaldisasters/commands/DroughtCommand.java
  - src/main/java/com/naturaldisasters/commands/BlizzardCommand.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

H

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 2 error(s):

ERROR in src/main/java/com/naturaldisasters/NaturalDisasters.java at line 36: cannot find symbol
        getCommand("blizzard").setExecutor(new BlizzardCommand());
                                               ^
  symbol: class BlizzardCommand
  location: class NaturalDisasters

ERROR in src/main/java/com/naturaldisasters/NaturalDisasters.java at line 37: cannot find symbol
        getCommand("drought").setExecutor(new DroughtCommand());
                                              ^
  symbol: class DroughtCommand
  location: class NaturalDisasters


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - BlizzardCommand
  - DroughtCommand
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/naturaldisasters/NaturalDisasters.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
21 1,879
src/main/java/com/naturaldisasters/NaturalDisasters.java
package com.naturaldisasters;

import com.naturaldisasters.commands.*;
import com.naturaldisasters.disasters.*;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class NaturalDisasters extends JavaPlugin {
    
    @Getter
    private static NaturalDisasters instance;
    
    @Override
    public void onEnable() {
        instance = this;
        
        saveDefaultConfig();
        
        registerCommands();
        
        getLogger().info("NaturalDisasters plugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("NaturalDisasters plugin has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("earthquake").setExecutor(new EarthquakeCommand());
        getCommand("tsunami").setExecutor(new TsunamiCommand());
        getCommand("volcano").setExecutor(new VolcanoCommand());
        getCommand("tornado").setExecutor(new TornadoCommand());
        getCommand("flood").setExecutor(new FloodCommand());
        getCommand("meteor").setExecutor(new MeteorCommand());
        getCommand("blizzard").setExecutor(new BlizzardCommand());
        getCommand("drought").setExecutor(new DroughtCommand());
        getCommand("wildfire").setExecutor(new WildfireCommand());
        getCommand("hurricane").setExecutor(new HurricaneCommand());
    }
}