Skip to content

Enums Module

STBrian edited this page Nov 9, 2026 · 1 revision

The Enums module provides standardized enumeration constants used across LunaCore APIs to identify entity state flags, weather conditions, and other fixed game options.

Types

EnumItem Base type for all enum item instances
EntityState Entity synchronization state flags
WeatherType World weather condition types

Enumerations

Enums.EntityState Table of all entity state flags
Enums.WeatherType Table of all weather state options

Example

-- Check if player is gliding with Elytra
if Game.LocalPlayer.getState(Enums.EntityState.ElytraFly) then
    Core.Debug.message("Player is gliding!")
end

-- Set world weather to Thunderstorm
Game.World.Weather = Enums.WeatherType.Thunder

Clone this wiki locally