ay_u.k

Make a plugin where only admin can get warden sword through command/wardrelic which has ability to throw sonic with crouch+right click supportable with java+bedrock had sharpness 20 knockback 20 unbreaking 225 and mending enchntment but not mentioned in it's about for Minecraft 26.2 , sword should look long and with animation

Kodari AI
KodariAug 30 at 1:10 am 2
WardenRelic
Admin-only command /wardrelic grants a custom Warden Sword with sonic blast ability triggered by crouch+right click, supporting both Java and Bedrock editions. The sword features Sharpness 20, Knockback 20, Unbreaking 225, and Mending enchantments hidden from lore. Custom 3D model renders a long blade with animated swing effects, compatible with Minecraft 26.2.
  1. Create the Paper plugin build and metadata for /wardrelic.

  2. Add an admin-only relic item with the requested enchantments and custom model marker.

  3. Add crouch-right-click detection and a crossplay-safe animated sonic-wave ability.

  4. Include configuration and an optional resource-pack model for the long-sword appearance.

Created the WardRelic plugin with:

  • Admin-only /wardrelic command.

  • Warden’s Longsword with:

    • Sharpness 20

    • Knockback 20

    • Unbreaking 225

    • Mending

  • Crouch + right-click activation.

  • Animated sonic-wave projectile using particles and Warden sounds.

  • Configurable range, damage, knockback, hit radius, animation step, and cooldown.

  • Java and Bedrock-friendly vanilla particle/entity effects.

  • Custom-model resource-pack files for the longer sword appearance.

  • Cooldown handling and wall collision detection.

The build targets Paper 1.21.4 with Java 21; the resource pack must be distributed separately for the custom long-sword model to appear.

ay_u.k

Need for java 25

Kodari AI
KodariAug 30 at 1:10 am 1

Updated the plugin to compile with Java 25:

  • build.gradle: Java toolchain changed from Java 21 to Java 25.

The plugin still targets Paper API 1.21.4.

ay_u.k

Need for java25 and paper 1.26.2

Kodari AI
KodariAug 30 at 1:11 am 1
  1. Update the Paper API dependency to 1.26.2.

  2. Set the plugin API version to 1.26.2 while keeping the Java 25 toolchain.

Updated the plugin for:

  • Java 25

  • Paper 1.26.2

  • Paper API dependency: 1.26.2-R0.1-SNAPSHOT

  • Plugin API version: 1.26.2

ay_u.k

Make it look 2x long with particle emitting frok it and sonic wave can used by only right click without any cooldown

Kodari AI
KodariAug 30 at 1:28 am 1
  1. Update the relic model so the sword renders approximately 2× longer.

  2. Add continuous particle emission from the held relic.

  3. Change sonic-wave activation to right-click only and remove cooldown enforcement.

Updated the plugin:

  • Sonic wave now activates with right-click only—crouching is no longer required.

  • Removed all cooldown logic; it can be used repeatedly without delay.

  • Added continuous sculk soul and end-rod particles around players holding the relic.

  • Increased the resource-pack sword model length to approximately 2× in first- and third-person views.

  • Ambient particles are automatically stopped when the plugin disables.

ay_u.k

The waves are only working on blocks not launching in air it should be usable anywher in aur water entity or player

Kodari AI
KodariAug 30 at 3:39 am 1
  1. Handle right-clicking entities, including players, with the relic.

  2. Keep right-click air and water activation working through the same launch path.

  3. Prevent the entity interaction from opening or triggering the target’s normal interaction.

Updated the wave activation so it works with right-click:

  • In air

  • On blocks

  • In water

  • Directly on entities and players

  • Entity interactions are cancelled to prevent normal target interaction

The sonic wave still travels forward through air and water and damages nearby living entities along its path.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 453
src/main/java/com/kodari/wardrelic/WardRelicPlugin.java
package com.kodari.wardrelic;

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

public final class WardRelicPlugin extends JavaPlugin {

    private NamespacedKey relicKey;
    private SonicWaveManager sonicWaveManager;

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

        relicKey = new NamespacedKey(this, "ward_relic");
        sonicWaveManager = new SonicWaveManager(this);
        sonicWaveManager.startAmbientParticles();

        WardRelicCommand command = new WardRelicCommand(this);
        getCommand("wardrelic").setExecutor(command);
        getCommand("wardrelic").setTabCompleter(command);
        getServer().getPluginManager().registerEvents(new WardRelicListener(this), this);
    }

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

    public NamespacedKey getRelicKey() {
        return relicKey;
    }

    public SonicWaveManager getSonicWaveManager() {
        return sonicWaveManager;
    }
}