For the complete documentation index, see llms.txt. This page is also available as Markdown.

renderer.drawCylinder

drawCylinder(base, radius, height, segments, color, depth): void

Draws an open-ended cylinder standing on the given position. Useful as a range or selection marker.

Parameters

base

Vec3

The base center position in world coordinates.

radius

number

The radius in blocks.

height

number

The height in blocks.

segments

number

The number of segments (3-256; higher is smoother).

color

Color

The fill color.

depth

boolean

Whether the cylinder is hidden behind blocks.

Returns

void

Last updated