Описание
# Heartcore
Heartcore is a twist on Minecraft's Hardcore mode. Instead of a single death ending your world, every death costs you a maximum heart. Run out of hearts, and you die forever.
### Features
- **Lose Max Hearts on Death**: Each time you die, you permanently lose a configurable number of hearts.
- **Regain Hearts with Items**: By default, enchanted golden apples restore a heart—but you can customize or disable healing items entirely.
- **Healing via NBT**: Any food item can restore hearts if it includes the `heartcore:heart_modifier` CustomData NBT tag. This tag accepts integers, allowing precise control over how many hearts are gained or lost.
- **Random Respawn Option**: Players can respawn at a random location after death, with configurable min/max radius. Caves are now excluded to improve safety.
- **Configurable and Dynamic**: Change values like `heartsPerHealingItem`, `minHearts`, and `maxHearts`, and enforce max health limits for returning players with `enforceMaxHealth`.
- **Server Commands**:
- `/heartcore config` – Adjust settings live as a server operator.
- `/heartcore giftheart ` – Let players share their max hearts with others.
### Multiplayer Friendly
- Only the server host or world owner needs to install Heartcore.
- The only client side feature is changing the spectator button to say respawn on servers
### Requirements
- [Fabric API](https://modrinth.com/mod/fabric-api)
- [Cloth Config](https://modrinth.com/mod/cloth-config)
- [(Optional) ModMenu](https://modrinth.com/mod/modmenu)