Build the requested professional Paper Minecraft plugin in this project, named BloodScythe (displayed weapon Soul Reaper Scythe), targeting Minecraft 1.21+. User's full requirements: Material.MACE base; identify only custom weapon with PersistentDataContainer; preserve native mace mechanics; configurable CustomModelData support; MiniMessage gradient red bold name and ability lore; /scythe give [player] gated by scythe.admin; optional configurable crafting recipe; config.yml for all relevant values. Abilities: enhanced native mace smash impact multiplier configurable (default 1.35x), crimson REDSTONE dust + SOUL_FIRE_FLAME shockwave and deep wither/anvil sound; automatic Breach IV armor piercing on scythe hits, configurable, without leaving normal maces affected; crouch + right click Reaper's Ascent launches upward to ~10 blocks with 8-second cooldown, 5-second fall protection except if smash hit, soul/cloud spiral and breeze wind burst; standing right-click Phantom Dash roughly 6 blocks toward look direction, hits enemies within 2.5 blocks/path for 12 HP true damage, slight pull, Wither II for 3 seconds, sweep/dark-red dust effects and sweep sound, 10-second cooldown; Soul Harvest on every third consecutive scythe hit or scythe kill: heal 20% damage dealt and on kill Speed II + Absorption I for 4 sec, soul particles/sound; action bar displays live clean cooldowns; avoid accidental self-fall damage after abilities. Deliver complete source, plugin.yml, config.yml, and Maven/Gradle project setup as appropriate. Make sensible safe implementation choices for Paper API compatibility; make no unsupported claims about exact engine behavior. Do not add tests. Do not attempt to build; build verification is handled separately. Keep code clean and production-minded, handle permissions, invalid targets, cooldowns, lifecycle/task cleanup, and configurable values.

Kodari AI
KodariNov 14 at 8:24 am 1
BloodScythe
Professional Paper plugin implementing a customizable Soul Reaper Scythe weapon. Features Material.MACE base with PersistentDataContainer identification, configurable CustomModelData, MiniMessage gradient red name and ability lore. Enhanced smash impact multiplier, crimson shockwave effects, configurable Breach IV armor piercing. Crouch-right-click Reaper's Ascent launches player with fall protection and cooldown. Standing-right-click Phantom Dash deals true damage with Wither effect. Soul Harvest heals on every third hit or kill with buffs. Action bar cooldown display, configurable crafting recipe, admin give command, full config.yml customization.
  1. Build the Gradle/Paper 1.21+ project skeleton and configurable weapon metadata.

  2. Implement the scythe item, admin command, and optional configurable recipe.

  3. Add isolated combat abilities, cooldown messaging, fall protection, and task cleanup.

[Generation stopped]

Implement the full BloodScythe Paper plugin in this project. The project currently appears empty, so create the complete project structure and all required files from scratch. Target Paper 1.21.x / Java 21. Use Gradle (include build.gradle and settings.gradle), plugin.yml, config.yml, README if useful, and Java source. Feature requirements: Material.MACE base only; custom identify via PDC, custom model data optionally configurable, MiniMessage gradient name <gradient:#8B0000:#FF0000><bold>Soul Reaper Scythe</bold></gradient> with clear ability lore; command /scythe give [player] with scythe.admin permission, sane validation; optional configurable crafting recipe. Configurable enhanced native mace smash damage multiplier default 1.35, dark crimson REDSTONE dust + SOUL_FIRE_FLAME impact visuals and wither/anvil sound; configurable Breach enchant level auto-applied on attack only to scythe, without modifying unrelated weapons; crouch + right-click Reaper's Ascent, launch up roughly 10 blocks (tune vertical velocity), 8 sec default cooldown, five-sec fall protection but clear/disable on successful mace smash, soul/cloud spiral and Breeze burst sound; standing right-click Phantom Dash, dash up to six blocks in facing direction, hits valid enemy entities in ~2.5 block path radius for 12 HP true damage, pull slightly, Wither II for 3 sec, sweep and dark red dust visuals/sound, 10 sec default cooldown; Soul Harvest heal 20% damage on every 3rd consecutive scythe hit and kills, plus Speed II and Absorption I for four seconds on a Scythe kill; soul collection particles/sound; action bar shows live cooldown state. Prevent self-fall damage after abilities. Ensure listeners/tasks/cooldowns are cleaned on disable, guard invalid/dead/self targets and offline players, and use appropriate Paper/Bukkit API. Keep configurable values in config.yml including cooldown/damage/recipe/model data. Do not add tests and do not attempt to build; verification happens externally. Implement actual code and files, not just a plan. Make safe production-oriented compatibility decisions for Paper 1.21.x.

