Skip to main content
Facts allow you to query the state of the world for use in conditions or placeholders.

Fact Library

Time of Day

Returns current world time (0-24000).

Weather

Returns current weather state.

Biome

Returns the biome ID.

Configuration

time_of_day_fact

Returns the world time in ticks.
  • Returns: Long (ticks)
    • 0: Dawn
    • 6000: Noon
    • 18000: Midnight

weather_fact

Returns the current weather state.
world
String
Target world name (optional).
  • Returns: Int
    • 0: Clear
    • 1: Rain
    • 2: Storm

biome_fact

Returns the ID of the biome at the player’s location.
  • Returns: String (Namespace ID, e.g. minecraft:plains)

Usage Example

condition:
  fact: time_of_day_fact
  operator: GREATER_THAN
  value: 13000