yahoo_pp

Create a plugin about "Effects". When player joins the SMP they get assigned to each weapon's ability. sword, axe, mace, bow, spear, etc. Dont get me wrong you can still use other weapons but you wont get the custom abilities from them. You can change your assigned weapon by using Main Weapon reroll which will cost alot to craft. And by effects works the same as weapons when a player join they get assigned to a good buff effect and make them more powerful by killing other player or craft the "Effect Point" which will be hard to craft and cost alot too. The limit to each player's effect ability is 10 point like strength 10 for example. This plugin will have custom textures for the items and abilities. Do your best it will be huge. Good luck.

Kodari AI
KodariSep 8 at 10:25 am 2
WeaponEffectSystem
Assigns each player a primary weapon class (sword, axe, mace, bow, spear) granting unique custom abilities and a passive buff effect on SMP join. Players can use any weapon but only gain abilities from their assigned class. Rerolling the main weapon requires crafting a rare, expensive item. Effects are assigned randomly on join, upgradeable up to level 10 by killing players or crafting hard-to-obtain "Effect Points". Includes custom textures for all items and ability icons, with a comprehensive crafting system and player progression tracking.
  1. Core plugin bootstrap, persistence, assignments, and configuration.

  2. Weapon abilities, effect progression, reroll/effect-point items, and recipes.

  3. Commands, event handling, plugin metadata, and custom-model-data resource-pack hooks.

Built the Effects Minecraft plugin from scratch.

  • Weapon affinities: Sword, Axe, Mace, Bow, Crossbow, and Spear.

  • Effect affinities: Strength, Resistance, Speed, Haste, Regeneration, Jump Boost, Fire Resistance, Water Breathing, Night Vision, and Luck.

  • Players receive randomized weapon and effect assignments on first join.

  • Weapon abilities only activate when using the assigned weapon type.

  • Effect levels range from 0–10 and improve the assigned potion effect.

  • Player kills award Effect Points.

  • Added craftable:

    • Main Weapon Reroll

    • Effect Point

  • Added /effects, /effects give, and /effects reload.

  • Added persistent player data storage in players.yml.

  • Added configurable CustomModelData values for resource-pack textures:

    • Weapon Reroll: 71001

    • Effect Point: 71002

  • Added recipes, tab completion, permissions, join messages, profile display, and combat abilities.

yahoo_pp

By weapon ability I meant the ability where you can use with keybinds for example and axe. When you activate the axe ability it slams the ground giving the nearby player slowness 5 for 3 seconds except the user.

Kodari AI
KodariSep 8 at 10:36 am 1
  1. Replace passive axe-hit behavior with an activated ground-slam ability.

  2. Trigger it on main-hand right-click for players assigned to Axe, with cooldown protection.

  3. Apply Slowness V for 3 seconds to nearby players only, and add configurable radius/cooldown plus visual/audio feedback.

Updated the axe ability:

  • Right-click with an axe to activate Axe Slam.

  • Only works for players assigned to the Axe weapon affinity.

  • Applies Slowness V for 3 seconds to nearby players.

  • The activating player is excluded.

  • Added configurable radius and cooldown:

    YAML
    abilities:
      axe:
        cooldown-seconds: 15
        radius: 5.0
    
  • Added sound and particle effects.

  • Removed the previous passive axe-hit ability.

yahoo_pp

good now add the rest of the weapon's abilities also UI that shows the cooldown over the hotbar. Make the weapons ability have their "uniqueness"

Kodari AI
KodariSep 8 at 10:43 am 2
  1. Add distinct activated abilities for every supported weapon type.

  2. Add per-player cooldown tracking and a hotbar cooldown indicator.

  3. Update configuration/messages so each ability has unique behavior, timing, and feedback.

The six abilities will use distinct activation patterns without breaking normal weapon use: melee abilities activate on right-click, while bow/crossbow/spear abilities use sneak + right-click so drawing, loading, and throwing still work. Cooldowns will render in the action bar above the hotbar.

