execute if score .path camera matches 1.. run item replace entity @s weapon.mainhand with paper[item_model="minecraft:blank",custom_name='" "',equippable={slot:"mainhand",camera_overlay:"custom/overlay/bars"}] 1

execute if score .path camera matches 1.. run gamemode spectator @a
execute if score .path camera matches 1.. run spectate @n[type=item_display,tag=camera] @s
execute if score .path camera matches 1.. rotated as @n[type=item_display,tag=camera] run rotate @s ~ ~
execute if score .path camera < .path_max camera run scoreboard players add .path camera 1
execute if score .path camera >= .path_max camera run function main:mechanics/camera/end

##paths
$function main:mechanics/camera/paths/$(folder)/$(id)