scoreboard objectives add hydration dummy
scoreboard players add @a hydration 0
scoreboard players set @a[scores={hydration=101..10000},m=!c] hydration 100
scoreboard players set @a[scores={hydration=-10000..0},m=!c] hydration 0
scoreboard players set @a[scores={hydration=..-1},m=!c] timer 0