Implemented unique activated abilities for all six weapon affinities with action-bar cooldown UI.

  • Sword — Blade Tempest: damages and knocks back nearby enemies.

  • Axe — Axe Slam: applies Slowness V for 3 seconds to nearby players, excluding the user.

  • Mace — Mace Quake: damages and launches nearby enemies into the air.

  • Bow — Hunter’s Mark: marks the nearest nearby player with Glowing and Slowness.

  • Crossbow — Bolt Volley: fires multiple empowered bolts in a spread.

  • Spear — Spear Lunge: launches the user forward with a movement burst.

Activation rules:

  • Sword, axe, and mace: right-click.

  • Bow, crossbow, and spear: sneak + right-click, preserving normal weapon use.

  • The weapon must match the player’s assigned affinity.

Cooldowns now:

  • Are tracked individually per player.

  • Display above the hotbar through the action bar.

  • Show remaining time in seconds.

  • Display a ready message when available.

  • Have separate configurable cooldown values in config.yml.

Added configuration for all weapon abilities, including radius values where applicable.

yahoo_pp

Good job, Now add cool effects and better gui. Make it so that if you hover your mouse over the assigned weapon in your inventory it shows what ability you had.

Kodari AI
KodariSep 8 at 10:57 am 3
  1. Upgrade ability visuals and feedback with distinct particles, sounds, and impact effects.

  2. Add a polished profile GUI for assigned weapon/effect, progression, and cooldown information.

  3. Make the assigned weapon’s inventory item clearly display its ability in the name and lore.

The existing plugin has no inventory GUI yet, so I’m wiring the profile menu into the current /effects command and decorating matching weapons in-place rather than creating a separate assigned weapon item. This preserves normal weapon use while making the affinity visible on hover.

  1. Unique ability presentation: added distinct ability names, descriptions, activation hints, weapon icons, and visual particle rings/effects for every weapon type.

  2. Improved /effects UI: /effects now opens a 27-slot profile GUI showing:

    • Assigned weapon affinity

    • Ability description

    • Activation method

    • Assigned passive effect

    • Effect level

    • Player kills

    • Live ability cooldown status

  3. Inventory hover information: matching assigned weapons now receive lore such as:

    • Ability name

    • What the ability does

    • Whether it uses right-click or sneak + right-click

  4. Automatic inventory updates: weapon ability lore refreshes on join, inventory clicks, inventory drags, item pickup, and weapon rerolls.

  5. Live GUI cooldown display: the profile menu refreshes periodically while open, showing READY or the remaining cooldown time.

  6. GUI protection: profile menu items cannot be taken, moved, or dragged.

yahoo_pp

The "Trident" item has the correct ability but it's name is Spear lunge and the "Spear" itself does not have an ability

Kodari AI
KodariSep 8 at 11:04 am 1
  1. Separate TRIDENT from SPEAR instead of mapping both to one affinity.

  2. Give the trident its own ability name and activation while adding a distinct spear ability.

  3. Recognize both the native/future SPEAR material and custom-model-data spear items without breaking the current API target.

Fixed the weapon mapping issue:

  • Trident now has its own affinity and ability:

    • Riptide Surge

    • Launches the player forward with riptide energy.

  • Spear is now a separate weapon affinity:

    • Piercing Rush

    • Charges forward, damages the first enemy in the path, applies Slowness, and knocks them back.

  • Tridents now correctly show Riptide Surge instead of Spear Lunge.

  • Added support for:

    • Native SPEAR materials when available.

    • Custom spear items using CustomModelData 71003.

    • Custom items named Spear.

  • Added separate cooldown settings:

    YAML
    abilities:
      trident:
        cooldown-seconds: 16
      spear:
        cooldown-seconds: 14
        range: 4.5
    
  • Existing player data using the old SPEAR value is migrated as Trident so previous trident assignments do not break.

yahoo_pp

add keybinds to them. some of the weapons need right click to use such as spear bow trident crossbow. and it overlapses with the sneak + right click

Kodari AI
KodariSep 8 at 11:08 am 1
  1. Move every ability to the universal Swap-Offhand keybind (F by default).

  2. Stop intercepting right-click so bows, crossbows, tridents, and spears retain their normal actions.

  3. Update inventory lore and profile GUI activation text to show the new keybind.

  • All weapon abilities now activate with the Swap Offhand keybind (F by default).

  • Right-click is no longer intercepted, so bows, crossbows, tridents, and spears retain their normal behavior.

  • The ability activation text in the inventory lore and profile GUI now shows: F key (Swap Offhand)

  • Players can remap the Swap Offhand key in Minecraft’s controls.

