It's Not me

Create a complete Minecraft Paper server plugin called SeaBreaker for Minecraft/Paper 1.21.11 using Java and Gradle or Maven.

Main Command

Add:

"/seabreaker"

When a player executes "/seabreaker":

  • Give the player a custom Mace item.
  • The item should be clearly named “SeaBreaker”.
  • Give it a unique "PersistentDataContainer" identifier so the plugin can recognize it even if the item is renamed.
  • Add strong but configurable enchantments/attributes.
  • Prevent the custom mace from being accidentally lost if possible.
  • Only the custom SeaBreaker mace should activate the special abilities.

Ability 1 — Shift Flight

When the player is holding the SeaBreaker mace and presses and holds Left Shift:

  • Launch/move the player rapidly in the direction they are looking.
  • The player should continuously fly forward while Shift is being held.
  • The movement should feel like a powerful projectile/charge.
  • Stop the ability immediately when the player releases Shift.
  • Do not require the player to have a specific gamemode.
  • Prevent excessive fall damage from the ability.
  • Add configurable speed, cooldown, particles, and sound.
  • Do not allow the player to activate the ability while dead or in spectator mode.

Because Minecraft/Paper does not directly provide a simple server-side “Shift is currently being held” event, implement a reliable server-side solution using appropriate player movement/input detection or a tick-based system. Explain the chosen approach in comments.

Ability 2 — Lightning Mace Attack

When the player attacks an entity using the SeaBreaker mace:

  • Strike the attacked location with lightning.
  • Create dramatic lightning particles/effects.
  • Play an appropriate thunder/lightning sound.
  • The lightning should be controlled by configuration.
  • Make sure the attack does not accidentally create uncontrolled fire or excessive server load.
  • Add a configurable cooldown.

Ability 3 — Right Click: Throwing SeaBreaker

When the player right-clicks while holding the SeaBreaker mace:

  • Throw a visual representation of the mace forward in the direction the player is looking.
  • The mace should rotate/spin while flying.
  • Use a suitable display entity/projectile/visual system rather than duplicating physical mace items uncontrollably.
  • Give it configurable projectile speed, range, rotation speed, particles and sounds.
  • While flying, it should look like a rotating magical mace.

When the normal right-click throw hits its target/endpoint:

  • Create a powerful impact effect.
  • Kill/damage entities in the configured impact area.
  • This includes hostile mobs, passive mobs, and other entities.
  • Include players in the effect according to a configurable setting.
  • Do NOT automatically affect the throwing player unless explicitly enabled in config.
  • Handle bosses and high-health entities according to configuration.
  • Prevent the ability from causing unlimited entity-processing loops.

Ability 4 — Shift + Right Click: SeaBreaker Destruction

When the player is holding the SeaBreaker mace and activates Left Shift + Right Click together:

  • Instead of the normal throw, launch the special SeaBreaker Destruction attack.
  • Throw the rotating mace forward.
  • Create a powerful straight-line destructive projectile.
  • The affected area should be approximately 10 × 10 blocks around the projectile's path.
  • The affected region should extend forward from the player for a configurable distance.
  • Destroy/break blocks inside the 10 × 10 area.
  • Make the destruction configurable so the server owner can choose:

- maximum distance - width - height - whether containers can be destroyed - whether valuable blocks can be destroyed - whether protected regions should be respected - whether block drops should occur

  • Avoid destroying bedrock, command blocks, barriers, or other protected blocks by default.
  • Avoid causing massive server lag by processing too many blocks in a single tick. Use a safe tick-based queue if necessary.

Water-Drying Effect

During the Shift + Right Click SeaBreaker Destruction attack:

  • Remove/dry water inside the same approximately 10 × 10 block area.
  • Replace/remove water source and flowing-water blocks according to configuration.
  • Also support configurable handling of waterlogged blocks.
  • Do not affect water outside the attack area.
  • Make this effect visually impressive using particles and sounds.

Visual Effects

Make the plugin feel like a powerful legendary weapon:

  • Lightning
  • Water particles
  • Explosion particles
  • Enchant particles
  • Smoke
  • Spinning mace
  • Thunder sounds
  • Impact sounds
  • Customizable effects

Use Paper/Bukkit APIs correctly and avoid deprecated APIs wherever possible.

Cooldowns

Implement separate configurable cooldowns for:

  • Shift Flight
  • Lightning attack
  • Normal right-click throw
  • Shift + Right Click destruction

Show cooldown feedback to the player using action bar messages.

Permissions

Add permissions:

"seabreaker.use"

"seabreaker.admin"

Only players with "seabreaker.use" can use the mace abilities.

"seabreaker.admin" can use administrative commands.

Commands

Implement:

"/seabreaker"

Give the player the SeaBreaker mace.

"/seabreaker reload"

Reload the configuration.

"/seabreaker give <player>"

Give another player the SeaBreaker mace.

Add tab completion.

Configuration

Create a complete "config.yml" containing settings for:

  • Mace name
  • Mace lore
  • Damage
  • Flight speed
  • Flight cooldown
  • Lightning settings
  • Normal throw settings
  • Destruction settings
  • Destruction width/height
  • Destruction distance
  • Water drying
  • Particles
  • Sounds
  • Entity damage
  • Player damage
  • Block protection
  • Cooldowns
  • Debug mode

Example configuration structure:

mace: name: "&b&lSeaBreaker" damage: 20

flight: enabled: true speed: 1.5 cooldown: 5

lightning: enabled: true damage: 20 cooldown: 2

throw: enabled: true speed: 2.5 range: 40 radius: 5 kill-entities: true affect-players: true

destruction: enabled: true width: 10 height: 10 distance: 50 break-blocks: true destroy-drops: true dry-water: true protect-bedrock: true protect-containers: true

