
# -> Reset score
scoreboard players reset @s OverlyRealistic.Player.UsedChickenSpawn

# -> Reset adv trigger
advancement revoke @s only overly_realistic:items/place_tanning_rack

# -> Tag player
tag @s add OverlyRealistic.Player.TempPlayer

# -> Operate on marker
execute as @n[type=marker,tag=OverlyRealistic.Block.TanningRackMarker,distance=..64] at @s \
    align xyz \
    positioned ~0.5 ~0.5 ~0.5 run \
        function overly_realistic:general/custom_blocks/tanning_rack/tanning_rack_placed

# -> Tag player
tag @s remove OverlyRealistic.Player.TempPlayer
