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.
Core plugin bootstrap, persistence, assignments, and configuration.
Weapon abilities, effect progression, reroll/effect-point items, and recipes.
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:
71001Effect Point:
71002
Added recipes, tab completion, permissions, join messages, profile display, and combat abilities.
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.
Replace passive axe-hit behavior with an activated ground-slam ability.
Trigger it on main-hand right-click for players assigned to Axe, with cooldown protection.
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:
YAMLabilities: axe: cooldown-seconds: 15 radius: 5.0Added sound and particle effects.
Removed the previous passive axe-hit ability.
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"
Add distinct activated abilities for every supported weapon type.
Add per-player cooldown tracking and a hotbar cooldown indicator.
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.
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.
Upgrade ability visuals and feedback with distinct particles, sounds, and impact effects.
Add a polished profile GUI for assigned weapon/effect, progression, and cooldown information.
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.
Unique ability presentation: added distinct ability names, descriptions, activation hints, weapon icons, and visual particle rings/effects for every weapon type.
Improved
/effectsUI:/effectsnow 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
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
Automatic inventory updates: weapon ability lore refreshes on join, inventory clicks, inventory drags, item pickup, and weapon rerolls.
Live GUI cooldown display: the profile menu refreshes periodically while open, showing
READYor the remaining cooldown time.GUI protection: profile menu items cannot be taken, moved, or dragged.
The "Trident" item has the correct ability but it's name is Spear lunge and the "Spear" itself does not have an ability
Separate
TRIDENTfromSPEARinstead of mapping both to one affinity.Give the trident its own ability name and activation while adding a distinct spear ability.
Recognize both the native/future
SPEARmaterial 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
SPEARmaterials when available.Custom spear items using CustomModelData
71003.Custom items named
Spear.
Added separate cooldown settings:
YAMLabilities: trident: cooldown-seconds: 16 spear: cooldown-seconds: 14 range: 4.5Existing player data using the old
SPEARvalue is migrated as Trident so previous trident assignments do not break.
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
Move every ability to the universal Swap-Offhand keybind (
Fby default).Stop intercepting right-click so bows, crossbows, tridents, and spears retain their normal actions.
Update inventory lore and profile GUI activation text to show the new keybind.
All weapon abilities now activate with the Swap Offhand keybind (
Fby 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.
cant you make it a specific unuse keybind?
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.
how does donutsmp use "G" keybind to open menu then?
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.
Ok how about make it so that you presses F twice like when you run or something
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.
What do you think we should add next>
I’d add these next, in this order:
Better ability activation feedback
Show a clear message, sound, particles, and cooldown bar when the double-F input succeeds or fails.Configurable double-tap settings
Let players choose the detection window, enable/disable the ability key, and decide whether normal offhand swapping is blocked.Ability balancing and counterplay
Add duration, radius, damage, and cooldown controls so no weapon becomes overwhelmingly strong.Weapon progression
Add ability levels, upgrades, or quests that improve each weapon’s unique ability.Statistics and rewards
Track ability uses, hits, kills, and successful combos, then display them in the profile GUI.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.
and better effects to abilities
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
Activation effect — clearly shows the ability was triggered.
Travel effect — follows the player or projectile.
Impact effect — appears where the ability hits.
Cooldown feedback — sound, action-bar message, and GUI status.
Failure feedback — a short sound/message when the ability is still on cooldown.
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.
add everything
Audit the current ability implementations and effect utilities.
Add distinct activation, travel, impact, sound, and cooldown feedback for each weapon.
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.
spear ability doesnt work. also improve the effects by A TON
Fix the spear ability so its activation and hit detection work reliably.
Upgrade all weapon effects substantially with stronger activation, travel, impact, and cooldown feedback.
Fixed the spear affinity migration: saved
SPEARvalues now correctly load asPIKEinstead ofTRIDENT.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.
Enhance overall the plugin by 100. Make it like a pro. Im excited.
Audit the current plugin architecture, abilities, persistence, and configuration.
Identify the highest-impact reliability and polish improvements that fit the existing design.
Implement the improvements without changing the plugin’s core gameplay direction.
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.
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.
Fixed spear reliability
Spear model data now uses
items.spear-model-datafrom config.Removed overly broad name matching that could misidentify unrelated items.
Exact display name
Spearand configured custom model data are supported.Existing spear rush trail, targeting, impact, knockback, sounds, and particles remain active.
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.
Fixed multiplayer profile GUI
Each player now receives an independent GUI holder and inventory.
Multiple players can open
/effectssimultaneously without overwriting each other.GUI state is cleaned up when the inventory closes or the player leaves.
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.
Hardened commands and configuration
/effects givenow 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
/effectsregistration now disables the plugin cleanly with a clear console error.
Everything works perfectly except the spear. I cannot activate the spear's ability
Trace spear identification from the held item through double-F activation.
Fix the mismatch causing the spear ability to be rejected, without changing other weapon behavior.
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.
even though the spear isnt working. lets move on to the custom textures first, shall we?
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:
A realistic medieval style
A fantasy RPG style
A dark/magical style
A clean vanilla-enhanced style
A different theme for every weapon
I’d recommend a high-quality fantasy RPG style with a consistent color identity for each weapon.
A clean vanilla-enhanced style
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.
Get ahead to work buddy, good luck.
Implemented the clean vanilla-enhanced resource-pack foundation.
Added configurable CustomModelData for all weapon affinities.
Assigned model IDs:
Sword:
72001Axe:
72002Mace:
72003Bow:
72004Crossbow:
72005Trident:
72006Spear:
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:
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.
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();
}
}
}