1337zockt-dev

Can you create me a plugin where it creates the great sea from the unstable smp in 1.21.11 Paper starting at 1000000 1000000

Kodari AI
KodariAug 25 at 9:39 am 2
GreatSeaGenerator
Generates the Great Sea from the Unstable SMP on Paper 1.21.11. Creates a massive ocean biome starting at coordinates 1000000, 1000000. The plugin automatically generates a vast water-filled region with ocean floor terrain, coral reefs, kelp forests, and underwater ruins. Includes configurable sea dimensions, depth, and biome types. Features chunk-based generation that activates when players approach the designated area, ensuring performance-friendly world generation. Provides commands to teleport players to the sea center, adjust sea size, and reset the generated terrain. Integrates seamlessly with Paper's world generation system, creating a unique underwater adventure zone distinct from the overworld.

I’ll create:

  1. A Paper 1.21.11 Gradle project with Java 21.

  2. A configurable sea generator centered at the requested starting coordinates.

  3. Automatic first-run generation plus /greatsea create|cancel|status.

  4. Plugin metadata and sensible generation defaults.

Created the GreatSea Paper plugin.

  • Targets Paper 1.21.11 with Java 21.

  • Automatically generates a 512×512 sea beginning at X=1000000, Z=1000000.

  • Uses a stone/sand ocean floor at Y=40 with water up to Y=63.

  • Clears terrain above the waterline.

  • Generates gradually over multiple ticks to reduce server lag.

  • Stores a completion marker so automatic generation only runs once.

  • Commands:

    • /greatsea create

    • /greatsea cancel

    • /greatsea status

  • All settings are configurable in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 359
src/main/java/com/kodari/greatsea/GreatSeaPlugin.java
package com.kodari.greatsea;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class GreatSeaPlugin extends JavaPlugin {
    private SeaManager seaManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        seaManager = new SeaManager(this);
        GreatSeaCommand command = new GreatSeaCommand(seaManager);
        if (getCommand("greatsea") != null) {
            getCommand("greatsea").setExecutor(command);
            getCommand("greatsea").setTabCompleter(command);
        }

        if (getConfig().getBoolean("auto-create", true)) {
            Bukkit.getScheduler().runTask(this, () -> seaManager.start(false));
        }
    }

    @Override
    public void onDisable() {
        if (seaManager != null) {
            seaManager.cancel();
        }
    }
}