index.mjs 272 B

123456789101112
  1. export default {
  2. manifest: { id: "example-mod", version: "0.1.0" },
  3. hooks: {
  4. onDayStart(ctx) {
  5. ctx.emit("mod:example-day-start", {
  6. modId: "example-mod",
  7. day: ctx.time.get().day,
  8. season: ctx.time.get().season,
  9. });
  10. },
  11. },
  12. };