Wiki 9Minecraft Wiki 9Minecraft

How to Customize Item Clear Chat Warnings

When you change the item cleanup duration or want the chat alerts to match your server's style, you need to edit the announcement text inside the data pack's function files so players receive accurate warnings.

Editing the Main Countdown Alert

If you changed the total duration of the cleanup cycle, your first warning message will still show the old ten-minute announcement unless you update it manually.

1. Open your world save folder and navigate to the data pack's data/darktimer/functions directory.

2. Open darktimerwarn10.mcfunction in a standard text editor.

3. Look at the first line of the file, which contains a tellraw command.

4. Edit the announcement text inside the command so the message matches your newly chosen countdown time.

5. Save and close the file.

Editing Shorter Countdown Messages

The data pack triggers separate files for the final stages of the countdown. You can edit the text in each of these using the same tellraw method on their respective lines:

  • One-Minute Warning: Open darktimerwarn1.mcfunction to change the alert displayed one minute before items vanish.
  • Ten-Second Warning: Open darktimerwarn10s.mcfunction to change the ten-second warning message.
  • Final Clear Message: Open darktimer.mcfunction to edit the announcement shown when dropped items are actually cleared from the ground.

After saving your edits across these files, run /reload in-game for the new chat alerts to take effect.

Join 9Minecraft News & Guides