Minecraft servers cannot register arbitrary new client keybinds without a client-side mod, so the built-in Swap Offhand key is used as the ability key.

yahoo_pp

cant you make it a specific unuse keybind?

Kodari AI
KodariSep 8 at 11:09 am 1

Not with a server-only plugin. Minecraft does not send arbitrary keyboard presses to the server, so an unused key cannot be detected or registered remotely.

Available options are:

  • Use an existing server-detectable action, such as Swap Offhand (F).

  • Use an interaction like right-click, sneak, drop, or swap-hand.

  • Create a client-side mod that registers a custom keybind and sends a plugin message to the server.

  • Use a modded client/modpack for all players.

A resource pack alone cannot add keybinds. For a normal plugin, F/S wap Offhand is the closest option to a dedicated ability key.

yahoo_pp

how does donutsmp use "G" keybind to open menu then?

Kodari AI
KodariSep 8 at 11:10 am 1

DonutSMP cannot detect an arbitrary G press through a normal server plugin either. The server never receives raw keyboard keys; it only receives game actions.

They most likely use one of these methods:

  • A client-side mod or custom client that registers G as a real keybind and sends a plugin message.

  • An existing vanilla action remapped to G, such as Drop Item or Swap Offhand. The server detects that action, cancels it, and opens the menu.

  • A launcher/modpack distributed by the server that provides the keybind functionality.

A resource pack alone cannot create keybinds. If DonutSMP works with an entirely unmodified vanilla client, then “G” is probably mapped to an existing action, and their plugin is detecting that action—not detecting the G key itself.

yahoo_pp

Ok how about make it so that you presses F twice like when you run or something

Kodari AI
KodariSep 8 at 11:13 am 1

Yes. A server-only plugin can treat two Swap Offhand presses (F) within a short window as the ability key.

For example:

  • Press F once → wait briefly.

  • Press F again within roughly 300–500 ms → activate the weapon ability.

  • If the second press does not happen in time, reset the sequence.

  • The plugin can cancel the hand-swap event so F does not actually move the item between hands.

This detects the Swap Offhand action, not the physical letter F, so it will work even if the player has remapped that key. It may also interfere with players who want to use normal offhand swapping, so a configurable double-tap interval would be useful.

yahoo_pp

What do you think we should add next>

Kodari AI
KodariSep 8 at 11:13 am 1

I’d add these next, in this order:

  1. Better ability activation feedback
    Show a clear message, sound, particles, and cooldown bar when the double-F input succeeds or fails.

  2. Configurable double-tap settings
    Let players choose the detection window, enable/disable the ability key, and decide whether normal offhand swapping is blocked.

  3. Ability balancing and counterplay
    Add duration, radius, damage, and cooldown controls so no weapon becomes overwhelmingly strong.

  4. Weapon progression
    Add ability levels, upgrades, or quests that improve each weapon’s unique ability.

  5. Statistics and rewards
    Track ability uses, hits, kills, and successful combos, then display them in the profile GUI.

  6. More weapon-specific passives
    For example, tridents could gain water bonuses, bows could gain marksman bonuses, and maces could gain bonus impact damage.

The most important next step is probably polishing and testing the double-F key system, because reliable activation and clear feedback will affect how every ability feels.

yahoo_pp

and better effects to abilities

Kodari AI
KodariSep 8 at 11:14 am 1

Definitely. The abilities should feel powerful through visual identity, sound, impact, and feedback, not just extra damage.

