Advancement granting not happening reliably
I am checking if the player hitbox is in water by using Enter_Block trigger in an Advancement, It works, but randomly, rarely it doesn't grant the advancement in time. I will give all the files that is in the process under here:
Enchantment Revokes the Advancement at 18th tick(19th is what it was originally but it was worse) and makes a scoreboard objective 0, On 19th Tick the check is used to see if you are in water and if you are, that scoreboard objective is set to 1, and checked in 20th tick if it is true with a predicate.
Sometimes check returns fail. But just sometimes, like around 2-4% off the time from my test.
Continue to help post