Skip to main content

nearbyGrids

List every grid overlapping a chunk-coordinate bounding box: its gridId, its bounds and the caller's own permission keys on it. Player-safe: another user's keys need nearbyGridPermissions (app admin). The grid that decides a voxel edit in a chunk is the smallest box covering it (the lower gridId on a tie), and the edit needs update_voxel_data there. Requires an app-scoped token for the same app.

nearbyGrids(
input: NearbyGridsInput!
): [NearbyGrid!]!

Arguments​

nearbyGrids.input ● NearbyGridsInput! non-null input​

The app and the low/high chunk corners of the region to scan (corners are normalized).

Type​

NearbyGrid object​

A grid overlapping a scanned region (returned by nearbyGrids): its bounds and the caller's own permission keys on it.