DISCLAIMER I do not claim to own or have created this datapack. I am simply distributing it from its original source: guthub. This does not violate any copywrite as the project is licensed under The Unlicese. This lisence allows for:
- Commercial Distibution
- Free Distribution
- Modification
- Private Use
The software is dedicated to the public domain and is free for anyone to do this. I have uplaoded this to moderinth for the purpose of allowing it to be used as a dependancy in projects and be able to be downloaded by DPM (The Datapack Package Manager) which a tutorial of can be found here.
Get UUID (gu) - What Is It?
gu is a simple UUID (Unique Universal Identifier) converison library pack that allows for getting the hexidecimal version of the UUID, typically found in most programs and can be generated for general use here. This is the same style of UUID as you will see when looking at an entity and typing a command that takes an entity (e.g. kill bdee7f12-4539-444f-8ed0-8b67ae8ffefd
). This is required as even though /data get entity bdee7f12-4539-444f-8ed0-8b67ae8ffefd UUID
is a thing, it returns like this: [1362246528346, 32149263498236, 2342349958666, 2346982349797]
which is not usable in macro commands that affect entities.
Get UUID (gu) - How to use it?
- Install the datapack in the conventional way or through dpm.
- Reload/reboot the world
- execute as the entity you wish to convert the UUID of into hexidecimal notation
function gu:generate
- If you have a hexideimal UUID and you wish to convert it for a summon command or somthing where the entity is not visible run
function gu:convert {UUID:"bdee7f12-4539-444f-8ed0-8b67ae8ffefd"
or use a storage where the uuid is stored in a tag called:UUID
- After performing either step 3 or 4 the converted UUID will be in
gu:main out