Thesupereevee1/immortality-mc-mod ? reverse-engineered prompt
Reverse engineered prompt
Build me a lightweight server side Minecraft Fabric mod called Immortality.
I want players to be able to survive fatal damage when they are marked immortal, staying at half a heart instead of dying. It should work per player, and I need commands to toggle it for myself, set it for one or more players, check whether a player is immortal, and turn on a global mode that makes everyone immortal. It should support selectors like @a and @p so I can affect groups of players easily.
Make sure Totems of Undying still work normally and are never blocked. The immortality state should persist across server restarts and be saved in a simple JSON file under config. Keep it server side only, with no client install needed, and don’t add any config screens or extra setup unless it’s really necessary.
If you need to, look up the current Fabric docs online before wiring it up.
Are you gonna build this?
make sure you review the code using coderabbit