
# -> Operate on players
execute as @a[tag=!OverlyRealistic.Player.IsDeity] at @s run \
    function overly_realistic:general/main_loops/main_loop_300t_operate

# -> Add to tanning racks on RNG
execute as @e[type=interaction,tag=OverlyRealistic.Block.TanningRack,tag=OverlyRealistic.Block.TanningRack_Status_Filled,tag=!OverlyRealistic.Block.TanningRack_Status_Filled_Item_Leather,x=0] \
    if predicate overly_realistic:world/tanning_rack/natural_tanning_rng \
    at @s \
    align xyz \
    positioned ~0.5 ~0.5 ~0.5 run \
        function overly_realistic:general/custom_blocks/tanning_rack/tanning_rack_add_to_tanning

# -> Function tag
function #overly_realistic:general_loops/main_300t

# -> Loop (15 sec)
schedule function overly_realistic:general/main_loops/main_loop_300t 300t

# -> If player has a dizzyness value above 0 then operate
#execute if score @s OverlyRealistic.Player.Stats.Dizzyness matches 1.. run \
    function overly_realistic:players/dizzyness/dizyness_operate
