Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
DamageSource Is Not Null
ModMIT

DamageSource Is Not Null

An attempt to fix "NullPointerException: LivingDeathEvent.getSource() is null"

44
Downloads
0
Followers
4 months ago
Updated
📦
2
Versions
game-mechanicsforgeneoforge
Download Latestv1.1.1-forgeView on Modrinth

📖About DamageSource Is Not Null

❌ No More NPE

LivingDeathEvent.getSource() is null

Tired of random crashes caused by broken mods passing null DamageSource into entity death or damage events?

This mod adds a defensive guard to Minecraft’s damage & death pipeline, preventing servers and single-player worlds from crashing due to invalid DamageSource usage by other mods.

Instead of crashing your game, it will:

  • ✅ Block the invalid call safely
  • ⚠️ Log a warning or error with stack trace
  • 🔍 Help you identify which mod caused the problem

So you can keep playing, and fix the real issue later.


🛡 What This Mod Does

This mod injects safety checks into:

  • LivingEntity#hurt
  • LivingEntity#die

If a mod incorrectly triggers damage or death with a null DamageSource (which should never happen), this mod will:

  • Prevent the NullPointerException
  • Allow the entity to continue behaving normally
  • Print detailed logs to help modpack authors locate the culprit

🚨 Why This Exists

While vanilla and NeoForge expect DamageSource to never be null,
some mods still trigger events incorrectly and crash the entire game.

Normally, this results in errors like:

LivingDeathEvent.getSource() is null

Which kills servers and corrupts worlds for reasons outside the player's control.

This mod acts as a runtime safety net for such situations.


⚠ Important Notes

  • ❗ This mod does not fix the broken mod — it only prevents crashes.
  • ⚠ If you see warnings in logs, you should still report them to the mod author.
  • ✅ Safe to use on both client and dedicated servers.
  • 🧩 Designed to be lightweight and compatible with large modpacks.

📦 Modpack Friendly

If you're a modpack author or server owner, this mod can help:

  • Prevent unexpected downtime
  • Avoid corrupted worlds
  • Collect useful crash info without stopping gameplay

Think of it as a circuit breaker for bad damage events.


🧪 Environment

  • Minecraft: 1.21.1
  • Loader: NeoForge

📜 License

MIT License — free to use in any modpack.

👥 Team & Contributors

vomiter
vomiterOwner

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
forgeneoforge
Minecraft Versions
1.20.1

🔗 Links

Modrinth Page