Trying to detecting a block break by a player (again)
I have been trying to do this for a while and without succession I have no choice but to request help here again. First, I tried adding a scoreboard for every item in minecraft. That turned out to be too laggy for minecraft, but I have been sent a github link which leads to a datapack that detects block breaking and entity kills. It stores information in a storage called ltos:main and it shows the UUID and the block name after a player in survival has broken something (Correct me if I'm wrong). I have searched far and wide for a solution to this problem, I absolutely could not find a solution to this.
- I tried to find what was happening in the datapack but to no success because I am a beginner.
- I tried to add a score with a function whenever the dummy item spawned on the floor because that was how the datapack found out who and what broke the block, but again I failed.
- I tried ChatGPT as a last ditch effort (you don't need to do the /info thing I already know) and it told me to add my function which gave the score to the player to the block_broken.json (which did not work unsurprisingly)
I have just have been very frustrated at this project i started over a month ago and I am just desperate to finish it.
Here's the link to the Github Datapack I am using: https://github.com/gibbsly/ltos