Suggested ability effects

  • Spear — Piercing Rush

    • Dust trail while charging

    • Sweeping particle line along the spear’s path

    • Impact burst when hitting an enemy

    • Knockback and brief slow

    • Sharp metallic hit sound

  • Trident — Riptide Surge

    • Water spiral around the player

    • Lightning-like energy trail during movement

    • Splash burst on landing

    • Bubble particles while airborne

    • Thunder or trident sound on impact

  • Bow — Hunter’s Mark

    • Glowing particles around the target

    • Colored trail behind the arrow

    • Target outline or beacon effect

    • Extra damage against the marked target

    • Distinct bow-release sound

  • Crossbow — Piercing Bolt

    • Charged glow around the player before firing

    • Smoke and flame trail on the projectile

    • Small explosion or shockwave on impact

    • Enemies behind the first target receive reduced damage

    • Heavy loading sound

  • Sword — Blade Tempest

    • Circular sweep around the player

    • Critical-hit particles

    • Short dash toward nearby enemies

    • Screen-friendly sound and attack animation

    • Brief resistance during activation

  • Mace — Earthbreaker

    • Cracked-earth particles beneath the player

    • Ground shockwave on landing

    • Falling debris effect

    • Strong knockback

    • Deep impact sound

Effects every ability should have

  1. Activation effect — clearly shows the ability was triggered.

  2. Travel effect — follows the player or projectile.

  3. Impact effect — appears where the ability hits.

  4. Cooldown feedback — sound, action-bar message, and GUI status.

  5. Failure feedback — a short sound/message when the ability is still on cooldown.

  6. Team-safe colors — avoid effects that make enemies or allies difficult to identify.

The best next improvement would be giving every weapon a unique activation, movement, and impact effect, especially the spear, trident, bow, and crossbow since their abilities involve movement or projectiles.

yahoo_pp

add everything

Kodari AI
KodariSep 8 at 11:18 am 2
  1. Audit the current ability implementations and effect utilities.

  2. Add distinct activation, travel, impact, sound, and cooldown feedback for each weapon.

  3. Update configuration only where needed, then verify all referenced APIs and settings.

Added enhanced effects for all weapon abilities in AbilityListener:

  • Sword: sweep particles, critical-hit bursts, radial impact effects.

  • Axe: soul flames, smoke, explosion, and slowed-target effects.

  • Mace: cloud shockwave, explosion, anvil sound, and launch impact.

  • Bow: targeting trail, glowing mark, end-rod ring, and impact effects.

  • Crossbow: electric bolt trails, firing burst, projectile impact explosion, and hit particles.

  • Trident: bubble/water trail, riptide sound, dolphins-grace effect, and splash burst.

  • Spear: electric rush trail, critical impact burst, damage indicators, and target effects.

Also improved the ability system:

  • Cooldowns are no longer consumed when an ability fails due to no valid target.

  • Cooldown-ready feedback now includes a sound.

  • Abilities now provide clearer activation and failure feedback.

  • Crossbow ability projectiles have dedicated trails and impact effects.

  • Effects are implemented with XSeries particles and sounds for compatibility.

yahoo_pp

spear ability doesnt work. also improve the effects by A TON

Kodari AI
KodariSep 8 at 11:38 am 1
  1. Fix the spear ability so its activation and hit detection work reliably.

  2. Upgrade all weapon effects substantially with stronger activation, travel, impact, and cooldown feedback.

  • Fixed the spear affinity migration: saved SPEAR values now correctly load as PIKE instead of TRIDENT.

  • Improved spear detection for custom-model items, including names containing “Spear.”

  • Reworked spear targeting to scan the entire forward rush path instead of only checking nearby entities at the starting location.

  • Added spear charge trails, critical trails, electric spirals, impact rings, damage indicators, knockback, and hit effects.

  • Added significantly stronger effects to every ability:

    • Sword: expanding sweep pulses and radial crit lines.

    • Axe: soul-flame shockwaves, smoke rings, and delayed pulses.

    • Mace: layered cloud shockwaves, radial impact lines, and delayed quake pulses.

    • Bow: rotating glowing target marker and persistent target pulses.

    • Crossbow: electric bolt trails and charged spiral effects.

    • Trident: water spirals, bubble trails, and riptide movement effects.

    • Spear: full rush trail, target impact burst, and piercing energy effects.

yahoo_pp

Enhance overall the plugin by 100. Make it like a pro. Im excited.

Kodari AI
KodariSep 8 at 11:55 am 4
  1. Audit the current plugin architecture, abilities, persistence, and configuration.

  2. Identify the highest-impact reliability and polish improvements that fit the existing design.

  3. Implement the improvements without changing the plugin’s core gameplay direction.

  4. Verify cross-file references and leave the project in a buildable state.

