#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

scoreboard players add $id id 1
scoreboard players operation @s id = $id id

summon minecraft:marker ~ ~ ~ {Tags:["player_indicator"]}
scoreboard players add @e[tag=player_indicator] id 0
scoreboard players operation @e[tag=player_indicator,scores={id=0}] id = $id id