Maid UUID Fix

Maid UUID Fix — Fixes the maid's UUID changing after revival from film/grave, preventing data loss and broken references. Auto-works on death, respawn, and NBT load.

Maid UUID Fix

Available on GitHub

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 on readAdditionalSaveData ensures 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

  1. Make sure the Touhou Little Maid mod is installed.
  2. Place the .jar file of this mod into the .minecraft/mods folder.
  3. Launch the game.

⚠️ Requirements

📜 License

🙏 Authors

  • Programmer: Steven23334

车万女仆:女仆 UUID 修复

可在 GitHub 上获取

这是一个为 车万女仆 (Touhou Little Maid) 模组开发的拓展,修复了女仆从胶片或墓碑复活后 UUID 改变,导致其数据、归属和引用丢失的问题。

📦 功能说明

  • 死亡时保存 UUID
    女仆死亡时,将其原始 UUID 写入实体的持久化数据中,该数据会自动包含在胶片/墓碑所保存的 NBT 里。

  • 复活时恢复 UUID
    女仆复活并重新进入世界时,模组会检查持久化数据并还原她的原始 UUID,确保她在游戏眼中始终是同一个女仆。

  • 胶片 / 墓碑兼容
    通过 Mixin 注入 readAdditionalSaveData,即使女仆是直接从胶片 NBT 加载的,也能在其它系统引用到错误 UUID 之前完成还原。

🎯 模组用途

  • 防止因复活后 UUID 改变而导致的 maid 数据丢失(主人、背包、AI 状态等)。
  • 保证其它模组、命令和数据包对女仆的引用在死亡与复活前后依然有效。
  • 为使用胶片或墓碑复活女仆的玩家提供无缝体验。

🔧 安装方法

  1. 确保已安装 车万女仆 (Touhou Little Maid) 模组。
  2. 将本模组的 .jar 文件放入 .minecraft/mods 文件夹。
  3. 启动游戏即可。

⚠️ 前置要求

📜 许可证

🙏 作者

  • 程序:Steven23334

Maid UUID Fix Team

profile avatar
  • 5
    Projects
  • 3.3K
    Downloads

More from Steven23334View all