Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Data Pack
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Disclaimer
I did not create this data pack. I simply uploaded this to modrinth for convenience. This does not violate copyright, as the original data pack is licensed under The Unlicense lincense. I'm also aware that this library has already been uploaded to modrinth, but it does not seem to be maintained anymore.
About Get UUID (gu)
This library data pack allows for the conversion UUIDs in an integer-array format (e.g. [I; -1401042019, -1289797294, -1229027734, 88525518]
) to hexadecimal (e.g. ac7dcb9d-b31f-4152-b6be-866a0546cace
).
How to use
- function
gu:generate
- Stores the hexadecimal UUID of the executing entity in the NBT storagegu:main out
- function
gu:convert
- Converts the decimal UUID that is input as a function macro argument (e.g.{UUID:[I; -1401042019, -1289797294, -1229027734, 88525518]}
) to hexadecimal and stores it in the NBT storagegu:main out
Examples
-
/function gu:generate
-
- Stores your hexadecimal UUID in the storage
gu:main out
, retreivable using/data get storage gu:main out
- Stores your hexadecimal UUID in the storage
-
/execute as @n[type=cow] run function gu:generate
-
- Stores the hexadecimal UUID of the nearest cow in the storage
gu:main out
, retreivable using/data get storage gu:main out
- Stores the hexadecimal UUID of the nearest cow in the storage
-
/function gu:convert {UUID:[I; 1, 2, 3, 4]}
-
- Converts the given integer array to a hexadecimal UUID, retreivable using
/data get storage gu:main out
- Converts the given integer array to a hexadecimal UUID, retreivable using