Online UUID Fix
🟡 Updated this year⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
Preview

🔍 Analysis
- 🏆 #552 of 909 fabric mods in this game by downloads
📋 About This Mod
# Online UUID Fix (https://img.shields.io/modrinth/dt/online-uuid-fix?label=Modrinth&logo=modrinth)](https://modrinth.com/mod/online-uuid-fix) > **Warning:** Always back up your entire world folder before installing this mod or performing any UUID migration. UUID changes affect player data, advancements, stats, and pet ownership. There is no automatic rollback. > **Note:** This mod's code was generated with the assistance of AI (Claude by Anthropic). Use it at your own risk and review the code before deploying on a production server. A Fabric server-side mod for **offline-mode servers** that assigns players their real Mojang/Microsoft UUID instead of the vanilla offline UUID. When a server runs in offline mode (`online-mode=false`), Minecraft generates a UUID from the player's username using a local hash. This means the same player gets a different UUID than they would on an online-mode server, breaking compatibility with player data from online servers and causing issues when players switch usernames. This mod intercepts UUID assignment at login and fetches the real UUID from the Mojang API, falling back to the vanilla offline UUID for non-Mojang accounts or when the API is unreachable. --- ## Requirements - Minecraft **1.21.11** - Fabric Loader **0.18.2+** - Server-side only — does not need to be installed on clients --- ## Installation 1. Download `modid-1.0.0.jar` from the releases or build it yourself (see below) 2. Drop it into your server's `mods/` folder 3. Start the server — no configuration needed The mod will log resolved UUIDs on first login: ``` Resolved Steve -> xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ``` UUID lookups are cached to `config/online-uuid-fix/uuid-cache.json` so the Mojang API is only called once per username. --- ## Building from source Requirements: JDK 21 ((https://adoptium.net) — install the **JDK**, not JRE) ```powershell # Windows — set JDK if you have both JDK and JRE installed $env:JAVA_HOME = "C:\Program Files\Eclipse Adoptium\jdk-21.0.10.7-hotspot" ./gradlew build ``` Output jar: `build/libs/modid-1.0.0.jar` --- ## Migrating an existing server to online UUIDs If your server already has player data stored under offline UUIDs, you need to rename those files to the correct online UUIDs, otherwise players will start fresh. Player data is stored in: ``` world/playerdata/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.dat world/advancements/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.json world/stats/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.json ``` ### Step-by-step migration **1. Find each player's offline UUID (the current filename)** The file is named after the UUID the server assigned. List `world/playerdata/` to see all files. **2. Find the player's real online UUID** Look it up at (https://namemc.com) or use the Mojang API directly: ``` https://api.mojang.com/users/profiles/minecraft/<username> ``` The `id` field in the response is the UUID without dashes — insert dashes in the pattern `8-4-4-4-12`. You can also use the calculator at: ``` https://minecraft.wiki/w/Calculators/Player_UUID ``` **3. Rename the files** With the server **stopped**, rename each file: ``` world/playerdata/<offline-uuid>.dat → world/playerdata/<online-uuid>.dat world/advancements/<offline-uuid>.json → world/advancements/<online-uuid>.json world/stats/<offline-uuid>.json → world/stats/<online-uuid>.json ``` **4. Start the server with this mod installed** New logins will now receive the online UUID, which matches the renamed files. --- ## What migration does NOT cover ### Pets and tamed animals Pet ownership is stored inside the pet's NBT data as the owner's UUID. After renaming player files, pets will still reference the old offline UUID and won't recognize the player as their owner. There are two ways to fix this: **Option A — In-game command (server must be running)** Stand next to the pets and run: ``` /execute as @e run data modify entity @s Owner set from entity @p UUID ``` This reassigns ownership of all wolves within 10 blocks to the nearest player. Replace `wolf` with other pet types (e.g. `cat`, `parrot`, `horse`) and adjust the distance as needed. **Option B — NBTExplorer (server must be offline)** Use **(https://github.com/jaquadro/NBTExplorer)** to edit world NBT data directly: - Search for the old offline UUID string in region files - Replace each occurrence with the new online UUID ### Advancements Advancements are stored in separate `.json` files (not inside `.dat`). These also need to be renamed — see step 3 above. ### Other players' inventories If you need to copy a player's inventory to another player (e.g. merging accounts): 1. Back up both `.dat` files 2. Copy and rename the source player's `.dat` to the target player's UUID 3. The target player will then have the source player's inventory, XP, and position This will not transfer pet ownership — see the note
# Online UUID Fix
[!(https://img.shields.io/modrinth/dt/online-uuid-fix?label=Modrinth&logo=modrinth)](https://modrinth.com/mod/online-uuid-fix)
> Warning: Always back up your entire world folder before installing this mod or performing any UUID migration. UUID changes affect player data, advancements, stats, and pet ownership. There is no automatic rollback.
> Note: This mod's code was generated with the assistance of AI (Claude by Anthropic). Use it at your own risk and review the code before deploying on a production server.
A Fabric server-side mod for offline-mode servers that assigns players their real Mojang/Microsoft UUID instead of the vanilla offline UUID.
When a server runs in offline mode (`online-mode=false`), Minecraft generates a UUID from the player's username using a local hash. This means the same player gets a different UUID than they would on an online-mode server, breaking compatibility with player data from online servers and causing issues when players switch usernames.
This mod intercepts UUID assignment at login and fetches the real UUID from the Mojang API, falling back to the vanilla offline UUID for non-Mojang accounts or when the API is unreachable.
## Requirements
- Minecraft 1. 21. 11
- Fabric Loader 0. 18. 2+
- Server-side only — does not need to be installed on clients
## Installation
1. Download `modid-1. 0. 0.jar` from the releases or build it yourself (see below) 2. Drop it into your server's `mods/` folder 3. Start the server — no configuration needed
The mod will log resolved UUIDs on first login: ``` Resolved Steve -> xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ```
UUID lookups are cached to `config/online-uuid-fix/uuid-cache.json` so the Mojang API is only called once per username.
## Building from source
Requirements: JDK 21 ((https://adoptium.net) — install the JDK, not JRE)
```powershell # Windows — set JDK if you have both JDK and JRE installed $env:JAVA_HOME = "C:\Program Files\Eclipse Adoptium\jdk-21. 0. 10. 7-hotspot"
./gradlew build ```
Output jar: `build/libs/modid-1. 0. 0.jar`
## Migrating an existing server to online UUIDs
If your server already has player data stored under offline UUIDs, you need to rename those files to the correct online UUIDs, otherwise players will start fresh.
Player data is stored in: ``` world/playerdata/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.dat world/advancements/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.json world/stats/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.json ```
### Step-by-step migration
1. Find each player's offline UUID (the current filename)
The file is named after the UUID the server assigned. List `world/playerdata/` to see all files.
2. Find the player's real online UUID
Look it up at (https://namemc.com) or use the Mojang API directly:
```
https://api.mojang.com/users/profiles/minecraft/
You can also use the calculator at: ``` https://minecraft.wiki/w/Calculators/Player_UUID ```
3. Rename the files
With the server stopped, rename each file:
```
world/playerdata/
4. Start the server with this mod installed
New logins will now receive the online UUID, which matches the renamed files.
## What migration does NOT cover
### Pets and tamed animals Pet ownership is stored inside the pet's NBT data as the owner's UUID. After renaming player files, pets will still reference the old offline UUID and won't recognize the player as their owner.
There are two ways to fix this:
Option A — In-game command (server must be running)
Stand next to the pets and run: ``` /execute as @e run data modify entity @s Owner set from entity @p UUID ``` This reassigns ownership of all wolves within 10 blocks to the nearest player. Replace `wolf` with other pet types (e.g. `cat`, `parrot`, `horse`) and adjust the distance as needed.
Option B — NBTExplorer (server must be offline)
Use **(https://github.com/jaquadro/NBTExplorer)** to edit world NBT data directly: - Search for the old offline UUID string in region files - Replace each occurrence with the new online UUID
### Advancements Advancements are stored in separate `.json` files (not inside `.dat`). These also need to be renamed — see step 3 above.
### Other players' inventories If you need to copy a player's inventory to another player (e.g. merging accounts): 1. Back up both `.dat` files 2. Copy and rename the source player's `.dat` to the target player's UUID 3. The target player will then have the source player's inventory, XP, and position
This will not transfer pet ownership — see the note
📊 Mod Details
- Game
- Minecraft Mods
- Author
- mateusfilipe2k2
- Version
- 1.0.0
- Downloads
- 263
- Endorsements
- 2
- Category
- fabric
- Created
- 4/14/2026
- Updated
- 3/25/2026
- Game Versions
- 1.21.11
- Tags
- management, utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does Online UUID Fix support?
The author lists 1.21.11. Other versions may work but are untested by the author.
What is the latest version of Online UUID Fix?
Version 1.0.0, published 2026-03-25 with 263 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await