Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    World

    MoonPhase

    The MoonPhase enum in @minecraft/server.

    1 min read · 3 sections
    On this page

    Enum in @minecraft/server

    import { MoonPhase } from '@minecraft/server';
    import { MoonPhase } from '@minecraft/server';
    const value: MoonPhase = MoonPhase.FullMoon;
    console.log(value); // 0
    import { MoonPhase } from '@minecraft/server';
    const value = MoonPhase.FullMoon;
    console.log(value); // 0
    Name Value Description
    FullMoon 0
    WaningGibbous 1
    FirstQuarter 2
    WaningCrescent 3
    NewMoon 4
    WaxingCrescent 5
    LastQuarter 6
    WaxingGibbous 7

    World.getMoonPhase