Mark Bandolon

Create me a Fabric Mod for Minecraft 26.3, it's a mod that plays a custom sound when I score a kill on mobs or players. Only play custom sound when scoring a kill on mobs and players and can be customizable in a folder. This custom sound can be customizable in game.

Kodari AI
KodariOct 21 at 11:53 am 3
KillSoundCustomizer
A Fabric mod for Minecraft 26.3 that plays a custom sound effect whenever the player scores a kill on mobs or players. The sound is fully customizable through an in-game configuration menu, allowing players to select from audio files placed in a dedicated mod folder. Features include per-kill-type sound selection, volume control, and toggle options for mob and player kills independently. The mod integrates seamlessly with the game's audio system, providing immediate auditory feedback for every successful kill.
  1. Register a kill listener and a custom sound event, with a working default sound.

  2. Add a persistent config file and /killsound commands to change the sound, volume, pitch, and reload settings in game.

Created Kodari Kill Sound. It plays only for the player credited with killing a mob or another player, including kills attributed through a projectile.

  • Use /killsound to view settings. Moderators can set them in game with /killsound sound <id>, /killsound volume <0–4>, /killsound pitch <0.01–2>, and /killsound reload.

  • Settings are saved to config/kodarikills.properties.

  • The registered custom event is kodarikills:kill. It uses Minecraft’s level-up sound by default; to use your own audio, add an OGG at assets/kodarikills/sounds/kill.ogg and update the kill mapping in assets/kodarikills/sounds.json to point to it.

Mark Bandolon

The compilation failed with this error:

code
[FABRIC] Compiling 3 Java files for MC 26.3 (release 25)
[ERROR] Compilation failed

/workspace/src/main/java/com/kodari/kodarikills/KillSoundCommands.java:59: error: ')' or ',' expected
				}));
				   ^
1 error

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariOct 21 at 11:55 am 1

Fixed KillSoundCommands.java: the root command registration was missing a closing parenthesis.

To create the corrected jar, click Compile in the top bar, then Compile in the window that opens. Download the jar when the build succeeds.

Mark Bandolon

How do I use the mod?

Kodari AI
KodariOct 21 at 12:35 pm 1

Install the mod alongside Fabric API, then launch Minecraft with the mod enabled. When you kill a mob or another player, the sound plays for you.

In chat, use /killsound to view the current settings. If you have moderator permissions, you can change them with:

  • /killsound sound <sound-id> — choose a sound event

  • /killsound volume <0–4> — adjust volume

  • /killsound pitch <0.01–2> — adjust pitch

  • /killsound reload — reload saved settings

Settings are stored in config/kodarikills.properties. The default sound is Minecraft’s level-up sound. To use your own OGG audio, add it through a resource pack under the kodarikills sound namespace and select its sound ID with the sound command.

Mark Bandolon

How do I customize the sound? The folder isn't available on the Minecraft Files nor the JSON file itself.

Kodari AI
KodariOct 21 at 12:37 pm 1

The sound files aren’t created as a visible folder in Minecraft. They’re normally packaged inside the mod’s JAR, so my earlier instructions made it sound like you’d find them in “Minecraft Files”—sorry.

To use your own sound, add it through a Java resource pack in the .minecraft/resourcepacks folder for the same game instance as Fabric. Create the resource-pack folders assets/kodarikills/sounds/, put your audio there as kill.ogg, and create assets/kodarikills/sounds.json to map the mod’s kodarikills:kill sound event to that file. The pack also needs a pack.mcmeta file. Then enable the pack in Minecraft’s Options → Resource Packs and press F3+T to reload resources.

The /killsound sound command selects a sound event; it doesn’t create or edit audio files. If you’re using a launcher with separate instances, put the pack in that instance’s resourcepacks folder—not necessarily the default Minecraft folder.

Mark Bandolon

What do you put in the sounds.json?

Kodari AI
KodariOct 21 at 12:41 pm 1

