lag issues

ive made a datapack for a server and wherever we hit more than 10 people the server starts to die (even if it has 24gb of ram). i was wondering if someone could help with finding a solution. spark profiler relevates the issue as the checking entities. https://spark.lucko.me/53xKp1IORU . if you can help me please dm me, ill send you back the datapack

Continue to help post