Ms Ms

💗 1. HEART SPEAR

Item

* Material: Netherite Spear * Name: Heart Spear * Color: Pink

Passive Ability: Heart Vitality

* Owner permanently gains 4 additional hearts. * This increases the owner’s maximum health by 8 HP.

Active Ability: Heart Ring

* Activation: Offhand button * Duration: 30 seconds * Cooldown: 60 seconds * Circle diameter: 8 blocks * Circle follows the owner. * Circle is made entirely of pink particles. * Add heart particles and pink sparkles. * Other players inside the circle lose 6 hearts. * This is a health-removal effect, not normal attack damage. * Owner is immune. * Multiple players can be affected. * End effect: Large pink particle burst.

⸻

🔥 2. FIRE SPEAR

Item

* Material: Netherite Spear * Name: Fire Spear * Color: Red/Orange

Passive Ability: Fire Immunity

* Owner has permanent Fire Resistance.

Active Ability: Inferno Circle

* Activation: Offhand button * Duration: 30 seconds * Cooldown: 60 seconds * Circle diameter: 8 blocks * Circle height: 4 blocks * Circle follows the owner. * Circle is made entirely of fire particles. * Other players who enter the circle are set on fire. * Owner is immune. * No actual fire blocks are created. * No block damage. * End effect: Large fire-particle burst.

⸻

🤍 3. WIND SPEAR

Item

* Material: Netherite Spear * Name: Wind Spear * Color: White

Passive Ability: Wind Speed

* Owner has Speed II permanently while using/holding the spear.

Active Ability: Wind Circle

* Activation: Offhand button * Duration: 30 seconds * Cooldown: 60 seconds * Circle diameter: 8 blocks * Circle height: 4 blocks * Circle follows the owner. * Circle is made entirely of white particles. * When another player enters the circle, they are launched 5 blocks into the air. * When they land, they are trapped in cobwebs. * Owner is immune. * Multiple players can be affected. * End effect: Large burst of white particles.

⸻

🖤 4. DEATH SPEAR

Item

* Material: Netherite Spear * Name: Death Spear * Color: Black

Active Ability: Death Zone

* Activation: Offhand button * Duration: 30 seconds * Cooldown: 60 seconds * Circle diameter: 8 blocks * Circle height: 4 blocks * Circle follows the owner. * Circle is made entirely of black particles. * When another player enters the circle, they become trapped. * Trapped player is lifted 3 blocks into the air. * They remain suspended until they Ender Pearl away. * Black particles connect the owner to every trapped player. * Multiple players can be trapped simultaneously. * Trapped players lose 2 hearts every 3 seconds. * Owner is immune. * Only black particles are used. * No block damage. * End effect: Players are released and particle connections disappear.

Kodari AI
KodariAug 29 at 12:43 pm 2
ElementalSpears
A Minecraft plugin introducing four elemental Netherite spears: Heart, Fire, Wind, and Death. Each spear grants a permanent passive ability (extra hearts, fire resistance, speed, or none) and an active circle ability activated via offhand button. Circles follow the owner for 30 seconds with 60-second cooldowns, affecting nearby players with unique effects like health removal, fire, launching into cobwebs, or suspension with damage. All effects use colored particles matching each element, with owner immunity and dramatic end bursts.
  1. Create the Gradle build and plugin metadata.

  2. Add spear item creation, ownership tags, and command handling.

  3. Add passive effects and all four follow-owner active zones.

  4. Register lifecycle, interaction, pearl-release, cooldown, and cleanup behavior.

Created the complete SpearAbilities Minecraft plugin project.

  • Added Gradle build with Paper API and XSeries.

  • Added /spears give <player> <type> command.

  • Added Heart, Fire, Wind, and Death spear items with ownership metadata.

  • Implemented passive abilities:

    • Heart: +8 max health

    • Fire: permanent Fire Resistance

    • Wind: Speed II while held

  • Implemented 30-second active zones with 60-second cooldowns.

  • Added particle circles, health removal, fire effects, wind launches, cobweb landing traps, Death Zone suspension, pearl escape, damage ticks, and cleanup effects.

