You can't dead!
A Minecraft Forge mod that provides powerful entity death protection!
Features
Automatic Protection
- Automatic protection for Creative Mode players: All players in Creative mode are protected from death by default.
Command Control (Requires permission level 4)
/nodeath god <entities>- Enables God Mode (death protection) for the specified entities/nodeath mortal <entities>- Disables God Mode for the specified entities/nodeath check <entity>- Checks the protection status of the specified entity
Tag-based Protection
- Add the
CannotDietag to any entity to grant it permanent protection
Advanced Protection Mechanism
This mod employs multiple methods to prevent entity death, including but not limited to:
- Canceling the LivingDeathEvent
- Protecting entity health-related methods via Mixin
- Preventing various death state manipulations (isDead, deathTime, etc.)
- Safeguarding entity attributes from malicious modifications
Technical Information
- Minecraft Version: 1.20.1
- Forge Version: 47.4.6
- Mod Version: 1.0
- Author: Aquavie
- Uses Mixin technology for deep-level protection
Build Instructions
Use the following command to build the mod:
./gradlew build
After building, the mod file will be located in the build/libs/ directory.
Usage
- Ensure Minecraft Forge 1.20.1-47.4.6 is installed
- Place the built mod file into the
.minecraft/mods/directory - Start the game to enable protection features
Command Examples
# Enable God Mode for yourself
/nodeath god @s
# Disable God Mode for all players
/nodeath mortal @a
# Check the protection status of a specific creature
/nodeath check @e[type=creeper,limit=1]
# Use tags to grant permanent protection to entities
/tag @e[type=zombie] add CannotDie
Finally, regarding why my repository is still written as "Other" even though I am using GitHub, the reason is that CF doesn't know why it always cannot recognize that my repository is Public. That's it.