In assets/kodarikills/sounds.json, define the event named kill and give it one sound entry: kodarikills:kill. That entry points to assets/kodarikills/sounds/kill.ogg in your resource pack. You don’t include the .ogg extension in the sound entry.

Mark Bandolon

Tell me what to put in the json file.

Kodari AI
KodariOct 21 at 12:44 pm 1

Put this in assets/kodarikills/sounds.json in your resource pack:

JSON
{
  "kill": {
    "sounds": [
      "kodarikills:kill"
    ]
  }
}

Put your audio file at assets/kodarikills/sounds/kill.ogg.

Mark Bandolon

It works thanks! Ready for new update?

Kodari AI
KodariOct 21 at 12:48 pm 1

Yes—what would you like to change or add?

Mark Bandolon

Let's make it play in a row, up to 5 times. Basically, when killing a mob, it plays the first audio, next mob kill will play the 2nd audio and so on. Up to the max of 5th audio for which the next mob kill will play the 5th audio. If I stop killing mobs for 5 seconds, it returns the audio sound to the first audio.

Kodari AI
KodariOct 21 at 12:51 pm 1

The kill sounds would play in this order: sound 1 → sound 2 → sound 3 → sound 4 → sound 5. After reaching sound 5, further kills keep playing sound 5. If five seconds pass without a kill, the next kill starts again at sound 1.

I’d apply that sequence to both mob and player kills, matching the mod’s current behavior.

Mark Bandolon

Let's do that.

Kodari AI
KodariOct 21 at 1:02 pm 2

Implemented the per-player kill sequence: kill 1 → kill 2 → kill 3 → kill 4 → kill 5, then it stays on sound 5. After five seconds without a kill, the next kill starts again at sound 1. It applies to mob and player kills.

By default, sound 1 uses the mod’s customizable kodarikills:kill event; sounds 2–5 use distinct vanilla sounds. /killsound sound <id> still works and makes every kill use the selected sound.

Mark Bandolon

Can each kill sound like kill 1 and kill 2 be customizable? Like the kill 1 sound is the default while the kill 2 is different? Not just pitch but different sound.ogg?

Kodari AI
KodariOct 21 at 1:11 pm 1

Yes. Each step can use a different sound file: kill 1 could play kill1.ogg, kill 2 kill2.ogg, and so on through kill 5. The current mod only has one customizable sound; its other sequence sounds are vanilla sounds. Supporting separate OGGs would require an update to add five sound events and settings for choosing each one.

Mark Bandolon

What's the json file for it?

Kodari AI
KodariOct 21 at 1:16 pm 1

For five separate sounds, use assets/kodarikills/sounds.json with entries named kill1, kill2, kill3, kill4, and kill5. Each entry should point to its matching audio file: assets/kodarikills/sounds/kill1.ogg through kill5.ogg.

The mod also needs an update to register and play those five sound events; adding the JSON and OGG files alone won’t change the current kill sequence.

Mark Bandolon

Okay, let's update the mod so that it register the new 5 sounds and play them in game, along with the new JSON file.

Kodari AI
KodariOct 21 at 1:23 pm 1
  1. Check the existing kill sequence and sound registration.

  2. Register five separate sound events and map them in sounds.json.

  3. Update the sequence to play the matching event per kill, then report the OGG paths to customize.

Registered five separate kill sound events and updated the sequence to play kill1 through kill5. The existing five-second reset remains.

Add your OGG files here in the mod project, or at the matching paths in a resource pack:

Plain Text
assets/kodarikills/sounds/kill1.ogg
assets/kodarikills/sounds/kill2.ogg
assets/kodarikills/sounds/kill3.ogg
assets/kodarikills/sounds/kill4.ogg
assets/kodarikills/sounds/kill5.ogg

The updated sounds.json maps each event to its matching file. The mod doesn’t include OGG audio files, so provide them before the five sequence sounds can play. After enabling the resource pack, press F3+T to reload sounds.

