NearW / minecraft-speedrun

Server configuration for a speedrun server
8 stars 1 forks source link

Minecraft Speedrun Server

This project provides a better startup for a speedrun server as it can automatically:

Prerequisites

Usage

Note: Enabling flight will prevent random disconnects when traveling too fast via boat, riding a horse or other activities.

{
    "MIN_RAM": 8, // Minimum allocated RAM in GB, -Xms
    "MAX_RAM": 10, // Maximum allocated RAM in GB, -Xmx
    "OP": ["Notch"], // List of operators
    "WHITELIST": ["Notch"], // List of whitelisted players
    "DATA_PACK": false, // set to true, if datapacks should be copied into the world
    "SEEDS": ["-9223372036854775808", "9223372036854775807"], // List of set seeds that are played one by one, set [] to disable this option
    "AUTO_SAVE":  false, // Turn off to prevent 5 minute lag
    "KEEP_WORLDS":  false, // Turn on if worlds should be renamed instead of deleted
    "LOAD_WORLD": "world_2021-05-21_15-31-24", // Set world folder name that should be loaded on server start instead of deleting/archiving the world.
    "JAR_NAME": "server.jar" // Set this value in case you use a different jar, e.g. by using a fabric server.
}

Defaults, if not set

{
    "OP": [],
    "WHITELIST": [],
    "DATA_PACK": false,
    "SEEDS": [],
    "AUTO_SAVE":  false,
    "KEEP_WORLDS":  false,
    "LOAD_WORLD": "",
    "JAR_NAME": "server.jar"
}

Datapacks

In order to automatically add datapacks to your world on each restart, add a folder named datapacks to the root of your minecraft server and put the unzipped datapacks inside and enable it in the speedrun.json config.

Set Seeds

Add seeds to the SEEDS list, if you want to restart the world with set seeds. On each restart, the first seed of the list will be loaded and removed from the list. This is really helpful, if you want to do some speedrun battles with a pool of set seeds.

All Advancements

Set AUTO_SAVE and KEEP_WORLDS to true while resetting for a good seed. Once a playable seed is found, set LOAD_WORLD to the world folder name of that world to prevent future resets.