Date Time Display

Shows the in-game date, time, and weekday at the top of the screen!

4,05k

Date Time Display

⚠️ IMPORTANT: USAGE GUIDELINES If you're planning to use this on a server or modpack, please refer to: https://gamedash43.github.io/dash-mcl-licenses/#usage

Title Text "Date/Time Display"

This add-on displays in-game time, weather conditions, weekdays, and dates using a day tracker that accurately mirrors real-world dates.

📜 Features

- Display Options: - Tracks days, months, years, leap years, and weekdays exactly like the real world. - April 6 2025 in-game lands on the same weekday as April 6 2025 IRL. - The date is recalculated every tick, so `/time set` or lag can’t throw it off. - Display Options: - Calculates movable holidays like Easter, Lunar New Year, and Thanksgiving with the same formulas used in astronomy software. - Ready-made hooks let addon packs fire events on any holiday. - Display Options: - Display Options: standard date + weather summary. - Display Options: distance from entrance portal. - Display Options: live Elytra flight-time estimate until next repair (Unbreaking factored in). - Every bar is per-player, so what you see never collides with what your friends see. - Display Options: - Sneak while looking straight down with a clock to show/hide your bossbar instantly—no commands needed. - Display Options: - Shows clear/rain/thunder, biome temperature class. - Display Options: - At dawn (and on join) you’ll get a one-liner with the full date, total day count, and any holiday emoji. - Display Options: - An optional resource-pack skin hides the bossbar frame for players who prefer a minimalist look.

⚙️ Configuration

- Player Birthday Event: - Use the config file located in `data/dash.date/function/config.mcfunction` to set your initial dates. Follow the instructions in the file carefully before starting a new world. - Player Birthday Event: - Set the dates using the following scoreboard variables (all in the scoreboard `dash.date_arc`): - `%start.year` and `%display.year` for the year. - `%ani.month` and `%display.month` for the month. - `%ani.date` and `%display.date` for the day. - After updating these values, run `/function dash.date:update` to let the system self-correct. - Player Birthday Event: Read the instructions in the config file carefully before creating a new world if you plan on modifying it. - Player Birthday Event: - Set your birthday for a special event using: - `/scoreboard players set @s dash.date_bd.month [birthday month]` - `/scoreboard players set @s dash.date_bd.date [birthday date]`

🌟 Planned Details

- This add-on was designed as an extremely accurate calendar system base with no extra items added to the game. - In development is an additional add-on for this pack that will add a placable calender block that displays the current month, date, and upcoming holidays in a vanilla style. - Future plans include events such as Christmas presents, dynamic Easter egg hunts, and other holiday-themed activities within the add-on for this pack.

❓ FAQ

Explained in nerd terms.

Using division and modulo operations, the datapack converts game ticks into a 12-hour clock while computing the day-of-year by summing monthly offsets and adjusting for leap years using the standard 4-100-400 rule. Weekdays are determined with a variant of Zeller’s Congruence, and the daycounter algorithm calculates an absolute day value by summing full-year contributions (with leap day adjustments) and the current day-of-year before subtracting a defined start date. In addition, Easter is determined using a classical algorithm that applies modulo and floor division operations to compute the correct month and day, and the lunar new year is approximated by offsetting the year from 1900, taking the remainder modulo 19, and mapping that result to a specific day-of-year.

What special events are available?

Special events include: - World Anniversary: Chat message and firework show at midnight (if outdoors). - World Anniversary: Fireflies appear on join and wake up. - World Anniversary: Hearts appear when you join and wake up. - World Anniversary: Green particles appear when you join and wake up. - World Anniversary: Green and White particles appear when you join and wake up. - World Anniversary: Autumn leaves appear on join and wake up. - World Anniversary: Snow appears when you join/wake up. - World Anniversary: Happy birthday song and message to all players. - World Anniversary: Firework show and commemorative message on the world's creation date. Other events, like New Year's Day and April Fools, are planned for future updates.

<details> <summary>Spoiler</summary>

- Halloween: A random jumpscare during the day.

</details>

Does this add-on track real-world time?

No, it uses an in-game day tracker based on real-world calendar logic.

Can I hide the boss bar?

Yes, you can use the optional resource pack to hide the boss bar and display text at the top of the screen.

How do I set up the birthday event? 🎂

Use the commands provided to set your birthday: - Set the month: `/scoreboard players set @s dash.date_bd.month [birthday month]` - Set the date: `/scoreboard players set @s dash.date_bd.date [birthday date]` Each player will then receive a special birthday event.

How do I uninstall this add-on?

Just run the command `/function dash.date:uninstall`.

I'm updating from an old version. What do I need to do?

If you're updating from a previous version, you must set the start year with this command: `/scoreboard players set %start.year 0` and `/function dash.date:update`

ADS