Tired of crashes caused by mods passing a null DamageSource into Minecraft's damage or death pipeline?
DamageSource Is Not Null: Plus is the full compatibility-focused edition of DSNNULL. It requires the core protection layer from DSNNULL Basic and expands coverage to many third-party modded entities and custom damage paths.
If you are a normal player, server owner, or modpack author, this is the version you probably want.
This mod adds runtime guards to common damage and death paths so that many invalid DamageSource cases can be intercepted before they crash the game.
It can:
NullPointerException crashes caused by invalid or null DamageSourceThink of it as a runtime safety layer for broken damage events.
The DSNNULL project is now split into two parts:
The core module. Provides the shared guard logic, fallback handling, and baseline vanilla-oriented protection.
The extended module. Builds on Basic and adds extra compatibility coverage for supported third-party mods and modded entities.
This split was made because maintaining both the core system and all modded-entity coverage inside a single package became increasingly difficult. Separating them makes the project easier to maintain, expand, and debug.
DSNNULL Plus requires DSNNULL Basic.
Basic provides the core runtime logic. Plus provides the expanded compatibility coverage.
Vanilla Minecraft and mod loaders assume that DamageSource is never null.
However, some mods still trigger damage or death logic incorrectly and pass a null DamageSource, which can cause crashes such as:
LivingDeathEvent.getSource() is null
These crashes can:
This mod does not fix the broken mod itself. Instead, it acts as a defensive safeguard that reduces the impact of these errors at runtime.
This mod includes debugging tools to help locate missing coverage and vulnerable entities.
/dsnnull debug testall
This command performs a heuristic scan across registered living entities and attempts to identify entities that are still vulnerable to null DamageSource.
If some entities fail the scan, please report it on the issue tracker and attach latest.log so coverage can be expanded in future updates.
Since version 3.0.0, DSNNULL Plus uses a transformer-based approach to expand coverage automatically across a much wider range of classes and damage paths.
This significantly improves automatic patch coverage, especially for modded entities that would otherwise require many manual compatibility mixins.
However, because this also increases how broadly the mod interacts with the runtime, it may introduce compatibility risks in very large or complex modpacks.
If you're experiencing a start up crash and removing DSNNULL Plus makes the crash disappear, please submit the full latest.log to the issue tracker so the case can be investigated.
This is especially helpful for identifying unexpected transformer interactions and improving future compatibility.
DamageSource Is Not Null: Plus is a defensive mitigation mod, not a guaranteed universal fix.
Because of how modded Minecraft works, it cannot guarantee protection in every possible case.
Some mods may still:
This mod should be understood as a practical crash-reduction and diagnostics tool, not as a promise that all such crashes are solved.
MIT License — free to use in any modpack.
If you'd like to support my modding work, including maintenance, updates, and compatibility work, Patreon is available here: