Schedule Shutdown

⭐ — (0 endorsements) 📥 486 downloads 📌 v1.0.1 📅 12/18/2023
⚪ Last updated 2023

By AdamRaichu · datapack

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 12/24/2023 📅 Created: 12/18/2023

🔍 Analysis

  • 🏆 #623 of 2046 datapack mods in this game by downloads

📋 About This Mod

# 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.) - 5hrs - 1hr - 15min - 5min - 1min Any scheduled shutdowns are cancelled upon starting the server. ## Examples ```mcfunction # 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>

# 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.)

  • 5hrs
  • 1hr
  • 15min
  • 5min
  • 1min

Any scheduled shutdowns are cancelled upon starting the server.

## Examples

```mcfunction # 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

Failed to load function schedule_shutdown:shutdown

Same as `Couldn't load tag schedule_shutdown:all_shutdown as it is missing following references: schedule_shutdown:shutdown`.

Couldn't load tag schedule_shutdown:all_shutdown as it is missing following references: schedule_shutdown:shutdown

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.

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Data Packs
Author
AdamRaichu
Version
1.0.1
Downloads
486
Endorsements
0
Category
datapack
Created
12/18/2023
Updated
12/24/2023
Game Versions
1.20.4
Tags
management, utility

🔧 How to Install Minecraft Data Packs Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Data Packs →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Data Packs versions does Schedule Shutdown support?

The author lists 1.20.4. Other versions may work but are untested by the author.

What is the latest version of Schedule Shutdown?

Version 1.0.1, published 2023-12-24 with 486 downloads recorded at the source.

Keep browsing — more Minecraft Data Packs mods await

📋 All Minecraft Data Packs Mods 🏆 Top 25 📂 More datapack 👤 More by AdamRaichu 🔎 Similar Mods 🌐 Best datapack (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods