Documentation Index
Fetch the complete documentation index at: https://mintlify.com/BunnyNabbit/celaria-formats/llms.txt
Use this file to discover all available pages before exploring further.
Block is the most commonly used map object in Celaria. It represents a solid rectangular prism — the fundamental building block of every level. Blocks can serve as plain geometry, goal markers, jump pads, speed surfaces, ice surfaces, or checkpoints, all controlled by the type property. Block extends Instance and has an instanceId of 0.
Constructor
The surface type of the block. Must be one of the values in
Block.types. Defaults to Block.types.plain (0).Properties
World-space position inherited from
Instance. Defaults to [0, 0, 0]. Z is the gravity axis.The dimensions of the block along each axis. Defaults to
[2, 2, 2].Rotation of the block in the horizontal plane, in radians. Defaults to
0.The surface type of the block. Use
Block.types.* constants to set this value. See the block types table below for the full list.CelariaMap may override type during map serialization for checkpoint and goal blocks. Avoid relying on type being the value you set after a round-trip through serialization if the block is positioned as a checkpoint or goal.Medal time thresholds associated with this block, measured in ticks. This field is populated and required by
CelariaMap for blocks with type Block.types.checkpoint or Block.types.goal. It is undefined for all other block types.| Key | Type | Description |
|---|---|---|
platinum | number | Platinum medal threshold in ticks |
gold | number | Gold medal threshold in ticks |
silver | number | Silver medal threshold in ticks |
bronze | number | Bronze medal threshold in ticks |
Getters
Always returns
0. Used during binary serialization to identify this object as a Block.Block types
Block.types is a static object containing named constants for all supported block surface types.
| Constant | Value | In-game appearance | Behavior |
|---|---|---|---|
Block.types.plain | 0 | Default | Standard level geometry with no special properties |
Block.types.goal | 1 | Red | Finish block — the space above it is the actual goal zone |
Block.types.jump | 2 | Green | Players jump higher when touching this surface |
Block.types.speed | 3 | Yellow | Speeds up players who walk on this surface |
Block.types.ice | 4 | Blue | Difficult to walk on and climb; slippery physics |
Block.types.checkpoint | 5 | Red/purple | Map checkpoint; requires medalTimes to be set |
Examples
Creating blocks of different types
Adding a checkpoint with medal times
Filtering blocks by type
Related
Instance
Abstract base class that Block extends.
Map objects guide
How to add and configure map objects.
Types reference
Vector3 and MedalTimes type definitions.
CelariaMap
Finalized map format that serializes blocks and medal times.