Weekday

Description

Matches when the world's day of the week is one of the listed days.

This condition checks the world of the entity. It never matches in the Nether or the End.

The day names come from week-days in calendar.yml, by default Monday to Sunday. The condition is false while the calendar is off (enabled: false or an empty months list) and in a world with no date.

Attributes

Attribute Aliases Description Default
day d, weekday Day names, separated by commas, any one is enough. Not case sensitive. required

Examples

WeekendMarket:
  Conditions:
  - weekday{day=Saturday,Sunday} true
  Skills:
  - message{m="The market is open today."} @Self

Runs on in-game Saturdays and Sundays.

MondayReminder:
  TargetConditions:
  - weekday{weekday=Monday} true
  Skills:
  - message{m="A new week begins."}

RemindNearbyPlayers:
  Skills:
  - skill{s=MondayReminder} @PlayersInRadius{r=30}

Messages only the nearby players whose world is on a Monday.

RestDay:
  Skills:
  - message{m="Nobody works today."} @Self ?weekday{d=Sunday}

Inline, it tests the caster.

Aliases

  • dayofweek
Updated Nov 11, 2026