betterredfire

add a mace that has density 5 and breach 4 and a ability like after 25 hits ultimate mode is charged and auto activates after fully charged and automatically explodes the player 1 time after hitting And resets the ultimate hit counter too after ult gets used and instead of right click make it left click like when maced someone the ability auto executes at that time like after ultimate counter is charged next hit is gonna do the thing Also add a recipe to craft it with 1 netherite ingots each in slots of crafting table as in 1,3,7,9 and diamond blocks in 2,4,6,8 and normal mace in 5 and name of weapon should be Revenant's Gravescepter and add command and recipe to obtain it as i said

Kodari AI
KodariAug 15 at 5:45 am 1
RevenantsGravescepter
Adds a custom craftable mace called Revenant's Gravescepter with density 5 and breach 4. The weapon tracks successful hits on entities. After 25 hits, the ultimate meter fully charges and auto-activates. On the next hit following full charge, the weapon automatically triggers a powerful explosion at the target, dealing massive damage, then resets the hit counter. The ability executes automatically on hit without requiring right-click. A crafting recipe uses netherite ingots in slots 1, 3, 7, 9, diamond blocks in slots 2, 4, 6, 8, and a normal mace in the center slot. Includes a command to give the weapon to players.
  1. Create the Gradle project and plugin metadata.

  2. Implement the custom Revenant’s Gravescepter item with Density V and Breach IV.

  3. Add hit tracking, charged-next-hit explosion behavior, reset handling, command, and shaped recipe.

  1. Created the Gradle project and Paper plugin metadata.

  2. Added the Revenant’s Gravescepter mace with:

    • Density V

    • Breach IV

    • Custom name and lore

  3. Added the 3×3 crafting recipe:

    • Netherite ingots in slots 1, 3, 7, 9

    • Diamond blocks in slots 2, 4, 6, 8

    • Normal mace in slot 5

  4. Added left-click hit tracking:

    • Ultimate charges after 25 successful hits

    • The next hit creates one explosion at the target

    • Counter resets after activation

  5. Added /gravescepter and /revenantscepter commands with permission revenantsgravescepter.give.

betterredfire

How do i get permission to obtain it

Kodari AI
KodariAug 15 at 5:46 am 1

The permission is:

Plain Text
revenantsgravescepter.give

You can grant it with LuckPerms:

Plain Text
/lp user <player> permission set revenantsgravescepter.give true

Then obtain it with:

Plain Text
/gravescepter

or:

Plain Text
/revenantscepter

As server operator, you can also use the command directly. To give everyone access:

Plain Text
/lp group default permission set revenantsgravescepter.give true
betterredfire

How to download?

Kodari AI
KodariAug 15 at 5:46 am 1

There isn’t a compiled .jar download attached yet—the project source needs to be built first.

  1. Download the project files/folder from the chat.

  2. Open a terminal in the project folder.

  3. Run:

Shell
./gradlew build

On Windows:

Shell
gradlew.bat build
  1. The plugin JAR will be created in:

Plain Text
build/libs/
  1. Copy the JAR into your server’s:

Plain Text
plugins/
  1. Restart the server, then use:

Plain Text
/gravescepter

If the project files are not available as a download in your chat interface, there is currently no JAR to download directly.

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

import com.kodari.gravescepter.command.GravescepterCommand;
import com.kodari.gravescepter.item.GravescepterItem;
import com.kodari.gravescepter.listener.GravescepterListener;
import com.cryptomorin.xseries.XMaterial;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.java.JavaPlugin;

public final class RevenantsGravescepterPlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        GravescepterItem item = new GravescepterItem(this);
        getServer().getPluginManager().registerEvents(new GravescepterListener(this, item), this);

        if (getCommand("gravescepter") != null) {
            GravescepterCommand command = new GravescepterCommand(item);
            getCommand("gravescepter").setExecutor(command);
            getCommand("gravescepter").setTabCompleter(command);
        }

        registerRecipe(item);
    }

    private void registerRecipe(GravescepterItem item) {
        Material netheriteIngot = XMaterial.matchXMaterial("NETHERITE_INGOT")
                .map(XMaterial::parseMaterial)
                .orElseThrow(() -> new IllegalStateException("Netherite ingot is unavailable"));
        Material diamondBlock = XMaterial.matchXMaterial("DIAMOND_BLOCK")
                .map(XMaterial::parseMaterial)
                .orElseThrow(() -> new IllegalStateException("Diamond block is unavailable"));
        Material mace = XMaterial.matchXMaterial("MACE")
                .map(XMaterial::parseMaterial)
                .orElseThrow(() -> new IllegalStateException("Mace is unavailable"));

        NamespacedKey recipeKey = new NamespacedKey(this, "revenants_gravescepter");
        ShapedRecipe recipe = new ShapedRecipe(recipeKey, item.create());
        recipe.shape("NDN", "DMD", "NDN");
        recipe.setIngredient('N', netheriteIngot);
        recipe.setIngredient('D', diamondBlock);
        recipe.setIngredient('M', mace);
        getServer().addRecipe(recipe);
    }
}