The first polish pass is in. I’m adding the player-facing mechanics that make it feel intentional rather than experimental: true double-tap F activation, configurable spear detection, and projectile attribution that remains correct if the player switches weapons after firing.

  1. Professional activation flow

    • Added configurable double-tap F activation.

    • Default window: 450ms.

    • First press gives action-bar and sound feedback.

    • Double-tap only works if the same assigned weapon is still held.

    • Cooldowns prevent accidental activation and preserve normal feedback.

  2. Fixed spear reliability

    • Spear model data now uses items.spear-model-data from config.

    • Removed overly broad name matching that could misidentify unrelated items.

    • Exact display name Spear and configured custom model data are supported.

    • Existing spear rush trail, targeting, impact, knockback, sounds, and particles remain active.

  3. Improved projectile attribution

    • Bow, crossbow, and trident projectiles now remember the weapon used when fired.

    • Switching weapons before impact no longer applies the wrong weapon affinity.

    • Projectile tracking is automatically cleaned up after a timeout or hit.

  4. Fixed multiplayer profile GUI

    • Each player now receives an independent GUI holder and inventory.

    • Multiple players can open /effects simultaneously without overwriting each other.

    • GUI state is cleaned up when the inventory closes or the player leaves.

  5. Improved progression

    • Kill rewards now correctly use settings.points-per-kill.

    • Kill count and effect-point reward are saved together instead of causing two separate saves.

    • Added recordKill() for consistent progression handling.

  6. Hardened commands and configuration

    • /effects give now rejects invalid item types instead of silently giving an effect point.

    • Full inventories safely drop leftover admin items at the target’s location.

    • Admin-only tab completion is hidden from regular players.

    • Configured message prefixes now work throughout commands and ability messages.

    • Reload refreshes the profile display.

    • Missing /effects registration now disables the plugin cleanly with a clear console error.

yahoo_pp

Everything works perfectly except the spear. I cannot activate the spear's ability

Kodari AI
KodariSep 8 at 12:03 pm 1
  1. Trace spear identification from the held item through double-F activation.

  2. Fix the mismatch causing the spear ability to be rejected, without changing other weapon behavior.

  3. Verify the relevant item model/name/config paths are consistent.

Fixed spear detection so it works with more custom spear items:

  • Detects the configured custom model data.

  • Detects display names containing Spear, including colored names.

  • Detects lore containing Spear.

  • Checks spear identity before other material-based weapon checks.

The spear should now activate with the double-F input as long as the player’s assigned affinity is Spear.

yahoo_pp

even though the spear isnt working. lets move on to the custom textures first, shall we?

Kodari AI
KodariSep 8 at 12:17 pm 1

Yes—let’s move on to custom textures first and leave the spear logic untouched for now.

The cleanest approach is a vanilla resource pack using CustomModelData:

  • Give each weapon its own custom model.

  • Add unique textures for sword, axe, mace, bow, crossbow, trident, and spear.

  • Use separate models for variants, upgrades, or ability levels.

  • Keep the existing item materials and model-data values so gameplay remains unchanged.

  • Add optional animated textures for high-tier weapons.

  • Match each weapon’s effects to its visual style—for example, electric spear textures, volcanic mace textures, or frost bow textures.

Before deciding the texture structure, we should choose whether you want:

  1. A realistic medieval style

  2. A fantasy RPG style

  3. A dark/magical style

  4. A clean vanilla-enhanced style

  5. A different theme for every weapon

I’d recommend a high-quality fantasy RPG style with a consistent color identity for each weapon.

yahoo_pp

A clean vanilla-enhanced style

Kodari AI
KodariSep 8 at 12:18 pm 1

A clean vanilla-enhanced style is a great choice. It will feel like Minecraft while making each weapon look more polished and special.

Visual direction

  • Keep the original Minecraft pixel-art style.

  • Use slightly sharper silhouettes and richer shading.

  • Avoid excessive glow, neon colors, or overly detailed fantasy elements.

  • Use familiar vanilla materials with subtle enhancements.

  • Make each weapon recognizable at a glance.

