execute store result score cur_day cur_day run time query day
execute unless score cur_day cur_day = last last_day run function scavenger:on_new_day
execute if score cycle scav_cycle matches 1..2 if score state scav_state matches 0 run function scavenger:spawn
