UUID Swap
UUID Swap 是一款 Fabric 模组,它通过 UUID 替换 Minecraft 玩家存档数据,并提供游戏内 GUI 用于转移已驯服宠物的所有权。
UUID Swap 通过 UUID 替换 Minecraft 玩家存档数据。Fabric 和 Forge 模块共享通用的文件传输逻辑。
兼容性
| Minecraft | Java | 模块 |
|---|---|---|
1.20 |
17+ | fabric-1.20 |
1.20.1 |
17+ | forge-1.20.1 (Forge 47.4.23) |
1.20.2 |
17+ | fabric-1.20.2 |
1.20.3 |
17+ | fabric-1.20.3 |
1.20.4 |
17+ | fabric-1.20.4 |
1.20.5 |
21+ | fabric-1.20.5 |
1.20.6 |
21+ | fabric-1.20.6 |
1.21 |
21+ | fabric-1.21 |
1.21.1 |
21+ | fabric-1.21.1 |
1.21.2 |
21+ | fabric-1.21.2 |
1.21.3 |
21+ | fabric-1.21.3 |
1.21.4 |
21+ | fabric-1.21.4 |
1.21.5 |
21+ | fabric-1.21.5 |
1.21.6 |
21+ | fabric-1.21.6 |
1.21.7 |
21+ | fabric-1.21.7 |
1.21.8 |
21+ | fabric-1.21.8 |
1.21.9 |
21+ | fabric-1.21.9 |
1.21.10 |
21+ | fabric-1.21.10 |
1.21.11 |
21+ | fabric-1.21.11 |
26.1 |
25+ | fabric-26.1 |
26.1.1 |
25+ | fabric-26.1.1 |
26.1.2 |
25+ | fabric-26.1.2 |
26.2 |
25+ | fabric-26.2 |
26.3 |
25+ | fabric-26.3 |
功能
玩家数据替换
该模组可以将捐赠玩家的存档数据复制到目标 UUID。处理以下文件:
playerdata/<uuid>.dat— 物品栏、经验值、生命值、位置、维度、末影箱及其他玩家数据stats/<uuid>.json— 统计信息advancements/<uuid>.json— 进度
当 transferPetsAutomatically=true 时,加载的由捐赠者拥有的驯服动物将被重新分配给目标 UUID。
仅当前加载的世界中的实体可以自动转移。未加载区块中的宠物必须在其区块加载后进行处理。
玩家选择 GUI
运行 /uuidswap 打开分页箱子 GUI。每个玩家以玩家头颅显示,包含其名称、UUID、皮肤及在线/离线状态。
宠物所有者替换
手持红石粉,潜行并右键点击驯服动物。从玩家头颅 GUI 中选择新所有者。
命令
/uuidswap
打开 GUI 并将自己的数据替换为所选玩家的数据。
/uuidswap list
列出已知玩家、UUID 及在线状态。
/uuidswap <targetUuid>
将你自己的数据替换为存储在 targetUuid 下的数据。
/uuidswap apply <sourceUuid> <targetUuid>
将存储在 sourceUuid 下的数据替换为存储在 targetUuid 下的数据。此形式旨在供操作员和服务端控制台使用。
在线替换行为
如果源玩家处于在线状态,模组会先断开其连接,等待最终保存,并在下一个服务器刻应用替换。然后玩家可以重新连接并加载新数据。
配置
首次启动时会创建文件 config/uuid-config.json:
{
"playerSwapPermissionLevel": 4,
"petOwnerSwapPermissionLevel": 4,
"backupBeforeOverwrite": true,
"transferPetsAutomatically": true,
"enablePetOwnerSwap": true
}
权限级别为 0(所有人)、1(版主)、2(游戏管理员)、3(管理员)和 4(所有者/完全 OP)。除非你完全理解允许替换存档文件的风险,否则请保持默认级别 4。
备份
启用 backupBeforeOverwrite=true 时,在替换之前会对源玩家的原始文件进行备份:
<world>/uuid_backups/<timestamp>_source-<sourceUuid>_from-<targetUuid>/
构建
Linux/macOS:
./gradlew build
Windows:
gradlew.bat build
Jar 包生成于 build/libs/ 中。将其放入兼容的 Minecraft、Fabric Loader、Fabric API 和 Java 版本的 Fabric 客户端或服务端的 mods 目录中。
开发
对于多个 Minecraft 版本,请将共享的业务逻辑保留在公共模块中,并将特定版本的 Minecraft/Fabric API 代码放在单独的模块中,例如 fabric-1.21.11 和 fabric-26.1.2。每个模块应生成自己的 jar;不应假设一个 jar 能在不兼容的 Minecraft API 之间通用。
安全
始终在世界的副本上进行测试,并保持 backupBeforeOverwrite=true。如果禁用备份,替换存档数据具有破坏性。
许可证
保留所有权利。请参阅 LICENSE.txt。
UUID Swap
UUID Swap is a Fabric mod that replaces Minecraft player save data by UUID and provides an in-game GUI for transferring ownership of tamed pets.
UUID Swap replaces Minecraft player save data by UUID. Fabric and Forge modules share the common file-transfer logic.
Compatibility
| Minecraft | Java | Module |
|---|---|---|
1.20 |
17+ | fabric-1.20 |
1.20.1 |
17+ | forge-1.20.1 (Forge 47.4.23) |
1.20.2 |
17+ | fabric-1.20.2 |
1.20.3 |
17+ | fabric-1.20.3 |
1.20.4 |
17+ | fabric-1.20.4 |
1.20.5 |
21+ | fabric-1.20.5 |
1.20.6 |
21+ | fabric-1.20.6 |
1.21 |
21+ | fabric-1.21 |
1.21.1 |
21+ | fabric-1.21.1 |
1.21.2 |
21+ | fabric-1.21.2 |
1.21.3 |
21+ | fabric-1.21.3 |
1.21.4 |
21+ | fabric-1.21.4 |
1.21.5 |
21+ | fabric-1.21.5 |
1.21.6 |
21+ | fabric-1.21.6 |
1.21.7 |
21+ | fabric-1.21.7 |
1.21.8 |
21+ | fabric-1.21.8 |
1.21.9 |
21+ | fabric-1.21.9 |
1.21.10 |
21+ | fabric-1.21.10 |
1.21.11 |
21+ | fabric-1.21.11 |
26.1 |
25+ | fabric-26.1 |
26.1.1 |
25+ | fabric-26.1.1 |
26.1.2 |
25+ | fabric-26.1.2 |
26.2 |
25+ | fabric-26.2 |
26.3 |
25+ | fabric-26.3 |
Features
Player data replacement
The mod can copy a donor player's saved data to a target UUID. The following files are handled:
playerdata/<uuid>.dat— inventory, experience, health, position, dimension, ender chest, and other player datastats/<uuid>.json— statisticsadvancements/<uuid>.json— advancements
When transferPetsAutomatically=true, loaded tamed animals owned by the donor are reassigned to the target UUID.
Only entities in currently loaded worlds can be transferred automatically. Pets in unloaded chunks must be handled after their chunks are loaded.
Player selection GUI
Running /uuidswap opens a paginated chest GUI. Each player is shown as a player head with their name, UUID, skin, and online/offline status.
Pet owner replacement
Hold redstone dust, sneak, and right-click a tamed animal. Select the new owner from the player-head GUI.
Commands
/uuidswap
Open the GUI and replace your own data with the selected player's data.
/uuidswap list
List known players, UUIDs, and online status.
/uuidswap <targetUuid>
Replace your own data with the data stored under targetUuid.
/uuidswap apply <sourceUuid> <targetUuid>
Replace the data stored under sourceUuid with the data stored under targetUuid. This form is intended for operators and the server console.
Online replacement behavior
If the source player is online, the mod disconnects them first, waits for the final save, and applies the replacement on the next server tick. The player can then reconnect and load the new data.
Configuration
The file config/uuid-config.json is created on first launch:
{
"playerSwapPermissionLevel": 4,
"petOwnerSwapPermissionLevel": 4,
"backupBeforeOverwrite": true,
"transferPetsAutomatically": true,
"enablePetOwnerSwap": true
}
Permission levels are 0 (everyone), 1 (moderators), 2 (gamemasters), 3 (admins), and 4 (owners/full OP). Keep the default level 4 unless you fully understand the risk of allowing save-file replacement.
Backups
With backupBeforeOverwrite=true, the source player's original files are backed up before replacement:
<world>/uuid_backups/<timestamp>_source-<sourceUuid>_from-<targetUuid>/
Build
Linux/macOS:
./gradlew build
Windows:
gradlew.bat build
The jar is generated in build/libs/. Place it in the mods directory of a Fabric client or server running the compatible Minecraft, Fabric Loader, Fabric API, and Java versions.
Development
For multiple Minecraft versions, keep shared business logic in a common module and put version-specific Minecraft/Fabric API code in separate modules such as fabric-1.21.11 and fabric-26.1.2. Each module should produce its own jar; one jar should not be assumed to work across incompatible Minecraft APIs.
Safety
Always test on a copy of the world and keep backupBeforeOverwrite=true. Save-data replacement is destructive if backups are disabled.
License
All rights reserved. See LICENSE.txt.
下载 uuidswap
下载 uuidswap
下载 uuidswap
下载 uuidswap
下载 uuidswap
下载 uuidswap
下载 uuidswap
下载 uuidswap
下载 uuidswap
下载 uuidswap
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
AE2:一款流行的自动化与存储模组
模组
一个基于构建器的 Minecraft 配置库!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
评论 0
登录后参与评分
还没有评论,来抢沙发吧