Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / Gamemode

Variable: Gamemode โ€‹

const Gamemode: object

Defined in: core/values/enums.ts:5

The four game modes. Use Gamemode.SURVIVAL; the type is the union of their ids.

Type Declaration โ€‹

ADVENTURE โ€‹

readonly ADVENTURE: "adventure" = "adventure"

CREATIVE โ€‹

readonly CREATIVE: "creative" = "creative"

SPECTATOR โ€‹

readonly SPECTATOR: "spectator" = "spectator"

SURVIVAL โ€‹

readonly SURVIVAL: "survival" = "survival"

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.