InfoNeeds devcommands
haslocation command
Syntax
What it does
Says whether the zone you're standing in holds a generated location, printing the zone coordinates and a plain YES or NO. Zones are the 64 meter grid the world generator places locations into, so this answers whether anything landed in yours. Needs devcommands.
Cheat commands need the console enabled with the -console launch option, then devcommands typed once. They work in singleplayer or when you host, not on dedicated servers.
Examples
Prints the current zone and whether a location was placed in it.
Related commands