best gen
📎 1 file 7,855 chars
📄
pasted-code-1795043261845.txt
txt 239 lines
▶

Create a premium-quality, fully functional custom Minecraft weapon called "Void Reaper" for my Minecraft Java Paper 26.3 server.

I want this weapon to look and feel like something from a professionally developed fantasy RPG or a high-quality Minecraft MMORPG.

IMPORTANT: Do not just create a renamed Netherite Sword. I want an ORIGINAL custom 3D weapon model, custom textures, animations, sounds, particle effects, and fully working abilities.

ITEM NAME: Void Reaper
RARITY: MYTHIC
WEAPON TYPE: Two-Handed Void Scythe
THEME: Dark cosmic energy, black holes, purple flames, and shadow magic.

━━━━━━━━━━━━━━━━━━━━
1. CUSTOM 3D MODEL
━━━━━━━━━━━━━━━━━━━━

Create an original, extremely detailed Minecraft-compatible 3D scythe model using Blockbench-compatible geometry.

Design:
- Large, intimidating curved scythe blade.
- Obsidian-black metal with glowing violet cracks.
- Dark purple crystal embedded in the center of the blade.
- Long black handle wrapped with dark leather.
- Floating magical crystal fragments surrounding the weapon's head.
- Sharp, menacing silhouette with layered blade geometry.
- Pulsating purple runes engraved along the blade.
- Subtle cosmic energy flowing between the blade and handle.
- Distinct appearance from every angle.
- High-quality pixel-art textures that fit Minecraft's visual style.

The model should look incredible both in first person and third person.

Create all necessary textures, model files, and resource-pack assets. Use a compatible method for displaying the model on Paper 26.3 without requiring client-side mods.

━━━━━━━━━━━━━━━━━━━━
2. ANIMATIONS
━━━━━━━━━━━━━━━━━━━━

Create smooth, impressive animations where supported.

IDLE:
- Purple runes slowly pulse.
- Crystal fragments float and rotate.
- Small dark-energy particles swirl around the weapon.

ATTACK:
- Large purple crescent-shaped slash effect.
- Brief burst of violet energy.
- Dark particles trail behind the blade.

CHARGED ATTACK:
- The scythe gathers energy.
- Purple energy intensifies.
- A burst of particles accompanies the release.

SPECIAL ABILITY:
- A miniature black hole forms.
- Purple energy spirals toward its center.
- The black hole collapses with a dramatic explosion of particles.

Use real supported animations where possible. If the vanilla Minecraft resource-pack system cannot animate part of the model, implement a convincing alternative using plugin-controlled displays, particles, and sounds.

━━━━━━━━━━━━━━━━━━━━
3. CUSTOM ABILITIES
━━━━━━━━━━━━━━━━━━━━

ABILITY 1: VOID SLASH
Activation: Left-click attack

- Swing the scythe and release a purple crescent slash.
- Damage enemies in front of the player.
- Display a beautiful sweeping particle animation.
- Deal 8 damage points (4 hearts) before armor reductions.
- Prevent repeated triggering from a single attack.

ABILITY 2: SINGULARITY
Activation: Right-click
Cooldown: 20 seconds

- Summon a miniature black hole where the player is aiming, up to 15 blocks away.
- Pull nearby enemies toward its center.
- Create swirling purple and black particles.
- After 3 seconds, collapse the black hole.
- Deal 12 damage points (6 hearts) before armor reductions.
- Create a dramatic visual shockwave.

Do not damage terrain.

ABILITY 3: SHADOW DASH
Activation: Sneak + Right-click
Cooldown: 12 seconds

- Dash forward up to 8 blocks.
- Leave a beautiful purple afterimage trail.
- Deal 5 damage points to enemies crossed by the dash.
- Make the player briefly surrounded by shadow particles.
- Prevent teleporting through walls or into unsafe locations.

ABILITY 4: SOUL HARVEST
Activation: Passive ability

- Defeating an enemy with Void Reaper restores 2 hearts.
- Display floating purple soul particles.
- Play a custom magical sound.
- Add a 3-second internal cooldown.

━━━━━━━━━━━━━━━━━━━━
4. SOUNDS AND VISUAL EFFECTS
━━━━━━━━━━━━━━━━━━━━

Create a distinctive sound identity for the weapon.

Include:
- Deep magical hum while charging.
- Sharp energetic slash sound.
- Distorted cosmic sound when summoning a black hole.
- Dramatic impact when Singularity collapses.
- Ethereal soul absorption sound.

Use original custom sounds if possible, with fallback Minecraft sounds.

Effects should look premium without causing excessive lag.

