Trigger Commands when leaving spawn
I wanted to run some commands as son as any player leaves a specific area (5x5 at 0, 55, 0) for the first time.
So it should only trigger once.
How can I achive that?
I thought about using an advancement that when it triggers removes itself so no one can trigger it again, but I could not get this to work at all.
(I have just basic knowledge about how datapacks work.)
(1.21)
Continue to help post