Mark Bandolon

Is it possible to add a kill banner that displays on the top of our hotbar?

Kodari AI
KodariOct 21 at 1:39 pm 1

Yes. A client-side HUD banner can appear just above the hotbar whenever you score a kill, showing something like KILL 1, KILL 2, through KILL 5. It can fade out after a few seconds and reset with the kill streak, matching the sound sequence. The kill event would need to notify your client so the banner appears for the player who got the kill.

Mark Bandolon

What would be the HUD kill banner format be using? GIF? Green Screen MP4? MP4 With Black Background? OR just straight up PNG with transparent background?

Kodari AI
KodariOct 21 at 1:48 pm 1

A PNG with a transparent background is the best fit for a HUD kill banner. It stays crisp, blends over the game naturally, and works well as a static banner.

GIFs and MP4s aren’t suitable as direct Minecraft HUD textures. If you want animation, use a sequence of PNG frames or a sprite sheet instead.

Mark Bandolon

Alright, let's update our mod to add a HUD Kill Banner using PNG with transparent background. Let's make it sync to kill1, kill2, through kill5 on which it resets back to kill 1 after few seconds inactive. Also, can you increase the timer from 5 seconds of inactive killing mobs to 8 seconds?

Kodari AI
KodariOct 21 at 2:08 pm 5
  1. Trace the existing kill sequence and client HUD hooks.

  2. Add a transparent PNG banner that follows kill1–kill5, then resets after 8 seconds without a kill.

Added the transparent PNG kill banner above the hotbar. It displays KILL 1–5 to the player who scored the mob or player kill, in sync with the sound sequence. The banner disappears after 8 seconds without a kill, and the next kill starts the sequence at 1.

The banner image is at src/main/resources/assets/kodarikills/textures/gui/kill_banner.png. The streak reset timer is now 8 seconds.

Mark Bandolon

Does the kill banner HUD PNG different for each kill?

Kodari AI
KodariOct 21 at 2:12 pm 1

No. The HUD uses one transparent PNG for all five kills; the KILL 1–5 indicator changes with the streak. To give each kill its own artwork, the mod would need five separate banner PNGs.

Mark Bandolon

Let's do that since I've prepared 5 separate banner PNGs already.

Kodari AI
KodariOct 21 at 2:20 pm 1
  1. Locate the five prepared PNGs and inspect the existing HUD banner code.

  2. Wire each streak level to its matching image, keeping the 8-second reset.

Updated the HUD to choose a different PNG for each kill in the streak. It still shows the KILL 1–5 label and uses the existing 8-second reset.

I couldn’t find the five prepared images in the project yet—only the original kill_banner.png is present. Add them here using these filenames:

Plain Text
src/main/resources/assets/kodarikills/textures/gui/kill_banner_1.png
src/main/resources/assets/kodarikills/textures/gui/kill_banner_2.png
src/main/resources/assets/kodarikills/textures/gui/kill_banner_3.png
src/main/resources/assets/kodarikills/textures/gui/kill_banner_4.png
src/main/resources/assets/kodarikills/textures/gui/kill_banner_5.png

Once added, compile the project to build the updated jar.

Mark Bandolon
Kodari AI
KodariOct 21 at 3:09 pm 1
  1. Check the HUD texture paths and whether the five uploaded PNGs are present in the project.

  2. Wire the five images to the matching kill-streak levels.

The HUD is already wired to use a separate image for each streak level, but the five images arrived as chat previews—not as files in the project. I can see only the original kill_banner.png in the project right now.

Add the five PNGs to this folder with these names:

Plain Text
src/main/resources/assets/kodarikills/textures/gui/kill_banner_1.png
src/main/resources/assets/kodarikills/textures/gui/kill_banner_2.png
src/main/resources/assets/kodarikills/textures/gui/kill_banner_3.png
src/main/resources/assets/kodarikills/textures/gui/kill_banner_4.png
src/main/resources/assets/kodarikills/textures/gui/kill_banner_5.png

