Skip to main content

Sand Format

Minimal Example

{
"format": 1,
"name": "Flat World",
"author": "PITR",
"root": {
"type": "group",
"key": "root_group",
"children": [
{
"type": "box_brush",
"position": {
"x": 0,
"y": 0,
"z": 0
},
"rotation": {
"x": 0,
"y": 0,
"z": 0
},
"scale": {
"x": 100,
"y": 1,
"z": 100
}
},
{
"type": "spawn_point",
"position": {
"x": 0,
"y": 5,
"z": 0
}
}
]
}
}

Breakdown

KeyTypeRequiredDescription
formatintyesThe format version of the map.
namestringyesThe full display name of the map.
authorstringnoThe author of the map. (Displayed as "Unknown" if empty)
rootWorld ElementyesThe root element of the map.

World Elements

The building blocks that make up a map.

Group

A group is a container for other elements. It can be used to organize your map or to create a hierarchy of elements.

KeyTypeRequiredDescription
typestringyesMust be "group".
keystringnoThe key of the group. Can be used to reference the group, although it is not required.
childrenWorld ElementyesThe children of the group.
activeboolnoWhether the group is active on start. Defaults to true.

Box Brush

A box brush is a solid box that can be used to create walls, floors, ceilings, etc.

KeyTypeRequiredDescription
typestringyesMust be "box_brush".
materialstringnoDefaults to 'generic', must be a material key from Materials
positionVector3yesThe position of the box brush.
rotationVector3noThe rotation of the box brush.
scaleVector3yesThe scale of the box brush.

Spawn Point

A spawn point is a point where players will spawn when they join the game. By default, if there are multiple spawn points, players will spawn at a random one.

If there are no spawn points, players will spawn at Vector3.zero.

KeyTypeRequiredDescription
typestringyesMust be "spawn_point".
positionVector3yesThe position of the spawn point.