# How to Edit Minecraft Player Data with NBTExplorer (/docs/minecraft/edit-player-data)



NBTExplorer lets you edit individual player data files to fix issues like players stuck in the void, corrupted inventories, or wrong game modes.

Editing Player Data [#editing-player-data]

<div className="fd-steps">
  <div className="fd-step">
    Find the player's UUID [#1-find-the-players-uuid]

    Go to [namemc.com](https://namemc.com/) and search for the player's username to find their UUID.
  </div>

  <div className="fd-step">
    Download the player data file [#2-download-the-player-data-file]

    Access the [XGamingServer panel](https://panel.xgamingserver.com), stop your server, go to `Files`, navigate to `/world/playerdata/`, and download `[UUID].dat`.
  </div>

  <div className="fd-step">
    Open with NBTExplorer [#3-open-with-nbtexplorer]

    Install and open NBTExplorer, then open the downloaded `.dat` file.
  </div>

  <div className="fd-step">
    Make your edits [#4-make-your-edits]

    Common fixes:

    | Tag                       | Description             | Fix                                            |
    | ------------------------- | ----------------------- | ---------------------------------------------- |
    | `Pos` (list of 3 doubles) | Player position X, Y, Z | Change Y to 100 to fix stuck-in-void           |
    | `Inventory` (list)        | Player inventory items  | Delete entries to clear items                  |
    | `EnderItems` (list)       | Ender chest contents    | Delete entries to clear ender chest            |
    | `playerGameType`          | Game mode               | 0=Survival, 1=Creative, 2=Adventure            |
    | `Health`                  | Health points           | Set to 20.0 for full health                    |
    | `foodLevel`               | Hunger level            | Set to 20 for full hunger                      |
    | `XpLevel`                 | Experience level        | Change to desired level                        |
    | `Dimension`               | Current dimension       | Change to move player to a different dimension |
  </div>

  <div className="fd-step">
    Save and re-upload [#5-save-and-re-upload]

    Save in NBTExplorer, then upload the modified `.dat` file back to `/world/playerdata/` via `Files`.
  </div>

  <div className="fd-step">
    Start your server [#6-start-your-server]

    > ⚠️ **Warning:** The server must be stopped while editing player data. Editing while the server is running will be overwritten.

    > 💡 **Tip:** If you just need to clear a player's inventory, using `/clear [player]` in `Console` is much easier (player must be online).

    See also: [Reset Player Data](/docs/minecraft/reset-player-data) | [Edit Level Data](/docs/minecraft/edit-level-data)

    If you need help, join our [Discord](https://discord.xgamingserver.com/).
  </div>
</div>
