
What this datapack does is removing blindness and darkness from every player every 0.5 seconds.
It also introduces 2 commands:
/function nightvision:true (gives infinite night vision without particles to the player executing the command)
/function nightvision:false (removes night vision from the player executing the command)
V2 of datapack
Before this version, if you used /function nightvision:true, and you died, or for whatever reason you were to lose the night vision effect, you had to do the command again.
Now, if you die, or if you lose night vision for any reason, you will instantly get it again, making /function nightvision:false the only way to stop night vision.