━━━━━━━━━━━━━━━━━━━━
5. CUSTOM ITEM DETAILS
━━━━━━━━━━━━━━━━━━━━

Display Name:
§5§lVOID REAPER

Lore:

§8━━━━━━━━━━━━━━━━━━━━
§5✦ MYTHIC WEAPON ✦
§7Forged in the heart of the void.
§7Its blade consumes the light itself.
§8
§d⚔ Void Slash
§5☄ Singularity
§d➤ Shadow Dash
§5❤ Soul Harvest
§8
§7"The darkness answers its master."
§8━━━━━━━━━━━━━━━━━━━━

Include:
- Custom model and item identification.
- Mythic rarity presentation.
- Glowing visual effect.
- Unbreakable durability.
- Configurable attack damage and speed.
- Unique item ID.
- Secure persistent item identification using PersistentDataContainer.

Use supported Minecraft text components and formatting APIs rather than relying exclusively on legacy formatting codes.

━━━━━━━━━━━━━━━━━━━━
6. PLUGIN REQUIREMENTS
━━━━━━━━━━━━━━━━━━━━

Build a complete working plugin specifically targeting Minecraft Java Paper 26.3.

Requirements:
- Generate the actual compiled .jar file.
- Generate the custom resource pack.
- Include the complete 3D model and textures.
- Use supported Paper APIs.
- Avoid deprecated or incompatible APIs.
- Avoid NMS unless absolutely necessary.
- No paid dependencies.
- No required client-side mods.
- Fully configurable cooldowns, damage, effects, and ability settings.
- Prevent ability spam and duplication exploits.
- Prevent damaging teammates or protected players when configured.
- Make sure particles and abilities do not cause excessive TPS loss.
- Handle player disconnects, deaths, world changes, and plugin reloads safely.
- Keep all effects server-authoritative.

Provide commands:

/voidreaper give 
/voidreaper reload
/voidreaper help

Permission:
voidreaper.admin

Only administrators can give out the weapon or reload the configuration.

━━━━━━━━━━━━━━━━━━━━
7. RESOURCE PACK
━━━━━━━━━━━━━━━━━━━━

Generate a complete downloadable resource pack containing:

- 3D scythe model.
- Custom pixel-art textures.
- Animated textures where supported.
- Custom sounds if generated.
- Correct item model mappings.
- Correct pack metadata for the target Minecraft version.

Ensure that equipping the Void Reaper displays the custom weapon instead of a vanilla item.

Include instructions for installing the resource pack and making it available to players joining the server.

━━━━━━━━━━━━━━━━━━━━
8. TESTING AND FINAL DELIVERY
━━━━━━━━━━━━━━━━━━━━

Before declaring completion:

1. Compile the plugin successfully.
2. Check API compatibility with Paper 26.3.
3. Verify that the custom model renders correctly.
4. Verify all abilities and cooldowns.
5. Check that right-click and sneak + right-click activate the correct abilities.
6. Verify that the black hole pulls entities without breaking blocks.
7. Verify that the dash cannot pass through solid walls.
8. Check multiplayer behavior.
9. Verify that all files required for installation are included.

Deliver:
- Compiled plugin JAR.
- Complete resource-pack ZIP.
- Editable Blockbench .bbmodel project.
- Plugin source code.
- Configuration files.
- Installation instructions.
- Commands and permissions.
- Test results.

If any requested functionality is unsupported, explain the limitation and implement the closest compatible alternative. Do not falsely claim that a model, animation, build, or test succeeded.

FINAL GOAL:
I want the Void Reaper to be one of the coolest-looking custom Minecraft weapons imaginable, with an intimidating animated 3D model, spectacular dark-purple visual effects, satisfying combat mechanics, and a completely functional plugin.

Prioritize visual quality, animation smoothness, reliable gameplay, and professional polish.
Kodari AI
KodariWed at 11:12 pm 3
VoidReaper
A premium Mythic-tier custom weapon plugin for Paper 26.3 featuring an original 3D void scythe model with custom textures and animations. Includes four unique abilities: Void Slash (crescent projectile attack), Singularity (black hole with pull and explosion), Shadow Dash (teleport with afterimage trail), and Soul Harvest (passive lifesteal). Features custom sounds, particle effects, configurable cooldowns, PersistentDataContainer-based item identification, and a complete resource pack with Blockbench-compatible geometry.

I’ll build the server-side weapon and abilities with configurable settings. The requested 3D model and textures need Kodari Studio, which is disabled here: enable it under Project Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features.

Created the Void Reaper plugin source with four abilities, configuration, /voidreaper give, /voidreaper reload, and the voidreaper.admin permission.

