kyonog

​I need a plugin compatible with versions 1.21.1 to 26.2 that includes a specific hoe.

The hoe should have the following enchantments: ​Wind Burst 5 ​Sharpness 5 ​Density 5 ​Breach 5 ​Key Features: ​Anti-Drop/Anti-Place: This hoe cannot be dropped manually, nor can it be placed down as a block. ​Death Behavior: If a player holding this hoe dies, the hoe will drop on the ground. ​Command: ​/bloodhoe give <player> ​Plugin Details: ​Plugin Name: BloodHoe ​Author: KyonOG

Kodari AI
KodariJul 14 at 8:06 am 5
BloodHoe
BloodHoe adds a custom enchanted netherite hoe for Minecraft servers running from version 1.21.1 onward. The hoe includes Wind Burst V, Sharpness V, Density V, and Breach V enchantments, uses a unique identity marker, cannot be manually dropped or placed as a block, and automatically drops on the ground when its holder dies. Administrators can grant it to online players with the /bloodhoe give command, with permission control and tab completion support.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 280
src/main/java/com/kyonog/bloodhoe/BloodHoePlugin.java
package com.kyonog.bloodhoe;

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

public class BloodHoePlugin extends JavaPlugin {
    private HoeManager hoeManager;

    @Override
    public void onEnable() {
        hoeManager = new HoeManager(this);

        BloodHoeCommand command = new BloodHoeCommand(hoeManager);
        PluginCommand bloodHoeCommand = Objects.requireNonNull(getCommand("bloodhoe"));
        bloodHoeCommand.setExecutor(command);
        bloodHoeCommand.setTabCompleter(command);

        getServer().getPluginManager().registerEvents(new HoeListener(this, hoeManager), this);
    }
}