LavaDamageFixerForJEGN
一款轻量级的 NeoForge 实用模组,旨在修复一个关键错误:当安装了 JEGN(Just Enough Guns New)时,玩家会因环境伤害而瞬间死亡。
()
? 概述
由于 JEGN 自定义的全自动武器机制,该模组会强制将目标的无敌时间(i-frames)设为 0,以便快速射击的子弹能连续击中敌人,而不受原版无敌帧的阻挡。
然而,这一机制也意外地影响了玩家。当玩家受到任何原版环境伤害(例如掉入岩浆)时,其无敌帧会被立即清除,导致玩家每刻(每秒 20 次)都受到伤害,从而引发不公平且无法避免的瞬间死亡。
本模组通过拦截伤害事件并恢复正常的原版行为来修复此问题,但仅针对玩家生效。
✨ 特性
- 仅保护玩家: 修复效果仅应用于玩家。僵尸、苦力怕和其他生物仍将保持
0 无敌帧,确保 JEGN 的武器对敌人保持全自动、高射速的效果。
- 恢复原版机制: 当玩家受到岩浆、火焰、坠落或溺水伤害时,本模组会强制将玩家的无敌时间重置为原版标准,防止陷入瞬间死亡的循环。
?️ 运行环境
- Minecraft (NeoForge): 26.1.2
- NeoForge: 26.1.2.76
- 语言: Java 21
? 许可证
本项目采用 MIT 许可证。您可以自由地在整合包中包含此模组或参考其代码。
()
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.
()
? 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.
()
评论 0
登录后参与评分
还没有评论,来抢沙发吧