Skip to main content

environment.get_state

Overview

  • Returns current in-game environment state: time, day of week, season, weather, temperature, disaster, calendar event.

Metadata

FieldValue
DisplayGet Environment State
Categoryenvironment
AccessPublic
ScopeB2Authority
Tags
Aliasesenvironment.get_info, world.get_state

Parameters

  • This command takes no parameters.

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
hourintyesCurrent hour (0-23)
minuteintyesCurrent minute (0-59)
dayintyesCurrent day
day_of_weekstringyesDay of week name
is_night_timeboolyesWhether it is night time
seasonstringyesCurrent season
weatherstringyesCurrent weather
temperatureintyesCurrent temperature
is_disasterboolyesWhether a disaster is active
calendar_eventstringyesActive world calendar event id (empty if none)
season_lengthintyesConfigured season length

Usage

await inzoi.cli.execute('environment.get_state');