World Facts
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).
Configuration
time_of_day_fact
Returns the world time in ticks.
- Returns:
Long(ticks)0: Dawn6000: Noon18000: Midnight
weather_fact
Returns the current weather state.
world — String
Target world name (optional).
- Returns:
Int0: Clear1: Rain2: 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