Ülvi Məcidzadə

can you make plugin for 1.21.11 look like this https://builtbybit.com/resources/mythictools-self-destruct-optimized.69836/?ref=discover

Kodari AI
KodariSep 20 at 6:41 am 2
SelfDestructSystem
A Minecraft 1.21.11 plugin that adds a self-destruct mechanic to player vehicles and structures. Players can arm a destruct sequence on their creations, triggering a countdown with visual and audio warnings. After the timer expires, the target explodes with configurable damage and particle effects. Includes cooldown management, permission checks, and owner verification. Features configurable explosion radius, delay settings, and safety locks to prevent griefing. Optimized for server performance with efficient event handling and minimal resource usage.
  • Create a Paper 1.21.11 Gradle plugin project with Java 21 and XSeries item compatibility.

  • Add a configurable self-destruct device, countdown, movement cancellation, explosion behavior, and permissions.

  • Add /selfdestruct start|cancel|give plus right-click device activation and lifecycle cleanup.

Created a Paper 1.21.11 plugin called SelfDestruct.

Features:

  • Configurable self-destruct device item

  • Right-click activation

  • Countdown with movement cancellation

  • Configurable explosion power, fire, and block damage

  • /selfdestruct start

  • /selfdestruct cancel

  • /selfdestruct give <player> [amount]

  • Permissions:

    • selfdestruct.use

    • selfdestruct.give

  • Fully configurable messages and item appearance

  • Java 21 and XSeries compatibility

The BuiltByBit page returned a 403, so this implements the self-destruct concept independently rather than copying the exact resource UI or behavior.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 492
src/main/java/com/kodari/selfdestruct/SelfDestructPlugin.java
package com.kodari.selfdestruct;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class SelfDestructPlugin extends JavaPlugin {
    private SelfDestructManager manager;

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

        manager = new SelfDestructManager(this);
        SelfDestructCommand command = new SelfDestructCommand(this, manager);
        PluginCommand pluginCommand = getCommand("selfdestruct");
        if (pluginCommand != null) {
            pluginCommand.setExecutor(command);
            pluginCommand.setTabCompleter(command);
        }

        getServer().getPluginManager().registerEvents(new SelfDestructListener(manager), this);
    }

    @Override
    public void onDisable() {
        if (manager != null) {
            manager.cancelAll();
        }
    }
}