Because the data pack works directly inside your world files using standard .mcfunction scripts, changes you make in a text editor will not automatically appear in a running world until Minecraft reloads the data pack.
Verifying Your File Edits
Before reloading your world, make sure your edits in data/darktimer/functions follow vanilla function rules so the timer does not break:
- Check the Seconds Unit: In
darktimerwarn10.mcfunction, ensure the number on the last line still ends with a lowercases(such as the default540s) so Minecraft reads the delay in seconds. - Check Quotes and Brackets: When changing the announcement text inside the
tellrawcommand on the first line ofdarktimerwarn10.mcfunction,darktimerwarn1.mcfunction,darktimerwarn10s.mcfunction, ordarktimer.mcfunction, keep the surrounding quotation marks and JSON brackets intact. - Save All Files: Confirm you have saved your changes in your text editor before returning to the game.
Reloading the Data Pack
1. Return to your open Minecraft world (or server console) with cheats or operator permissions enabled.
2. Open the chat window and run the vanilla command /reload.
3. Your updated item deletion countdown and custom announcement messages will now control the next cleanup cycle.