#Put locate command's result into a different function?

1 messages · Page 1 of 1 (latest)

patent dragon
#

I want to make a compass that point to a specific biome in my datapack. Is there any way to use the coordinates the locate command gives and use it in a give command's lodestone_tracker's XYZ coordinates?

errant burrowBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1731872603:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

neat elk
#

There's not a way to do that, no

harsh peak
#

I think you can't directly get the coordinates from /locate

#

Since using execute store only stores the distance

neat elk
#

You could in theory make an structure that only and frequently spawns in that biome, then use a loot table to make an explorer map that points to that structure, then store the coordinates from that explorer map to the compass's lodestone_tracker component

#

But that is as convuluted as it sounds

patent dragon
patent dragon
harsh peak
#

You couldn't store all three coordinates

#

It's the only single number that really makes sense

patent dragon
patent dragon
errant burrowBOT