OneShot Prevention
🛡️ What is OneShot Prevention?
✨ Features
- Smart Protection: Only triggers when players are at 90%+ health (configurable)
- Temporary Invincibility: 3-second invincibility period after protection (configurable)
- Fall Damage Protection: Optional protection against fall damage
- Comprehensive Logging: Detailed logs with configurable retention
- Easy Configuration: Simple TOML config file with clear options
- Reload Command: /oneshot reload command to reload config without server restart
- Server-Side Only: No client installation required
⚙️ Configuration Options
- Enable/Disable Protection: Toggle the entire system on/off
- Health Threshold: Set the minimum health percentage required for protection (default: 90%)
- Invincibility Duration: Configure how long players stay invincible after protection (default: 3 seconds)
- Fall Damage Protection: Choose whether to protect against fall damage
- Logging System: Enable/disable detailed logging with configurable retention
🎮 How It Works
- When a player takes damage that would kill them in one hit
- The mod checks if they're above the health threshold (90% by default)
- If so, it reduces the damage to leave them at half a heart
- Grants temporary invincibility to prevent immediate follow-up damage
- Logs the event for server administrators
🛠️ Installation
- Download the mod JAR file
- Place it in your server's mods folder
- Start your server - the mod will generate a config file
- Customize settings in config/oneshot_prevention/oneshot_prevention-common.toml
- Use /oneshot reload to apply changes without restarting
📋 Requirements
- Minecraft: 1.20.1
- Forge: 47.0.0 or higher
- Server-Side Only: No client installation needed
🔧 Commands
- /oneshot reload - Reload the configuration file (requires OP level 2)
📝 License
🤝 Support
- Survival servers
- Hardcore servers
- PvP servers
- Any server where one-shot deaths are too punishing