Then the existing HUD code will display the matching image for each kill.

Mark Bandolon

Why is the kill banner HUD stretched and why is there a number on it? Also there's no fade out animation.

Kodari AI
KodariOct 21 at 3:19 pm 1

The banner is stretched because the HUD is drawing the image at a fixed width and height instead of preserving its aspect ratio. The KILL 1–5 number is separate text drawn by the HUD code; it isn’t part of your PNGs.

There’s no fade-out because the current behavior only hides the banner when the 8-second timer expires—it doesn’t gradually lower its opacity first.

Mark Bandolon

Is it possible to fix the stretched HUD Kill Banner?

Kodari AI
KodariOct 21 at 3:22 pm 1

Yes. The HUD can draw the banner using its original aspect ratio instead of forcing it into a fixed width and height. That will prevent stretching while keeping it positioned above the hotbar.

Mark Bandolon

Is it possible to add an animation for the HUD Kill Banner like when it pops up?

Kodari AI
KodariOct 21 at 3:23 pm 1

Yes. It can pop in with a brief scale-up or slide-in animation, then settle above the hotbar. It can also fade out before the 8-second timer expires.

Mark Bandolon

Can I use 400x400 pixels for the HUD Kill Banner?

Kodari AI
KodariOct 21 at 3:25 pm 1

Yes. A 400×400 transparent PNG can be used for the HUD banner. Its file resolution doesn’t determine how large it appears in-game—the HUD’s draw size does. Since it’s square, it will keep a 1:1 aspect ratio when drawn without stretching.

Mark Bandolon

Alright, let's update our mod so it looks final. First is the HUD Kill Banner, I'm using 400x400 pixel for the PNG, can you fix it so it's not stretched? Keep it like a 1:1 aspect ratio. Second is add a pop up animation when the HUD Kill Banner shows up and make it last 3 seconds before fading away with fade animation. Keep the 8 seconds timer for the sound, after 8 seconds the kill sound will return to kill 1. Lastly, remove the Kill 1 Text on the HUD Kill Banner so only the PNG HUD Kill Banner will shows up.

Kodari AI
KodariOct 21 at 3:39 pm 2
  1. Fix the banner draw size to a centered 1:1 square and remove the text overlay.

  2. Add a brief pop-in, show it for 3 seconds, then fade it out; keep the kill-streak sound reset at 8 seconds.

Updated the HUD banner to render as a centered 64×64 square, with a pop-in animation and no kill-number text. It stays visible for 3 seconds, then fades out over 0.5 seconds. The server’s 8-second sound streak reset is unchanged.

The client expects the five 400×400 PNGs at assets/kodarikills/textures/gui/kill_banner_1.png through kill_banner_5.png.

Mark Bandolon
Kodari AI
KodariOct 21 at 3:40 pm 1

I can see all five images, but they haven’t been added to the project’s files. The HUD code is already set to use one PNG per kill; the project currently contains only the original kill_banner.png.

Add the images to src/main/resources/assets/kodarikills/textures/gui/ as kill_banner_1.png through kill_banner_5.png, in the order shown. Then each will appear for its matching kill streak.

Mark Bandolon

Our last but not the least update would be adding another kill sound, so the total kill sound banner is kill1, kill2, kill3, kill4, kill5, and kill6. Last kill will be using the same mechanism like kill sound, HUD kill banner, pop up animation, fade away animation, 3 seconds duration and 8 seconds reset.

Kodari AI
KodariOct 21 at 11:57 pm 2
  1. Extend the kill streak and HUD selection from five levels to six while preserving the 8-second reset and 3-second animated banner.

  2. Add the kill6 sound event and its sounds.json mapping.

Added kill6 to the sound sequence and HUD banner selection. The existing behavior remains: the banner pops up, displays for 3 seconds, fades out, and the sound sequence resets to kill1 after 8 seconds without a kill.

