L

Make a plugin that adds tsunamis to the game you can give you a tsunami spawn egg with the command /cts give username or coictsunami give username and it gives you a spawnegg that is called tsunami spawnegg when you place it down it first open a menu where you can customise your tsunami and when you press on spawn it spawns it also when you type /cts give direct username or /coictsunami give direct username it gives another spawnegg other colour that directly spawns a tsunami without configuration also there's a command /cts help or /coictsunami help that shows all commands and another one that is /cts list or /coictsunami list that shows all tsunamis 1 2 3... Shows the coordinates and if you click on teleport it teleports you to the location also make a command /cts remove 1/2/3.... /coictsunami remove 1/2/3... And it removes the following tsunami also the tsunami is water and drowns you if your in it and kill thes you also in the menu you can make that the tsunami is not weather but that it is lava and you can customise the speed and more.the plugin name is Coictsunamis and the author is coikinator So i really want to make that the plugin makes a real tsunami like the picture that i sent you

1 image attached
Kodari AI
KodariJan 3 at 9:58 pm 12,172 (v2)

I’ll create a comprehensive tsunami plugin that spawns realistic wave structures that move and cause damage.

Coictsunamis
A realistic tsunami simulation plugin that allows players to spawn customizable tsunamis using spawn eggs. Features include water and lava tsunami types, adjustable wave speed and size, interactive configuration menus, tsunami tracking and management system, player damage and drowning mechanics, and teleportation to active tsunami locations. Create devastating natural disasters with realistic wave patterns.

Now I’ll create the plugin structure:

Perfect! I’ve created the Coictsunamis plugin with realistic tsunami mechanics. Here’s what I’ve implemented:

Features:

Commands:

  • /cts give <player> - Gives configurable tsunami spawn egg (light blue)

  • /cts give direct <player> - Gives direct spawn egg (cyan)

  • /cts list - Opens GUI showing all active tsunamis with teleport

  • /cts remove <id> - Removes a specific tsunami

  • /cts help - Shows all commands

  • All commands work with /coictsunami alias too

Tsunami Mechanics:

  • Realistic wave shape based on the classic wave painting

  • Wave crest at the front, gradually lowering toward the back

  • Moves in the direction you’re facing

  • Water tsunamis: Drown players, deal damage, reduce air

  • Lava tsunamis: Set players on fire, deal more damage

  • Pushes players along with the wave

Configuration Menu:

  • Type (Water/Lava)

  • Speed (adjustable)

  • Height (wave peak)

  • Width (wave spread)

  • Length (wave depth)

  • Max Distance (how far it travels)

  • Spawn button to create tsunami

List GUI:

  • Shows all active tsunamis

  • Displays ID, type, speed, height, location, distance traveled

  • Click to teleport to any tsunami

The tsunami creates a realistic wave pattern that moves forward, damages entities inside it, and automatically cleans up blocks behind it. The wave shape mimics the famous wave artwork with a high crest that curves and tapers off!

L

The compilation failed with this error:

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

ERROR in src/main/java/com/coikinator/coictsunamis/utils/ItemBuilder.java at line 41: cannot find symbol
            meta.addEnchant(org.bukkit.enchantments.Enchantment.LUCK, 1, true);
                                                               ^
  symbol: variable LUCK
  location: class Enchantment


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/coikinator/coictsunamis/utils/ItemBuilder.java
 exceeds maximum 

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

Kodari AI
KodariJan 3 at 9:58 pm 2,911 (v2)

I need to read the ItemBuilder.java file to see the issue and fix the cross-version compatibility problem with enchantments.

The issue is clear: the code is using Enchantment.LUCK which doesn’t exist in all versions. I need to use XSeries XEnchantment for cross-version compatibility.

Fixed the compilation error by replacing direct Enchantment and ItemFlag references with XSeries wrappers (XEnchantment and XItemFlag) for cross-version compatibility.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
15 1,010
src/main/java/com/coikinator/coictsunamis/Coictsunamis.java
package com.coikinator.coictsunamis;

import com.coikinator.coictsunamis.commands.TsunamiCommand;
import com.coikinator.coictsunamis.listeners.SpawnEggListener;
import com.coikinator.coictsunamis.managers.TsunamiManager;
import com.coikinator.coictsunamis.tasks.TsunamiUpdateTask;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class Coictsunamis extends JavaPlugin {
    
    private TsunamiManager tsunamiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.tsunamiManager = new TsunamiManager(this);
        
        getCommand("cts").setExecutor(new TsunamiCommand(this));
        
        getServer().getPluginManager().registerEvents(new SpawnEggListener(this), this);
        
        new TsunamiUpdateTask(this).runTaskTimer(this, 0L, 1L);
        
        getLogger().info("Coictsunamis plugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (tsunamiManager != null) {
            tsunamiManager.removeAllTsunamis();
        }
        getLogger().info("Coictsunamis plugin has been disabled!");
    }
    
    public String getMessage(String key) {
        return getConfig().getString("messages." + key, key)
                .replace("&", "\u00a7");
    }
    
    public String getPrefix() {
        return getMessage("prefix");
    }
}