@minecraft/server / MoonPhase
Enumeration: MoonPhase ​
Defined in: @minecraft/server/index.d.ts:2339
Enum containing the different phases of the moon based on the current day.,Obtain the current MoonPhase using world.getMoonPhase.
The fullness of the moon controls various mob behaviors such as the number of slimes that spawn in Swamp biomes, the chance skeletons and zombies have to spawn with armor, as well as the chance for spiders to spawn with certain status effects.
Enumeration Members ​
FirstQuarter ​
FirstQuarter:
2
Defined in: @minecraft/server/index.d.ts:2358
Remarks ​
The phase following the Waxing Crescent.
FullMoon ​
FullMoon:
0
Defined in: @minecraft/server/index.d.ts:2346
Remarks ​
The brightest moon phase. During this phase, cats have a 50% chance of spawning as black cats.
LastQuarter ​
LastQuarter:
6
Defined in: @minecraft/server/index.d.ts:2382
Remarks ​
The phase following the Waning Gibbous.
NewMoon ​
NewMoon:
4
Defined in: @minecraft/server/index.d.ts:2370
Remarks ​
The darkest moon phase.
WaningCrescent ​
WaningCrescent:
3
Defined in: @minecraft/server/index.d.ts:2364
Remarks ​
The phase following the Last Quarter.
WaningGibbous ​
WaningGibbous:
1
Defined in: @minecraft/server/index.d.ts:2352
Remarks ​
The phase following the Full Moon.
WaxingCrescent ​
WaxingCrescent:
5
Defined in: @minecraft/server/index.d.ts:2376
Remarks ​
The phase following the New Moon.
WaxingGibbous ​
WaxingGibbous:
7
Defined in: @minecraft/server/index.d.ts:2388
Remarks ​
The phase following the First Quarter.