on join:
set {susamak.%player%} to 600
every 1 second:
set {players::*} to all players
loop {players::*}:
if {susamak.%loop-value%} is greather than 0:
remove 1 from {susamak.%loop-value%}
on consume a water bottle:
set {susamak.%player%} to 600
every 2 minutes:
set {players::*} to all players
loop {players::*}:
remove 0.5 from player's health