How to make a player's potion effect level to be equal to a score on a scoreboard, efficiently?
So I heard they put a bunch more useful stuff into datapacks like variables, is there an easy way to set a player's for example regen level to be equal to a score on a scoreboard without having to do a bunch of execute if statements for every single score that can happen? Is there a way to use variables for this?