CosmThe entirety of the Microcosm API outside of game loop functions is exposed under the Cosm namespace. This includes accessing and manipulating the current world, the player cursor, math helpers, and more.
LayerTypeAn enum of the available voxel layer types.
Cosm.LayerType.SolidCosm.LayerType.TransparentDrawModeAn enum of the available voxel drawing modes.
Cosm.DrawMode.CreateCosm.DrawMode.ReplaceCosm.DrawMode.DeleteCosm.DrawMode.SetcurrentWorldThe currently open world.
getVoxelGets the voxel at the given coordinate. Returns a voxel table or nil if no voxel is there.
drawVoxelDraws a single voxel at the given coordinate.