Add the new assets at these paths for kill6 to have its own audio and banner:

Plain Text
src/main/resources/assets/kodarikills/sounds/kill6.ogg
src/main/resources/assets/kodarikills/textures/gui/kill_banner_6.png

Those files aren’t currently in the project, so kill6 will need them to play and display its custom art.

Mark Bandolon
Kodari AI
KodariOct 21 at 11:58 pm 3

Created a transparent 64×64 recreation of your uploaded design at assets/kodarikills/textures/gui/kill_banner_6.png. The HUD can use it for kill6; it’s a recreation, not the original 400×400 file.

Mark Bandolon

How do I rename the mod?

Kodari AI
KodariOct 21 at 11:59 pm 1

To change the name players see in the Mods menu, open src/main/resources/fabric.mod.json and edit its name value. This won’t change the mod’s internal ID.

If you mean the internal mod ID or the downloaded JAR filename, those require changing additional project settings and references. After renaming, click Compile to build the updated mod.

Mark Bandolon

How do I put a custom icon for the mod?

Kodari AI
KodariOct 22 at 12:05 am 1

Add a square PNG icon to src/main/resources/assets/kodarikills/—for example, icon.png. In fabric.mod.json, add an icon entry pointing to assets/kodarikills/icon.png. Then compile the project and download the updated JAR.

Mark Bandolon

Can you put the icon entry in the json file pointing "assets/kodarikills/icon.png"?

Kodari AI
KodariOct 22 at 12:06 am 1

Yes. The fabric.mod.json icon setting should point to assets/kodarikills/icon.png. Since you asked for chat only, I won’t edit the file.

Mark Bandolon

Can you put the icon entry in the json file pointing "assets/kodarikills/icon.png"?

Kodari AI
KodariOct 22 at 12:07 am 1

Added "icon": "assets/kodarikills/icon.png" to fabric.mod.json. Place icon.png at that path, then compile the project to include it in the mod.

Mark Bandolon

Can you change all related "kodarikills" or "kodari" name inside the mod and replace it with the name "overkill"? Hopefully, it'll work the same, just changing the name.

Kodari AI
KodariOct 22 at 12:14 am 1
  1. Find every mod ID, package, asset-path, and display-name reference using kodari/kodarikills.

  2. Rename the project consistently to overkill, preserving registrations, assets, and behavior.

  3. Update related metadata and resource paths, then verify the old identifiers are gone.

  1. Find every old mod ID, package, asset namespace, and project-name reference.

  2. Rename the Java package, mod ID, resources, and build metadata to overkill.

  3. Update entrypoints and references so the mod keeps its current behavior.

Rename the mod ID and package to overkill, including the resources and entrypoint class names.

Renamed the mod to Overkill: updated its mod ID and display name, Java package and initializer, build metadata, resource namespace, sound IDs, and config filename. The existing kill sequence behavior is unchanged, and the description now reflects six kill levels. No kodari/kodarikills references remain.

Existing settings in config/kodarikills.properties won’t be loaded under the new name; rename it to config/overkill.properties to keep them. The icon path now points to assets/overkill/icon.png, but that PNG isn’t currently in the project.

Mark Bandolon

Here's the overkill.properties.

📎 1 file 132 chars
📄
overkill.properties
properties 6 lines
▶
#Kill sound settings. Edit in game with /killsound.
#Thu Oct 22 08:06:39 CST 2026
pitch=1.0
sound=kodarikills\:kill
volume=2.0
Kodari AI
KodariOct 22 at 4:07 am 1

The sound setting still uses the old mod ID. Update it to overkill:kill so the mod recognizes it and keeps the kill1–kill6 sequence. Your corrected config/overkill.properties is:

Properties
#Kill sound settings. Edit in game with /killsound.
pitch=1.0
sound=overkill\:kill
volume=2.0
Mark Bandolon

