Mineuniverse
Resource Packs
Schedule Shutdown

Schedule Shutdown

RESOURCE PACK
A Minecraft data pack containing functions that will stop the server after a duration of time.
by AdamRaichu
Download Claim this project
Add a badge to your pageLink to Schedule Shutdown from a README, website or forum post.
Preview: Badge

Badges update automatically and link to the resource pack page on MineUniverse.

102 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Data Packs Miscellaneous
Advertisement Remove ads with Premium →

Schedule Shutdown

A Minecraft data pack containing functions that will stop the server after a duration of time.

Important: To use this datapack, you need to be running a dedicated server with function-permission-level in server.properties to 4. This datapack will not function (get it? :D) in a singleplayer world.

Important: Except for NO_AUTO_SHUTDOWN.zip, all versions will automatically shut down the server after the specified length of time. See Auto-Shutdown for an explanation of what this means and why I did it like that.

Below is a list of available delays. Each one triggers the one below it. (I did this in a not dumb way, with 5hrs triggering 1hr after 4hrs, 1hr trigger 15min after 45min, etc.)

  • 24hrs
  • 12hrs
  • 5hrs
  • 1hr
  • 15min
  • 5min
  • 1min
  • 5sec

Any scheduled shutdowns are cancelled upon starting the server.

Examples

# Shut down the server in 5hrs. See src/data/schedule_shutdown/functions/delay/* for function names.
function schedule_shutdown:delay/five_hours

# Cancel a scheduled shutdown.
function schedule_shutdown:clear_all

Auto-Shutdown

I originally made this datapack because I had figured out how to host a Minecraft server in GitHub Actions, but needed the server to automatically close with enough time left to save the server state to the repo. That's why there is a 5 hour version (max GitHub workflow run time is 6 hours). The files with a name like length_of_time.zip will automatically run the function schedule_shutdown:delay/length_of_time when the server loads (using Minecraft's load.json). Unless you want your server to automatically shut down after a length of time, use NO_AUTO_SHUTDOWN.zip.

FAQ/Troubleshooting

<details> <summary>Failed to load function schedule_shutdown:shutdown</summary>

Same as Couldn't load tag schedule_shutdown:all_shutdown as it is missing following references: schedule_shutdown:shutdown. </details>

<details> <summary>Couldn't load tag schedule_shutdown:all_shutdown as it is missing following references: schedule_shutdown:shutdown</summary>

Make sure you set the function-permission-level in server.properties to 4 and try starting the server again. If you still have this error, please open an issue in the GitHub repo. </details>

NO_AUTO_SHUTDOWN.zip
MC 1.20.4
Release 2024-02-06 Get

Requirements & install

How to use this resource pack in Minecraft
Resolution
Not specified
Minecraft
1.20.4
Install folder
.minecraft/resourcepacks

How to install resource packs

  1. Download the resource pack .zip file (do not extract it).
  2. In Minecraft open Options → Resource Packs → Open Pack Folder.
  3. Drop the .zip into the resourcepacks folder (.minecraft/resourcepacks).
  4. Move the pack to the Selected column and click Done.
Browse more: 16x resource packs 32x resource packs 64x resource packs 128x resource packs 256x resource packs 512x+ resource packs Resource Packs for 1.20.4 All resource packs

More from AdamRaichu

Advertisement Remove ads with Premium →

You Might Also Like