Skip to main content
edited title
Link
SevenSidedDie
  • 33.3k
  • 17
  • 105
  • 170

How do I target only players who are at a certain height?

match title to question; edited tags
Link
SevenSidedDie
  • 33.3k
  • 17
  • 105
  • 170

How do I target only players inwho at a non-radial mannercertain height?

Source Link
Gigazelle
  • 14.2k
  • 11
  • 65
  • 114

How do I target players in a non-radial manner?

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?