Описание
# 💥 TNT Damage Multiplier
A customizable datapack for Minecraft that allows you to change TNT damage in real time!
## ✨ Features
- 🎯 **Customizable Damage** - Change the TNT damage multiplier with a simple command
- 💥 **Realistic Damage** - Damage falls off over distance, just like real TNT
- ❤️ **Armor-Aware** - Armor and enchantments (including Explosion Protection) work correctly
- ⚡ **Lightweight and Fast** - Optimized for minimal performance impact
## 🎮 Usage
### Changing TNT Damage
```
/trigger tnt_damage set
```
**Examples:**
- `/trigger tnt_damage set 100` - standard damage (100%)
- `/trigger tnt_damage set 200` - double damage (200%)
- `/trigger tnt_damage set 500` - five times the damage (500%)
- `/trigger tnt_damage set 50` - half the damage (50%)
## 📐 How Damage Works
TNT damage depends on the distance to the explosion:
| Distance | Base Damage | With a 200% multiplier |
|------------|--------------|------------------|
| 0-1 block | 65 HP | 130 HP |
| 1-2 blocks | 55 HP | 110 HP |
| 2-3 blocks | 45 HP | 90 HP |
| 3-4 blocks | 35 HP | 70 HP |
| 4-5 blocks | 25 HP | 50 HP |
| 5-6 blocks | 18 HP | 36 HP |
| 6-7 blocks | 12 HP | 24 HP |
| 7-8 blocks | 8 HP | 16 HP |
*Damage includes armor and defense enchantments*
## 🔧 Installation
1. Download the datapack
2. Place it in the `saves//datapacks/` folder
3. Reload the world or run `/reload`
4. Done! Use `/trigger tnt_damage set ` to configure the settings.
## 🗑️ Uninstall
To completely remove the datapack, run:
```
/function tnt_damage:uninstall
```
Then delete the datapack files from the datapacks folder.
## 📋 Requirements
- Minecraft 1.21+ (pack_format 48)
- Cheats enabled
## 🎯 Ideal for
- PvP arenas with TNT
- Explosive minigames
- Hardcore survival
- Custom adventure maps
- Servers with unique gameplay
## 💡 Technical Details
- Uses scoreboard for damage tracking
- Uses explosion damage to properly handle armor
- Minimal performance impact
---
**Created for the Minecraft community** ❤️