Описание
# Damage Vignette
A client-side Fabric mod for Minecraft 1.21 that renders a customizable vignette overlay when your health is low — with support for status effect tints, hex color picking, and a live preview GUI.
---
## Features
- **Health-based vignette** — activates when your health drops below a configurable percentage of your max HP
- **Oval-shaped overlay** — the effect appears only in the corners, following an ellipse that touches all 4 screen edges; the center stays clean
- **Status effect tints** — automatically switches color when you have Poison (green) or Wither (gray)
- **Fully customizable** via ModMenu GUI or in-game commands
- **Live preview** in the settings screen — see exactly how your vignette will look before closing the menu
- **Preset system** — export and import configurations by name
---
## Configuration
### ModMenu GUI
Open the settings screen from the ModMenu mod list. The interface is split into three sections:
| Section | Controls |
|---|---|
| **COLOR** | R / G / B sliders + hex input field (`#RRGGBB`) |
| **PREVIEW** | Live preview of the vignette with the selected color |
| **EFFECT** | Health threshold (%), intensity (%), and enable toggle |
The R, G, B sliders are color-coded and sync bidirectionally with the hex field.
### Commands
All commands are client-side (no server required).
```
/damagevignette color hex #RRGGBB — set color by hex code
/damagevignette color — set color by RGB values (0–255)
/damagevignette health — set health threshold (percentage)
/damagevignette intensity — set vignette intensity (percentage)
/damagevignette toggle — enable or disable the vignette
/damagevignette preset export — save current config as a named preset
/damagevignette preset import — load a saved preset
```
---
## Default Settings
| Setting | Default | Range |
|---|---|---|
| Color | `#FF0000` (red) | any hex color |
| Health threshold | 30% | 1–100% |
| Intensity | 100% | 1–100% |
| Enabled | true | — |
---
## Dependencies
- [Fabric Loader](https://fabricmc.net/) ≥ 0.15.11
- [Fabric API](https://modrinth.com/mod/fabric-api) for Minecraft 1.21
- [YACL 3](https://modrinth.com/mod/yacl) 3.x for GUI Menu
- [ModMenu](https://modrinth.com/mod/modmenu) 11.x (optional, for GUI settings)
---
## Author
Made by **Indifferenzah**