wolfgaming470470

make me a custom scythe called the bounty scythe that has the attack speed of a diamond sword (1.6 attack speed) but does the damage of a netherite axe (10 attack damage) and has an ability activated by shifting and pressing left click that activates a life drain ability that lasts 4 seconds and has a cooldown of 40 seconds but wile its active you heal 50% of the damagew you deal per hit, make the attached picture the item image

1 image attached
Kodari AI
KodariJun 1 at 3:24 pm 20
BountyScythe
A custom weapon plugin adding the Bounty Scythe — a scythe with diamond sword attack speed (1.6) and netherite axe damage (10). Features a Life Drain ability activated via Sneak + Left Click: for 4 seconds, 50% of all damage dealt is returned as healing. Includes a 40-second cooldown, particle/sound effects, a give command, and a built-in HTTP resource pack server for the custom scythe texture.

Plan:

  1. ScytheItem — builds the ItemStack with attributes + PDC tag

  2. LifeDrainManager — tracks active drains + cooldowns

  3. ScytheListener — handles interact (activate) + damage (heal) + join (send pack)

  4. ResourcePackManager — extracts pack files, zips them, serves via built-in HTTP server

  5. BountyScythePlugin — wires everything together, /givescythe command

  6. Resource pack JSON files + config/plugin descriptors


Here’s what was built and what you need to do to finish setup:

Plugin features:

  • Netherite Hoe base with custom_model_data: 1001, attributes set via AttributeModifier on the HAND slot — diamond sword speed (−2.4 modifier) and netherite axe damage (+9.0 modifier)

  • Sneak + Left Click activates Life Drain: 4 seconds active, 50% lifesteal on every hit, 40s cooldown with countdown messages

  • Built-in HTTP server (default port 8765) automatically serves the resource pack and sends it to players on join

To add the texture (required for the scythe image):

  1. Start the server once — it creates plugins/BountyScythe/pack/assets/minecraft/textures/item/

  2. Drop your scythe PNG (the image you attached) in that folder, named bounty_scythe.png

  3. Restart the server — the ZIP is rebuilt with the texture included

In config.yml, set resource-pack.server-ip to your server’s public IP or domain so players can download the pack. Port 8765 must be open in your firewall/NAT.

wolfgaming470470

Make the give scythe commands operator only so normal players cant get it. Also remoce the scythe's features of a hoe so it doesnt turn grass into farmland. When you are holding the scythe, above the hotbar make a green text saying: Ability ready (only if the ability is ready), if its not ready then make it say with red text: Ability on cooldown and next to that say how long before the ability is ready. When the ability is activated make it say with green text: Ability activated and next to that the time before it runs out. Make all of this as a replacment so these things arent said in chat, only above the hotbar. also add a warden like ability where if you shift and press f you shoot a beam of red particles with the range of 5 blocks and make it do 5 hearts true damage so its the same damage no matter the armor, and instead of the scythe being a hoe make it able to disable shields like an axe but it keeps the previous atttack spead and damage

wolfgaming470470

Make the give scythe commands operator only so normal players cant get it. Also remoce the scythe's features of a hoe so it doesnt turn grass into farmland. When you are holding the scythe, above the hotbar make a green text saying: Ability ready (only if the ability is ready), if its not ready then make it say with red text: Ability on cooldown and next to that say how long before the ability is ready. When the ability is activated make it say with green text: Ability activated and next to that the time before it runs out. Make all of this as a replacment so these things arent said in chat, only above the hotbar. also add a warden like ability where if you shift and press f you shoot a beam of red particles with the range of 5 blocks and make it do 5 hearts true damage (but its configurable so you can lower or raise it in the config file) so its the same damage no matter the armor, and instead of the scythe being a hoe make it able to disable shields like an axe but it keeps the previous atttack spead and damage

Kodari AI
KodariJun 2 at 12:25 pm 31

Plan:

  1. Change base item from NETHERITE_HOE → NETHERITE_AXE (native shield disabling, no tilling)

  2. Add Warden Beam to LifeDrainManager + cooldown, and drain-remaining tracking

  3. Full rewrite of ScytheListener — action bar ticker, beam via PlayerSwapHandItemsEvent, strip all chat messages

  4. Update resource pack model override file (hoe → axe)

  5. Update config.yml with beam settings

Now writing all the updated source files:


What changed:

Change
Detail
Op-only command
Already enforced via
permission: bountyscythe.give
with
default: op
in
plugin.yml
— untouched, confirmed correct
No hoe tilling
Base item is now
NETHERITE_AXE
— axes never till ground. Right-clicks are also cancelled in the interact handler as a safety net
Shield disable
Axes natively disable shields in vanilla Minecraft — no extra code needed
Action bar
A 4-tick repeating task sends
ACTION_BAR
messages to every scythe holder: §a
Ability Ready
, §c
Ability on Cooldown » Xs
, §a
Ability Activated | Life Drain » Xs remaining
Warden Beam
Sneak + F (
PlayerSwapHandItemsEvent
) fires a red DUST particle beam up to 5 blocks, stops at solid blocks, deals configurable true damage (HP subtracted directly, bypasses armor). 10-second cooldown
Config
beam.damage
(default 10.0) and
beam.range
(default 5.0) are fully adjustable in
config.yml
Resource pack
Model override moved from
netherite_hoe.json
→
netherite_axe.json
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 695
src/main/java/com/kodari/bountyscythe/BountyScythePlugin.java
package com.kodari.bountyscythe;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class BountyScythePlugin extends JavaPlugin {

    private LifeDrainManager lifeDrainManager;
    private ResourcePackManager resourcePackManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        ScytheItem.init(this);
        lifeDrainManager = new LifeDrainManager();
        resourcePackManager = new ResourcePackManager(this);
        resourcePackManager.start();

        getServer().getPluginManager().registerEvents(
                new ScytheListener(this, lifeDrainManager, resourcePackManager), this);

        getLogger().info("BountyScythe enabled.");
        getLogger().info("=== TEXTURE SETUP ===");
        getLogger().info("Place your bounty_scythe.png at:");
        getLogger().info("  plugins/BountyScythe/pack/assets/minecraft/textures/item/bounty_scythe.png");
        getLogger().info("Then restart the server to rebuild the resource pack.");
    }

    @Override
    public void onDisable() {
        if (resourcePackManager != null) resourcePackManager.stop();
        if (lifeDrainManager != null) lifeDrainManager.clear();
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!command.getName().equalsIgnoreCase("givescythe")) return false;

        Player target;
        if (args.length > 0) {
            target = getServer().getPlayer(args[0]);
            if (target == null) {
                sender.sendMessage("§cPlayer not found: " + args[0]);
                return true;
            }
        } else if (sender instanceof Player) {
            target = (Player) sender;
        } else {
            sender.sendMessage("Usage: /givescythe <player>");
            return true;
        }

        if (!sender.hasPermission("bountyscythe.give")) {
            sender.sendMessage("§cYou don't have permission to use this command.");
            return true;
        }

        target.getInventory().addItem(ScytheItem.create());
        target.sendMessage("§6You received the §4§lBounty Scythe§6!");
        if (!sender.equals(target)) {
            sender.sendMessage("§6Gave §4§lBounty Scythe §6to §e" + target.getName() + "§6.");
        }
        return true;
    }
}