Repository navigation
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.
| EnumItem | Base type for all enum item instances |
| EntityState | Entity synchronization state flags |
| WeatherType | World weather condition types |
| Enums.EntityState | Table of all entity state flags |
| Enums.WeatherType | Table of all weather state options |
-- 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