Перейти к основному содержимому

Calendar Event Fact

The Calendar Event Fact checks the status of scheduled events defined in a minecraft_time entry (standard TypeWriter time entry). Useful for holiday events or daily schedules.

Configuration

timeEntryString

ID of the minecraft_time entry to query.

eventIdString

ID or name of the event (or next / today).

modeEnum

The condition logic to check.

  • EXISTS: Event is defined.
  • UPCOMING: Event starts within maxDaysUntil.
  • TODAY: Event is active today/tomorrow (0 days left).
  • ACTIVE: Event is currently running.

maxDaysUntilInt

Lookahead window in days for UPCOMING mode.

condition:
type: fact_condition
fact: calendar_event_fact
timeEntry: "server_calendar"
eventId: "christmas_event"
mode: ACTIVE
operator: EQUALS
match: 1