How to put credits in the file that will shows up on Mod Menu like "By Mark Stein".

Kodari AI
KodariOct 22 at 4:10 am 1

In fabric.mod.json, add or update the authors field with Mark Stein. Mod Menu reads that metadata and shows the author with the mod’s details. If you want the displayed text to say exactly “By Mark Stein,” use that wording as the author name.

Mark Bandolon

There's no author, how do I add it?

Kodari AI
KodariOct 22 at 4:11 am 1

Open src/main/resources/fabric.mod.json and add an authors entry alongside the other top-level mod details, such as name and version. Use the plural field name authors and add Mark Stein as the author. Then compile the mod; Mod Menu should show the author in its details.

Mark Bandolon

Can you add an author in fabric.mod.json with the author's name "Mark Stein"?

Kodari AI
KodariOct 22 at 4:12 am 1

Added "authors": ["Mark Stein"] to fabric.mod.json. Compile the mod to include the author metadata.

Mark Bandolon

Is the mod using a resource pack for the kill banner PNG and OGG sound?

Kodari AI
KodariOct 22 at 4:19 am 1

It doesn’t need a separate resource pack. The kill banner PNG is bundled as a mod asset, and the OGG sound is loaded the same way when included in the mod’s sound assets. Minecraft loads these through its resource system.

Mark Bandolon

Where do I put my PNG and OGG files?

Kodari AI
KodariOct 22 at 4:20 am 1

Put them in the mod’s assets folder:

  • Kill banner PNG: src/main/resources/assets/overkill/textures/gui/kill_banner_6.png

  • Kill sound OGG: src/main/resources/assets/overkill/sounds/kill.ogg

The sound path matches the overkill:kill sound ID. Keep sounds.json at src/main/resources/assets/overkill/sounds.json.

Mark Bandolon

Does this mod works on multiplayer server?

Kodari AI
KodariOct 22 at 4:33 am 1

Yes—it supports multiplayer on a Fabric server. Install Overkill on the server for kill tracking and /killsound. Install it on players’ clients too for the banner and sound; only the player who gets the kill receives the banner.

One caveat: the current project appears to be missing several numbered banner PNGs, so some kill levels may not display their intended image.

Mark Bandolon

Is it not a client-side mod?

Kodari AI
KodariOct 22 at 4:35 am 1

It’s a client-and-server mod, not purely client-side. The server handles kill tracking and sends the event; the client displays the banner and plays the sound. For the full effect, install it on both the server and the players’ clients.

Mark Bandolon

Is it possible for client-side only and not a server? Because I want it to work on a player that installs the mod only and should not affect others.

Kodari AI
KodariOct 22 at 5:11 am 1

Yes, the banner and sound can be client-only and visible only to the player who installs the mod. But the current version won’t work that way: it relies on server-side kill tracking and server-to-client messages.

A client-only version can try to detect kills locally, but in multiplayer it can’t reliably know who got credit for every kill—especially for indirect damage or kills the client didn’t observe. So it could be best-effort client-only, but reliable kill detection requires the server mod. The current server version already sends the effects only to the credited killer, not to everyone.

Mark Bandolon

Let's make it client-side only so only the player who install the mod can see the kill banner and hear the kill sounnd.

Kodari AI
KodariOct 22 at 5:34 am 4

Converted Overkill to client-only: the server no longer needs the mod, and the banner and sound are triggered and played locally for the player who installed it. The local config file still controls sound, volume, and pitch; the server /killsound command is removed.

Kill detection is best-effort: it watches for a death shortly after your direct melee attack. Client-only detection can’t reliably confirm server kill credit, so ranged, pet, environmental, or delayed kills may not trigger, and another player getting the final hit could occasionally be misattributed.

Mark Bandolon

Is it possible to affect player's action like Bow, Thrown Trident, Reflected Fireball from Ghast to the Ghast, Killed from TNT activated by the Player, and Crossbow?

