▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/uuidswap
uuidswap

uuidswap

Copy/replace player save data by UUID, with pet owner transfer support.

Оцените первым
19
0

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.

Compatibility

  • Minecraft: 26.1.2
  • Fabric Loader: 0.19.3 or newer
  • Fabric API: 0.155.2+26.1.2
  • Java: 25 or newer
  • Mod ID: uuid

Minecraft 26.1.2 uses the new unobfuscated development setup and requires Java 25.

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 data
  • stats/<uuid>.json — statistics
  • advancements/<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 будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.2.x26.1.x1.21.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Ссылки

Создатели

Детали

Лицензия:
Опубликован:1 месяц назад
Обновлён:1 месяц назад
Главная