Kodari AI
KodariNov 14 at 8:35 am 1

Implemented BloodScythe as a Gradle project targeting Java 21 and Paper 1.21.x. It includes the PDC-identified MACE scythe, configurable item and recipe, /scythe give [player], smash and Breach handling, both abilities, harvest effects, cooldown action bar, fall protection, and lifecycle cleanup.

Source and configuration are under src/main. No build was attempted, as requested.

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

import com.cryptomorin.xseries.XMaterial;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;

import java.util.List;

public final class BloodScythePlugin extends JavaPlugin {
    private ScytheItems scytheItems;
    private ScytheListener scytheListener;
    private BukkitTask actionBarTask;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        scytheItems = new ScytheItems(this);
        scytheListener = new ScytheListener(this, scytheItems);
        Bukkit.getPluginManager().registerEvents(scytheListener, this);

        ScytheCommand scytheCommand = new ScytheCommand(this, scytheItems);
        if (getCommand("scythe") != null) {
            getCommand("scythe").setExecutor(scytheCommand);
            getCommand("scythe").setTabCompleter(scytheCommand);
        }

        registerRecipe();
        actionBarTask = Bukkit.getScheduler().runTaskTimer(this, scytheListener::updateCooldownHud, 10L, 10L);
    }

    @Override
    public void onDisable() {
        if (actionBarTask != null) {
            actionBarTask.cancel();
            actionBarTask = null;
        }
        Bukkit.getScheduler().cancelTasks(this);
        if (scytheListener != null) {
            scytheListener.clearState();
        }
    }

    public ScytheItems getScytheItems() {
        return scytheItems;
    }

    private void registerRecipe() {
        if (!getConfig().getBoolean("recipe.enabled", false)) {
            return;
        }

        List<String> shape = getConfig().getStringList("recipe.shape");
        if (shape.size() != 3 || shape.stream().anyMatch(row -> row.length() != 3)) {
            getLogger().warning("The scythe recipe must have exactly three rows of three characters.");
            return;
        }

        ConfigurationSection ingredients = getConfig().getConfigurationSection("recipe.ingredients");
        if (ingredients == null) {
            getLogger().warning("The scythe recipe is enabled but recipe.ingredients is missing.");
            return;
        }

        ShapedRecipe recipe = new ShapedRecipe(new NamespacedKey(this, "soul_reaper_scythe"), scytheItems.createScythe());
        recipe.shape(shape.toArray(new String[0]));
        for (String key : ingredients.getKeys(false)) {
            if (key.length() != 1 || key.charAt(0) == ' ') {
                getLogger().warning("Ignoring invalid scythe recipe ingredient key: " + key);
                continue;
            }
            String materialName = ingredients.getString(key, "");
            Material material = XMaterial.matchXMaterial(materialName)
                    .map(XMaterial::parseMaterial)
                    .orElse(null);
            if (material == null) {
                getLogger().warning("Ignoring unknown scythe recipe material: " + materialName);
                continue;
            }
            recipe.setIngredient(key.charAt(0), material);
        }
        Bukkit.addRecipe(recipe);
    }
}