Kodari AI
KodariOct 23 at 2:26 am 1

Yes, those actions can be included in client-side, best-effort kill detection:

  • Bow and crossbow: track arrows fired by you and check whether a nearby death follows.

  • Thrown trident: track your thrown trident similarly.

  • Reflected ghast fireball: detect a fireball you hit back, though confirming the game credited its kill to you is difficult.

  • Player-activated TNT: track TNT you ignited and watch for nearby deaths.

The limitation is that a client generally can’t confirm the server’s actual kill attribution. Delayed explosions, another player landing the final hit, or entities leaving your view can cause missed or occasional false triggers. The banner and sound would still remain local to the player with the mod installed.

Mark Bandolon

Also how about killed from a fire from the player's fire aspect sword?

Kodari AI
KodariOct 23 at 2:27 am 1

A Fire Aspect kill can also be detected best-effort: the client can remember that you set a target on fire with your sword, then watch for that target to die while the fire effect is active. It may miss delayed deaths or misattribute them if someone else damages the target before it dies, since the client can’t confirm the server’s final kill credit.

Mark Bandolon

Alright, let's add those more detection kill like the Bow, Crossbow, Thrown Trident, Reflected Ghast Fireball, Player-activated TNT and Fire Aspect kill. Also, only reset the kill sound/banner when the player achieved Kill6/Kill_Banner_6. That way, they can keep the kill record. But keep the 8 second reset duration.

Kodari AI
KodariOct 23 at 2:53 am 5

Plan:

  1. Extend client-side kill detection to track ranged, trident, reflected-fireball, TNT, and Fire Aspect kills.

  2. Change streak reset behavior so only a Kill6 resets the record, while keeping the 8-second timeout.

Added client-only detection for player-owned bow/crossbow arrows and thrown tridents, reflected projectiles such as Ghast fireballs, locally ignited TNT, and likely Fire Aspect burns. The effects remain local to the player with the mod; detection is still best-effort because the client can’t confirm the server’s kill credit.

The streak now resets to Kill1 only after Kill6 has been reached and there’s an 8-second gap before the next detected kill. Before Kill6, a gap won’t erase the record.

Mark Bandolon

Can a kill banner register when I kill a mob with any items with fire aspect on it?

Kodari AI
KodariOct 30 at 7:02 am 1

Yes—if the item’s hit sets the mob on fire, the client-side detector can treat the later death as a possible Fire Aspect kill, regardless of the item type. It’s best-effort: delayed deaths or other damage sources can still cause misses or false triggers, since the client can’t confirm the server’s kill credit.

Mark Bandolon

Let's update our mod.

First let's adjust the kill banner reset, make it only resets when it reaches kill 5 instead of reaching kill 6. With this, you don't need to reach kill 6 for 8 seconds countdown to begin which after 8 seconds, the kill banner resets to 1.

Also let's update the kill banner for more possible way to activate a kill.

Let's add Flame shot by Player's Arrow, Hits mob and dies in fall damage (snowball, arrow, crossbow, trident and eggs), Killed by spear for both right click and left click, Hit mobs with wind charge and dies in fall damage, Killed by a trident with riptide, Crossbow and piercing enchantment, Killing Blaze with Player's Snowball, Thrown Trident with Channeling that strikes lightning and lastly Sweeping Edge. Can you add that?

Lastly, can you add a keybind control so when it toggle it on and off? Default Keybind is "P" and we can change it later on.

Kodari AI
KodariOct 30 at 7:21 am 4
  1. Adjust the Kill5 threshold and 8-second streak timer.

  2. Extend client-side kill detection for the listed projectile, weapon, enchantment, and damage cases.

  3. Add a configurable client toggle keybind, defaulting to P.

Updated the client-only mod:

  • Streak reset: After Kill5, an 8-second gap before the next detected kill restarts the sequence at Kill1.

  • Kill detection: Added tracking for Flame arrows; fall deaths after arrows, crossbow bolts, tridents, snowballs, eggs, and wind charges; spear attacks, Riptide, Sweeping Edge, snowballs killing Blazes, and trident-associated lightning strikes.

  • Toggle key: Added Toggle Kill Banner under Options → Controls → Miscellaneous, default P. It toggles both the banner and kill sound on or off for the player using the mod.

Because detection is client-side, it remains best-effort. In particular, lightning attribution is inferred from a recent local trident impact and may occasionally misattribute a nearby strike.

Mark Bandolon

Let's update our mod.

Let's update the kill banner for more possible way to activate a kill.

Let's add killed by a Thorn Armor. Hits a mob and killed by tamed wolf and mobs hits you and tamed wolf fights back. Splash potion of Harming to Neutral Mobs and Splash potion of healing to undead mobs. Killed by a Mace.

Also we'll adjust the toggle for the mod, when pressing the toggle keybind, it should appear a message on the top of our hotbar saying "Killbanner is OFF". When turned on, it says "Killbaner is ON". This way, we can see if the killbanner is on or off.

Kodari AI
KodariNov 1 at 9:59 am 2

Updated the client-side mod to detect kills from Thorns damage, your tamed wolves, qualifying splash potions (Harming on neutral mobs and Healing on undead mobs), and mace smash damage.

The toggle now shows “Killbanner is ON” or “Killbanner is OFF” above the hotbar for two seconds. Detection remains best-effort because kill credit ultimately comes from the server.

Mark Bandolon

Let's change the text "Killbanner is ON" and "Killbaner is OFF" to "Overkill is ON" and "Overkill is OFF". Also, can you make it like the text doesn't just appear above the hotbar but above all from the hotbar? Like above the armor icon, hp, hunger, etc. Also make the text appear in front of the ui and not behind so we can see it clearly. Give it 2 seconds display before fading out after 2 seconds of appear.

Kodari AI
KodariNov 6 at 4:26 am 1
  1. Update the toggle messages to “Overkill is ON/OFF”.

  2. Move the notice to a foreground HUD position above the status icons, with a two-second hold followed by a fade.

Updated the toggle notice to “Overkill is ON” / “Overkill is OFF”. It now renders centered above the armor, health, and hunger icons, after the vanilla HUD so it appears in front. It stays fully visible for 2 seconds, then fades out over 0.5 seconds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
15 785
src/main/java/com/overkill/overkill/Overkill.java
package com.overkill.overkill;

import net.fabricmc.api.ModInitializer;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.resources.Identifier;
import net.minecraft.sounds.SoundEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class Overkill implements ModInitializer {
	public static final String MOD_ID = "overkill";
	public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
	public static final Identifier KILL_SOUND_ID = Identifier.fromNamespaceAndPath(MOD_ID, "kill");
	public static final SoundEvent KILL_SOUND = Registry.register(
			BuiltInRegistries.SOUND_EVENT,
			KILL_SOUND_ID,
			SoundEvent.createVariableRangeEvent(KILL_SOUND_ID)
	);
	private static final long SEQUENCE_RESET_NANOS = 8_000_000_000L;
	private static final SoundEvent[] KILL_SOUND_SEQUENCE = {
			registerSoundEvent("kill1"),
			registerSoundEvent("kill2"),
			registerSoundEvent("kill3"),
			registerSoundEvent("kill4"),
				registerSoundEvent("kill5"),
				registerSoundEvent("kill6")
	};

	private static SoundEvent registerSoundEvent(String path) {
		Identifier soundId = Identifier.fromNamespaceAndPath(MOD_ID, path);
		return Registry.register(BuiltInRegistries.SOUND_EVENT, soundId, SoundEvent.createVariableRangeEvent(soundId));
	}

	public static SoundEvent getKillSequenceSound(int index) {
		return KILL_SOUND_SEQUENCE[index];
	}

	@Override
	public void onInitialize() {
		KillSoundConfig.load();
	}
}