Download One shot protection — Minecraft Mods — MetaMods

One shot protection

Active

Downloads

0

Last update

2 years ago

Versions

1.20.1
Server
Forge
Game mechanics
Utils

One Shot Protection

This modification adds a one-shot protection system to Minecraft, similar to the mechanics in Risk of Rain 2. The development was focused on meeting the needs of modpack creators and server owners, offering complete customization of all parameters.

Main Features

One-Shot Protection Mechanics

The system activates when receiving fatal damage while the player has over 90% health remaining. Instead of dying, the character preserves 10% of their maximum health and gains a temporary invincibility period during which they completely ignore any incoming damage.

  • Activation triggers an audio cue and visual particles
  • Special visual effects appear during immunity mode
  • The system by default ignores certain damage types: fall damage, void, instant death
  • All damage types and mod functions can be configured, including support for custom damage sources

OSP Mechanics

Full Server-Side Functionality

The mod does not require client installation, operating entirely server-side through Forge technology. This ensures easy implementation and compatibility with various client modifications.

Parameter Configuration

All settings are located in the "OSP" folder within the game's configuration directory.

Editing Ignored Damage Types

Ability to define damage sources for which protection will not activate. For example, you can allow the system to work with fall damage or disable it for specific attack types.

// Example configuration file structure
{
  "invalidDamageSources": ["fall", "outOfWorld", "genericKill"]
}

Damage Settings

Adjusting Protection Mechanics

"OneShotProtectionConfig" allows you to:

  • Configure system cooldown time (OneShotProtectionCooldown)
  • Define health threshold for activation (ProcHealthPercentage)
  • Set residual health level after activation (LeftoverHealthOnProcPercentage)
  • Enable minimum health requirement checks (DoInvalidMaximumHealth)
  • Disable sound and visual effects

Immunity Configuration

The "ImmunityConfig.json" file controls:

  • Enabling/disabling the invincibility mechanism (DoImmunityTicks)
  • Duration of the protection period (ImmunityTicksOnDeath)

Immunity Settings

Project members
Aslechi

Aslechi

Developer

Created: 10 Feb 2024

ID: 22230