Language

LavaDamageFixerForJEGN

LavaDamageFixerForJEGN

Modrinth

A NeoForge mod that fixes the instant-death bug caused by environmental damage when using JEGN (Just Enough Guns New).

12 downloads updated 9d ago
Modrinth
Neoforge 26.1.2 – 26.1.2 Game-mechanicsUtility

LavaDamageFixerForJEGN

A lightweight NeoForge utility mod designed to fix a critical bug where players die instantly from environmental damage when JEGN (Just Enough Guns New) is installed.
(https://modrinth.com/mod/just-enough-guns-neoforge)

📌 Overview

Due to JEGN's custom full-auto weapon mechanics, the mod continuously forces the target's invulnerability time (i-frames) to 0 so that rapid-fire bullets can hit enemies continuously without being blocked by vanilla invulnerability frames.

However, this mechanic inadvertently affects the player as well. When a player takes any vanilla environmental damage (such as falling into lava), their i-frames are instantly wiped out, causing them to take damage every single tick (20 times per second), leading to an unfair and unavoidable instant death.

This mod fixes this issue by intercepting the damage event and restoring normal vanilla behavior exclusively for players.

✨ Features

  • Player-Specific Protection: The fix only applies to players. Zombies, Creepers, and other mobs will still have 0 i-frames, ensuring that JEGN's weapons keep their full-auto, rapid-fire effectiveness against enemies.
  • Restored Vanilla Mechanics: When a player takes damage from Lava, Fire, Falling, or Drowning, this mod forcefully resets the player's invulnerability time back to vanilla standards, preventing the instant-death loop.

🛠️ Environment

  • Minecraft (NeoForge): 26.1.2
  • NeoForge: 26.1.2.76
  • Language: Java 21

📄 License

This project is licensed under the MIT License. You are free to include this in your modpacks or reference the code.
(https://github.com/hellscythe88p/LavaDamageFixerforJEGN/blob/master/src/main/java/com/hellscythe/lavadamagefixer/LavaDamageFixerForJEGN.java)

Versions

No version history available. Use the Download button to get the latest from the source.

Comments 0

No comments yet. Be the first to share your thoughts.

Download LavaDamageFixerForJEGN

Files are served directly from the original source. Modgrid does not host or modify them.