cooldowns: flight: 5 lightning: 2 throw: 8 destruction: 20

Safety and Performance

This is extremely important.

The plugin must:

  • Avoid infinite loops.
  • Avoid spawning thousands of entities.
  • Avoid creating excessive lightning.
  • Avoid processing huge numbers of blocks in one tick.
  • Process destruction asynchronously only where safe, while ensuring Bukkit/Paper world modifications happen on the correct server thread.
  • Avoid memory leaks.
  • Clean up projectiles when they hit something, expire, or the player disconnects.
  • Clean up all active tasks when the plugin disables.
  • Respect WorldGuard/protection plugins if an integration is available; otherwise provide a configuration option.
  • Prevent players from duplicating the SeaBreaker mace.
  • Handle reloads safely.

Project Structure

Generate the complete project, including:

  • "plugin.yml"
  • "config.yml"
  • Main plugin class
  • Command executor
  • Tab completer
  • Mace/item manager
  • Ability manager
  • Flight system
  • Lightning system
  • Projectile/throw system
  • Destruction system
  • Cooldown manager
  • Event listeners
  • Utility classes

Use clean object-oriented Java.

Important Technical Requirement

Target exactly:

Minecraft 1.21.11

Paper API for 1.21.11

Do not write code for Spigot 1.8, 1.16, 1.20, or an older Paper API.

Before producing the final code:

  1. Check that every API/class/method used is compatible with Paper 1.21.11.
  2. Avoid deprecated APIs where possible.
  3. Make the project compile without modification.
  4. Include all required imports.
  5. Include the correct Gradle/Maven configuration.
  6. Include installation instructions.
  7. Explain how each ability works.
  8. Explain how to build the ".jar".
  9. Explain where the final ".jar" should be placed.
  10. Explain how to configure the abilities.

The final result should be a production-ready, compilable Paper 1.21.11 plugin, not pseudocode or incomplete examples.

Kodari AI
KodariSep 1 at 3:26 am 3
SeaBreaker
A comprehensive Paper 1.21.11 plugin implementing a legendary SeaBreaker mace with four distinct abilities: shift-flight dash movement, lightning strike attacks, a spinning projectile throw, and a massive area destruction attack with water-drying effects. Features configurable cooldowns, permissions, particle effects, and WorldGuard integration. Includes robust safety measures against server lag, entity duplication, and memory leaks with proper task cleanup.
  1. Create the Gradle/Paper project metadata and plugin configuration.

  2. Create the SeaBreaker item, command, cooldown, effects, and event infrastructure.

  3. Create the flight, lightning, normal throw, and queued destruction systems.

  4. Add installation/configuration documentation in the final response.

Created the complete SeaBreaker Paper 1.21.11 Gradle project.

Included:

  • /seabreaker

  • /seabreaker reload

  • /seabreaker give <player>

  • seabreaker.use and seabreaker.admin permissions

  • PersistentDataContainer-based mace identification

  • Configurable mace name, lore, damage, enchantments, and death retention

  • Shift flight with tick-based sneak polling

  • Lightning attack with cooldown and configurable damage

  • Normal rotating ItemDisplay mace projectile

  • Configurable entity damage, killing, boss handling, player protection, radius, range, and particles

  • Shift + right-click destruction projectile

  • Queued block processing with configurable width, height, distance, protection, containers, valuable blocks, drops, and water drying

  • Waterlogged block handling

  • Particle and sound effects

  • Player disconnect, death, projectile expiration, and plugin shutdown cleanup

  • Tab completion

  • Paper 1.21.11 / Java 21 Gradle setup

  • XSeries integration through manifest.kod

Build

Shell
./gradlew build

The resulting JAR will be located at:

Plain Text
build/libs/SeaBreaker-1.0.0.jar

Place it in:

Plain Text
/plugins

Then restart the Paper server.

Configuration

Edit:

Plain Text
/plugins/SeaBreaker/config.yml

The main configurable areas are:

  • mace

  • flight

  • lightning

  • throw

  • destruction

  • cooldowns

  • debug

After editing, use:

Plain Text
/seabreaker reload

Shift flight uses PlayerToggleSneakEvent to detect activation and a repeating server tick task to continuously verify that the player remains sneaking. This avoids relying on a nonexistent server-side “Shift held” event. Destruction is processed through a bounded block queue using blocks-per-tick to reduce server impact.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
17 1,132
src/main/java/com/kodari/seabreaker/SeaBreakerPlugin.java
package com.kodari.seabreaker;

import com.kodari.seabreaker.ability.AbilityManager;
import com.kodari.seabreaker.command.SeaBreakerCommand;
import com.kodari.seabreaker.command.SeaBreakerTabCompleter;
import com.kodari.seabreaker.item.MaceManager;
import com.kodari.seabreaker.listener.SeaBreakerListener;
import com.kodari.seabreaker.util.CooldownManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class SeaBreakerPlugin extends JavaPlugin {
    private MaceManager maceManager;
    private CooldownManager cooldownManager;
    private AbilityManager abilityManager;

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

        this.maceManager = new MaceManager(this);
        this.cooldownManager = new CooldownManager(this);
        this.abilityManager = new AbilityManager(this, maceManager, cooldownManager);

        SeaBreakerCommand command = new SeaBreakerCommand(this, maceManager);
        getCommand("seabreaker").setExecutor(command);
        getCommand("seabreaker").setTabCompleter(new SeaBreakerTabCompleter());
        Bukkit.getPluginManager().registerEvents(new SeaBreakerListener(this, maceManager, abilityManager), this);
    }

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

    public MaceManager getMaceManager() {
        return maceManager;
    }

    public AbilityManager getAbilityManager() {
        return abilityManager;
    }
}