#Get block coordinates
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
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
I wonder if i should use a raycast ?
youre gonna have to use a raycast, raycast from eyes till you hit the block behind it or the block's drop
But it will use a lot of performances ?
its the only way i know of
I can't detect where a blcok is broke ?
not the most consistent, but it works
sadly there is no checks for us to use
theres a laggier but more consistent method
spawn markers around the player at every block and check if the block is air later on
Hmm i see
wait, i totally forgot about scoreboards
you can use scoreboards to detect when you mine a block yeah
!
!
thats how you can know where
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
This library has implemented it for every entity and block including a neat interface
https://github.com/gibbsly/ltos
Though note that replacing all loot tables pretty much breaks compatibility
Yeah i think it is possible but fir this little part of the datapack i think this wil consume too many ressources
Your question, #1271781328857071737 (Get block coordinates), was resolved!
#1271781328857071737 message
10h51m