world.getWeather
Returns the shared weather type.
Renamed in 0.28 from world.weather; see renamed names.
Signature
Section titled “Signature”world.getWeather(): numberParameters
Section titled “Parameters”None.
Returns
Section titled “Returns”The game’s weather type, 0 to 22.
Example
Section titled “Example”import { server, world } from "nativemp";
server.log(`Weather: ${world.getWeather()}`);Related
Section titled “Related”world.setWeather: change itworldStateChanged: it changed