I own a server, and have built a large indoor structure at spawn. I would like new players to spawn inside this structure. Upon research, Minecraft automatically spawns all players at the highest available y
position, meaning players will spawn on my roof instead of inside. I've tested this myself; used /setworldspawn
in the center of the building, and used /kill
on myself a bunch of times. About half the time I spawned on the roof, the other half outside my building.
I would like to target all players above y=69
in a 60 block radius and teleport them to x=-62,y=64,z=-245
. I have a hopper clock and command block already set up with everything except the ability to target everyone on my roof:
What do I want to put in the command block to teleport anyone on my roof into the building?