ModsJava
MC Startup Script
Java mod listed for Minecraft 1.18–26.x. Download on the author's site.
⬇ Download on Spigot
Minecraft Startup Script
A lightweight Windows launcher for Minecraft servers, with guided setup, automatic Java selection, crash recovery, Discord status updates, and safe self-updates.
Features
1️⃣ Guided setup to ensure the server has all it needs
2️⃣ Toggleable auto-restart
3️⃣ Customisable JVM flags (+ RAM allocation + GUI)
4️⃣ (Optional) Calculated JVM flags based on hardware, Java version, and RAM allocation
5️⃣ Auto-generate EULA
6️⃣ Automatic Java detection/selection
7️⃣ Discord webhook integration
8️⃣ Auto-updates with latest version from GitHub
Requirements
- Windows OS
- Windows PowerShell 5.1
- Java 8 or newer, depending on the Minecraft version
How to Use
- Download the script's latest START.BAT release (ensure it is saved as a '.bat').
- Place it in your Minecraft server's root directory.
- Run the script by either double clicking the file, or executing via CMD.
- Upon first use, the script will automatically download core.ps1 and run you through the configuration prompts.
The first run creates config/StartupScript.json. It can be edited directly for advanced options such as custom JVM flags or webhook text.
Older v1 installations using config/StartupScript.conf are imported automatically when v2 starts. The original file is left untouched as a backup.
To apply configuration changes while the script is still running (i.e. console is still open), simply restart the Minecraft server.
No need to restart the script.
Spoiler: Screenshots
Screenshots
Full Setup Wizard
EULA Acceptance
Server Start-up
Server Stop
Full Setup Wizard
EULA Acceptance
Server Start-up
Server Stop
Spoiler: Functionality
Functionality
First Launch/Initial Setup
First Launch/Initial Setup
- Prompts user for server .jar filename. Checks if the file exists.
- Prompts user to allocate initial and maximum RAM for the server. Checks if entry is a valid value.
- Queries user whether the server should auto-restart or not.
- Queries user whether server should use pre-configured JVM arguments. Regardless of result, will generate file for flag storage.
- Queries user whether to launch with GUI.
- Queries user whether to use Discord webhooks. If yes, user inputs webhook URL.
- Lets user confirm choices. If confirmed, continue to normal startup. If rejected, will restart initial configuration.
- Stores configuration in /config/StartupScript.json.
- Generates auto-accepted EULA.
- Checks for updates to this script.
- Checks for config folder, config file, and sets restart counter. If config is missing, reverts back to initial setup.
- Checks for EULA, if non-existent, creates accepted eula.txt.
- Reads the JSON configuration and validates the selected Java runtime.
- Displays configuration to user and initialises the server.
- Uses built-in JVM defaults, with an optional jvmFlags override in the JSON configuration.
- Checks auto-restart config to decide launch path.
- Launches server, changes console title to the configurable title + restart count, and (if configured) sends Discord message.
- Upon crash or restart, increments the restart counter, reloads configuration + JVM flags, and (if configured) sends Discord message.
- Launches server and changes console title to the configurable title, and (if configured) sends Discord message.
- Upon crash or restart, prompts user whether to restart or exit, and (if configured) sends Discord message.
License
GNU GPLv3
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.18, 1.19, 1.20
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
MC Startup Script is a free Minecraft Java mod. Compatible with Minecraft 1.18, 1.19, 1.20, 1.20.6 and newer. Downloaded 389 times (via Spigot). Download it and open it directly in the game.