TheAfroOfDoom / omega-flowey-minecraft-remastered

MIT License
3 stars 1 forks source link

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

Open TheAfroOfDoom opened 9 months ago

TheAfroOfDoom commented 9 months ago

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 commented 7 months ago

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