If you've ever run a Minecraft server with named mobs or played with mods that spawn named entities, you've probably noticed your console and log files getting flooded with death messages like:
No Useless Logging is a lightweight utility mod that filters out death messages for any entity that has a custom name tag. This includes:
✅ Vanilla mobs – Sheep, cows, villagers, horses, wolves, cats, and all other tameable/nameable entities
✅ Modded entities – Any mod that extends Minecraft's base LivingEntity class
✅ Villager death messages – Including the special villager-specific death log format
✅ All death causes – Whether the entity was slain, drowned, burned, fell, or died any other way
The mod works by installing a Log4j filter at the root logger level, which means it catches and blocks these messages before they ever reach your console or log file.
Important: This mod only filters log messages. It does not affect gameplay, death events, or any other game mechanics. Your entities will still die normally – you just won't see the spam in your logs.
No Useless Logging is designed with performance in mind:
startsWith) rather than expensive regex operationsThe filter operates in O(1) time complexity for the most common case (checking if a message starts with "Named entity"), making it virtually unnoticeable even on high-traffic servers.
On servers with many named entities, death messages can significantly contribute to log file bloat. Here's what you can expect:
| Scenario | Without Mod | With Mod |
|---|---|---|
| Trading hall with 50 villagers | Dozens of death messages during raids | Clean logs |
| Named mob farm | Constant spam from entity deaths | Silent operation |
| Adventure server with named NPCs | Log files grow rapidly | Minimal log growth |
By filtering these messages, you'll see:
Minecraft Version: 1.21.1
Mod Loader: NeoForge 21.1.215+
Side: Both (Client & Server)
LivingEntityThis mod operates at the logging level and does not modify any game classes or use mixins. It should be compatible with virtually every other mod. If you encounter any compatibility issues, please report them!
This mod is released under the MIT License. You are free to include it in modpacks, modify it, or use it however you like.
Made by Navrelis