Back to mods
DamageSource Is Not Null Basic project artwork

CurseForge · Minecraft mod

DamageSource Is Not Null Basic

An attempt to solve DamageSource NPE (Only Covers Vanilla Mobs)

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which DamageSource Is Not Null Basic release matches NeoForge?

Updated 6 months ago
Best match for your filters dsnnullbasic-3.1.2-neoforge-1.21.1.jar
Game version 1.21.1
Loader NeoForge

DamageSource Is Not Null Basic dsnnullbasic-3.1.2-neoforge-1.21.1.jar targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is DamageSource Is Not Null Basic required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does DamageSource Is Not Null Basic dsnnullbasic-3.1.2-neoforge-1.21.1.jar need?

dsnnullbasic-3.1.2-neoforge-1.21.1.jar on NeoForge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add DamageSource Is Not Null Basic without breaking your instance.

Built for DamageSource Is Not Null Basic dsnnullbasic-3.1.2-neoforge-1.21.1.jar on NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use dsnnullbasic-3.1.2-neoforge-1.21.1.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside dsnnullbasic-3.1.2-neoforge-1.21.1.jar. It opens that exact file at the source.

About this project

What does DamageSource Is Not Null Basic add?

DamageSource Is Not Null Basic

Project structure

The DSNNULL project is now split into two parts:

DSNNULL Basic

The core module. Provides the shared guard logic, fallback handling, and baseline vanilla-oriented protection.

DSNNULL Plus

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.


Explanation on the DamageSource Null Pointer Exception

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 interrupt gameplay and create issues that are hard to debug, as the stacktrace seldom includes the actual method that pass a null into damage handling pipeline. This mod provides a defensive layer to prevent such issue from causing crash, and it also catch the point where null is passed into the pipeline, so that the actual debugging could be easier.

Environment

  • Forge - 1.20.1
  • NeoForge - 1.21.1

Support

If you'd like to support my modding work, including maintenance, updates, and compatibility work, Patreon is available here:

https://patreon.com/vomiter_scp

Project description from CurseForge.

Pick your setup

DamageSource Is Not Null Basic by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

DamageSource Is Not Null Basic versions and loaders

4 of 7 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.