One Shot Prevention

One Shot Prevention

50 Downloads

OneShot Prevention

Prevent frustrating one-shot deaths in Minecraft!

🛡️ What is OneShot Prevention?

OneShot Prevention is a server-side mod that protects players from being killed in a single hit when at full or near-full health. Instead of dying instantly, players are left with half a heart and temporary invincibility, giving them a chance to escape or heal.

✨ 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

  1. When a player takes damage that would kill them in one hit
  1. The mod checks if they're above the health threshold (90% by default)
  1. If so, it reduces the damage to leave them at half a heart
  1. Grants temporary invincibility to prevent immediate follow-up damage
  1. Logs the event for server administrators

🛠️ Installation

  1. Download the mod JAR file
  1. Place it in your server's mods folder
  1. Start your server - the mod will generate a config file
  1. Customize settings in config/oneshot_prevention/oneshot_prevention-common.toml
  1. 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

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Support

Having issues? Found a bug? Want to suggest a feature? Please open an issue on the project page!

Perfect for:
  • Survival servers
  • Hardcore servers
  • PvP servers
  • Any server where one-shot deaths are too punishing
Version: 1.0.0
Minecraft Version: 1.20.1
Forge Version: 47.0.0+