
# -> Apply tag
tag @s add OverlyRealistic.World.SpawnLocation

# -> Set data
data modify entity @s data.name set value "World Spawn Location"

# -> Store position
data modify storage overly_realistic:general world_spawn_location set from entity @s Pos

execute store result score #or.world.spawn_location_x OverlyRealistic.General.ArbitraryData run \
    data modify storage overly_realistic:general world_spawn_location_x set from storage overly_realistic:general world_spawn_location[0]
execute store result score #or.world.spawn_location_y OverlyRealistic.General.ArbitraryData run \
    data modify storage overly_realistic:general world_spawn_location_y set from storage overly_realistic:general world_spawn_location[1]
execute store result score #or.world.spawn_location_z OverlyRealistic.General.ArbitraryData run \
    data modify storage overly_realistic:general world_spawn_location_z set from storage overly_realistic:general world_spawn_location[2]

data modify storage overly_realistic:general world_spawn_pos_x set from storage overly_realistic:general world_spawn_location[0]
data modify storage overly_realistic:general world_spawn_pos_y set from storage overly_realistic:general world_spawn_location[1]
data modify storage overly_realistic:general world_spawn_pos_z set from storage overly_realistic:general world_spawn_location[2]
