I know how to do this in Bedrock.
In java it should be similar but not totally positive
Recursion only works well if you have a way to escape your command eventually. So you could for instance I have something that is tallying up a scoreboard and then when the scoreboard is finally reached it then kicks out of the command.
I think the problem with yours is it has no way to finally kick out.
Did you try running those commands in a repeating command block I assume?
If you set a redstone block next to one it should empty
This is a mechanic of hoppers. You have to have somewhere for The Hoppers to go for one to empty into the other
The world should shut down after the last person logs. I don't think this should work
As far as I know it is not. I tried to use the tellraw selectors JSON argument. It did go through but it ignored the selectors argument entirely. I could always be wrong but I did try a few different methods. If anyone else knows if it is possible I too would like to know
Np, I literally just tried to tellraw with selectors and it didn't work. I was able to include selector as a separate part of the cmd but the json ignored it and just output the tellraw msg
If you want to do a function with all the ID's presetup and then just assign each player that claims a new house a new ID that will work great too. That's pretty much the way I did it but I was assuming you weren't planning to do functions.
Just make sure you have a radius selector around your target
I do not believe this does
I am literally working on a project to test for kills but have only had luck with making it robust for melee attacks. I will be testing this today!