Ms Ms

now make the particles 100x better

Kodari AI
KodariAug 29 at 12:47 pm 1
  1. Inspect the existing particle and zone-rendering code.

  2. Replace the basic rings with layered, animated elemental visuals.

  3. Preserve gameplay behavior while improving colors, density, motion, and end bursts.

Upgraded all spear visuals in SpearManager:

  • Heart: layered pink rings, rotating heart particles, pink dust spirals, animated sparkles, and multi-ring burst.

  • Fire: three rotating fire rings, rising flame columns, lava accents, center flames, and expanding flame bursts.

  • Wind: animated cloud rings, rotating wind streams, white end-rod streaks, and layered burst rings.

  • Death: layered black particle rings, swirling columns, animated particle links to trapped players, and expanding black end rings.

  • Added continuous animation so every active circle feels alive instead of static.

  • Preserved owner immunity, zone behavior, and the original ability timings.

Ms Ms

what item are they

Kodari AI
KodariAug 29 at 12:48 pm 1

They are currently implemented as custom Netherite Sword items, renamed:

  • Heart Spear

  • Fire Spear

  • Wind Spear

  • Death Spear

Minecraft versions before the newer spear item support do not have a vanilla Netherite Spear, so the plugin uses NETHERITE_SWORD with custom names, lore, and hidden metadata to identify each spear.

Ms Ms

i want the spears to be netherite spear

Kodari AI
KodariAug 29 at 12:49 pm 1

Changed all four items to use the actual NETHERITE_SPEAR material instead of NETHERITE_SWORD.

This requires a Minecraft/Paper version that supports the vanilla Netherite Spear item.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 734
src/main/java/com/kodari/spears/SpearPlugin.java
package com.kodari.spears;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.stream.Collectors;

public final class SpearPlugin extends JavaPlugin implements CommandExecutor, TabCompleter {
    private SpearManager spearManager;

    @Override
    public void onEnable() {
        spearManager = new SpearManager(this, new SpearItemFactory(this));
        getServer().getPluginManager().registerEvents(spearManager, this);
        spearManager.start();

        if (getCommand("spears") != null) {
            getCommand("spears").setExecutor(this);
            getCommand("spears").setTabCompleter(this);
        }
    }

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

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length != 3 || !args[0].equalsIgnoreCase("give")) {
            sender.sendMessage(ChatColor.RED + "Usage: /spears give <player> <heart|fire|wind|death>");
            return true;
        }

        Player target = Bukkit.getPlayerExact(args[1]);
        SpearType type = SpearType.fromId(args[2]);
        if (target == null) {
            sender.sendMessage(ChatColor.RED + "That player must be online.");
            return true;
        }
        if (type == null) {
            sender.sendMessage(ChatColor.RED + "Unknown spear type.");
            return true;
        }

        spearManager.give(target, type);
        sender.sendMessage(ChatColor.GREEN + "Gave " + type.id() + " spear to " + target.getName() + ".");
        return true;
    }

    @Override
    public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
        if (args.length == 1) {
            return prefix(List.of("give"), args[0]);
        }
        if (args.length == 2 && args[0].equalsIgnoreCase("give")) {
            return prefix(Bukkit.getOnlinePlayers().stream().map(Player::getName).toList(), args[1]);
        }
        if (args.length == 3 && args[0].equalsIgnoreCase("give")) {
            return prefix(Arrays.stream(SpearType.values()).map(SpearType::id).toList(), args[2]);
        }
        return List.of();
    }

    private List<String> prefix(List<String> values, String input) {
        String lower = input.toLowerCase(Locale.ROOT);
        return values.stream().filter(value -> value.toLowerCase(Locale.ROOT).startsWith(lower))
                .collect(Collectors.toCollection(ArrayList::new));
    }
}