# Deathless Gift / 至死不渝的礼物
## Summary (English)
A yandere-themed Curios charm that refuses to be lost: auto-granted on first join, death-proof, respawn-returning, with massive survival buffs, pet blessings, custom curses, dynamic icons and scene-aware narration.
## Description (English)
**Deathless Gift** is a Forge 1.20.1 Curios accessory built around one idea: a gift that will not let you lose it — and will not let you go.
It finds you on your first login. It refuses to drop when you die. It comes back when you respawn. If you lock it in a chest, it goes quiet and waits. If you try to get rid of it, it has opinions about that.
### First Acquisition
- Automatically granted on first join if neither your inventory nor Curios slots contain it.
- Prefers the dedicated `absolute_guardian_slot`; if slots and inventory are full, a protected drop spawns at your feet.
- Chat message: “You received a gift. The sender left no name, only one line: ‘This time, don’t lose me again.’”
### Absolute Binding
- Cannot be tossed (`ItemTossEvent` cancelled).
- Bound drops can only be picked up by the owner.
- Kept on death via Curios `ALWAYS_KEEP`, removed from `LivingDropsEvent` / `CurioDropsEvent`, and snapshotted into world `SavedData`.
- On respawn: restored from Curio slot, inventory, ender chest, or snapshot; if missing entirely, re-issued at the respawn point.
- Immune to fire, lava, void, explosions and `/clear` (player-issued `/clear` is intercepted; console clear is recovered on next respawn).
- Storing it in a container is allowed — buffs pause, and it will not duplicate while stored externally.
### Survival Buffs (while equipped and unsealed)
- Heal 4% max HP per second; single hits capped at 1 damage.
- 32-block pet healing aura; refreshes Strength V, Resistance V, Absorption V, Water Breathing, Fire Resistance, Night Vision.
- Conditional night vision only below light level 8.
- Double all other Curios slots, creative flight, void teleport-back, +2 block reach, +50 Luck, 100% knockback resistance, ×10 kill XP, +3 Looting/Fortune, +20 Enchantability, bonus max-HP% damage and random 2–5% target max-HP damage.
- +50% max HP, +50% crit rate, ×2.5 crit damage, +50% regeneration, 25% overheal to absorption.
- Five lethal-damage saves, each recharging after 5 minutes.
### Curses & Blessings
- **‘Hatred of the Beloved’** — attackers and attacked targets cannot self-heal, take +25% damage, and lose 3% max HP per second. Uncleansable by milk; only the wearer can remove it by sneaking + right-clicking the target with the gift.
- **‘Love of the Beloved’**, **‘Words of the Beloved’**, **‘I’m Really Angry!’**, **‘Dread Slash’** — custom effects with scaling levels, dynamic colors, and 18×18 icons.
- Pets receive synchronized buffs, periodic random beneficial effects, and negative-effect cleansing. Up to 5 stored blessings, pre-filled when the gift is created.
- Attackers receive Wither II, Slowness II and Blindness, while the wearer is healed for the same amount.
### Dynamic Icons
Five custom effects, rendered at vanilla 18×18 with level-based color interpolation (I → III). Rendering is wrapped in try-catch and falls back to vanilla icons on failure.
### Narration
Action-bar (not chat) scene lines for biomes, dimensions, structures, villages, dungeons, sleep/wake, boss encounters, long stays, low light, crowds, and more. Weighted text picker reduces repetition. Tone: possessive, teasing, yandere — kept light, non-explicit.
### Config
Every major number is in `config/deathlessgift-common.toml`: heal %, damage cap, buff amplifiers, absorption cap, slot doubling, flight, XP multiplier, looting/fortune, reach, luck, curse values, blessing count, lock duration, narration cooldowns.
### Requirements
- Minecraft 1.20.1
- Forge 47.3.0+
- Curios API 5.14.1+1.20.1 (or compatible 5.x for 1.20.1)
- Java 17
### AI Disclosure
This project was developed with the assistance of AI tools. Parts of the code, configuration, text, narration, and documentation may be AI-generated or AI-assisted, and have been reviewed and tested by the author to the best of their ability. AI-generated content can still contain mistakes, unexpected behavior, or inaccuracies. The mod is provided “as is”, without warranty of any kind. Please back up your worlds before installing, and use it at your own risk. The MIT license applies to the project as a whole, including AI-assisted portions.
## 摘要(简体中文)
病娇主题 Curios 饰品:首次进入自动获得、死亡不掉落、复活自动归位,附带大量生存增益、宠物赐福、专属诅咒、动态图标与场景叙事。
## 描述(简体中文)
**至死不渝的礼物** 是一个 Forge 1.20.1 的 Curios 饰品,核心只有一句话:一份你弄不丢、也不肯放过你的礼物。
它会在你第一次进入世界时自己找上门;你死亡时它拒绝成为掉落物;你复活时它回到你身边。你把它锁进箱子,它会安静地睡着,所有增益暂停;你想丢掉它,它会对此有意见。
### 首次获得
- 首次登录时,如果背包和 Curios 栏都没有它,自动创建并绑定给该玩家。
- 优先放入专属 `absolute_guardian_slot`;槽位和背包都满时,在脚下生成受保护的掉落物。
- 聊天栏提示:“你收到了一份礼物。赠礼者没有署名,只留了一句话:‘这次,别再弄丢我了。’”
### 绝对绑定
- 禁止丢弃(取消 `ItemTossEvent`)。
- 已绑定的掉落物只能由主人拾取。
- 死亡时通过 Curios `ALWAYS_KEEP` 保留,移出 `LivingDropsEvent` / `CurioDropsEvent`,并把完整 NBT 写入世界级 `SavedData`。
- 复活时依次检查 Curio 槽、背包、末影箱、快照;全都没有则在重生点补发。
- 免疫火焰、岩浆、虚空、爆炸和 `/clear`(玩家执行的 `/clear` 会被拦截;控制台清空在下次复活补回)。
- 允许存进容器——增益暂停,且存放在外部期间不会重复补发。
### 生存增益(佩戴且未封印时)
- 每秒恢复 4% 最大生命;单次受伤最多 1 点。
- 32 格内宠物治疗光环;刷新力量 V、抗性 V、伤害吸收 V、水下呼吸、抗火、夜视。
- 条件夜视:仅光照低于 8 时施加。
- 其他 Curios 槽位翻倍、创造飞行、虚空传回、方块触及 +2、幸运 +50、击退抗性 100%、击杀经验 ×10、抢夺/时运 +3、附魔能力 +20、自身最大生命百分比追加伤害、随机 2~5% 目标最大生命伤害。
- 最大生命 +50%、暴击率 +50%、暴击伤害 ×2.5、再生 +50%、过量治疗 25% 转吸收。
- 5 次致命伤害锁血,每次消耗后 5 分钟恢复 1 次。
### 诅咒与赐福
- **「至爱之所恶」**:攻击佩戴者或被他攻击的生物无法自愈、受伤 +25%、每秒失去 3% 最大生命;牛奶无法清除,只有佩戴者手持礼物下蹲右键目标才能解除。
- **「至爱之所爱」「至爱之所言」「我真的生气啦!」「威斩震慑」**:自定义效果,等级缩放、动态变色、18×18 图标。
- 宠物获得同步 Buff、周期性随机正向效果和负面净化;最多 5 份赐福,礼物创建时已预存。
- 攻击者被强制附加凋零 II、缓慢 II、失明,并把等量伤害转化为佩戴者治疗。
### 动态图标
五个自定义效果,按原版 18×18 居中裁剪渲染,按等级 I → III 线性插值变色。渲染全程 try-catch,失败回退原版图标。
### 叙事文案
群系、维度、结构、村庄、地牢、睡觉/起床、Boss、长时间驻留、低光照、敌人扎堆等场景使用动作栏文案(非聊天框)。加权选句降低重复。整体病娇/痴女风格,保持轻度、非露骨。
### 配置
所有主要数值都在 `config/deathlessgift-common.toml`:回血百分比、伤害上限、Buff 等级、吸收上限、槽位翻倍、飞行、经验倍率、抢夺/时运、触及、幸运、诅咒数值、赐福数量、锁定时间、文案冷却。
### 前置
- Minecraft 1.20.1
- Forge 47.3.0+
- Curios API 5.14.1+1.20.1(或兼容的 5.x / 1.20.1 版本)
- Java 17
### AI 生成声明
本项目在 AI 工具辅助下开发。部分代码、配置、文案、叙事文本和文档可能由 AI 生成或经 AI 辅助完成,作者已尽力审查和测试。AI 生成内容仍可能包含错误、意外行为或不准确之处。本模组按“现状”提供,不附带任何形式的保证。安装前请备份存档,使用风险自负。MIT 许可证适用于整个项目,包括 AI 辅助完成的部分。