Not yet delivered: the custom model, textures, animations, sounds, resource pack, and Blockbench project. Until those assets exist, the weapon uses a vanilla base item with custom model data. Attack speed and protection-plugin integration are also not implemented; damage events can be cancelled by other plugins, but the pull effect does not check their protection rules.

The plugin has not been compiled or tested, and Paper 26.3 compatibility and multiplayer behavior are unverified. To build the current source in Kodari:

  1. Click Compile in the top bar, or on mobile tap ⋮ → Compile Project.

  2. Click Compile, then download the JAR if the build succeeds. If it fails, use Auto-fix or Fix.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 427
src/main/java/com/kodari/voidreaper/VoidReaperPlugin.java
package com.kodari.voidreaper;

import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.XSound;
import com.cryptomorin.xseries.particles.XParticle;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.format.TextDecoration;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.NamespacedKey;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.player.PlayerChangedWorldEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.scheduler.BukkitRunnable;
import org.bukkit.scoreboard.Team;
import org.bukkit.util.RayTraceResult;
import org.bukkit.util.Vector;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;

public final class VoidReaperPlugin extends org.bukkit.plugin.java.JavaPlugin implements Listener {
    private NamespacedKey itemKey;
    private final Map<UUID, Long> slashCooldown = new HashMap<>();
    private final Map<UUID, Long> singularityCooldown = new HashMap<>();
    private final Map<UUID, Long> dashCooldown = new HashMap<>();
    private final Map<UUID, Long> harvestCooldown = new HashMap<>();
    private final Set<UUID> abilityDamage = new HashSet<>();
    private final Map<UUID, UUID> abilityKills = new HashMap<>();
    private final Map<UUID, BukkitRunnable> activeSingularities = new HashMap<>();

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemKey = new NamespacedKey(this, "weapon_id");
        Bukkit.getPluginManager().registerEvents(this, this);
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            if (!getConfig().getBoolean("effects.idle", true)) return;
            for (Player player : Bukkit.getOnlinePlayers()) {
                if (isReaper(player.getInventory().getItemInMainHand())) {
                    particle(player.getLocation().add(0, 1.2, 0), "PORTAL", 3, 0.25);
                }
            }
        }, 20L, 10L);
    }

    @Override
    public void onDisable() {
        for (BukkitRunnable task : activeSingularities.values()) task.cancel();
        activeSingularities.clear();
        abilityKills.clear();
    }

    private boolean isReaper(ItemStack item) {
        if (item == null || !item.hasItemMeta()) return false;
        return "void_reaper".equals(item.getItemMeta().getPersistentDataContainer().get(itemKey, PersistentDataType.STRING));
    }

    private ItemStack createWeapon() {
        String material = getConfig().getString("weapon.base-material", "NETHERITE_SWORD");
        ItemStack item = XMaterial.matchXMaterial(material).map(XMaterial::parseItem)
                .orElseThrow(() -> new IllegalStateException("Invalid weapon.base-material: " + material));
        ItemMeta meta = item.getItemMeta();
        meta.displayName(Component.text("VOID REAPER", NamedTextColor.DARK_PURPLE, TextDecoration.BOLD).decoration(TextDecoration.ITALIC, false));
        List<Component> lore = new ArrayList<>();
        lore.add(line("━━━━━━━━━━━━━━━━━━━━", NamedTextColor.DARK_GRAY));
        lore.add(line("✦ MYTHIC WEAPON ✦", NamedTextColor.DARK_PURPLE));
        lore.add(line("Forged in the heart of the void.", NamedTextColor.GRAY));
        lore.add(line("Its blade consumes the light itself.", NamedTextColor.GRAY));
        lore.add(Component.empty());
        lore.add(line("⚔ Void Slash", NamedTextColor.LIGHT_PURPLE));
        lore.add(line("☄ Singularity", NamedTextColor.DARK_PURPLE));
        lore.add(line("➤ Shadow Dash", NamedTextColor.LIGHT_PURPLE));
        lore.add(line("❤ Soul Harvest", NamedTextColor.DARK_PURPLE));
        lore.add(Component.empty());
        lore.add(line("\"The darkness answers its master.\"", NamedTextColor.GRAY));
        lore.add(line("━━━━━━━━━━━━━━━━━━━━", NamedTextColor.DARK_GRAY));
        meta.lore(lore);
        meta.setUnbreakable(true);
        meta.setCustomModelData(getConfig().getInt("weapon.custom-model-data", 260301));
        meta.setEnchantmentGlintOverride(true);
        meta.getPersistentDataContainer().set(itemKey, PersistentDataType.STRING, "void_reaper");
        item.setItemMeta(meta);
        return item;
    }

    private Component line(String text, NamedTextColor color) {
        return Component.text(text, color).decoration(TextDecoration.ITALIC, false);
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length == 0 || args[0].equalsIgnoreCase("help")) {
            sender.sendMessage("§5Void Reaper: §d/voidreaper give <player> §7| §d/voidreaper reload");
            return true;
        }
        if (!sender.hasPermission("voidreaper.admin")) {
            sender.sendMessage("§cYou do not have permission.");
            return true;
        }
        if (args.length == 1 && args[0].equalsIgnoreCase("reload")) {
            reloadConfig();
            sender.sendMessage("§aVoid Reaper configuration reloaded.");
        } else if (args.length == 2 && args[0].equalsIgnoreCase("give")) {
            Player target = Bukkit.getPlayerExact(args[1]);
            if (target == null) {
                sender.sendMessage("§cThat player is not online.");
            } else {
                try {
                    Map<Integer, ItemStack> remaining = target.getInventory().addItem(createWeapon());
                    for (ItemStack item : remaining.values()) target.getWorld().dropItemNaturally(target.getLocation(), item);
                    sender.sendMessage("§aGave a Void Reaper to " + target.getName() + ".");
                } catch (IllegalStateException ex) {
                    sender.sendMessage("§c" + ex.getMessage());
                }
            }
        } else {
            sender.sendMessage("§cUsage: /voidreaper give <player> | /voidreaper reload | /voidreaper help");
        }
        return true;
    }

    @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
    public void onAttack(EntityDamageByEntityEvent event) {
        if (!(event.getDamager() instanceof Player player) || !isReaper(player.getInventory().getItemInMainHand()) || abilityDamage.contains(player.getUniqueId())) return;
        if (!(event.getEntity() instanceof LivingEntity target) || !canTarget(player, target)) {
            event.setCancelled(true);
            return;
        }
        event.setDamage(Math.max(0, getConfig().getDouble("weapon.attack-damage", 8.0)));
        if (ready(slashCooldown, player, Math.max(1, getConfig().getLong("slash.cooldown-ticks", 10)) * 50L)) {
            event.setDamage(Math.max(0, getConfig().getDouble("slash.damage", 8.0)));
            slash(player, target);
        }
    }

    @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
    public void onInteract(PlayerInteractEvent event) {
        if (event.getHand() != EquipmentSlot.HAND || !isReaper(event.getItem())) return;
        Player player = event.getPlayer();
        Action action = event.getAction();
        if (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK) {
            event.setCancelled(true);
            if (player.isSneaking()) dash(player);
            else singularity(player);
        } else if (action == Action.LEFT_CLICK_AIR || action == Action.LEFT_CLICK_BLOCK) {
            if (ready(slashCooldown, player, Math.max(1, getConfig().getLong("slash.cooldown-ticks", 10)) * 50L)) slash(player, null);
        }
    }

    private void slash(Player player, LivingEntity directTarget) {
        Location eye = player.getEyeLocation();
        Vector forward = eye.getDirection().setY(0);
        if (forward.lengthSquared() < 0.001) forward = new Vector(0, 0, 1);
        forward.normalize();
        double range = clamp(getConfig().getDouble("slash.range", 4), 1, 8);
        for (int i = -6; i <= 6; i++) {
            double angle = i * Math.PI / 24;
            Vector direction = forward.clone().rotateAroundY(angle);
            Location point = eye.clone().add(direction.multiply(range * 0.7)).add(0, 0.3 * Math.cos(angle * 2), 0);
            particle(point, "WITCH", 2, 0.05);
        }
        sound(player.getLocation(), "ENTITY_PLAYER_ATTACK_SWEEP", 1.0f, 0.7f);
        for (Entity entity : player.getNearbyEntities(range, range, range)) {
            if (!(entity instanceof LivingEntity target) || target.equals(directTarget) || !canTarget(player, target)) continue;
            Vector delta = target.getLocation().toVector().subtract(player.getLocation().toVector());
            if (delta.lengthSquared() > range * range || delta.lengthSquared() < 0.01 || forward.dot(delta.normalize()) < 0.5 || !player.hasLineOfSight(target)) continue;
            damage(player, target, getConfig().getDouble("slash.damage", 8));
        }
    }

    private void singularity(Player player) {
        if (!ready(singularityCooldown, player, seconds("singularity.cooldown-seconds", 20))) return;
        double range = clamp(getConfig().getDouble("singularity.range", 15), 1, 30);
        Location eye = player.getEyeLocation();