
# -> Get oxygen bonus
execute store result score #or.global OverlyRealistic.General.ArbitraryData run \
    attribute @s oxygen_bonus get 1000

# -> Add to underwater endurance
execute store result storage overly_realistic:temp_values generic_value_0 int 1 run \
    scoreboard players add #or.global OverlyRealistic.General.ArbitraryData 100

# -> Set attribute
function overly_realistic:players/misc/water/set_underwater_endurance with storage overly_realistic:temp_values

# -> Reset underwater time
scoreboard players set @s OverlyRealistic.Player.UnderwaterTime 0
