1. Wiki
  2. /Entities
  3. /minecraft:scheduler

minecraft:scheduler

Don't want to write this by hand? GodCraft sets minecraft:scheduler for you with a switch.Get GodCraft

Overview

minecraft:scheduler is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Runs events at set times of day, like villagers going to work in the morning and to bed at night.

Fields

FieldTypeDefaultDescription
scheduled_eventsListnoneEvents with filters for when they should fire; if several match, the first one listed wins.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:scheduler": {
    "scheduled_events": {}
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more