#Get block coordinates

1 messages · Page 1 of 1 (latest)

earnest ginkgo
#

Hi, i would like to know how can i get the coordinates of a block that i just broke or the block i'am looking right now ?
I will choose the more efficient and simple.

brazen anvilBOT
#

<@&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:1723288498: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

#
⚠️ You already have a question open!

Don't forget to close or resolve your old questions once you're done with them. It makes our lives much easier! :D

Open question: #1270038933668888657

earnest ginkgo
#

I wonder if i should use a raycast ?

weak spear
earnest ginkgo
weak spear
earnest ginkgo
#

I can't detect where a blcok is broke ?

weak spear
#

not the most consistent, but it works

weak spear
weak spear
#

spawn markers around the player at every block and check if the block is air later on

earnest ginkgo
#

Hmm i see

weak spear
#

you can use scoreboards to detect when you mine a block yeah

earnest ginkgo
#

yes

#

But i can't know where ?

weak spear
#

thats how you can know where

steel nest
#

You could change the loot table of that block and check for a special item it drops

#

Then you know exactly where it broke and using loot table functions you can even know who broke it and how and stuff

#

Though note that replacing all loot tables pretty much breaks compatibility

earnest ginkgo
#

Yeah i think it is possible but fir this little part of the datapack i think this wil consume too many ressources

brazen anvilBOT
#
Question Closed

Your question, #1271781328857071737 (Get block coordinates), was resolved!

Original Message

#1271781328857071737 message

Duration open

10h51m