Datapack with tick.json

Hello, the problem is that I made a datapack that gives me poison when I am not in water for 15 minutes. the problem is that with tick.json it checks this every tick and gives me poison every time again which actually does mean that I don't take damage for some reason. I don't know what to do haha

Continue to help post