Skip to content

Instantly share code, notes, and snippets.

View Gaprix's full-sized avatar

Aleksey Gaprix

  • Russian Federation
View GitHub Profile
@Gaprix
Gaprix / guide.md
Last active August 22, 2025 12:02
Python code to find a player who owns an entity in minecraft

Convert NBT Owner Data to Minecraft Player UUID

This Python script takes Owner data from Minecraft entities, typically found in NBT data, and converts it into a readable UUID format. This is particularly useful for decoding the unique identifier of players who have tamed pets (e.g., wolves, cats) or other entities tied to a specific player.

The script handles:

  • Parsing the 4-element integer array from NBT data.
  • Validating and converting the data to a valid UUID.
  • Outputting the UUID in standard format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

This tool can help Minecraft server administrators and mod developers debug or analyze the ownership of entities.