Weapon identity

  • Sword: Refined iron or diamond blade with a stronger edge highlight.

  • Axe: Heavier wooden-and-metal design with improved head shaping.

  • Mace: Stone, iron, or reinforced metal design with a slightly larger silhouette.

  • Bow: Enhanced wooden frame with clearer string and grip details.

  • Crossbow: More detailed vanilla-style limbs, stock, and loading mechanism.

  • Trident: Classic ocean-themed design with slightly brighter prismarine or gold accents.

  • Spear: A simple elongated shaft with an iron, diamond, or netherite spearhead.

Color treatment

Each weapon can have a restrained accent color:

  • Sword — blue or diamond cyan

  • Axe — earthy brown and iron gray

  • Mace — stone gray with muted gold

  • Bow — warm brown

  • Crossbow — dark oak and copper

  • Trident — prismarine teal

  • Spear — iron gray with a subtle blue accent

The final result should look like official Minecraft equipment from a more polished update, rather than a separate fantasy texture pack.

yahoo_pp

Get ahead to work buddy, good luck.

Kodari AI
KodariSep 8 at 12:23 pm 1

Implemented the clean vanilla-enhanced resource-pack foundation.

  • Added configurable CustomModelData for all weapon affinities.

  • Assigned model IDs:

    • Sword: 72001

    • Axe: 72002

    • Mace: 72003

    • Bow: 72004

    • Crossbow: 72005

    • Trident: 72006

    • Spear: 71003

  • Added vanilla-style weapon model definitions for every weapon.

  • Added resource-pack metadata for Minecraft 1.21.4.

  • Weapon decorations now apply their model data automatically.

  • Original item model data is preserved and restored when the affinity changes.

  • Existing custom item textures remain compatible with the assigned weapon system.

The resource pack is located at:

Plain Text
resource-pack/

Zip the contents of that folder—not the folder itself—and load the resulting archive in Minecraft. Custom texture artwork can now be dropped into the corresponding assets/kodari/textures/item/ paths while preserving the model system.

Kodari can make mistakes. Review important code before using.
Files
resource-pack
src
build.gradle
settings.gradle
Code
41 1,993
src/main/java/com/kodari/effects/EffectsPlugin.java
package com.kodari.effects;

import com.kodari.effects.command.EffectsCommand;
import com.kodari.effects.data.PlayerDataManager;
import com.kodari.effects.item.EffectsRecipeManager;
import com.kodari.effects.item.ItemFactory;
import com.kodari.effects.listener.AbilityListener;
import com.kodari.effects.listener.PlayerListener;
import com.kodari.effects.gui.EffectsGuiListener;
import com.kodari.effects.gui.EffectsProfileGUI;
import com.kodari.effects.service.EffectService;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class EffectsPlugin extends JavaPlugin {
    private PlayerDataManager playerDataManager;
    private ItemFactory itemFactory;
    private EffectService effectService;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        playerDataManager = new PlayerDataManager(this);
        playerDataManager.load();
        itemFactory = new ItemFactory(this);
        effectService = new EffectService(playerDataManager);

        Bukkit.getPluginManager().registerEvents(
                new PlayerListener(playerDataManager, itemFactory, effectService), this);
        AbilityListener abilityListener = new AbilityListener(playerDataManager);
        Bukkit.getPluginManager().registerEvents(abilityListener, this);
        Bukkit.getPluginManager().registerEvents(new EffectsGuiListener(), this);

        new EffectsRecipeManager(this, itemFactory).register();

        EffectsProfileGUI profileGUI = new EffectsProfileGUI(playerDataManager, itemFactory, abilityListener);
        EffectsCommand command = new EffectsCommand(this, playerDataManager, itemFactory, profileGUI);
        if (getCommand("effects") == null) {
            getLogger().severe("The effects command is missing from plugin.yml.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        getCommand("effects").setExecutor(command);
        getCommand("effects").setTabCompleter(command);

        Bukkit.getScheduler().runTaskTimer(this, effectService::refreshOnlinePlayers, 20L, 20L);
        Bukkit.getScheduler().runTaskTimer(this, abilityListener::updateCooldowns, 10L, 10L);
        Bukkit.getScheduler().runTaskTimer(this, profileGUI::refresh, 10L, 10L);
    }

    @Override
    public void onDisable() {
        if (playerDataManager != null) {
            playerDataManager.saveAll();
        }
    }
}