Skip to content

world.getWeather

Returns the shared weather type.

Renamed in 0.28 from world.weather; see renamed names.

world.getWeather(): number

None.

The game’s weather type, 0 to 22.

gamemodes/my-mode.ts
import { server, world } from "nativemp";
server.log(`Weather: ${world.getWeather()}`);