AndrewImm-OP/aea-tnt-crash-fix — reverse-engineered prompt

Reverse engineered prompt

Build me a tiny Fabric mod for Minecraft 26.1.2 that fixes a crash caused by Additional Entity Attributes when TNT or other explosions break blocks that can drop XP. This should cover TNT, beds in the Nether, respawn anchors, and similar explosion cases where there is no real player actually breaking the block.

The important behavior is simple. If Additional Entity Attributes does not have a valid breaking player, do not let the game crash. Just keep the normal vanilla XP amount and move on. Please do not change TNT behavior, explosion strength, chain reactions, block breaking rules, or invent a fake player or nearest player. Normal mining by a real player should still behave as usual.

I want this to work for dedicated servers and singleplayer. Server only install should be enough for multiplayer, and client install should fix singleplayer since it runs an integrated server. Add a clear startup log message and a warning when the fix catches the crash case, but rate limit it so TNT chains do not spam the log. Use the current docs online if you need to.

Want more depth? Deep Reverse