Maid UUID Fix
This is an addon for the Touhou Little Maid mod. It fixes the issue where a maid's UUID changes after respawning from a film (胶片) or grave, causing her data, ownership, and references to be lost.
📦 What It Does
UUID Preservation on Death
When a maid dies, her original UUID is saved into the entity's persistent data, which is automatically included in the NBT stored inside the film or grave.UUID Restoration on Respawn
When the maid is revived and enters the world again, the mod checks the persistent data and restores her original UUID, so she remains the same maid as far as the game is concerned.Film / Grave Compatibility
A Mixin hook onreadAdditionalSaveDataensures the UUID is restored even when the maid is loaded directly from film NBT, before other systems get a chance to reference the new (wrong) UUID.
🎯 Purpose
- Prevents maid data loss (owner, inventory, AI state, etc.) caused by UUID changes after revival.
- Keeps references from other mods, commands, and data packs valid across death and respawn.
- Provides a seamless experience for players using films or graves to revive their maids.
🔧 Installation
- Make sure the Touhou Little Maid mod is installed.
- Place the
.jarfile of this mod into the.minecraft/modsfolder. - Launch the game.
⚠️ Requirements
- Minecraft Versions: 1.21.1
- Required Mod: Touhou Little Maid
📜 License
- Code: MIT License
🙏 Authors
- Programmer: Steven23334
车万女仆:女仆 UUID 修复
这是一个为 车万女仆 (Touhou Little Maid) 模组开发的拓展,修复了女仆从胶片或墓碑复活后 UUID 改变,导致其数据、归属和引用丢失的问题。
📦 功能说明
死亡时保存 UUID
女仆死亡时,将其原始 UUID 写入实体的持久化数据中,该数据会自动包含在胶片/墓碑所保存的 NBT 里。复活时恢复 UUID
女仆复活并重新进入世界时,模组会检查持久化数据并还原她的原始 UUID,确保她在游戏眼中始终是同一个女仆。胶片 / 墓碑兼容
通过 Mixin 注入readAdditionalSaveData,即使女仆是直接从胶片 NBT 加载的,也能在其它系统引用到错误 UUID 之前完成还原。
🎯 模组用途
- 防止因复活后 UUID 改变而导致的 maid 数据丢失(主人、背包、AI 状态等)。
- 保证其它模组、命令和数据包对女仆的引用在死亡与复活前后依然有效。
- 为使用胶片或墓碑复活女仆的玩家提供无缝体验。
🔧 安装方法
- 确保已安装 车万女仆 (Touhou Little Maid) 模组。
- 将本模组的
.jar文件放入.minecraft/mods文件夹。 - 启动游戏即可。
⚠️ 前置要求
- Minecraft 版本:1.21.1
- 必需模组:车万女仆 (Touhou Little Maid)
📜 许可证
- 代码:MIT License
🙏 作者
- 程序:Steven23334