> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/BunnyNabbit/voxel-telephone/llms.txt
> Use this file to discover all available pages before exploring further.

# Shape Commands: Cuboid, Line, Triangle, and Sphere

> How to use Voxel Telephone's shape-drawing commands — /cuboid, /line, /AbnormalTriangle, and /SphereSlow — including modes and parameter details.

Shape commands let you draw geometric volumes and outlines across your 64×64×64 voxel space in one operation. Each command is interactive: the server will ask for a block type and one or more position markers. Supply arguments up front to skip some of the prompts.

<AccordionGroup>
  <Accordion title="/cuboid — fill or outline a rectangular volume">
    **Aliases:** `/z`

    Draws a cuboid (rectangular box) defined by two corner positions. With no arguments, the block is inferred from your held block and the server asks you to mark two positions.

    ```
    /cuboid
    /cuboid <block> [mode]
    ```

    **Examples:**

    ```
    /cuboid 9 hollow
    /cuboid hand walls
    ```

    ### Modes

    The optional mode parameter changes the appearance of the resulting cuboid. The default mode is `solid`.

    | Mode     | Result                                                                                                                                     |
    | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
    | `solid`  | Fills the entire volume with the chosen block.                                                                                             |
    | `hollow` | Places blocks only on all six outer faces, leaving the interior empty.                                                                     |
    | `walls`  | Places blocks only on the four vertical side faces — no floor or ceiling.                                                                  |
    | `holes`  | Fills the volume in a checkerboard pattern: every block at a position where `(x + y + z)` is even is placed, and the rest are left as air. |

    <Note>
      To use a mode, you must also supply a block ID or `hand`. For example: `/cuboid hand hollow`.
    </Note>
  </Accordion>

  <Accordion title="/line — draw a straight line between two points">
    **Aliases:** `/l`, `/ln`

    Draws a single-block-wide line between two positions using a 3D Bresenham-style algorithm. The line always passes through the start and end points exactly.

    ```
    /line
    /line <block>
    ```

    Mark the start position, then the end position. The server places blocks at each computed step along the line.

    <Tip>
      Lines work in any direction — horizontal, vertical, or diagonal through all three axes at once.
    </Tip>
  </Accordion>

  <Accordion title="/AbnormalTriangle — fill a triangle through three points">
    **Aliases:** `/triangle`, `/tri`

    Draws a filled triangle defined by three arbitrary positions. The command finds the longest edge of the triangle and sweeps lines from it toward the opposite vertex to fill the shape.

    ```
    /AbnormalTriangle
    /triangle
    /tri
    ```

    Mark three positions in any order. Because the fill algorithm sweeps from the longest edge, the resulting triangle may have small holes at certain orientations — hence "abnormal."

    <Note>
      The triangle is filled with individual block-wide lines. In some orientations, gaps of one block may appear along the edges. This is expected behavior.
    </Note>
  </Accordion>

  <Accordion title="/SphereSlow — draw a solid sphere">
    **Aliases:** `/sphere`, `/sp`

    Draws a solid sphere. You mark the center point first, then an offset point — the radius is computed as the largest axis-aligned distance between the center and the offset.

    ```
    /SphereSlow
    /sphere
    /sp
    ```

    The command tests every block in the bounding cube against the sphere equation `x² + y² + z² ≤ r²` and places a block wherever the condition is satisfied.

    <Warning>
      The radius is capped at **32 blocks** regardless of how far apart the center and offset points are. Large spheres near this limit can place tens of thousands of blocks and may cause a brief pause while the level reloads.
    </Warning>
  </Accordion>
</AccordionGroup>
