Wandering trader spawns

Hey everyone!

I'm currently in the process of updating a 1.16 datapack to the newest version of minecraft, and in the process i want to make it server compatible.

Now i have noticed that for some odd reason both do not seem to work, and i can't seem to figure out why.

I've set it up as follows:

└───data
    ├───minecraft
    │   └───tags
    │       └───functions
    └───tradercycle
        ├───advancements
        └───functions

with the following files: Load.json https://paste.helpch.at/zejedegubu.bash

Traderspawn.json https://paste.helpch.at/edicabayem.bash

load.mcfunction: https://paste.helpch.at/ilurodikeb.csharp

spawn.mcfunction: https://paste.helpch.at/gakuwaleka.graphql

The intention of this datapack is to override the serverside/singleplayer side of how wandering traders spawn and have them spawn every 30~ish minutes for each player. This however doesn't work until the scoreboard of the players is set to 0

I'm unsure as to how to fix this though.

Any help would be greatly appreciated!

Continue to help post