Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experiment with UUID macros for entity/group selection instead of target selectors #35

Open
TheAfroOfDoom opened this issue Dec 22, 2023 · 1 comment
Labels
datapack Issues pertaining to the datapack enhancement New feature or request

Comments

@TheAfroOfDoom
Copy link
Owner

see discord thread for more details

not a fully fleshed out idea, just a thought. apparently you can use macros to inject UUIDs into where you'd normally place target selectors. something like?:

execute as @e[...] run ...

to

execute as 0-0-0-0-1 run ...

where 0-0-0-0-1 is the UUID of an entity.

@TheAfroOfDoom TheAfroOfDoom added enhancement New feature or request datapack Issues pertaining to the datapack labels Dec 22, 2023
TheAfroOfDoom added a commit that referenced this issue Dec 22, 2023
@TheAfroOfDoom
Copy link
Owner Author

TheAfroOfDoom commented Feb 26, 2024

got this to work:

https://github.com/TheAfroOfDoom/omega-flowey-minecraft-remastered/blob/7ef7e9482c7d4686ca8faab20dcf1ba36d639a0b/datapacks/omega-flowey/data/entity/functions/soul/soul_0/bandaid/locator.mcfunction#L1


this should probably replace all our usages of group.id stuff

only worth the effort if profiling indicates that the group.id system leaves room for noticeable performance improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datapack Issues pertaining to the datapack enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant