Описание
# Modern Damage Control
A mod that brings realistic body part damage, advanced armor mechanics, and a tactical medical system to Minecraft.
> ⚠️ **Note**: All medical items in this mod are for game design purposes only and do not constitute real-world medical advice.
---
## Dependencies
- **Minecraft Forge** 1.20.1
- **TACZ (Timeless and Classics Zero)** – Required! Bullet hit location detection depends entirely on TACZ.
- **Cloth Config API** – Required for configuration management.
> The mod will not start without TACZ and Cloth Config API.
---
## Core Features
### Two Damage Models
- **SOFT mode**: Vanilla single health pool. Death condition: vanilla health reaches zero. Only status effects on body part hits.
- **HARDCORE mode**: 7 independent body parts for players and all entities. Death condition: head/chest health reaches zero OR total body part health reaches zero. Overflow damage and destruction effects apply when a part is destroyed.
Switchable via config file.
### Body Part Damage System
- **7 body parts**: Head, Chest, Stomach, Left Arm, Right Arm, Left Leg, Right Leg.
- Bullet impact location is precisely calculated using TACZ's hit detection.
- Each part can be configured with **on-hit** and **on-destroy** potion effects (e.g., bleeding, fractures, dizziness).
### Armor & Penetration Mechanics
- Armor provides **protection points** (1–100) per body part, which degrade linearly with durability (minimum 50% retained).
- **Natural armor** can be added via attributes, which functions like worn armor.
- TACZ's **armor_ignore** stat (1% = 1 penetration point) is used to determine **complete penetration**, **partial penetration**, or **blunt damage**.
- Supports defining protection data for any item (including from other mods): protected parts and protection points per part.
### Tactical Medical System
- **Wound treatment**: Sterile Gauze, CAT-7 Tourniquet, Israeli Bandage (stop bleeding).
- **Fracture treatment**: SAM Splint (stabilize), 3M Cast Tape (full healing).
- **Trauma repair**: Dr. Stitch Suture, Skin Stapler (repair severe trauma).
- **Medications**: Ibuprofen / Tramadol (pain relief), Creatine (strength+speed+fatigue resistance), Caffeine (stamina), Modafinil (focus).
- **IV fluids**: Saline, Ringer's Solution, Albumin, etc. – provide sustained health regeneration.
- **Medical kits**: 6 different multi‑purpose kits (stop bleeding, pain relief, trauma repair).
### Negative Status Effects & Resistances
- **Bleeding**: Minor / Major – periodic damage.
- **Fracture**: Arm (reduced melee damage and accuracy) / Leg (slowness, cannot sprint).
- **Severe trauma**: Periodic damage, random pain spikes.
- **Dizziness**: Severe slowness, nausea, cannot sprint.
- **Pain**: Movement restriction, darkness effect.
- **Resistances**: Pain suppression, coagulation boost, dizziness resistance, poison resistance, infection resistance.
### Creature Body Parts (Hardcore mode)
- Hardcore mode can enable body parts for non‑player entities.
- Configurable on‑hit and on‑destroy effects for mobs (e.g., zombie broken leg → slowness).
### Client HUD (Hardcore mode)
- Displays health status of the player's 7 body parts (texture changes with health percentage).
- Flash effect on injury.
- Position and scale configurable.
---
## Commands
| Command | Description |
|---------|-------------|
| `/moderndamage parthealth [target]` | View body part health of yourself, another player, or a mob (Hardcore mode) |
| `/moderndamage debug hitbox ` | Debug output of target entity's hitbox and detected body part |
| `/moderndamage generate entity_config` | Generate default entity configuration file (hitbox ranges, natural armor) |
---
## Configuration
- File located in `.minecraft/config/`:
- `moderndamage.json5` – Main config (damage model, part ratios, potion effects, HUD, etc.)
- Files located in `.minecraft/config/moderndamage/`:
- `armor_properties.json` – Custom armor protection data
- `entity_config.json` – Entity hitbox ranges and natural armor
---
## Compatibility
- **EnhancedVisuals** (optional): Heartbeat, ringing, blur effects for pain/dizziness.
- **Spore** (optional): Infection resistance can remove mycelium infection.
- **tacz_attributes** (optional): Creatine effect can adjust recoil attributes.
- **staminafortweakers** (optional): Caffeine and creatine affect stamina system.
> Missing optional dependencies will not crash the mod; related features are automatically disabled.
---
## Installation
1. Install **Forge 1.20.1**.
2. Install **TACZ** and **Cloth Config API**.
3. Put the mod's JAR file into the `mods` folder.
4. Launch the game – config files will be generated automatically.
---
## Development & Open Source
- License: **MIT**
---
**May every bullet hit the right spot.** 🎯